Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_widget.c 


Log Message:
Check for sane return values for possibly non-existent data settings in an
edje.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_widget.c,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -3 -r1.77 -r1.78
--- ewl_widget.c        18 Oct 2003 17:00:37 -0000      1.77
+++ ewl_widget.c        20 Oct 2003 16:20:00 -0000      1.78
@@ -856,7 +856,8 @@
 
                if (ewl_object_has_state(EWL_OBJECT(w),
                                        EWL_FLAG_STATE_DISABLED))
-                       edje_object_signal_emit(w->theme_object, "disabled", "EWL");
+                       edje_object_signal_emit(w->theme_object, "disabled",
+                                               "EWL");
 
                /*
                 * Propagate minimum sizes from the bit theme to the widget.
@@ -865,10 +866,10 @@
                i_l = (int)(width);
                i_t = (int)(height);
 
-               if (i_l && MINIMUM_W(w) == EWL_OBJECT_MIN_SIZE)
+               if (i_l > 0 && MINIMUM_W(w) == EWL_OBJECT_MIN_SIZE)
                        ewl_object_set_minimum_w(EWL_OBJECT(w), i_l);
 
-               if (i_t && MINIMUM_H(w) == EWL_OBJECT_MIN_SIZE)
+               if (i_t > 0 && MINIMUM_H(w) == EWL_OBJECT_MIN_SIZE)
                        ewl_object_set_minimum_h(EWL_OBJECT(w), i_t);
 
                /*
@@ -878,10 +879,10 @@
                i_l = (int)(width);
                i_t = (int)(height);
 
-               if (i_l && MAXIMUM_W(w) == EWL_OBJECT_MAX_SIZE)
+               if (i_l > 0 && MAXIMUM_W(w) == EWL_OBJECT_MAX_SIZE)
                        ewl_object_set_maximum_w(EWL_OBJECT(w), i_l);
 
-               if (i_t && MAXIMUM_H(w) == EWL_OBJECT_MAX_SIZE)
+               if (i_t > 0 && MAXIMUM_H(w) == EWL_OBJECT_MAX_SIZE)
                        ewl_object_set_maximum_h(EWL_OBJECT(w), i_t);
        }
 




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to