Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src


Modified Files:
        ewl_scrollbar.c ewl_scrollpane.c 


Log Message:
Minor update to fixe the display of the scrollpane, expect to see a few more
updates to this widget over the next couple days.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollbar.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- ewl_scrollbar.c     14 Apr 2003 17:12:51 -0000      1.16
+++ ewl_scrollbar.c     10 Jun 2003 07:02:19 -0000      1.17
@@ -61,10 +61,6 @@
        w = EWL_WIDGET(s);
 
        ewl_box_init(EWL_BOX(w), orientation);
-       if (orientation == EWL_ORIENTATION_HORIZONTAL)
-               ewl_widget_set_appearance(w, "hscrollbar");
-       else
-               ewl_widget_set_appearance(w, "vscrollbar");
 
        /*
         * Create the basic widgets that are contained in the scrollbar.
@@ -99,9 +95,9 @@
         * Set the default fill policies for the buttons and the seeker
         */
        ewl_object_set_fill_policy(EWL_OBJECT(s->button_decrement),
-                                  EWL_FILL_POLICY_NORMAL);
+                                  EWL_FILL_POLICY_NONE);
        ewl_object_set_fill_policy(EWL_OBJECT(s->button_increment),
-                                  EWL_FILL_POLICY_NORMAL);
+                                  EWL_FILL_POLICY_NONE);
 
        /*
         * Set the default alignment for the buttons.
@@ -184,6 +180,9 @@
                 * Set the default value to the beginning of the seeker.
                 */
                ewl_seeker_set_value(EWL_SEEKER(s->seeker), 0);
+               ewl_widget_set_appearance(w, "hscrollbar");
+               ewl_object_set_fill_policy(EWL_OBJECT(s),
+                               EWL_FILL_POLICY_HFILL);
        } else {
 
                if (s->buttons_alignment & EWL_ALIGNMENT_TOP) {
@@ -222,6 +221,9 @@
                 * Set the default value to the beginning of the seeker.
                 */
                ewl_seeker_set_value(EWL_SEEKER(s->seeker), 1.0);
+               ewl_widget_set_appearance(w, "vscrollbar");
+               ewl_object_set_fill_policy(EWL_OBJECT(s),
+                               EWL_FILL_POLICY_VFILL);
        }
 
        DLEAVE_FUNCTION(DLEVEL_STABLE);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollpane.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -3 -r1.13 -r1.14
--- ewl_scrollpane.c    9 Jun 2003 05:55:13 -0000       1.13
+++ ewl_scrollpane.c    10 Jun 2003 07:02:19 -0000      1.14
@@ -77,6 +77,10 @@
        ewl_container_append_child(EWL_CONTAINER(s), s->hscrollbar);
        ewl_container_append_child(EWL_CONTAINER(s), s->vscrollbar);
 
+       ewl_widget_show(s->box);
+       ewl_widget_show(s->hscrollbar);
+       ewl_widget_show(s->vscrollbar);
+
        /*
         * Append necessary callbacks for the scrollpane.
         */




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to