forked from enlightenment/enlightenment
block some gadgets from appearing on desklock gadget sites
ref T4648
This commit is contained in:
parent
0f5b287866
commit
592c2c7499
|
@ -2132,6 +2132,7 @@ bar_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient EINA_UNUSED
|
||||||
{
|
{
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
|
if (e_gadget_site_is_desklock(parent)) return NULL;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
inst->size = 0;
|
inst->size = 0;
|
||||||
inst->resize_job = NULL;
|
inst->resize_job = NULL;
|
||||||
|
|
|
@ -704,6 +704,7 @@ grid_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient)
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
if (orient) return NULL;
|
if (orient) return NULL;
|
||||||
|
if (e_gadget_site_is_desklock(parent)) return NULL;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
inst->size = 0;
|
inst->size = 0;
|
||||||
inst->resize_job = NULL;
|
inst->resize_job = NULL;
|
||||||
|
|
|
@ -2038,6 +2038,7 @@ pager_create(Evas_Object *parent, int *id EINA_UNUSED, E_Gadget_Site_Orient orie
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
|
if (e_gadget_site_is_desklock(parent)) return NULL;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
p = _pager_new(evas_object_evas_get(parent), EINA_FALSE);
|
p = _pager_new(evas_object_evas_get(parent), EINA_FALSE);
|
||||||
p->inst = inst;
|
p->inst = inst;
|
||||||
|
|
|
@ -200,6 +200,7 @@ start_create(Evas_Object *parent, int *id EINA_UNUSED, E_Gadget_Site_Orient orie
|
||||||
Evas_Object *o;
|
Evas_Object *o;
|
||||||
Instance *inst;
|
Instance *inst;
|
||||||
|
|
||||||
|
if (e_gadget_site_is_desklock(parent)) return NULL;
|
||||||
inst = E_NEW(Instance, 1);
|
inst = E_NEW(Instance, 1);
|
||||||
|
|
||||||
o = elm_layout_add(parent);
|
o = elm_layout_add(parent);
|
||||||
|
|
Loading…
Reference in New Issue