aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJihoon Kim <jihoon48.kim@samsung.com>2013-02-23 17:59:29 +0900
committerJihoon Kim <jihoon48.kim@samsung.com>2013-02-23 17:59:29 +0900
commit2ea7ddfdcbaff15db5564b892110e42b501fcf93 (patch)
tree3ec91a22573a9690d4274bd5f63711294632393c /src
parenta66f1c73f7a26c9664dcb982a87eaf0a97f8dc99 (diff)
downloadefl-2ea7ddfdcbaff15db5564b892110e42b501fcf93.tar.gz
efl-2ea7ddfdcbaff15db5564b892110e42b501fcf93.tar.xz
efl-2ea7ddfdcbaff15db5564b892110e42b501fcf93.zip
ecore_imf_example: remove unused variable, fix warning
Diffstat (limited to 'src')
-rw-r--r--src/examples/ecore/ecore_imf_example.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/examples/ecore/ecore_imf_example.c b/src/examples/ecore/ecore_imf_example.c
index bc03db9ca..f4099ce99 100644
--- a/src/examples/ecore/ecore_imf_example.c
+++ b/src/examples/ecore/ecore_imf_example.c
@@ -13,6 +13,9 @@
#include <Evas.h>
#include <stdio.h>
+#define WIDTH 480
+#define HEIGHT 800
+
typedef struct _Entry Entry;
struct _Entry
@@ -161,7 +164,7 @@ _ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **te
Entry *en = data;
const char *str;
- if (!en) return;
+ if (!en) return EINA_FALSE;
str = evas_object_textblock_text_markup_get(en->txt_obj);
@@ -317,8 +320,6 @@ _key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
Entry *en = data;
Evas_Event_Key_Down *ev = event_info;
Eina_Bool control, alt, shift;
- Eina_Bool multiline;
- Eina_Bool cursor_changed;
if ((!en) || (!ev->key)) return;
if (en->imf_context)
@@ -560,8 +561,8 @@ main(int argc, char *argv[])
ecore_imf_init();
- // create a new window, with size=480x800 and default engine
- ee = ecore_evas_new(NULL, 0, 0, 480, 800, NULL);
+ // create a new window, with size=WIDTHxHEIGHT and default engine
+ ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
if (!ee)
{
@@ -582,7 +583,7 @@ main(int argc, char *argv[])
// create input field rectangle
Evas_Object *bg = evas_object_rectangle_add(evas);
evas_object_move(bg, 0, 0);
- evas_object_resize(bg, 480, 800);
+ evas_object_resize(bg, WIDTH, HEIGHT);
evas_object_color_set(bg, 255, 255, 255, 255);
evas_object_show(bg);