aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_bryce_editor.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-10-13 11:24:28 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-10-13 11:27:40 -0400
commitafa358fa9e200e7f4544aac6fec6de03187ceeef (patch)
tree0b42b1ac14de0e05311885ab1acfad31aeb57a16 /src/bin/e_bryce_editor.c
parentfix bryce check for shelf existence on orientation/anchor to break when expected (diff)
downloadenlightenment-afa358fa9e200e7f4544aac6fec6de03187ceeef.tar.gz
add zone number to bryce names
fixes usage of bryces in identical setups on different zones
Diffstat (limited to 'src/bin/e_bryce_editor.c')
-rw-r--r--src/bin/e_bryce_editor.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/e_bryce_editor.c b/src/bin/e_bryce_editor.c
index 46450e899..1413346bc 100644
--- a/src/bin/e_bryce_editor.c
+++ b/src/bin/e_bryce_editor.c
@@ -63,7 +63,9 @@ _editor_bryce_add(Evas_Object *obj)
else if (bi->anchor & E_GADGET_SITE_ANCHOR_BOTTOM)
loc2 = "bottom";
- snprintf(buf, sizeof(buf), "bryce_%s_%s", loc, loc2);
+ zone = e_comp_object_util_zone_get(obj);
+ if (!zone) zone = e_zone_current_get();
+ snprintf(buf, sizeof(buf), "bryce_%s_%s_%d", loc, loc2, zone->num);
if (bi->orient == E_GADGET_SITE_ORIENT_HORIZONTAL)
{
if (bi->anchor & E_GADGET_SITE_ANCHOR_LEFT)
@@ -92,8 +94,7 @@ _editor_bryce_add(Evas_Object *obj)
e_gadget_site_gadget_add(site, "Digital Clock", 0);
e_gadget_site_gadget_add(site, "Wireless", 0);
}
- zone = e_comp_object_util_zone_get(obj);
- if (!zone) zone = e_zone_current_get();
+
evas_object_geometry_get(b, &x, &y, NULL, NULL);
evas_object_move(b, x + zone->x, y + zone->y);
e_gadget_site_gravity_set(site, gravity);