discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d24055e361509bcbbe9e3145c7625c72c636e316

commit d24055e361509bcbbe9e3145c7625c72c636e316
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue Feb 13 11:43:19 2018 -0500

    store gadget orientation for runner gadgets
    
    ref 66030a4639cfc07f77782c7a105d39eeed7fb64a
---
 src/bin/e_gadget_runner.c | 6 ++++--
 1 file 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;

-- 


Reply via email to