Enlightenment CVS committal

Author  : morlenxus
Project : e_modules
Module  : net

Dir     : e_modules/net/src


Modified Files:
        e_mod_main.h e_mod_net.c 


Log Message:
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.

===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_main.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- e_mod_main.h        11 Feb 2007 15:28:53 -0000      1.1
+++ e_mod_main.h        13 Feb 2007 06:40:08 -0000      1.2
@@ -10,6 +10,7 @@
    Evas_Object *o_net;
    Ecore_Timer *timer;
    Popup *popup;
+   short popup_locked;
    unsigned long in, out;
 };
 
===================================================================
RCS file: /cvs/e/e_modules/net/src/e_mod_net.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- e_mod_net.c 12 Feb 2007 21:23:07 -0000      1.5
+++ e_mod_net.c 13 Feb 2007 06:40:08 -0000      1.6
@@ -88,6 +88,13 @@
    
    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 @@
    
    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);



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to