Enlightenment CVS committal

Author  : moom16
Project : e17
Module  : proto

Dir     : e17/proto/etk/data/themes/default/macros


Modified Files:
        scrollbar.edc 


Log Message:
* Make the tree scrollable (vertically only for now). Still need to fix 
some problems with the drag button size
* Fix some theme issues


===================================================================
RCS file: 
/cvsroot/enlightenment/e17/proto/etk/data/themes/default/macros/scrollbar.edc,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- scrollbar.edc       31 Oct 2005 21:36:40 -0000      1.2
+++ scrollbar.edc       2 Nov 2005 13:53:37 -0000       1.3
@@ -91,17 +91,6 @@
    } \
 }
 
-/*
-      rel1 { \
-         relative: rx1 ry1; \
-         offset: ox1 oy1; \
-      } \
-      rel2 { \
-         relative: rx2 ry2; \
-         offset: ox2 oy2; \
-      } \
-*/
-
 #define SCROLLBAR_BUTTON(button_name, rx1, ry1, ox1, oy1, arrow_image) \
 part { \
    name: button_name"_shadow2"; \
@@ -204,9 +193,9 @@
    } \
 } \
 part { \
-    name: button_name"_arrow"; \
-    mouse_events: 0; \
-    description { \
+   name: button_name"_arrow"; \
+   mouse_events: 0; \
+   description { \
       state: "default" 0.0; \
       max: 16 16; \
       rel1 { \
@@ -229,6 +218,25 @@
       visible: 0; \
       color: 255 255 255 0; \
    } \
+} \
+part { \
+   name: button_name"_rect"; \
+   type: RECT; \
+   mouse_events: 1; \
+   description { \
+      state: "default" 0.0; \
+      color: 255 255 255 0; \
+      rel1 { \
+         relative: 0.0 0.0; \
+         offset: 0 0; \
+         to: button_name; \
+      } \
+      rel2 { \
+         relative: 1.0 1.0; \
+         offset: -1 -1; \
+         to: button_name; \
+      } \
+   } \
 }
 
 
@@ -236,7 +244,7 @@
 program { \
    name: button_name"_active_pre"; \
    signal: "mouse,down,1"; \
-   source: button_name; \
+   source: button_name"_rect"; \
    action: STATE_SET "default" 0.0; \
    target: button_name"_shadow1"; \
    target: button_name"_shadow2"; \
@@ -268,7 +276,7 @@
 program { \
    name: button_name"_passive_pre"; \
    signal: "mouse,up,1"; \
-   source: button_name; \
+   source: button_name"_rect"; \
    action: STATE_SET "active" 0.0; \
    target: button_name"_shadow1"; \
    target: button_name"_shadow2"; \
@@ -299,13 +307,13 @@
 } \
 program { \
    name: button_name"_button_pressed"; \
-   source: button_name; \
+   source: button_name"_rect"; \
    signal: "mouse,down,1"; \
    action: SIGNAL_EMIT "scroll_"dir"_start" ""; \
 } \
 program { \
    name: button_name"_button_released"; \
-   source: button_name; \
+   source: button_name"_rect"; \
    signal: "mouse,up,1"; \
    action: SIGNAL_EMIT "scroll_stop" ""; \
 }




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to