summaryrefslogtreecommitdiff
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
parenta66f1c73f7a26c9664dcb982a87eaf0a97f8dc99 (diff)
ecore_imf_example: remove unused variable, fix warning
-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 bc03db9ca2..f4099ce994 100644
--- a/src/examples/ecore/ecore_imf_example.c
+++ b/src/examples/ecore/ecore_imf_example.c
@@ -13,6 +13,9 @@
13#include <Evas.h> 13#include <Evas.h>
14#include <stdio.h> 14#include <stdio.h>
15 15
16#define WIDTH 480
17#define HEIGHT 800
18
16typedef struct _Entry Entry; 19typedef struct _Entry Entry;
17 20
18struct _Entry 21struct _Entry
@@ -161,7 +164,7 @@ _ecore_imf_retrieve_surrounding_cb(void *data, Ecore_IMF_Context *ctx, char **te
161 Entry *en = data; 164 Entry *en = data;
162 const char *str; 165 const char *str;
163 166
164 if (!en) return; 167 if (!en) return EINA_FALSE;
165 168
166 str = evas_object_textblock_text_markup_get(en->txt_obj); 169 str = evas_object_textblock_text_markup_get(en->txt_obj);
167 170
@@ -317,8 +320,6 @@ _key_down_cb(void *data, Evas *e, Evas_Object *obj, void *event_info)
317 Entry *en = data; 320 Entry *en = data;
318 Evas_Event_Key_Down *ev = event_info; 321 Evas_Event_Key_Down *ev = event_info;
319 Eina_Bool control, alt, shift; 322 Eina_Bool control, alt, shift;
320 Eina_Bool multiline;
321 Eina_Bool cursor_changed;
322 if ((!en) || (!ev->key)) return; 323 if ((!en) || (!ev->key)) return;
323 324
324 if (en->imf_context) 325 if (en->imf_context)
@@ -560,8 +561,8 @@ main(int argc, char *argv[])
560 561
561 ecore_imf_init(); 562 ecore_imf_init();
562 563
563 // create a new window, with size=480x800 and default engine 564 // create a new window, with size=WIDTHxHEIGHT and default engine
564 ee = ecore_evas_new(NULL, 0, 0, 480, 800, NULL); 565 ee = ecore_evas_new(NULL, 0, 0, WIDTH, HEIGHT, NULL);
565 566
566 if (!ee) 567 if (!ee)
567 { 568 {
@@ -582,7 +583,7 @@ main(int argc, char *argv[])
582 // create input field rectangle 583 // create input field rectangle
583 Evas_Object *bg = evas_object_rectangle_add(evas); 584 Evas_Object *bg = evas_object_rectangle_add(evas);
584 evas_object_move(bg, 0, 0); 585 evas_object_move(bg, 0, 0);
585 evas_object_resize(bg, 480, 800); 586 evas_object_resize(bg, WIDTH, HEIGHT);
586 evas_object_color_set(bg, 255, 255, 255, 255); 587 evas_object_color_set(bg, 255, 255, 255, 255);
587 evas_object_show(bg); 588 evas_object_show(bg);
588 589