aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-28 17:34:27 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-28 17:34:27 +0800
commite79b6c7d42efa895444ee941f02fbae6c511d1ce (patch)
treedd31335c9e67dba401eec422473a209e97e2792e
parent2c2cdb4ee5692f72077c2afef8bea62ad5589766 (diff)
downloadgsoc2013-evolution-e79b6c7d42efa895444ee941f02fbae6c511d1ce.tar.gz
gsoc2013-evolution-e79b6c7d42efa895444ee941f02fbae6c511d1ce.tar.zst
gsoc2013-evolution-e79b6c7d42efa895444ee941f02fbae6c511d1ce.zip
Deactivate the Print right-click menu option if the message isn't loaded.
2001-10-28 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c: Deactivate the Print right-click menu option if the message isn't loaded. Fixes bug #10346. svn path=/trunk/; revision=14287
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser.c16
2 files changed, 13 insertions, 8 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index bc4656abd9..4a111df44f 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-28 Jeffrey Stedfast <fejj@ximian.com>
+
+ * folder-browser.c: Deactivate the Print right-click menu option
+ if the message isn't loaded. Fixes bug #10346.
+
2001-10-28 <NotZed@Ximian.com>
* mail-vfolder.c (mail_vfolder_rename_uri): Implemented.
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 1fb9b046ef..a210a98280 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -1444,7 +1444,7 @@ static EPopupMenu context_menu[] = {
{ N_("_Open"), NULL, GTK_SIGNAL_FUNC (open_msg), NULL, 0 },
{ N_("_Edit as New Message..."), NULL, GTK_SIGNAL_FUNC (resend_msg), NULL, CAN_RESEND },
{ N_("_Save As..."), NULL, GTK_SIGNAL_FUNC (save_msg), NULL, 0 },
- { N_("_Print"), NULL, GTK_SIGNAL_FUNC (print_msg), NULL, 0 },
+ { N_("_Print"), NULL, GTK_SIGNAL_FUNC (print_msg), NULL, SELECTION_SET },
E_POPUP_SEPARATOR,
@@ -1509,7 +1509,7 @@ on_right_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event
int i;
char *mlist = NULL;
GtkMenu *menu;
-
+
if (fb->folder != sent_folder) {
enable_mask |= CAN_RESEND;
hide_mask |= CAN_RESEND;
@@ -1519,20 +1519,20 @@ on_right_click (ETree *tree, gint row, ETreePath path, gint col, GdkEvent *event
enable_mask |= SELECTION_SET;
} else {
char *mname, *p, c, *o;
-
- mname = header_raw_check_mailing_list(&((CamelMimePart *)fb->mail_display->current_message)->headers);
+
+ mname = header_raw_check_mailing_list (&((CamelMimePart *)fb->mail_display->current_message)->headers);
/* Escape the mailing list name before showing it */
if (mname) {
- mlist = alloca(strlen(mname)+2);
+ mlist = alloca (strlen (mname)+2);
p = mname;
o = mlist;
while ((c = *p++)) {
- if (c=='_')
- *o++='_';
+ if (c == '_')
+ *o++ = '_';
*o++ = c;
}
*o = 0;
- g_free(mname);
+ g_free (mname);
}
}