summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-26 18:01:45 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-05-26 18:01:45 +0900
commit0187c64a653566addc00e7bd2b02647a56152b00 (patch)
tree0ecd4e7dccc68976152f2f8aa2b392e28454a3e6
parent9f53154bb216e8998586c2458e5f1c86d5b55011 (diff)
elm spinner - fix invalid struct modification when wheel event
-rw-r--r--src/lib/elm_spinner.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index 07dba0527..fdc99b8b2 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -502,11 +502,13 @@ _elm_spinner_elm_widget_event(Eo *obj, Elm_Spinner_Data *sd EINA_UNUSED, Evas_Ob
502 if (sd->spin_timer) _spin_stop(obj); 502 if (sd->spin_timer) _spin_stop(obj);
503 else return EINA_FALSE; 503 else return EINA_FALSE;
504 } 504 }
505 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
505 } 506 }
506 else if (type == EVAS_CALLBACK_KEY_UP) 507 else if (type == EVAS_CALLBACK_KEY_UP)
507 { 508 {
508 if (sd->spin_timer) _spin_stop(obj); 509 if (sd->spin_timer) _spin_stop(obj);
509 else return EINA_FALSE; 510 else return EINA_FALSE;
511 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
510 } 512 }
511 else if (type == EVAS_CALLBACK_MOUSE_WHEEL) 513 else if (type == EVAS_CALLBACK_MOUSE_WHEEL)
512 { 514 {
@@ -523,10 +525,10 @@ _elm_spinner_elm_widget_event(Eo *obj, Elm_Spinner_Data *sd EINA_UNUSED, Evas_Ob
523 elm_layout_signal_emit(obj, "elm,left,anim,activate", "elm"); 525 elm_layout_signal_emit(obj, "elm,left,anim,activate", "elm");
524 } 526 }
525 _spin_value(obj); 527 _spin_value(obj);
528 mev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
526 } 529 }
527 else return EINA_FALSE; 530 else return EINA_FALSE;
528 531
529 ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
530 return EINA_TRUE; 532 return EINA_TRUE;
531} 533}
532 534