aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--composer/ChangeLog7
-rw-r--r--composer/e-msg-composer-attachment-bar.c11
2 files changed, 17 insertions, 1 deletions
diff --git a/composer/ChangeLog b/composer/ChangeLog
index c767982b03..9131919531 100644
--- a/composer/ChangeLog
+++ b/composer/ChangeLog
@@ -1,3 +1,10 @@
+2004-03-17 Bill Zhu <bill.zhu@sun.com>
+
+ * e-msg_composer-attachment-bar.c: If we select multi-attachments, the
+ "properities" menu item in popup icon context menu will be disabled.
+
+ Fixes bug #55299
+
2004-03-07 Jeffrey Stedfast <fejj@ximian.com>
* e-msg-composer.c (do_exit): If the subject is empty, use
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index c5993d0df4..539ea75afb 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -456,6 +456,8 @@ static GnomeUIInfo icon_context_menu_info[] = {
GNOMEUIINFO_END
};
+#define ICON_CONTEXT_MENU_PROPERTIES (1)
+
static GtkWidget *
get_icon_context_menu (EMsgComposerAttachmentBar *bar)
{
@@ -474,8 +476,15 @@ popup_icon_context_menu (EMsgComposerAttachmentBar *bar,
GdkEventButton *event)
{
GtkWidget *menu;
-
+ GnomeIconList *icon_list;
+ GList *selection;
+
menu = get_icon_context_menu (bar);
+ icon_list = GNOME_ICON_LIST (bar);
+ selection = gnome_icon_list_get_selection (icon_list);
+
+ gtk_widget_set_sensitive (icon_context_menu_info[ICON_CONTEXT_MENU_PROPERTIES].widget, g_list_length (selection) == 1);
+
gnome_popup_menu_do_popup (menu, NULL, NULL, event, bar, NULL);
}