- added input_type TEXT to websearch plugins
now one can search the stuff of any plugin that provides text e.g. <space> trigger text plugin: type stuff <tab> browse with google: select an item <tab> browse with youtube/translate etc... - use places also as object SVN revision: 49067
This commit is contained in:
parent
6970fd5833
commit
23156e9631
|
@ -134,10 +134,11 @@ _volume_list_add(Plugin *p)
|
||||||
static Evry_Plugin *
|
static Evry_Plugin *
|
||||||
_begin(Evry_Plugin *plugin, const Evry_Item *item)
|
_begin(Evry_Plugin *plugin, const Evry_Item *item)
|
||||||
{
|
{
|
||||||
|
Plugin *p;
|
||||||
Evry_Item_File *file;
|
Evry_Item_File *file;
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
GET_PLUGIN(p, plugin);
|
EVRY_PLUGIN_INSTANCE(p, plugin);
|
||||||
|
|
||||||
e_user_dir_concat_static(path, "backgrounds");
|
e_user_dir_concat_static(path, "backgrounds");
|
||||||
_item_add(p, N_("Wallpaper"), path, _mime_dir, NULL);
|
_item_add(p, N_("Wallpaper"), path, _mime_dir, NULL);
|
||||||
|
@ -162,6 +163,8 @@ _finish(Evry_Plugin *plugin)
|
||||||
EVRY_ITEM_FREE(file);
|
EVRY_ITEM_FREE(file);
|
||||||
|
|
||||||
IF_RELEASE(p->input);
|
IF_RELEASE(p->input);
|
||||||
|
|
||||||
|
E_FREE(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -245,6 +248,15 @@ _plugins_init(const Evry_API *api)
|
||||||
* p->config->min_query = 3; */
|
* p->config->min_query = 3; */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_plug = EVRY_PLUGIN_NEW(Plugin, N_("Places"), NULL, EVRY_TYPE_FILE,
|
||||||
|
_begin, _finish, _fetch, NULL);
|
||||||
|
|
||||||
|
if (evry->plugin_register(_plug, EVRY_PLUGIN_OBJECT, 1))
|
||||||
|
{
|
||||||
|
/* p->config->top_level = EINA_FALSE;
|
||||||
|
* p->config->min_query = 3; */
|
||||||
|
}
|
||||||
|
|
||||||
/* act_mount = EVRY_ACTIOn_NEW(N_("Mount Drive"), EVRY_TYPE_FILE, 0, NULL, _act_mount, _check_mount);
|
/* act_mount = EVRY_ACTIOn_NEW(N_("Mount Drive"), EVRY_TYPE_FILE, 0, NULL, _act_mount, _check_mount);
|
||||||
* EVRY_ITEM_DATA_INT_SET(act_mount, 0);
|
* EVRY_ITEM_DATA_INT_SET(act_mount, 0);
|
||||||
* act_umount = EVRY_ACTIOn_NEW(N_("Unmount Drive"), EVRY_TYPE_FILE, 0, NULL, _act_mount, _check_mount);
|
* act_umount = EVRY_ACTIOn_NEW(N_("Unmount Drive"), EVRY_TYPE_FILE, 0, NULL, _act_mount, _check_mount);
|
||||||
|
|
Loading…
Reference in New Issue