Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_paned.c 


Log Message:
- set the overall fill policy so the second pane will shrink when we hit the
  edge of the screen
- fixup the themes so the min has the size of the grabber as a base

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_paned.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- ewl_paned.c 7 Sep 2004 15:49:00 -0000       1.3
+++ ewl_paned.c 7 Sep 2004 16:02:08 -0000       1.4
@@ -30,7 +30,7 @@
        if (!ewl_paned_init(pane, orient)) {
                ewl_widget_destroy(EWL_WIDGET(pane));
                pane = NULL;
-       }
+       }
 
        DRETURN_PTR(pane, DLEVEL_STABLE);
 }
@@ -97,12 +97,18 @@
        ewl_widget_appearance_set(EWL_WIDGET(p->first), "first");
        ewl_widget_appearance_set(EWL_WIDGET(p->second), "second");
 
-       if (orient == EWL_ORIENTATION_HORIZONTAL)
+       if (orient == EWL_ORIENTATION_HORIZONTAL) {
                ewl_widget_appearance_set(EWL_WIDGET(p->grabber),
                                        "grabber_horizontal");
-       else
+               ewl_object_fill_policy_set(EWL_OBJECT(p), 
+                               EWL_FLAG_FILL_HSHRINK | EWL_FLAG_FILL_VFILL);
+
+       } else {
                ewl_widget_appearance_set(EWL_WIDGET(p->grabber),
                                        "grabber_vertical");
+               ewl_object_fill_policy_set(EWL_OBJECT(p), 
+                               EWL_FLAG_FILL_VSHRINK | EWL_FLAG_FILL_HFILL);
+       }
 
        DRETURN_INT(TRUE, DLEVEL_STABLE);
 }




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to