Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_box.h ewl_callback.h ewl_enums.h ewl_object.c ewl_window.c 


Log Message:
Adjustment of how child resizing affects parents.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_box.h,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -3 -r1.23 -r1.24
--- ewl_box.h   1 Sep 2003 04:57:07 -0000       1.23
+++ ewl_box.h   3 Sep 2003 19:52:05 -0000       1.24
@@ -1,4 +1,3 @@
-
 #ifndef __EWL_BOX_H__
 #define __EWL_BOX_H__
 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_callback.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- ewl_callback.h      1 Sep 2003 04:57:07 -0000       1.24
+++ ewl_callback.h      3 Sep 2003 19:52:06 -0000       1.25
@@ -1,4 +1,3 @@
-
 #ifndef __EWL_CALLBACK_H__
 #define __EWL_CALLBACK_H__
 
@@ -9,19 +8,31 @@
  * @{
  */
 
+/**
+ * The callbacks used internally for tracking event actions.
+ */
 typedef struct Ewl_Callback Ewl_Callback;
 
+/**
+ * @def EWL_CALLBACK(callback)
+ * Typecasts a pointer to an Ewl_Callback pointer.
+ */
 #define EWL_CALLBACK(callback) ((Ewl_Callback *) callback)
+
+/**
+ * @def EWL_CALLBACK_FUNCTION(cb_func)
+ * Typecasts a pointer to an Ewl_Callback_Function pointer.
+ */
 #define EWL_CALLBACK_FUNCTION(cb_func) ((Ewl_Callback_Function) cb_func)
 
+/**
+ * A shortcut for declaring functions that take a callback funciton pointer.
+ */
 typedef void    (*Ewl_Callback_Function) (Ewl_Widget * widget, void *ev_data,
                                          void *user_data);
 struct Ewl_Callback
 {
-       /*
-        * The function to be executed when the specified event occurs.
-        */
-       Ewl_Callback_Function func;
+       Ewl_Callback_Function func; /**< Function to be executed when the event 
occurs. */
 
        /*
         * The user specified data to pass to func when executed.
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_enums.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -3 -r1.34 -r1.35
--- ewl_enums.h 25 Aug 2003 19:40:42 -0000      1.34
+++ ewl_enums.h 3 Sep 2003 19:52:06 -0000       1.35
@@ -128,9 +128,9 @@
  * Flags identifying whether a widget is shown, has been realized, or is
  * recursive (ie. a container).
  */
-typedef enum _ewl_widget_flags Ewl_Widget_Flags;
+typedef enum Ewl_Widget_Flags Ewl_Widget_Flags;
 
-enum _ewl_widget_flags
+enum Ewl_Widget_Flags
 {
        EWL_FLAGS_HIDDEN = 0x0,
        EWL_FLAGS_SHOWN = 0x1,
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_object.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -3 -r1.40 -r1.41
--- ewl_object.c        27 Aug 2003 06:27:52 -0000      1.40
+++ ewl_object.c        3 Sep 2003 19:52:06 -0000       1.41
@@ -192,7 +192,8 @@
        /*
         * Now update the widgets parent of the change in size.
         */
-       ewl_container_resize_child(EWL_WIDGET(o), new_size - old_size,
+       if (!REALIZED(o) || !(o->flags & EWL_FILL_POLICY_HSHRINK))
+               ewl_container_resize_child(EWL_WIDGET(o), new_size - old_size,
                                EWL_ORIENTATION_HORIZONTAL);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
@@ -231,7 +232,8 @@
        /*
         * Notify the parent widgets of the change in size.
         */
-       ewl_container_resize_child(EWL_WIDGET(o), new_size - old_size,
+       if (!REALIZED(o) || !(o->flags & EWL_FILL_POLICY_VSHRINK))
+               ewl_container_resize_child(EWL_WIDGET(o), new_size - old_size,
                                EWL_ORIENTATION_VERTICAL);
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_window.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- ewl_window.c        27 Aug 2003 06:27:52 -0000      1.51
+++ ewl_window.c        3 Sep 2003 19:52:06 -0000       1.52
@@ -186,6 +186,7 @@
         */
        ewl_embed_init(EWL_EMBED(w));
        ewl_widget_set_appearance(EWL_WIDGET(w), "window");
+       ewl_object_set_fill_policy(EWL_OBJECT(w), EWL_FILL_POLICY_FILL);
 
        w->title = strdup("EWL!");
 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to