From c3a28ca27891d919c7b288aa13ec3f3785afec9b Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Sun, 23 Jan 2011 16:02:33 +0000 Subject: [PATCH] fix: open multiple selected files SVN revision: 56269 --- src/modules/everything-apps/e_mod_main.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/modules/everything-apps/e_mod_main.c b/src/modules/everything-apps/e_mod_main.c index 0a6579931..ba5970911 100644 --- a/src/modules/everything-apps/e_mod_main.c +++ b/src/modules/everything-apps/e_mod_main.c @@ -118,6 +118,7 @@ _item_new(Plugin *p, const char *label, const char *id) app = EVRY_ITEM_NEW(Evry_Item_App, p, label, _icon_get, _item_free); EVRY_ACTN(app)->action = &_exec_open_file_action; + EVRY_ACTN(app)->it1.type = EVRY_TYPE_FILE; EVRY_ITEM(app)->id = eina_stringshare_add(id); eina_hash_add(p->added, id, app); @@ -464,11 +465,15 @@ _hist_items_get_cb(const Eina_Hash *hash, const void *key, void *data, void *fda if (strcmp(hi->plugin, EVRY_PLUGIN(p)->name)) continue; - /* d = efreet_util_desktop_exec_find(exec); */ + /* d = NULL; + * if (hi->data) + * d = efreet_desktop_new(hi->data); + * if (!d) */ + d = efreet_util_desktop_exec_find(exec); + /* if (!d) */ EINA_LIST_FOREACH(p->apps_all, ll, d) - if (d->exec && !strcmp(d->exec, exec)) - break; + if (d->exec && !strcmp(d->exec, exec)) break; if (!d) { @@ -476,6 +481,13 @@ _hist_items_get_cb(const Eina_Hash *hash, const void *key, void *data, void *fda break; } + /* if (hi->data) + * eina_stringshare_del(hi->data); + * hi->data = NULL; + * + * if (d->orig_path) + * hi->data = eina_stringshare_add(d->orig_path); */ + p->apps_hist = eina_list_append(p->apps_hist, d); break; }