summaryrefslogtreecommitdiff
path: root/src/lib/elementary/efl_ui_win.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 15:44:43 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-07-28 15:40:47 -0400
commit812be4a43bed7f3284ffc26beb3204e505e4b01c (patch)
tree0a679bb28aef9fa568f416e710fdbeea52c25187 /src/lib/elementary/efl_ui_win.c
parent4f2b4d870abfea7c95bf7caf337ad9c5d4575199 (diff)
elm_win: do not implement aspect_get()
this breaks aspect hints. @fix
Diffstat (limited to '')
-rw-r--r--src/lib/elementary/efl_ui_win.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/src/lib/elementary/efl_ui_win.c b/src/lib/elementary/efl_ui_win.c
index dcc870e361..b8558571a8 100644
--- a/src/lib/elementary/efl_ui_win.c
+++ b/src/lib/elementary/efl_ui_win.c
@@ -183,7 +183,6 @@ struct _Efl_Ui_Win_Data
183 void *trap_data; 183 void *trap_data;
184 184
185 double aspect; /* defined as w/h or 0 */ 185 double aspect; /* defined as w/h or 0 */
186 int aspect_w, aspect_h; /* used for the get API */
187 int size_base_w, size_base_h; 186 int size_base_w, size_base_h;
188 int size_step_w, size_step_h; 187 int size_step_w, size_step_h;
189 int req_x, req_y, req_w, req_h; 188 int req_x, req_y, req_w, req_h;
@@ -5899,21 +5898,11 @@ _win_aspect_get(Efl_Ui_Win_Data *sd)
5899 5898
5900EOLIAN static void 5899EOLIAN static void
5901_efl_ui_win_efl_gfx_size_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd, 5900_efl_ui_win_efl_gfx_size_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
5902 Efl_Gfx_Size_Hint_Aspect mode EINA_UNUSED, int w, int h) 5901 Efl_Gfx_Size_Hint_Aspect mode, int w, int h)
5903{ 5902{
5904 pd->aspect_w = w;
5905 pd->aspect_h = h;
5906 if (h) _win_aspect_set(pd, (double) w / (double) h); 5903 if (h) _win_aspect_set(pd, (double) w / (double) h);
5907 else _win_aspect_set(pd, 0.0); 5904 else _win_aspect_set(pd, 0.0);
5908} 5905 efl_gfx_size_hint_aspect_set(efl_super(obj, MY_CLASS), mode, w, h);
5909
5910EOLIAN static void
5911_efl_ui_win_efl_gfx_size_hint_hint_aspect_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
5912 Efl_Gfx_Size_Hint_Aspect *mode, int *w, int *h)
5913{
5914 if (mode) *mode = EFL_GFX_SIZE_HINT_ASPECT_NONE;
5915 if (w) *w = pd->aspect_w;
5916 if (h) *h = pd->aspect_h;
5917} 5906}
5918 5907
5919EOLIAN static void 5908EOLIAN static void