Enlightenment CVS committal

Author  : handyande
Project : e_modules
Module  : mount

Dir     : e_modules/mount


Modified Files:
        e_mod_main.c 


Log Message:
Fix menu location for multiple containers
===================================================================
RCS file: /cvsroot/enlightenment/e_modules/mount/e_mod_main.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -3 -r1.21 -r1.22
--- e_mod_main.c        26 Feb 2006 19:31:11 -0000      1.21
+++ e_mod_main.c        10 Mar 2006 13:59:06 -0000      1.22
@@ -1176,26 +1176,15 @@
 {
    Evas_Event_Mouse_Down *ev;
    Mount_Box *mntbox;
-   E_Manager *man;
-   E_Container *con;
 
    ev = event_info;
    mntbox = data;
    if (ev->button == 3)
      {
-        man = e_manager_current_get();
-        if (!man)
-           return;
-        con = e_container_current_get(man);
-        if (!con)
-           return;
-        if (con == NULL)
-           return;
-
-        e_menu_activate_mouse(mntbox->menu, e_zone_current_get(con),
+        e_menu_activate_mouse(mntbox->menu, e_zone_current_get(mntbox->con),
                               ev->output.x, ev->output.y, 1, 1,
                               E_MENU_POP_DIRECTION_DOWN, ev->timestamp);
-        e_util_container_fake_mouse_up_later(con, 3);
+        e_util_container_fake_mouse_up_later(mntbox->con, 3);
      }
 }
 




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to