diff options
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 6 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 19 |
2 files changed, 12 insertions, 13 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index a310f095dc..c40d6d7a4c 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,9 @@ +2004-12-24 JP Rosevear <jpr@novell.com> + + * e-msg-composer.c (setup_signatures_menu): kill warnings + (map_default_cb): the to entry widget is now just a gtk entry at + its core, so check for text that way + 2004-12-23 Hans Petter Jansson <hpj@novell.com> * Makefile.am (selectnamesdir) diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 690193f4f8..5d22f1144e 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2100,7 +2100,7 @@ setup_signatures_menu (EMsgComposer *composer) composer->sig_menu = (GtkOptionMenu *) gtk_option_menu_new (); - gtk_label_set_mnemonic_widget (label, composer->sig_menu); + gtk_label_set_mnemonic_widget ((GtkLabel *) label, (GtkWidget *)composer->sig_menu); gtk_box_pack_end_defaults (GTK_BOX (hbox), (GtkWidget *) composer->sig_menu); gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, TRUE, 0); @@ -3153,27 +3153,20 @@ static void map_default_cb (EMsgComposer *composer, gpointer user_data) { GtkWidget *widget; - BonoboControlFrame *cf; - Bonobo_PropertyBag pb = CORBA_OBJECT_NIL; CORBA_Environment ev; const char *subject; - char *text; + const char *text; + + /* If the 'To:' field is empty, focus it */ - /* If the 'To:' field is empty, focus it (This is ridiculously complicated) */ - widget = e_msg_composer_hdrs_get_to_entry (E_MSG_COMPOSER_HDRS (composer->hdrs)); - cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (widget)); - pb = bonobo_control_frame_get_control_property_bag (cf, NULL); - text = bonobo_pbclient_get_string (pb, "text", NULL); - bonobo_object_release_unref (pb, NULL); + text = gtk_entry_get_text (GTK_ENTRY (widget)); if (!text || text[0] == '\0') { - bonobo_control_frame_control_activate (cf); + gtk_widget_grab_focus (widget); - g_free (text); return; } - g_free (text); /* If not, check the subject field */ |