From 691a489728ec32623a1b995d7958b0dbe76b3f6e Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Wed, 28 Jan 2009 12:36:50 +0000 Subject: [PATCH] make arrow clicks on toolbar scroll 1 step. SVN revision: 38829 --- data/themes/default.edc | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/data/themes/default.edc b/data/themes/default.edc index e92142a25..e2fcee103 100644 --- a/data/themes/default.edc +++ b/data/themes/default.edc @@ -5436,7 +5436,8 @@ collections { /* begin the collection of edje groups that are in this file */ } } part { name: "left_arrow"; - mouse_events: 0; + mouse_events: 1; + scale: 1; description { state: "default" 0.0; image.normal: "icon_left_arrow.png"; aspect: 1.0 1.0; @@ -5452,7 +5453,8 @@ collections { /* begin the collection of edje groups that are in this file */ } } part { name: "right_arrow"; - mouse_events: 0; + mouse_events: 1; + scale: 1; description { state: "default" 0.0; image.normal: "icon_right_arrow.png"; aspect: 1.0 1.0; @@ -5467,7 +5469,20 @@ collections { /* begin the collection of edje groups that are in this file */ color: 255 255 255 0; } } - part { name: "event"; + part { name: "e.dragable.hbar"; + mouse_events: 0; + dragable { + x: 1 1 0; + y: 0 0 0; + confine: "base"; + } + description { state: "default" 0.0; + visible: 0; + rel1.to: "base"; + rel2.to: "base"; + } + } + part { name: "event"; type: RECT; mouse_events: 1; repeat_events: 1; @@ -5493,6 +5508,18 @@ collections { /* begin the collection of edje groups that are in this file */ target: "right_arrow"; transition: LINEAR 0.5; } + program { name: "sb_left"; + signal: "mouse,down,1"; + source: "left_arrow"; + action: DRAG_VAL_STEP -1.0 0.0; + target: "e.dragable.hbar"; + } + program { name: "sb_right"; + signal: "mouse,down,1"; + source: "right_arrow"; + action: DRAG_VAL_STEP 1.0 0.0; + target: "e.dragable.hbar"; + } } }