Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_gadcon.c Log Message: *sigh* Gadget containers can be other things besides Shelfs. Check for existance of shelf before calling shelf-specific functions. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_gadcon.c,v retrieving revision 1.91 retrieving revision 1.92 diff -u -3 -r1.91 -r1.92 --- e_gadcon.c 23 Nov 2007 11:49:27 -0000 1.91 +++ e_gadcon.c 25 Nov 2007 03:18:31 -0000 1.92 @@ -1159,7 +1159,8 @@ E_OBJECT_CHECK(gcc); E_OBJECT_TYPE_CHECK(gcc, E_GADCON_CLIENT_TYPE); - e_shelf_locked_set(gcc->gadcon->shelf, 1); + 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); if (!gcc->gadcon->toolbar) @@ -2165,7 +2166,8 @@ E_Gadcon_Client *gcc; gcc = data; - e_shelf_locked_set(gcc->gadcon->shelf, 0); + if (gcc->gadcon->shelf) + e_shelf_locked_set(gcc->gadcon->shelf, 0); if (!gcc->menu) return; e_object_del(E_OBJECT(gcc->menu)); gcc->menu = NULL; ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs