better explicitly state that an action is context dependent

SVN revision: 48551
This commit is contained in:
Hannes Janetzek 2010-05-02 16:29:32 +00:00
parent 3f751f14f9
commit 0c6c27eac7
3 changed files with 3 additions and 5 deletions

View File

@ -326,6 +326,7 @@ _item_add(Plugin *p, Efreet_Desktop *desktop, const char *file, int match)
app = EVRY_ITEM_NEW(Evry_Item_App, p, desktop->name, _icon_get, _item_free);
EVRY_ACTN(app)->action = &_exec_open_file_action;
EVRY_ACTN(app)->remember_context = EINA_TRUE;
EVRY_ITEM(app)->id = eina_stringshare_add(desktop->exec);
EVRY_ITEM(app)->subtype = EVRY_TYPE_ACTION;
@ -337,8 +338,9 @@ _item_add(Plugin *p, Efreet_Desktop *desktop, const char *file, int match)
else
{
app = EVRY_ITEM_NEW(Evry_Item_App, p, file, _icon_get, _item_free);
EVRY_ITEM(app)->id = eina_stringshare_add(file);
EVRY_ACTN(app)->action = &_exec_open_file_action;
EVRY_ACTN(app)->remember_context = EINA_TRUE;
EVRY_ITEM(app)->id = eina_stringshare_add(file);
EVRY_ITEM(app)->subtype = EVRY_TYPE_ACTION;
}

View File

@ -236,8 +236,6 @@ evry_action_new(const char *name, const char *label,
act->it1.type = type_in1;
act->it2.type = type_in2;
act->remember_context = EINA_TRUE;
act->action = action;
act->check_item = check_item;

View File

@ -309,8 +309,6 @@ _fetch(Evry_Plugin *plugin, const char *input)
p->base.items = eina_list_remove_list(p->base.items, l);
}
evry_hist->changed = EINA_FALSE;
return 1;
}