[evolution-patches] #55299: Can't change several attachment property in Mail



Hi, please see this bug:
    http://bugzilla.ximian.com/show_bug.cgi?id=55299
I think it is not necessary to popup many dialogs for each attachments.
so I disabled the "properities" menu item when selecting multi attachments.

Bill
Index: e-msg-composer-attachment-bar.c
===================================================================
RCS file: /export/src/cvs/evolution/composer/e-msg-composer-attachment-bar.c,v
retrieving revision 1.1.1.1.2.3.2.1
diff -u -r1.1.1.1.2.3.2.1 e-msg-composer-attachment-bar.c
--- e-msg-composer-attachment-bar.c	2004/01/19 02:02:35	1.1.1.1.2.3.2.1
+++ e-msg-composer-attachment-bar.c	2004/03/11 06:34:34
@@ -486,8 +486,22 @@
 			 GdkEventButton *event)
 {
 	GtkWidget *menu;
-	
+	GnomeIconList *icon_list;
+	GList     *p, *menu_item;
+
 	menu = get_icon_context_menu (bar);
+	icon_list = GNOME_ICON_LIST (bar);
+	p = gnome_icon_list_get_selection (icon_list);
+	menu_item = GTK_MENU_SHELL(menu)->children->next;
+
+	if (g_list_length(p) >= 2)
+	{
+		gtk_widget_set_sensitive ((GtkWidget *)(menu_item->data), FALSE);
+	}
+	else {
+		gtk_widget_set_sensitive ((GtkWidget *)(menu_item->data), TRUE);
+	}
+
 	gnome_popup_menu_do_popup (menu, NULL, NULL, event, bar, NULL);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]