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:
Working scrollpane, just need to invert the coordinates on the vertical
scrollbar. Should be taken care of tomorrow.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollbar.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- ewl_scrollbar.c     24 Jun 2003 05:09:58 -0000      1.19
+++ ewl_scrollbar.c     24 Jun 2003 06:04:40 -0000      1.20
@@ -79,6 +79,7 @@
         * Setup the seeker portion
         */
        s->seeker = ewl_seeker_new(orientation);
+       ewl_seeker_set_range(EWL_SEEKER(s->seeker), 1.0);
        ewl_widget_show(s->seeker);
 
        /*
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/ewl_scrollpane.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -3 -r1.17 -r1.18
--- ewl_scrollpane.c    24 Jun 2003 05:09:58 -0000      1.17
+++ ewl_scrollpane.c    24 Jun 2003 06:04:40 -0000      1.18
@@ -231,10 +231,10 @@
        /*
         * Adjust the scrollbar internal stepping to match the contents.
         */
+       ewl_scrollbar_set_step(EWL_SCROLLBAR(s->hscrollbar),
+                       (double)content_w / (double)b_width);
        ewl_scrollbar_set_step(EWL_SCROLLBAR(s->vscrollbar),
-                       b_width / content_w);
-       ewl_scrollbar_set_step(EWL_SCROLLBAR(s->vscrollbar),
-                       b_height / content_h);
+                       (double)content_h / (double)b_height);
 
        b_width = (int)(ewl_scrollbar_get_value(EWL_SCROLLBAR(s->hscrollbar)) *
                                              (double)(b_width));




-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to