aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 14:49:08 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-09-18 14:57:52 +0900
commit7d2b4b69166c0f2abaf0f0bdec3b0d04eb721517 (patch)
treec82ef99a638b25a02df5ba201522efe22d76ce92 /src/lib/elementary/efl_ui_win.c
parentefl: Use Eina.Size2D for size hint min (diff)
downloadefl-7d2b4b69166c0f2abaf0f0bdec3b0d04eb721517.tar.gz
efl: Use Eina.Size2D for size hint restricted min
This is the "internal" or "intrinsic" minimum size, to be set by EFL and not by applications.
Diffstat (limited to 'src/lib/elementary/efl_ui_win.c')
-rw-r--r--src/lib/elementary/efl_ui_win.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index c32754e97c..8e1b357058 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -1614,7 +1614,7 @@ _elm_win_state_change(Ecore_Evas *ee)
}
if (ch_wm_rotation)
{
- efl_gfx_size_hint_restricted_min_set(obj, -1, -1);
+ efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
#ifdef HAVE_ELEMENTARY_X
ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
@@ -3495,7 +3495,7 @@ _elm_win_resize_objects_eval(Evas_Object *obj, Eina_Bool force_resize)
}
sd->tmp_updating_hints = 1;
- efl_gfx_size_hint_restricted_min_set(obj, minw, minh);
+ efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(maxw, maxh));
sd->tmp_updating_hints = 0;
_elm_win_size_hints_update(obj, sd);
@@ -6079,7 +6079,7 @@ _win_rotate(Evas_Object *obj, Efl_Ui_Win_Data *sd, int rotation, Eina_Bool resiz
sd->rot = rotation;
if (resize) TRAP(sd, rotation_with_resize_set, rotation);
else TRAP(sd, rotation_set, rotation);
- efl_gfx_size_hint_restricted_min_set(obj, -1, -1);
+ efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
_elm_win_resize_objects_eval(obj, EINA_FALSE);
#ifdef HAVE_ELEMENTARY_X
@@ -8080,7 +8080,7 @@ _window_layout_stack(Evas_Object *o, Evas_Object_Box_Data *p, void *data)
}
if (minw < menuw) minw = menuw;
- efl_gfx_size_hint_restricted_min_set(o, minw, minh);
+ efl_gfx_size_hint_restricted_min_set(o, EINA_SIZE2D(minw, minh));
evas_object_geometry_get(o, &x, &y, &w, &h);
if (w < minw) w = minw;
if (h < minh) h = minh;