discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=daf7f1983758d0885e681df777a88fef64de0108

commit daf7f1983758d0885e681df777a88fef64de0108
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Apr 9 16:31:32 2015 -0400

    don't redo min size hints on e_dialog show
    
    these are guaranteed to be wrong because elm won't provide accurate size
    hints without some arm twisting
---
 src/bin/e_dialog.c | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/bin/e_dialog.c b/src/bin/e_dialog.c
index 827c8b0..c9295c7 100644
--- a/src/bin/e_dialog.c
+++ b/src/bin/e_dialog.c
@@ -248,13 +248,12 @@ e_dialog_show(E_Dialog *dia)
    if (o)
      elm_object_part_content_set(dia->bg_object, "e.swallow.content", o);
 
-   o = dia->box_object;
-   evas_object_size_hint_min_get(o, &mw, &mh);
-   elm_object_part_content_set(dia->bg_object, "e.swallow.buttons", o);
+   if (dia->min_w && dia->min_h)
+     mw = dia->min_w, mh = dia->min_h;
+   else
+     evas_object_size_hint_min_get(dia->bg_object, &mw, &mh);
 
    evas_object_resize(dia->win, mw, mh);
-   dia->min_w = mw;
-   dia->min_h = mh;
    if (!dia->resizable)
      {
         evas_object_size_hint_weight_set(dia->bg_object, 0, 0);

-- 


Reply via email to