Priority: optional
Maintainer: Jaehwan Kim <jae.hwan.kim@samsung.com>, Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Jihoon Kim <jihoon48.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>, Shinwoo Kim <cinoo.kim@samsung.com>
Uploaders: Doyoun Kang <doyoun.kang@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, Myoungwoon Kim <myoungwoon.kim@samsung.com>, Shinwoo Kim <cinoo.kim@samsung.com>, Tae-Hwan Kim <the81.kim@samsung.com>
-Build-Depends: debhelper (>= 6), cdbs, libecore-dev, libevas-dev, libeet-dev, libeet-bin, libedje-dev, pkg-config, libtool, libeina-dev, libefreet-dev, libethumb-dev
+Build-Depends: debhelper (>= 6), cdbs, libecore-dev, libevas-dev, libeet-dev, libeet-bin, libedje-dev, pkg-config, libtool, libeina-dev, libefreet-dev, libethumb-dev, libappsvc-dev
Standards-Version: 3.8.1
Homepage: http://www.enlightenment.org
#include <Elementary.h>
#include "elm_module_priv.h"
#include "elm_priv.h"
+#include <appsvc/appsvc.h>
Elm_Entry_Extension_data *ext_mod;
static int _mod_hook_count = 0;
}
static void
+_search_menu(void *data, Evas_Object *obj, void *event_info)
+{
+ if(!ext_mod) return;
+
+ int ret;
+ bundle *b = bundle_create();
+ if (!b)
+ {
+ //printf("bundle_create() failed\n");
+ return;
+ }
+
+ appsvc_set_operation(b, APPSVC_OPERATION_SEARCH);
+ if (ext_mod->selmode)
+ {
+ char *selection = elm_entry_selection_get(ext_mod->caller);
+ if (selection)
+ appsvc_add_data(b, APPSVC_DATA_KEYWORD, selection);
+ }
+ appsvc_run_service(b, 0, NULL, NULL);
+ bundle_free(b);
+ _ctxpopup_hide(obj);
+}
+
+static void
_clipboard_menu(void *data, Evas_Object *obj, void *event_info)
{
if(!ext_mod) return;
if ((!ext_mod->password) && (ext_mod->editable))
#endif
{
- icon = elm_icon_add(ext_mod->popup);
- snprintf(buf, sizeof(buf), "%s/images/copypaste_icon_clipboard.png", PACKAGE_DATA_DIR);
- elm_icon_file_set(icon, buf, NULL);
- added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL, icon, _clipboard_menu, obj);
+ added_item = elm_ctxpopup_item_append(ext_mod->popup, "Clipboard", NULL, _clipboard_menu, obj); // Clipboard
//elm_ctxpopup_item_append(ext_mod->popup, "More", NULL, _clipboard_menu, obj );
}
// end for cbhm
+ icon = elm_icon_add(ext_mod->popup);
+ snprintf(buf, sizeof(buf), "%s/images/copy&paste_icon_search.png", PACKAGE_DATA_DIR);
+ elm_icon_file_set(icon, buf, NULL);
+ added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL, icon, _search_menu, obj); // Search
}
else
{
if (ext_mod->editable)
#endif
{
- icon = elm_icon_add(ext_mod->popup);
- snprintf(buf, sizeof(buf), "%s/images/copypaste_icon_clipboard.png", PACKAGE_DATA_DIR);
- elm_icon_file_set(icon, buf, NULL);
- added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL, icon, _clipboard_menu, obj);
+ added_item = elm_ctxpopup_item_append(ext_mod->popup, "Clipboard", NULL, _clipboard_menu, obj); // Clipboard
//elm_ctxpopup_item_append(ext_mod->popup, "More", NULL, _clipboard_menu, obj );
}
// end for cbhm
+ icon = elm_icon_add(ext_mod->popup);
+ snprintf(buf, sizeof(buf), "%s/images/copy&paste_icon_search.png", PACKAGE_DATA_DIR);
+ elm_icon_file_set(icon, buf, NULL);
+ added_item = elm_ctxpopup_item_append(ext_mod->popup, NULL, icon, _search_menu, obj); // Search
}
}
EINA_LIST_FOREACH(ext_mod->items, l, it)