From 5cf9db22084a646cec7d655926db67b8650f65a4 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Sat, 19 Apr 2003 22:10:35 +0000 Subject: [ fixes #40694 ] this can't hurt - set the frame to autoactivate so if by 2003-04-19 Chris Toshok [ 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 --- composer/ChangeLog | 10 ++++++++++ composer/e-msg-composer-hdrs.c | 2 ++ composer/e-msg-composer.c | 7 ++++--- 3 files changed, 16 insertions(+), 3 deletions(-) (limited to 'composer') 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 + + [ 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 * 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 (); -- cgit v1.2.3