Make sure that the gcc->menu is set.

SVN revision: 32879
This commit is contained in:
Christopher Michael 2007-11-25 08:27:13 +00:00
parent f815a503eb
commit c7bbdb6b68
1 changed files with 2 additions and 0 deletions

View File

@ -1162,6 +1162,7 @@ e_gadcon_client_util_menu_items_append(E_Gadcon_Client *gcc, E_Menu *menu, int f
if (gcc->gadcon->shelf)
e_shelf_locked_set(gcc->gadcon->shelf, 1);
e_menu_post_deactivate_callback_set(menu, _e_gadcon_client_cb_menu_post, gcc);
gcc->menu = menu;
if (!gcc->gadcon->toolbar)
{
@ -2167,6 +2168,7 @@ _e_gadcon_client_cb_menu_post(void *data, E_Menu *m)
E_Gadcon_Client *gcc;
gcc = data;
if (!gcc) return;
if ((gcc->gadcon) && (gcc->gadcon->shelf))
e_shelf_locked_set(gcc->gadcon->shelf, 0);
if (!gcc->menu) return;