Prevent a crash by avoiding calling the populate_folder_context_menu

function when NULL.  (Ooops, I forgot this.)

svn path=/trunk/; revision=4253
This commit is contained in:
Ettore Perazzoli
2000-07-21 09:13:35 +00:00
parent 7d6ff2410a
commit ad3fd1d471
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2000-07-21 Ettore Perazzoli <ettore@helixcode.com>
* evolution-shell-component.c
(impl_ShellComponent_populate_folder_context_menu): If the pointer
to the function to populate the folder context menu is NULL, don't
do anything.
2000-07-21 Ettore Perazzoli <ettore@helixcode.com>
* e-storage-set-view.c (popup_folder_menu): New. Create a

View File

@ -280,6 +280,9 @@ impl_ShellComponent_populate_folder_context_menu (PortableServer_Servant servant
shell_component = EVOLUTION_SHELL_COMPONENT (bonobo_object);
priv = shell_component->priv;
if (priv->populate_folder_context_menu_fn == NULL)
return;
uih = bonobo_ui_handler_new ();
bonobo_ui_handler_set_container (uih, corba_uih);