return ECORE_CALLBACK_PASS_ON;
}
-static void
-create_base_gui(appdata_s *ad)
-{
-
- ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, _window_show_cb, ad);
-
- ad->win = (Evas_Object *)elm_win_create("SDL_Indicator");
- evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
- ad->conform = (Evas_Object *)elm_conformand_create(ad->win);
- init_info(ad);
-}
-
void init_info(appdata_s *ad)
{
int width=0;
int height=0;
elm_win_screen_size_get(ad->win, 0, 0, &width, &height);
- edje_object_part_geometry_get(elm_layout_edje_get(ad->conform), "indicator_base", NULL, NULL, NULL, &ad->indicator_h);
+
+ int h;
+ edje_object_part_geometry_get(elm_layout_edje_get(ad->conform), "indicator_base", NULL, NULL, NULL, &(h));
+ ad->indicator_h = h;
evas_object_resize(ad->win, width, ad->indicator_h);
dlog_print(DLOG_INFO, LOG_TAG, "[SDL]indicator size : %d", ad->indicator_h);
}
}
+static void
+create_base_gui(appdata_s *ad)
+{
+ ecore_event_handler_add(ECORE_WL_EVENT_WINDOW_SHOW, _window_show_cb, ad);
+
+ ad->win = (Evas_Object *)elm_win_create("SDL_Indicator");
+ evas_object_smart_callback_add(ad->win, "delete,request", win_delete_request_cb, NULL);
+ ad->conform = (Evas_Object *)elm_conformand_create(ad->win);
+ init_info(ad);
+}
+
static bool
app_create(void *data)
{