AC_SUBST(EFL_IM_MODULEDIR)
fi
+# Check EFL assist library
+PKG_CHECK_MODULES(EFL_ASSIST, [efl-assist])
+
# Check x11 library
PKG_CHECK_MODULES(X11, [x11])
isf_demo_efl_CXXFLAGS = @EFL_CFLAGS@ \
@APPCORE_EFL_CFLAGS@ \
@UIGADGET_CFLAGS@ \
- @VCONF_CFLAGS@ @PRIVILEGE_CONTROL_CFLAGS@
+ @VCONF_CFLAGS@ \
+ @PRIVILEGE_CONTROL_CFLAGS@ \
+ @EFL_ASSIST_CFLAGS@
isf_demo_efl_LDFLAGS = @EFL_LIBS@ @LTLIBINTL@ -rpath $(libdir) \
@VCONF_LIBS@ \
@APPCORE_EFL_LIBS@ \
- @UIGADGET_LIBS@ @PRIVILEGE_CONTROL_LIBS@
+ @UIGADGET_LIBS@ \
+ @PRIVILEGE_CONTROL_LIBS@ \
+ @EFL_ASSIST_LIBS@
isf_demo_efl_LDADD = $(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la
#include <Elementary.h>
#include <Ecore_X.h>
#include <privilege-control.h>
+#include <efl_assist.h>
#include "isf_demo_efl.h"
#include "isf_imcontrol_efl.h"
#include "isf_layout_efl.h"
return layout;
}
+static void
+_naviframe_back_cb (void *data, Evas_Object *obj, void *event_info)
+{
+ Elm_Object_Item *top_it = elm_naviframe_top_item_get (obj);
+ Elm_Object_Item *bottom_it = elm_naviframe_bottom_item_get (obj);
+ if (top_it && bottom_it && (elm_object_item_content_get (top_it) == elm_object_item_content_get (bottom_it))) {
+ elm_exit ();
+ } else {
+ elm_naviframe_item_pop (obj);
+ }
+}
+
static Evas_Object* _create_naviframe_layout (Evas_Object *parent)
{
Evas_Object *naviframe = elm_naviframe_add (parent);
+ elm_naviframe_prev_btn_auto_pushed_set (naviframe, EINA_FALSE);
+ ea_object_event_callback_add (naviframe, EA_CALLBACK_BACK, _naviframe_back_cb, NULL);
elm_object_part_content_set (parent, "elm.swallow.content", naviframe);
evas_object_show (naviframe);
{
Ecore_Event_Key *ev = (Ecore_Event_Key *)event;
struct appdata *ad = (struct appdata *)data;
- Elm_Object_Item *top_it, *bottom_it;
if (ad == NULL || ev == NULL) return ECORE_CALLBACK_RENEW;
printf ("[ecore key down] keyname : '%s', key : '%s', string : '%s', compose : '%s'\n", ev->keyname, ev->key, ev->string, ev->compose);
@VCONF_CFLAGS@ \
@UIGADGET_CFLAGS@ \
@DLOG_CFLAGS@ \
- @PKGMGR_INFO_CFLAGS@
+ @PKGMGR_INFO_CFLAGS@ \
+ @EFL_ASSIST_CFLAGS@
libug_isfsetting_efl_la_LDFLAGS = -avoid-version \
-export-dynamic \
@DLOG_LIBS@ \
@UIGADGET_LIBS@ \
@PKGMGR_INFO_LIBS@ \
+ @EFL_ASSIST_LIBS@ \
$(top_builddir)/ism/src/libscim@SCIM_EPOCH@.la \
$(top_builddir)/ism/extras/efl_immodule/libisf-imf-module.la
#include <vconf.h>
#include <ui-gadget-module.h>
#include <ui-gadget.h>
+#include <pkgmgr-info.h>
+#include <efl_assist.h>
#include "scim.h"
#include "scim_stl_map.h"
#include "isf_setting_efl.h"
#include "../efl_panel/isf_panel_utility.h"
#include "scim_setup_module_efl.h"
#include "isf_control.h"
-#include <pkgmgr-info.h>
using namespace scim;
using namespace std;
static Evas_Object *create_naviframe_layout (Evas_Object* parent)
{
Evas_Object *naviframe = elm_naviframe_add (parent);
+ elm_naviframe_prev_btn_auto_pushed_set (naviframe, EINA_FALSE);
+ ea_object_event_callback_add (naviframe, EA_CALLBACK_BACK, ea_naviframe_back_cb, NULL);
elm_object_part_content_set (parent, "elm.swallow.content", naviframe);
evas_object_show (naviframe);
Evas_Object *back_btn = elm_button_add (ugd->naviframe);
elm_object_style_set (back_btn, "naviframe/back_btn/default");
nf_main_it = elm_naviframe_item_push (ugd->naviframe, _T("Keyboard"), back_btn, NULL, genlist, NULL);
- elm_naviframe_item_pop_cb_set(nf_main_it, back_cb, ugd);
-
+ elm_naviframe_item_pop_cb_set (nf_main_it, back_cb, ugd);
}
return ugd->naviframe;
}
BuildRequires: pkgconfig(notification)
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(tts)
+BuildRequires: efl-assist-devel
Requires(post): /sbin/ldconfig /usr/bin/vconftool
Requires(postun): /sbin/ldconfig