From bb128645efa19772a5c1a039df9c46213feb4426 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Mar 2016 19:59:59 +1000 Subject: Update to new eo_* syntax. --- src/extantz/extantz.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'src/extantz/extantz.c') diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index ed78b24..b5f272e 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c @@ -228,11 +228,13 @@ static void _on_resize(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA GLData *gld = &ourGlobals->gld; Evas_Coord h; - eo_do(ourGlobals->win, efl_gfx_size_get(&ourGlobals->win_w, &ourGlobals->win_h)); - eo_do(ourGlobals->tb, - evas_obj_size_hint_min_get(NULL, &h), - efl_gfx_size_set(ourGlobals->win_w, h) - ); + efl_gfx_size_get(ourGlobals->win, &ourGlobals->win_w, &ourGlobals->win_h); + evas_obj_size_hint_min_get(ourGlobals->win, NULL, &h); + + if (10 > h) + h = ourGlobals->win_h; + + efl_gfx_size_set(ourGlobals->win, ourGlobals->win_w, h); // Stop internal windows going under the toolbar. evas_object_resize(ourGlobals->mainWindow->layout, ourGlobals->win_w, h); #if USE_EPHYSICS -- cgit v1.1