aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-26 04:53:26 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-26 04:53:26 +0800
commit0923dc42fa64f6ef53c827bd6acf154c4c2a2264 (patch)
tree21ac59c9da80d960a6e100e863c266649fb3914d /mail/folder-browser-factory.c
parent6815fa8a3940102199da8d9be1e49e55f6efab11 (diff)
downloadgsoc2013-evolution-0923dc42fa64f6ef53c827bd6acf154c4c2a2264.tar.gz
gsoc2013-evolution-0923dc42fa64f6ef53c827bd6acf154c4c2a2264.tar.zst
gsoc2013-evolution-0923dc42fa64f6ef53c827bd6acf154c4c2a2264.zip
Disable Resend on non-Sent folder FolderBrowsers. Thanks to Wayne Davis
2001-05-25 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-factory.c (control_activate): Disable Resend on non-Sent folder FolderBrowsers. Thanks to Wayne Davis for this patch. svn path=/trunk/; revision=10000
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index 31ee715eff..10ee464636 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -258,11 +258,15 @@ control_activate (BonoboControl *control,
} else {
state = mail_config_get_hide_deleted();
}
- bonobo_ui_component_set_prop(uic, "/commands/HideDeleted", "state", state?"1":"0", NULL);
- bonobo_ui_component_add_listener(uic, "HideDeleted", folder_browser_toggle_hide_deleted, folder_browser);
+ bonobo_ui_component_set_prop (uic, "/commands/HideDeleted", "state", state ? "1" : "0", NULL);
+ bonobo_ui_component_add_listener (uic, "HideDeleted", folder_browser_toggle_hide_deleted,
+ folder_browser);
/* FIXME: this kind of bypasses bonobo but seems the only way when we change components */
- folder_browser_toggle_hide_deleted(uic, "", Bonobo_UIComponent_STATE_CHANGED, state?"1":"0", folder_browser);
-
+ folder_browser_toggle_hide_deleted (uic, "", Bonobo_UIComponent_STATE_CHANGED,
+ state ? "1" : "0", folder_browser);
+ if (fb->folder && !folder_browser_is_sent (fb))
+ bonobo_ui_component_set_prop (uic, "/commands/MessageResend", "sensitive", "0", NULL);
+
folder_browser_setup_view_menus (fb, uic);
folder_browser_setup_property_menu (fb, uic);