summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-06-23 17:41:39 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-06-23 17:49:43 -0400
commita441d4d22ab7a2c9c9c6a1cc5dd9fc305c7c24ee (patch)
treede21755aa0dd21b579be9ea8aeebcd3395a19471
parent6a1d0226edf9b80e0e31f7fdab05b09d59a9825a (diff)
do not advertise luncher grid or sysinfo for gadget sites with orient
these are only feasible for non-bar sites
-rw-r--r--src/modules/luncher/grid.c3
-rw-r--r--src/modules/sysinfo/sysinfo.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/luncher/grid.c b/src/modules/luncher/grid.c
index 7dea2123d..bc8d9af57 100644
--- a/src/modules/luncher/grid.c
+++ b/src/modules/luncher/grid.c
@@ -706,10 +706,11 @@ grid_reorder(Instance *inst)
706} 706}
707 707
708EINTERN Evas_Object * 708EINTERN Evas_Object *
709grid_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient EINA_UNUSED) 709grid_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient)
710{ 710{
711 Instance *inst; 711 Instance *inst;
712 712
713 if (orient) return NULL;
713 inst = E_NEW(Instance, 1); 714 inst = E_NEW(Instance, 1);
714 inst->size = 0; 715 inst->size = 0;
715 inst->resize_job = NULL; 716 inst->resize_job = NULL;
diff --git a/src/modules/sysinfo/sysinfo.c b/src/modules/sysinfo/sysinfo.c
index 438548d37..80993f2a9 100644
--- a/src/modules/sysinfo/sysinfo.c
+++ b/src/modules/sysinfo/sysinfo.c
@@ -147,10 +147,12 @@ _conf_item_get(int *id)
147} 147}
148 148
149Evas_Object * 149Evas_Object *
150sysinfo_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient EINA_UNUSED) 150sysinfo_create(Evas_Object *parent, int *id, E_Gadget_Site_Orient orient)
151{ 151{
152 Instance *inst; 152 Instance *inst;
153 153
154 if (orient) return NULL;
155
154 inst = E_NEW(Instance, 1); 156 inst = E_NEW(Instance, 1);
155 inst->cfg = _conf_item_get(id); 157 inst->cfg = _conf_item_get(id);
156 *id = inst->cfg->id; 158 *id = inst->cfg->id;