summaryrefslogtreecommitdiff
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
parent3bff7363b54b541aa78d8ed0f743631582086a95 (diff)
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 '')
-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)
1614 } 1614 }
1615 if (ch_wm_rotation) 1615 if (ch_wm_rotation)
1616 { 1616 {
1617 efl_gfx_size_hint_restricted_min_set(obj, -1, -1); 1617 efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
1618 efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1)); 1618 efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
1619#ifdef HAVE_ELEMENTARY_X 1619#ifdef HAVE_ELEMENTARY_X
1620 ELM_WIN_DATA_ALIVE_CHECK(obj, sd); 1620 ELM_WIN_DATA_ALIVE_CHECK(obj, sd);
@@ -3495,7 +3495,7 @@ _elm_win_resize_objects_eval(Evas_Object *obj, Eina_Bool force_resize)
3495 } 3495 }
3496 3496
3497 sd->tmp_updating_hints = 1; 3497 sd->tmp_updating_hints = 1;
3498 efl_gfx_size_hint_restricted_min_set(obj, minw, minh); 3498 efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(minw, minh));
3499 efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(maxw, maxh)); 3499 efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(maxw, maxh));
3500 sd->tmp_updating_hints = 0; 3500 sd->tmp_updating_hints = 0;
3501 _elm_win_size_hints_update(obj, sd); 3501 _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
6079 sd->rot = rotation; 6079 sd->rot = rotation;
6080 if (resize) TRAP(sd, rotation_with_resize_set, rotation); 6080 if (resize) TRAP(sd, rotation_with_resize_set, rotation);
6081 else TRAP(sd, rotation_set, rotation); 6081 else TRAP(sd, rotation_set, rotation);
6082 efl_gfx_size_hint_restricted_min_set(obj, -1, -1); 6082 efl_gfx_size_hint_restricted_min_set(obj, EINA_SIZE2D(-1, -1));
6083 efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1)); 6083 efl_gfx_size_hint_max_set(obj, EINA_SIZE2D(-1, -1));
6084 _elm_win_resize_objects_eval(obj, EINA_FALSE); 6084 _elm_win_resize_objects_eval(obj, EINA_FALSE);
6085#ifdef HAVE_ELEMENTARY_X 6085#ifdef HAVE_ELEMENTARY_X
@@ -8080,7 +8080,7 @@ _window_layout_stack(Evas_Object *o, Evas_Object_Box_Data *p, void *data)
8080 } 8080 }
8081 8081
8082 if (minw < menuw) minw = menuw; 8082 if (minw < menuw) minw = menuw;
8083 efl_gfx_size_hint_restricted_min_set(o, minw, minh); 8083 efl_gfx_size_hint_restricted_min_set(o, EINA_SIZE2D(minw, minh));
8084 evas_object_geometry_get(o, &x, &y, &w, &h); 8084 evas_object_geometry_get(o, &x, &y, &w, &h);
8085 if (w < minw) w = minw; 8085 if (w < minw) w = minw;
8086 if (h < minh) h = minh; 8086 if (h < minh) h = minh;