diff options
author | Peter Williams <peterw@ximian.com> | 2001-06-28 00:32:01 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-06-28 00:32:01 +0800 |
commit | 24ab648dbbc12a0585432ab8a31cd701ce920be1 (patch) | |
tree | db64e56bcecc00faa6aefbf480822fc92a0df637 /mail/folder-browser-ui.c | |
parent | 041edb0ec82bd8eefd284cff1f50f3d262191f52 (diff) | |
download | gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar.gz gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar.zst gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.zip |
Change to use more reality-based API below. Include folder-browser-ui.h
2001-06-27 Peter Williams <peterw@ximian.com>
* folder-browser-factory.c (control_deactivate): Change to use
more reality-based API below.
Include folder-browser-ui.h too.
(control_activate): Remove now-unused 'int state'.
* folder-browser-ui.h: Changed prototypes to match changes below.
* folder-browser-ui.c (folder_browser_ui_rm_message): Commented out
to reflect reality of how this stuff works (you can't actually remove
the pieces).
(folder_browser_ui_rm_global): Same.
(folder_browser_ui_rm_list): Left because here we add the view menus.
(folder_browser_ui_add_list): ... which were moved here.
(folder_browser_ui_rm_all): New function, does the job of old ui_rm()
svn path=/trunk/; revision=10531
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r-- | mail/folder-browser-ui.c | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c index f856c34617..2a72b349fe 100644 --- a/mail/folder-browser-ui.c +++ b/mail/folder-browser-ui.c @@ -172,19 +172,6 @@ static void ui_add (FolderBrowser *fb, bonobo_ui_component_thaw (uic, NULL); } -/* unused args, for now... */ - -static void ui_rm (FolderBrowser *fb, - const gchar *name, - BonoboUIVerb verb[], - EPixmap pixcache[]) -{ - BonoboUIComponent *uic = fb->uicomp; - - bonobo_ui_component_rm (uic, "/", NULL); - bonobo_ui_component_unset_container (uic); -} - /* more complex stuff */ static void @@ -304,11 +291,13 @@ folder_browser_ui_add_message (FolderBrowser *fb) bonobo_ui_component_set_prop (uic, "/commands/MessageResend", "sensitive", "0", NULL); } +/* void folder_browser_ui_rm_message (FolderBrowser *fb) { ui_rm (fb, "message", message_verbs, message_pixcache); } +*/ void folder_browser_ui_add_list (FolderBrowser *fb) @@ -344,12 +333,18 @@ folder_browser_ui_add_list (FolderBrowser *fb) /* Property menu */ folder_browser_setup_property_menu (fb, fb->uicomp); + + /* View menu */ + + folder_browser_setup_view_menus (fb, fb->uicomp); } void folder_browser_ui_rm_list (FolderBrowser *fb) { - ui_rm (fb, "list", list_verbs, list_pixcache); + /* View menu */ + + folder_browser_discard_view_menus (fb); } void @@ -371,20 +366,21 @@ folder_browser_ui_add_global (FolderBrowser *fb) /* Stop button */ bonobo_ui_component_set_prop(uic, "/commands/MailStop", "sensitive", "0", NULL); - - /* View menu */ - - folder_browser_setup_view_menus (fb, fb->uicomp); - } +/* void folder_browser_ui_rm_global (FolderBrowser *fb) { - ui_rm (fb, "global", global_verbs, global_pixcache); +} +*/ - /* View menu */ +void +folder_browser_ui_rm_all (FolderBrowser *fb) +{ + BonoboUIComponent *uic = fb->uicomp; - folder_browser_discard_view_menus (fb); + bonobo_ui_component_rm (uic, "/", NULL); + bonobo_ui_component_unset_container (uic); } |