test gadget: delete popup window when main window is clicked while visible

This commit is contained in:
Mike Blumenkrantz 2017-08-14 13:46:47 -04:00
parent a0d72c5d91
commit e352dc07d1
1 changed files with 8 additions and 0 deletions

View File

@ -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)