Enlightenment CVS committal

Author  : morlenxus
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/modules/ibar


Modified Files:
        e_mod_main.c 


Log Message:
It's now possible to have efm in the ibar, using a desktop file with type=link 
and url=file:/path/to/enlightenment .

===================================================================
RCS file: /cvs/e/e17/apps/e/src/modules/ibar/e_mod_main.c,v
retrieving revision 1.185
retrieving revision 1.186
diff -u -3 -r1.185 -r1.186
--- e_mod_main.c        16 Sep 2007 14:11:38 -0000      1.185
+++ e_mod_main.c        19 Sep 2007 01:29:04 -0000      1.186
@@ -828,7 +828,19 @@
    ic = data;
    if ((ev->button == 1) && (!ic->drag.dnd) && (ic->mouse_down == 1))
      {
-       e_exec(ic->ibar->inst->gcc->gadcon->zone, ic->app, NULL, NULL, "ibar");
+       if (ic->app->type == EFREET_DESKTOP_TYPE_APPLICATION)
+            e_exec(ic->ibar->inst->gcc->gadcon->zone, ic->app, NULL, NULL, 
"ibar");
+       if (ic->app->type == EFREET_DESKTOP_TYPE_LINK)
+         {
+            if (strncasecmp (ic->app->url, "file:", 5) == 0)
+              {
+                 E_Action *act;
+
+                 act = e_action_find("fileman");
+                 if (act) act->func.go (E_OBJECT(obj), ic->app->url+5);
+              }
+         }
+
        ic->drag.start = 0;
        ic->drag.dnd = 0;
        ic->mouse_down = 0;



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to