diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-04-12 02:52:39 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-04-12 02:52:39 +0800 |
commit | 8873c47ed16aa9babd88312672a72ea56dcca471 (patch) | |
tree | c5d5de26da2ada6c5bcb2633cc3b2ac9b563e7a4 /composer/e-composer-actions.c | |
parent | fe0495c2bdae62a38f23f7c3d86eb4db3c741157 (diff) | |
download | gsoc2013-evolution-8873c47ed16aa9babd88312672a72ea56dcca471.tar.gz gsoc2013-evolution-8873c47ed16aa9babd88312672a72ea56dcca471.tar.zst gsoc2013-evolution-8873c47ed16aa9babd88312672a72ea56dcca471.zip |
Fix for bug #517134 : Extend the 'Insert' menu (in editors) to show a "Recent Documents" submenu (to quickly add them as attachments).
M configure.in
M ChangeLog
M composer/evolution-composer.ui
M composer/ChangeLog
M composer/e-composer-actions.c
M composer/e-composer-private.c
M widgets/misc/ChangeLog
M widgets/misc/e-attachment-bar.c
M widgets/misc/e-attachment-bar.h
M calendar/gui/dialogs/comp-editor.c
M calendar/ChangeLog
M ui/ChangeLog
M ui/evolution-editor.xml
svn path=/trunk/; revision=35354
Diffstat (limited to 'composer/e-composer-actions.c')
-rw-r--r-- | composer/e-composer-actions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/composer/e-composer-actions.c b/composer/e-composer-actions.c index ecf7e84346..33a865c5e6 100644 --- a/composer/e-composer-actions.c +++ b/composer/e-composer-actions.c @@ -36,6 +36,7 @@ action_attach_cb (GtkAction *action, GtkWidget *dialog; GtkWidget *option; GSList *uris, *iter; + const gchar *disposition; gboolean active; gint response; @@ -72,16 +73,15 @@ action_attach_cb (GtkAction *action, uris = gtk_file_chooser_get_uris (GTK_FILE_CHOOSER (dialog)); active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (option)); + disposition = active ? "inline" : "attachment"; for (iter = uris; iter != NULL; iter = iter->next) { - const gchar *disposition; CamelURL *url; url = camel_url_new (iter->data, NULL); if (url == NULL) continue; - disposition = active ? "inline" : "attachment"; if (!g_ascii_strcasecmp (url->protocol, "file")) e_attachment_bar_attach (bar, url->path, disposition); else |