From 1ecc76d8b9ceccada09c9c89b7d24dba29b1d668 Mon Sep 17 00:00:00 2001 From: Chidambar Zinnoury Date: Mon, 20 Oct 2008 12:18:37 +0000 Subject: [PATCH] OK, in doubt, calculate dimensions anyway and call resize func after that. Some modules expect them to be filled so that they can "correct" them. This will fix all of them. SVN revision: 36851 --- src/bin/e_gadcon_popup.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/bin/e_gadcon_popup.c b/src/bin/e_gadcon_popup.c index 5b676689a..3c06ad3b5 100644 --- a/src/bin/e_gadcon_popup.c +++ b/src/bin/e_gadcon_popup.c @@ -75,16 +75,13 @@ e_gadcon_popup_show(E_Gadcon_Popup *pop) { Evas_Coord w = 0, h = 0; - if (pop->resize_func) pop->resize_func(o, &w, &h); - else + e_widget_min_size_get(o, &w, &h); + if ((!w) || (!h)) { - e_widget_min_size_get(o, &w, &h); - if ((!w) || (!h)) - { - edje_object_size_min_get(o, &w, &h); - edje_object_size_min_restricted_calc(o, &w, &h, w, h); - } + edje_object_size_min_get(o, &w, &h); + edje_object_size_min_restricted_calc(o, &w, &h, w, h); } + if (pop->resize_func) pop->resize_func(o, &w, &h); edje_extern_object_min_size_set(o, w, h); }