summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2014-09-25 17:59:32 +0100
committerTom Hacohen <tom@stosb.com>2014-09-25 17:59:32 +0100
commit22a772625b62324058590a8953d3dabc21fb0013 (patch)
treeabe75faee1393ef2ccb62518c8901ca5eb64a192
parente96f27da1bb5313e35568d746d04185413225a76 (diff)
Change according to recent eo ref changes.
-rw-r--r--src/bin/main.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 0331e64..d8f305a 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -90,7 +90,6 @@ _countdown_timer_init(void)
90 ctx.countdown = eo_add(ECORE_TIMER_CLASS, ctx.preview.win, 90 ctx.countdown = eo_add(ECORE_TIMER_CLASS, ctx.preview.win,
91 ecore_obj_timer_constructor(interval, _countdown_timer_tick, NULL)); 91 ecore_obj_timer_constructor(interval, _countdown_timer_tick, NULL));
92 _countdown_timer_pause(); 92 _countdown_timer_pause();
93 eo_unref(ctx.countdown);
94 } 93 }
95 94
96 ctx.remaining_time = ctx.total_time + 1; 95 ctx.remaining_time = ctx.total_time + 1;
@@ -235,14 +234,12 @@ _create_win(Gifter_Win *win, const char *group_name)
235 evas_obj_visibility_set(EINA_TRUE)); 234 evas_obj_visibility_set(EINA_TRUE));
236 235
237 elm_win_resize_object_add(win->win, bg); 236 elm_win_resize_object_add(win->win, bg);
238 eo_unref(bg);
239 237
240 win->layout = eo_add(ELM_LAYOUT_CLASS, win->win, 238 win->layout = eo_add(ELM_LAYOUT_CLASS, win->win,
241 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND), 239 evas_obj_size_hint_weight_set(EVAS_HINT_EXPAND, EVAS_HINT_EXPAND),
242 efl_file_set(theme_filename, group_name), 240 efl_file_set(theme_filename, group_name),
243 evas_obj_visibility_set(EINA_TRUE)); 241 evas_obj_visibility_set(EINA_TRUE));
244 elm_win_resize_object_add(win->win, win->layout); 242 elm_win_resize_object_add(win->win, win->layout);
245 eo_unref(win->layout);
246 243
247 for (i = 0 ; i < EINA_C_ARRAY_LENGTH(win->pdf) ; i++) 244 for (i = 0 ; i < EINA_C_ARRAY_LENGTH(win->pdf) ; i++)
248 { 245 {
@@ -250,7 +247,6 @@ _create_win(Gifter_Win *win, const char *group_name)
250 elm_obj_image_smooth_set(EINA_TRUE), 247 elm_obj_image_smooth_set(EINA_TRUE),
251 elm_obj_image_aspect_fixed_set(EINA_TRUE), 248 elm_obj_image_aspect_fixed_set(EINA_TRUE),
252 evas_obj_visibility_set(EINA_TRUE)); 249 evas_obj_visibility_set(EINA_TRUE));
253 eo_unref(win->pdf[i]);
254 } 250 }
255 251
256 eo_do(win->layout, elm_obj_container_content_set("slide_prev", win->pdf[0])); 252 eo_do(win->layout, elm_obj_container_content_set("slide_prev", win->pdf[0]));
@@ -265,7 +261,6 @@ _create_win(Gifter_Win *win, const char *group_name)
265 evas_obj_visibility_set(EINA_TRUE), 261 evas_obj_visibility_set(EINA_TRUE),
266 eo_event_callback_add(EVAS_OBJECT_EVENT_KEY_DOWN, _global_key_down_cb, NULL)); 262 eo_event_callback_add(EVAS_OBJECT_EVENT_KEY_DOWN, _global_key_down_cb, NULL));
267 elm_object_focus_set(dummy_key, EINA_TRUE); 263 elm_object_focus_set(dummy_key, EINA_TRUE);
268 eo_unref(dummy_key);
269} 264}
270 265
271int 266int