aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorRafael Antognolli <rafael.antognolli@linux.intel.com>2013-03-25 14:50:12 -0300
committerRafael Antognolli <rafael.antognolli@linux.intel.com>2013-04-02 14:42:37 -0300
commit0e226a356e86eb45149a6a40ad5d1e96167033f2 (patch)
tree6d2e0d47af4015f6416bb59113b6bc3af8101009 /legacy/elementary/src/lib/elm_win.c
parentpo: updated po (diff)
downloadefl-0e226a356e86eb45149a6a40ad5d1e96167033f2.tar.gz
elementary: Bring back the use of Evas framespace.
Use the evas_output_framespace_* functions to make objects inside the framespace to get their respective offsets.
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index ee1aa5b21b..486c56fb16 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -60,7 +60,6 @@ struct _Elm_Win_Smart_Data
Evas_Object *img_obj, *frame_obj;
Eo *layout;
Eo *box;
- Evas_Coord fx, fy, fw, fh;
Evas_Object *obj; /* The object itself */
#ifdef HAVE_ELEMENTARY_X
struct
@@ -611,7 +610,12 @@ _elm_win_resize_job(void *data)
}
if (sd->frame_obj)
- evas_object_resize(sd->frame_obj, w, h);
+ {
+ int fw, fh;
+
+ evas_output_framespace_get(sd->evas, NULL, NULL, &fw, &fh);
+ evas_object_resize(sd->frame_obj, w + fw, h + fh);
+ }
evas_object_resize(sd->obj, w, h);
evas_object_resize(sd->layout, w, h);
@@ -2269,11 +2273,7 @@ _elm_win_frame_add(Elm_Win_Smart_Data *sd,
short layer;
// FIXME: Don't use hardcoded framespace values, get it from theme
- sd->fx = 0;
- sd->fy = 22;
- sd->fw = 0;
- sd->fh = 26;
-
+ evas_output_framespace_set(sd->evas, 0, 22, 0, 26);
sd->frame_obj = edje_object_add(sd->evas);
layer = evas_object_layer_get(obj);
evas_object_layer_set(sd->frame_obj, layer + 1);