From 8873c47ed16aa9babd88312672a72ea56dcca471 Mon Sep 17 00:00:00 2001 From: Suman Manjunath Date: Fri, 11 Apr 2008 18:52:39 +0000 Subject: 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 --- composer/e-composer-actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'composer/e-composer-actions.c') 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 -- cgit