aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog10
-rw-r--r--composer/e-msg-composer-hdrs.c2
-rw-r--r--composer/e-msg-composer.c7
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 ();