diff options
author | Chris Toshok <toshok@ximian.com> | 2003-04-20 06:10:35 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2003-04-20 06:10:35 +0800 |
commit | 5cf9db22084a646cec7d655926db67b8650f65a4 (patch) | |
tree | 7fb27c8b1f44df065e4f8b371f949e9ee5b3c414 | |
parent | 5cc97da325c7d802e0f6c0652603a91dfc962991 (diff) | |
download | gsoc2013-evolution-5cf9db22084a646cec7d655926db67b8650f65a4.tar.gz gsoc2013-evolution-5cf9db22084a646cec7d655926db67b8650f65a4.tar.zst gsoc2013-evolution-5cf9db22084a646cec7d655926db67b8650f65a4.zip |
[ fixes #40694 ] this can't hurt - set the frame to autoactivate so if by
2003-04-19 Chris Toshok <toshok@ximian.com>
[ fixes #40694 ]
* e-msg-composer-hdrs.c (create_addressbook_entry): this can't
hurt - set the frame to autoactivate so if by some chance the
widget is focused the control will end up being activated.
* e-msg-composer.c (map_default_cb): activate the To: control
instead of focusing the widget.
svn path=/trunk/; revision=20896
-rw-r--r-- | composer/ChangeLog | 10 | ||||
-rw-r--r-- | composer/e-msg-composer-hdrs.c | 2 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 7 |
3 files changed, 16 insertions, 3 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 443dc2947a..b8e28ac9e8 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,13 @@ +2003-04-19 Chris Toshok <toshok@ximian.com> + + [ fixes #40694 ] + * e-msg-composer-hdrs.c (create_addressbook_entry): this can't + hurt - set the frame to autoactivate so if by some chance the + widget is focused the control will end up being activated. + + * e-msg-composer.c (map_default_cb): activate the To: control + instead of focusing the widget. + 2003-04-18 Rodney Dawes <dobey@ximian.com> * Makefile.am: diff --git a/composer/e-msg-composer-hdrs.c b/composer/e-msg-composer-hdrs.c index e5f45cff4b..f81914160f 100644 --- a/composer/e-msg-composer-hdrs.c +++ b/composer/e-msg-composer-hdrs.c @@ -451,6 +451,8 @@ create_addressbook_entry (EMsgComposerHdrs *hdrs, const char *name) cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (control_widget)); pb = bonobo_control_frame_get_control_property_bag (cf, NULL); + bonobo_control_frame_set_autoactivate (cf, TRUE); + bonobo_event_source_client_add_listener ( pb, addressbook_entry_changed, "Bonobo/Property:change:entry_changed", diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 71ea78e419..4e228bdbc2 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2774,7 +2774,9 @@ map_default_cb (EMsgComposer *composer, gpointer user_data) if (!text || text[0] == '\0') { printf ("grabbing focus in the To entry...\n"); - gtk_widget_grab_focus (widget); + + bonobo_control_frame_control_activate (cf); + g_free (text); return; } @@ -2997,8 +2999,7 @@ create_composer (int visible_mask) setup_cut_copy_paste (composer); - /*g_signal_connect (composer, "map", (GCallback) map_default_cb, NULL);*/ - map_default_cb (composer, NULL); + g_signal_connect (composer, "map", (GCallback) map_default_cb, NULL); if (am == NULL) am = autosave_manager_new (); |