avoid mouse down cb feeding another mouse down cb.. to itself.. until

the stack blows.. in slider.



SVN revision: 80510
This commit is contained in:
Carsten Haitzler 2012-12-08 05:16:33 +00:00
parent c731df8690
commit 1b4cfff4bf
1 changed files with 4 additions and 0 deletions

View File

@ -464,7 +464,10 @@ _e_smart_event_mouse_down(void *data, Evas *e, Evas_Object *obj __UNUSED__, void
Evas_Coord x, y, w, h;
E_Smart_Data *sd = data;
double pos;
static int in_md = 0;
if (in_md > 0) return;
in_md++;
evas_object_geometry_get(sd->event, &x, &y, &w, &h);
if (sd->horizontal)
{
@ -487,6 +490,7 @@ _e_smart_event_mouse_down(void *data, Evas *e, Evas_Object *obj __UNUSED__, void
edje_object_message_signal_process(sd->edje_obj); /* really needed or go in infinite loop */
evas_event_feed_mouse_cancel(e, 0, NULL);
evas_event_feed_mouse_down(e, 1, EVAS_BUTTON_NONE, ev->timestamp, NULL);
in_md--;
}
static void