diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/component-factory.c | 20 |
2 files changed, 25 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 017a9f56b9..9a9247a0c6 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-07-06 Ettore Perazzoli <ettore@ximian.com> + + * component-factory.c (populate_folder_context_menu): New function + to populate the right-click menu for mail folders. + (component_fn): Pass it to `evolution_shell_component_new()'. + 2001-07-05 Jeffrey Stedfast <fejj@ximian.com> * mail-accounts.c (construct): Add a checkbox for prompting when diff --git a/mail/component-factory.c b/mail/component-factory.c index 10588c50cc..66420e01fd 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -279,6 +279,24 @@ xfer_folder (EvolutionShellComponent *shell_component, CORBA_exception_free (&ev); } +static void +populate_folder_context_menu (EvolutionShellComponent *shell_component, + BonoboUIComponent *uic, + const char *physical_uri, + const char *type, + void *closure) +{ + static char popup_xml[] = + "<menuitem name=\"ChangeFolderProperties\" verb=\"ChangeFolderProperties\"" + " _label=\"Properties...\" _tip=\"Change this folder's properties\"/>"; + + if (strcmp (type, "mail") != 0) + return; + + bonobo_ui_component_set_translate (uic, EVOLUTION_SHELL_COMPONENT_POPUP_PLACEHOLDER, + popup_xml, NULL); +} + static char * get_dnd_selection (EvolutionShellComponent *shell_component, const char *physical_uri, @@ -624,7 +642,7 @@ component_fn (BonoboGenericFactory *factory, void *closure) create_folder, remove_folder, xfer_folder, - NULL, /* populate_folder_context_menu_fn */ + populate_folder_context_menu, get_dnd_selection, NULL); |