summaryrefslogtreecommitdiff
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
parent0f9eb1f9614f916f2ead314d4c00210ef1ac9916 (diff)
spinner: don't allow dragging if widget is disabledefl-1.18
fixes T5569
-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,
306 ELM_SPINNER_DATA_GET(obj, sd); 306 ELM_SPINNER_DATA_GET(obj, sd);
307 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd); 307 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
308 308
309 if (elm_widget_disabled_get(data)) return;
309 if (sd->entry_visible) return; 310 if (sd->entry_visible) return;
310 311
311 style = elm_widget_style_get(obj); 312 style = elm_widget_style_get(obj);
@@ -345,7 +346,7 @@ _drag_start_cb(void *data,
345 const char *source EINA_UNUSED) 346 const char *source EINA_UNUSED)
346{ 347{
347 ELM_SPINNER_DATA_GET(data, sd); 348 ELM_SPINNER_DATA_GET(data, sd);
348 349 if (elm_widget_disabled_get(data)) return;
349 sd->drag_prev_pos = 0; 350 sd->drag_prev_pos = 0;
350 sd->drag_val_step = 1; 351 sd->drag_val_step = 1;
351 352
@@ -361,6 +362,7 @@ _drag_stop_cb(void *data,
361{ 362{
362 ELM_SPINNER_DATA_GET(data, sd); 363 ELM_SPINNER_DATA_GET(data, sd);
363 ELM_WIDGET_DATA_GET_OR_RETURN(data, wd); 364 ELM_WIDGET_DATA_GET_OR_RETURN(data, wd);
365 if (elm_widget_disabled_get(data)) return;
364 366
365 sd->drag_prev_pos = 0; 367 sd->drag_prev_pos = 0;
366 sd->drag_val_step = 1; 368 sd->drag_val_step = 1;