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:
Miculcy Brian 2007-02-13 06:40:08 +00:00
parent 0adee454db
commit 747be7eb46
2 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,7 @@ struct _Instance
Evas_Object *o_net;
Ecore_Timer *timer;
Popup *popup;
short popup_locked;
unsigned long in, out;
};

View File

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