Now it's possible to lock the popup using a single click on the net icon, so the popup will stay open. Unlock with another click.
SVN revision: 28342
This commit is contained in:
parent
0adee454db
commit
747be7eb46
|
@ -10,6 +10,7 @@ struct _Instance
|
|||
Evas_Object *o_net;
|
||||
Ecore_Timer *timer;
|
||||
Popup *popup;
|
||||
short popup_locked;
|
||||
unsigned long in, out;
|
||||
};
|
||||
|
||||
|
|
|
@ -88,6 +88,13 @@ _cb_mouse_down(void *data, Evas *evas, Evas_Object *obj, void *event)
|
|||
|
||||
inst = data;
|
||||
ev = event;
|
||||
if ((ev->button == 1) && (!cfg->menu))
|
||||
{
|
||||
if (inst->popup_locked)
|
||||
inst->popup_locked=0;
|
||||
else
|
||||
inst->popup_locked=1;
|
||||
}
|
||||
if ((ev->button == 3) && (!cfg->menu))
|
||||
{
|
||||
E_Menu *mn;
|
||||
|
@ -249,6 +256,7 @@ _cb_mouse_out(void *data, Evas *evas, Evas_Object *obj, void *event)
|
|||
|
||||
inst = data;
|
||||
if (!inst->popup) return;
|
||||
if (inst->popup_locked) return;
|
||||
evas_object_del(inst->popup->o_bg);
|
||||
e_object_del(E_OBJECT(inst->popup->win));
|
||||
E_FREE(inst->popup);
|
||||
|
|
Loading…
Reference in New Issue