summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2015-02-06 15:11:32 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2015-02-06 15:11:36 +0900
commitadb1295e4e706c020ebbc349e9919d83a8f7694b (patch)
treeb823d00bdcf9a08d82ef098bc929c70cd5fbfaff
parentd2ca3ff1883b65ffc8d39488f0c365afc98424fa (diff)
win_example: Fix win example codes.
- return value in ecore event handler callback. - remove unnecessary variable.
-rw-r--r--src/examples/win_example.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/examples/win_example.c b/src/examples/win_example.c
index 51de9151e..9d76721c8 100644
--- a/src/examples/win_example.c
+++ b/src/examples/win_example.c
@@ -174,6 +174,8 @@ static Eina_Bool
174key_down() 174key_down()
175{ 175{
176 elm_win_fullscreen_set(win2, 0); 176 elm_win_fullscreen_set(win2, 0);
177
178 return ECORE_CALLBACK_PASS_ON;
177} 179}
178 180
179EAPI_MAIN int 181EAPI_MAIN int
@@ -181,7 +183,6 @@ elm_main(int argc, char *argv[])
181{ 183{
182 Evas_Object *win, *bigbox, *box, *btn, *o; 184 Evas_Object *win, *bigbox, *box, *btn, *o;
183 char buf[256]; 185 char buf[256];
184 Ecore_Event_Handler *h;
185 186
186 elm_app_info_set(elm_main, "elementary", "images/logo.png"); 187 elm_app_info_set(elm_main, "elementary", "images/logo.png");
187 188
@@ -193,7 +194,7 @@ elm_main(int argc, char *argv[])
193 evas_object_smart_callback_add(win, "delete,request", _main_win_del_cb, 194 evas_object_smart_callback_add(win, "delete,request", _main_win_del_cb,
194 NULL); 195 NULL);
195 196
196 h = ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, key_down, NULL); 197 ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, key_down, NULL);
197 198
198 bigbox = elm_box_add(win); 199 bigbox = elm_box_add(win);
199 elm_box_horizontal_set(bigbox, EINA_TRUE); 200 elm_box_horizontal_set(bigbox, EINA_TRUE);