test gadget: delete popup window when main window is clicked while visible
This commit is contained in:
parent
a0d72c5d91
commit
e352dc07d1
|
@ -41,6 +41,14 @@ mouse_button(void *data EINA_UNUSED, Evas *e EINA_UNUSED, Evas_Object *obj, void
|
|||
return;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (popup)
|
||||
{
|
||||
evas_object_del(popup);
|
||||
return;
|
||||
}
|
||||
}
|
||||
win = elm_win_add(elm_win_get(obj), "win", type);
|
||||
elm_win_alpha_set(win, 1);
|
||||
if (ev->button == 3)
|
||||
|
|
Loading…
Reference in New Issue