Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/start


Modified Files:
        e_mod_main.c 


Log Message:


use either the min size set or calculate - as needed.

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/start/e_mod_main.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -3 -r1.43 -r1.44
--- e_mod_main.c        5 Mar 2008 04:01:40 -0000       1.43
+++ e_mod_main.c        5 Mar 2008 06:00:25 -0000       1.44
@@ -94,8 +94,14 @@
    Evas_Coord mw, mh;
    
    inst = gcc->data;
-   edje_object_size_min_calc (inst->o_button, &mw, &mh);
-   e_gadcon_client_min_size_set (gcc, mw, mh);
+   mw = 0, mh = 0;
+   edje_object_size_min_get(inst->o_button, &mw, &mh);
+   if ((mw < 1) || (mh < 1))
+     edje_object_size_min_calc(inst->o_button, &mw, &mh);
+   if (mw < 4) mw = 4;
+   if (mh < 4) mh = 4;
+   e_gadcon_client_aspect_set(gcc, mw, mh);
+   e_gadcon_client_min_size_set(gcc, mw, mh);
 }
    
 static char *



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to