aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2017-06-29 14:41:41 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2017-07-07 09:47:07 +0900
commitda7e53e254c857d71ba2b4d563c85811ac5019ba (patch)
tree0c0c9f73c390784d53ca12b654868d883a911956
parentefl.ui.image: fix the old align behaviour in img. (diff)
downloadefl-1.18.tar.gz
spinner: don't allow dragging if widget is disabledefl-1.18
-rw-r--r--src/lib/elementary/elm_spinner.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_spinner.c b/src/lib/elementary/elm_spinner.c
index d2701f5d96..6942dbba3a 100644
--- a/src/lib/elementary/elm_spinner.c
+++ b/src/lib/elementary/elm_spinner.c
@@ -306,6 +306,7 @@ _drag_cb(void *data,
ELM_SPINNER_DATA_GET(obj, sd);
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
+ if (elm_widget_disabled_get(data)) return;
if (sd->entry_visible) return;
style = elm_widget_style_get(obj);
@@ -345,7 +346,7 @@ _drag_start_cb(void *data,
const char *source EINA_UNUSED)
{
ELM_SPINNER_DATA_GET(data, sd);
-
+ if (elm_widget_disabled_get(data)) return;
sd->drag_prev_pos = 0;
sd->drag_val_step = 1;
@@ -361,6 +362,7 @@ _drag_stop_cb(void *data,
{
ELM_SPINNER_DATA_GET(data, sd);
ELM_WIDGET_DATA_GET_OR_RETURN(data, wd);
+ if (elm_widget_disabled_get(data)) return;
sd->drag_prev_pos = 0;
sd->drag_val_step = 1;