From 60a7567a4171729f8753f0ece27888916c3137cb Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Fri, 6 Jul 2001 07:38:43 +0000 Subject: Change the folder right-click "Properties..." menu item handling so that it only happens in the mailer (which is the only component actually using this). For some reason it still doesn't work properly (i.e. the menu item currently does nothing), but I haven't quite figured out why yet. svn path=/trunk/; revision=10840 --- mail/component-factory.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'mail/component-factory.c') 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[] = + ""; + + 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); -- cgit v1.2.3