diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-04-09 04:14:22 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-04-09 04:14:22 +0800 |
commit | 55c6c41bd4d0f485344963fac72a62c181e91af6 (patch) | |
tree | 3abcf4c2a469a7a0fc4de0c2ce61235175101b4c /composer | |
parent | 122470e9bebdeb3de701fd5f537741a0075a2230 (diff) | |
download | gsoc2013-evolution-55c6c41bd4d0f485344963fac72a62c181e91af6.tar.gz gsoc2013-evolution-55c6c41bd4d0f485344963fac72a62c181e91af6.tar.zst gsoc2013-evolution-55c6c41bd4d0f485344963fac72a62c181e91af6.zip |
Added some debug printfs. (create_composer): Call map_default_cb directly
2003-04-08 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (map_default_cb): Added some debug printfs.
(create_composer): Call map_default_cb directly instead of having
it in a "map" callback. Ettore says we shouldn't be doing this
*shrug*. Still doesn't work tho.
svn path=/trunk/; revision=20767
Diffstat (limited to 'composer')
-rw-r--r-- | composer/ChangeLog | 7 | ||||
-rw-r--r-- | composer/e-msg-composer.c | 15 |
2 files changed, 15 insertions, 7 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog index 7c7c09c999..1c29ae0d26 100644 --- a/composer/ChangeLog +++ b/composer/ChangeLog @@ -1,3 +1,10 @@ +2003-04-08 Jeffrey Stedfast <fejj@ximian.com> + + * e-msg-composer.c (map_default_cb): Added some debug printfs. + (create_composer): Call map_default_cb directly instead of having + it in a "map" callback. Ettore says we shouldn't be doing this + *shrug*. Still doesn't work tho. + 2003-04-07 Chris Toshok <toshok@ximian.com> [ fixes bug #39763 ] diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 9db2ab7d10..ccaf6849fb 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -2755,7 +2755,7 @@ e_msg_composer_get_visible_flags (EMsgComposer *composer) static void map_default_cb (EMsgComposer *composer, gpointer user_data) { - GtkWidget *to; + GtkWidget *widget; BonoboControlFrame *cf; Bonobo_PropertyBag pb = CORBA_OBJECT_NIL; CORBA_Environment ev; @@ -2764,14 +2764,15 @@ map_default_cb (EMsgComposer *composer, gpointer user_data) /* If the 'To:' field is empty, focus it (This is ridiculously complicated) */ - to = e_msg_composer_hdrs_get_to_entry (E_MSG_COMPOSER_HDRS (composer->hdrs)); - cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (to)); + 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); if (!text || text[0] == '\0') { - gtk_widget_grab_focus (to); + printf ("grabbing focus in the To entry...\n"); + gtk_widget_grab_focus (widget); g_free (text); return; } @@ -2782,8 +2783,7 @@ map_default_cb (EMsgComposer *composer, gpointer user_data) subject = e_msg_composer_hdrs_get_subject (E_MSG_COMPOSER_HDRS (composer->hdrs)); if (!subject || subject[0] == '\0') { - GtkWidget *widget; - + printf ("grabbing focus in the Subject entry...\n"); widget = e_msg_composer_hdrs_get_subject_entry (E_MSG_COMPOSER_HDRS (composer->hdrs)); gtk_widget_grab_focus (widget); return; @@ -2995,7 +2995,8 @@ create_composer (int visible_mask) setup_cut_copy_paste (composer); - g_signal_connect (composer, "map", (GCallback) map_default_cb, NULL); + /*g_signal_connect (composer, "map", (GCallback) map_default_cb, NULL);*/ + map_default_cb (composer, NULL); if (am == NULL) am = autosave_manager_new (); |