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 | |
parent | 041edb0ec82bd8eefd284cff1f50f3d262191f52 (diff) | |
download | gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar.gz gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar.bz2 gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar.lz gsoc2013-evolution-24ab648dbbc12a0585432ab8a31cd701ce920be1.tar.xz 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
-rw-r--r-- | mail/ChangeLog | 17 | ||||
-rw-r--r-- | mail/folder-browser-factory.c | 4 | ||||
-rw-r--r-- | mail/folder-browser-ui.c | 40 | ||||
-rw-r--r-- | mail/folder-browser-ui.h | 10 |
4 files changed, 41 insertions, 30 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 8230f423d4..1f04ec603e 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,20 @@ +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() + 2001-06-26 Peter Williams <peterw@ximian.com> * folder-browser-ui.c: New file derived from folder-browser-factory.c. diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 9b2a198478..67cb6f6fba 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -30,6 +30,7 @@ #include "folder-browser-factory.h" #include "folder-browser.h" +#include "folder-browser-ui.h" #include "mail.h" #include "mail-callbacks.h" #include "shell/Evolution.h" @@ -75,9 +76,8 @@ control_deactivate (BonoboControl *control, BonoboUIComponent *uic, FolderBrowser *fb) { - folder_browser_ui_rm_message (fb); folder_browser_ui_rm_list (fb); - folder_browser_ui_rm_global (fb); + folder_browser_ui_rm_all (fb); /* turn this back on to get the old (broken) behaviour of * synching when leaving a folder 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); } diff --git a/mail/folder-browser-ui.h b/mail/folder-browser-ui.h index 75060aeeef..36e70e13e5 100644 --- a/mail/folder-browser-ui.h +++ b/mail/folder-browser-ui.h @@ -14,12 +14,10 @@ #include "folder-browser.h" void folder_browser_ui_add_message (FolderBrowser *fb); -void folder_browser_ui_rm_message (FolderBrowser *fb); - void folder_browser_ui_add_list (FolderBrowser *fb); -void folder_browser_ui_rm_list (FolderBrowser *fb); - void folder_browser_ui_add_global (FolderBrowser *fb); -void folder_browser_ui_rm_global (FolderBrowser *fb); -#endif /* _FOLDER_BROWSER_FACTORY_H */ +void folder_browser_ui_rm_list (FolderBrowser *fb); +void folder_browser_ui_rm_all (FolderBrowser *fb); + +#endif /* _FOLDER_BROWSER_UI_H */ |