aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/e_bryce_editor.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-03-14 14:26:29 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-03-14 14:27:15 -0400
commit5494ddd424d0f8c02f15df3b15649c142d93659d (patch)
tree2d2d9c049f42775258352dc2caa495c0383eaa57 /src/bin/e_bryce_editor.c
parentdo not attempt to resize clients to 0x0 during res restore (diff)
downloadenlightenment-5494ddd424d0f8c02f15df3b15649c142d93659d.tar.gz
enforce bryce zone setting and clip setting
resolves issues where non-primary screens would have differing behaviors
Diffstat (limited to 'src/bin/e_bryce_editor.c')
-rw-r--r--src/bin/e_bryce_editor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/e_bryce_editor.c b/src/bin/e_bryce_editor.c
index 6cd0f5a5f..895e4a651 100644
--- a/src/bin/e_bryce_editor.c
+++ b/src/bin/e_bryce_editor.c
@@ -40,6 +40,8 @@ _editor_bryce_add(Evas_Object *obj)
char buf[1024];
const char *loc = "", *loc2 = "";
Bryce_Info *bi;
+ E_Zone *zone;
+ int x, y;
E_Gadget_Site_Gravity gravity = E_GADGET_SITE_GRAVITY_CENTER;
bi = evas_object_data_get(obj, "__bryce_info");
@@ -90,6 +92,10 @@ _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);
e_bryce_style_set(b, bi->style);
e_bryce_autohide_set(b, bi->autohide);