Enlightenment CVS committal
Author : atmosphere
Project : e17
Module : apps/entice
Dir : e17/apps/entice/data/themes/default/macros
Modified Files:
slider.edc
Log Message:
slider fixups
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/entice/data/themes/default/macros/slider.edc,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- slider.edc 7 Apr 2004 03:37:01 -0000 1.1
+++ slider.edc 7 Apr 2004 04:14:02 -0000 1.2
@@ -239,7 +239,21 @@
} \
}
-#define SLIDER_PROG(NAME, SIGDRAG, CLIP) \
+#define SLIDER_PROG(NAME, SIGDRAG, SIGSEEK, CLIP) \
+ /* center the dragables on show */ \
+ program { \
+ name, NAME"_scrollbar_show"; \
+ signal, "show"; \
+ source, ""; \
+ action, DRAG_VAL_SET 0.5 0.5; \
+ target, NAME".scrollbar"; \
+ } \
+ program { \
+ name, NAME"_scrollbar_trough_mouse_clicked"; \
+ signal, "mouse,clicked,1"; \
+ source, NAME"_scrollbar_trough"; \
+ action, SIGNAL_EMIT SIGSEEK NAME".scrollbar"; \
+ } \
program { \
name, NAME"_scrollbar_move"; \
signal, "drag"; \
@@ -247,30 +261,30 @@
action, SIGNAL_EMIT SIGDRAG NAME".scrollbar"; \
} \
program { \
- name, NAME"_scrollbar_mouse_up";\
- signal, "mouse,up,1"; \
+ name, NAME"_scrollbar_mouse_out";\
+ signal, "mouse,out"; \
source, NAME".scrollbar"; \
action, STATE_SET "default" 0.0;\
- transition, DECELERATE 0.25; \
+ transition, SINUSOIDAL 0.5; \
target, NAME".scrollbar"; \
} \
program { \
- name, NAME"_scrollbar_mouse_down"; \
- signal, "mouse,down,1"; \
+ name, NAME"_scrollbar_mouse_out_kill"; \
+ signal, "mouse,in"; \
+ source, NAME".scrollbar"; \
+ action, ACTION_STOP; \
+ target, NAME"_scrollbar_mouse_out";\
+ } \
+ program { \
+ name, NAME"_scrollbar_mouse_in"; \
+ signal, "mouse,in"; \
source, NAME".scrollbar"; \
action, STATE_SET "down" 0.0; \
transition, ACCELERATE 0.25; \
target, NAME".scrollbar"; \
} \
program { \
- name, NAME"_scrollbar_show"; \
- signal, "show"; \
- source, ""; \
- action, DRAG_VAL_SET 0.5 0.5; \
- target, NAME".scrollbar"; \
- } \
- program { \
- name, NAME"_scrollbar_mouse_in";\
+ name, NAME"_scrollbar_mouse_area_mouse_in";\
signal, "mouse,in"; \
source, NAME"_mouse_area"; \
action, STATE_SET "visible" 0.0;\
@@ -278,14 +292,14 @@
target, CLIP; \
} \
program { \
- name, NAME"_scrollbar_mouse_out_stop";\
+ name, NAME"_scrollbar_mouse_area_mouse_out_stop";\
signal, "mouse,in"; \
source, NAME"_mouse_area"; \
action, ACTION_STOP; \
- target, NAME"_scrollbar_mouse_out"; \
+ target, NAME"_scrollbar_mouse_area_mouse_out"; \
} \
program { \
- name, NAME"_scrollbar_mouse_out";\
+ name, NAME"_scrollbar_mouse_area_mouse_out";\
signal, "mouse,out"; \
source, NAME"_mouse_area"; \
action, STATE_SET "default" 0.0;\
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs