forked from enlightenment/enlightenment
It's now possible to have efm in the ibar, using a desktop file with type=link and url=file:/path/to/enlightenment .
SVN revision: 31754
This commit is contained in:
parent
1ab387ad73
commit
aedfe0f839
|
@ -182,7 +182,13 @@ _e_mod_action_fileman_cb(E_Object *obj, const char *params)
|
||||||
zone = e_util_zone_current_get(e_manager_current_get());
|
zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
}
|
}
|
||||||
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
if (!zone) zone = e_util_zone_current_get(e_manager_current_get());
|
||||||
if (zone) e_fwin_new(zone->container, "favorites", "/");
|
if (zone)
|
||||||
|
{
|
||||||
|
if (params)
|
||||||
|
e_fwin_new(zone->container, NULL, params);
|
||||||
|
else
|
||||||
|
e_fwin_new(zone->container, "favorites", "/");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* menu item callback(s) */
|
/* menu item callback(s) */
|
||||||
|
|
|
@ -828,7 +828,19 @@ _ibar_cb_icon_mouse_up(void *data, Evas *e, Evas_Object *obj, void *event_info)
|
||||||
ic = data;
|
ic = data;
|
||||||
if ((ev->button == 1) && (!ic->drag.dnd) && (ic->mouse_down == 1))
|
if ((ev->button == 1) && (!ic->drag.dnd) && (ic->mouse_down == 1))
|
||||||
{
|
{
|
||||||
|
if (ic->app->type == EFREET_DESKTOP_TYPE_APPLICATION)
|
||||||
e_exec(ic->ibar->inst->gcc->gadcon->zone, ic->app, NULL, NULL, "ibar");
|
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.start = 0;
|
||||||
ic->drag.dnd = 0;
|
ic->drag.dnd = 0;
|
||||||
ic->mouse_down = 0;
|
ic->mouse_down = 0;
|
||||||
|
|
Loading…
Reference in New Issue