aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-02-13 11:43:19 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-02-13 11:43:19 -0500
commitd24055e361509bcbbe9e3145c7625c72c636e316 (patch)
treeb302c240ff0ff02ed27eae0aca77c2fe10b3cd14
parentset E_GADGET_ORIENTATION env var when launching sandbox gadgets (diff)
downloadenlightenment-d24055e361509bcbbe9e3145c7625c72c636e316.tar.gz
store gadget orientation for runner gadgets
-rw-r--r--src/bin/e_gadget_runner.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/e_gadget_runner.c b/src/bin/e_gadget_runner.c
index e1a1c53de..723056bd5 100644
--- a/src/bin/e_gadget_runner.c
+++ b/src/bin/e_gadget_runner.c
@@ -34,6 +34,7 @@ typedef struct Tooltip
typedef struct Instance
{
+ E_Gadget_Site_Orient orient;
Evas_Object *box;
Evas_Object *obj;
Ecore_Exe *exe;
@@ -101,7 +102,7 @@ runner_run(Instance *inst)
snprintf(buf, sizeof(buf), "%d", inst->ci->id);
e_util_env_set("E_GADGET_ID", buf);
- switch (e_gadget_site_orient_get(e_gadget_site_get(inst->box)))
+ switch (inst->orient)
{
case E_GADGET_SITE_ORIENT_NONE:
e_util_env_set("E_GADGET_ORIENTATION", "None");
@@ -820,7 +821,7 @@ runner_menu(void *data, Evas_Object *obj, void *event_info)
}
static Evas_Object *
-gadget_create(Evas_Object *parent, Config_Item *ci, int *id, E_Gadget_Site_Orient orient EINA_UNUSED)
+gadget_create(Evas_Object *parent, Config_Item *ci, int *id, E_Gadget_Site_Orient orient)
{
Instance *inst;
int ar_version;
@@ -828,6 +829,7 @@ gadget_create(Evas_Object *parent, Config_Item *ci, int *id, E_Gadget_Site_Orien
inst = E_NEW(Instance, 1);
instances = eina_list_append(instances, inst);
inst->ci = ci;
+ inst->orient = orient;
if (!inst->ci)
inst->ci = _conf_item_get(id);
inst->ci->inst = inst;