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
This commit is contained in:
committed by
Peter Williams
parent
041edb0ec8
commit
24ab648dbb
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user