summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-11-07 11:48:51 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-11-18 11:44:25 -0500
commit4c5528a0189316e223ca40e16919f2a07545d1f9 (patch)
treef2255b11da4aa24450d72a7316ef92e69e7ad9cb
parentefd0136d22b6d40383e84e7e6ea35faf04517dcb (diff)
use only zone coords when moving bryce to its zone during editing
prevent coords from accidentally resulting in offscreen placement fix T4826
-rw-r--r--src/bin/e_bryce_editor.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/bin/e_bryce_editor.c b/src/bin/e_bryce_editor.c
index 9592b6e07..e6383954c 100644
--- a/src/bin/e_bryce_editor.c
+++ b/src/bin/e_bryce_editor.c
@@ -45,7 +45,6 @@ _editor_bryce_add(Evas_Object *obj)
45 const char *loc = "", *loc2 = ""; 45 const char *loc = "", *loc2 = "";
46 Bryce_Info *bi; 46 Bryce_Info *bi;
47 E_Zone *zone; 47 E_Zone *zone;
48 int x, y;
49 E_Gadget_Site_Gravity gravity = E_GADGET_SITE_GRAVITY_CENTER; 48 E_Gadget_Site_Gravity gravity = E_GADGET_SITE_GRAVITY_CENTER;
50 49
51 bi = evas_object_data_get(obj, "__bryce_info"); 50 bi = evas_object_data_get(obj, "__bryce_info");
@@ -99,8 +98,7 @@ _editor_bryce_add(Evas_Object *obj)
99 e_gadget_site_gadget_add(site, "Wireless", 0); 98 e_gadget_site_gadget_add(site, "Wireless", 0);
100 } 99 }
101 100
102 evas_object_geometry_get(b, &x, &y, NULL, NULL); 101 evas_object_move(b, zone->x, zone->y);
103 evas_object_move(b, x + zone->x, y + zone->y);
104 e_gadget_site_gravity_set(site, gravity); 102 e_gadget_site_gravity_set(site, gravity);
105 e_bryce_style_set(b, bi->style); 103 e_bryce_style_set(b, bi->style);
106 e_bryce_autohide_set(b, bi->autohide); 104 e_bryce_autohide_set(b, bi->autohide);