aboutsummaryrefslogtreecommitdiffstats
path: root/composer
diff options
context:
space:
mode:
authorBill Zhu <bill.zhu@sun.com>2004-03-18 17:10:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-03-18 17:10:42 +0800
commitdfade5600534026595bd1f9819077e4d401cbf63 (patch)
tree1d7121df350330943ce0a0bd7e673b506e78a435 /composer
parent7ff47f45a22a51fee075cf4a40b434159c6893a6 (diff)
downloadgsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.tar
gsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.tar.gz
gsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.tar.bz2
gsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.tar.lz
gsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.tar.xz
gsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.tar.zst
gsoc2013-evolution-dfade5600534026595bd1f9819077e4d401cbf63.zip
If we select multi-attachments, the "properities" menu item in popup icon
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 svn path=/trunk/; revision=25113
Diffstat (limited to 'composer')
-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);
}