forked from enlightenment/enlightenment
possibly fix possibly existing clock popup crash
ticket #2090 SVN revision: 83062
This commit is contained in:
parent
7f22a1e36a
commit
68c11dfc68
|
@ -302,7 +302,7 @@ _clock_popup_fullscreen_change(Instance *inst, int type __UNUSED__, void *ev __U
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_clock_popup_desk_change(Instance *inst, int type __UNUSED__, E_Event_Desk_After_Show *ev)
|
_clock_popup_desk_change(Instance *inst, int type __UNUSED__, E_Event_Desk_After_Show *ev)
|
||||||
{
|
{
|
||||||
if (!inst->gcc->gadcon || !inst->gcc->gadcon->shelf) return ECORE_CALLBACK_RENEW;
|
if ((!inst->gcc) || (!inst->gcc->gadcon) || (!inst->gcc->gadcon->shelf)) return ECORE_CALLBACK_RENEW;
|
||||||
if (e_shelf_desk_visible(inst->gcc->gadcon->shelf, ev->desk)) return ECORE_CALLBACK_RENEW;
|
if (e_shelf_desk_visible(inst->gcc->gadcon->shelf, ev->desk)) return ECORE_CALLBACK_RENEW;
|
||||||
_clock_popup_free(inst);
|
_clock_popup_free(inst);
|
||||||
return ECORE_CALLBACK_RENEW;
|
return ECORE_CALLBACK_RENEW;
|
||||||
|
|
Loading…
Reference in New Issue