From 23156e9631480eb52e8ba723066b6153622fe7d0 Mon Sep 17 00:00:00 2001 From: Hannes Janetzek Date: Thu, 20 May 2010 15:48:01 +0000 Subject: [PATCH] - added input_type TEXT to websearch plugins now one can search the stuff of any plugin that provides text e.g. trigger text plugin: type stuff browse with google: select an item browse with youtube/translate etc... - use places also as object SVN revision: 49067 --- src/e_mod_main.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/e_mod_main.c b/src/e_mod_main.c index 5f0dcb1..ab90378 100644 --- a/src/e_mod_main.c +++ b/src/e_mod_main.c @@ -134,10 +134,11 @@ _volume_list_add(Plugin *p) static Evry_Plugin * _begin(Evry_Plugin *plugin, const Evry_Item *item) { + Plugin *p; Evry_Item_File *file; char path[PATH_MAX]; - GET_PLUGIN(p, plugin); + EVRY_PLUGIN_INSTANCE(p, plugin); e_user_dir_concat_static(path, "backgrounds"); _item_add(p, N_("Wallpaper"), path, _mime_dir, NULL); @@ -162,6 +163,8 @@ _finish(Evry_Plugin *plugin) EVRY_ITEM_FREE(file); IF_RELEASE(p->input); + + E_FREE(p); } @@ -245,6 +248,15 @@ _plugins_init(const Evry_API *api) * 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); * 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);