aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-03-20 05:28:14 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-03-20 05:28:14 +0800
commit079d44f566d91d6eff53b7ceabadbeed5df66184 (patch)
tree27746f668771107124a3b4c767c84368bce02283 /composer/e-msg-composer.c
parentd9d1469a926eb86e2fb18a02d27a5cb9de4b7aff (diff)
downloadgsoc2013-evolution-079d44f566d91d6eff53b7ceabadbeed5df66184.tar.gz
gsoc2013-evolution-079d44f566d91d6eff53b7ceabadbeed5df66184.tar.zst
gsoc2013-evolution-079d44f566d91d6eff53b7ceabadbeed5df66184.zip
Change the logic to attach text parts when appropriate. (map_default_cb):
2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-msg-composer.c (add_attachments_handle_mime_part): Change the logic to attach text parts when appropriate. (map_default_cb): Grab the focus of the To entry widget. Fixes bug #39800. Fixes another #warning too. svn path=/trunk/; revision=20371
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r--composer/e-msg-composer.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c
index c4b5ab9f32..1217a1d22d 100644
--- a/composer/e-msg-composer.c
+++ b/composer/e-msg-composer.c
@@ -2004,8 +2004,8 @@ setup_ui (EMsgComposer *composer)
gboolean hide_smime;
GConfClient *gconf;
- container = bonobo_window_get_ui_container(BONOBO_WINDOW (composer));
-
+ container = bonobo_window_get_ui_container (BONOBO_WINDOW (composer));
+
composer->uic = bonobo_ui_component_new_default ();
/* FIXME: handle bonobo exceptions */
bonobo_ui_component_set_container (composer->uic, bonobo_object_corba_objref (BONOBO_OBJECT (container)), NULL);
@@ -2685,8 +2685,8 @@ static void
map_default_cb (EMsgComposer *composer, gpointer user_data)
{
GtkWidget *to;
- BonoboControlFrame *cf;
- Bonobo_PropertyBag pb = CORBA_OBJECT_NIL;
+ BonoboControlFrame *cf;
+ Bonobo_PropertyBag pb = CORBA_OBJECT_NIL;
CORBA_Environment ev;
const char *subject;
char *text;
@@ -2694,14 +2694,13 @@ 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));
- pb = bonobo_control_frame_get_control_property_bag (cf, NULL);
+ cf = bonobo_widget_get_control_frame (BONOBO_WIDGET (to));
+ 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') {
-#warning "bonobo control frame focus child?"
- /*bonobo_control_frame_focus_child (cf, GTK_DIR_TAB_FORWARD);*/
+ gtk_widget_grab_focus (to);
g_free (text);
return;
}
@@ -2882,11 +2881,11 @@ create_composer (int visible_mask)
return NULL;
}
- g_signal_connect (composer, "map", (GCallback)map_default_cb, NULL);
+ g_signal_connect (composer, "map", (GCallback) map_default_cb, NULL);
- if (am == NULL) {
+ if (am == NULL)
am = autosave_manager_new ();
- }
+
autosave_manager_register (am, composer);
return composer;