2 # include "elementary_config.h"
7 #include <Elementary.h>
9 /* FIXME: it shouldn't be required. For unknown reason map won't call
10 * pan_calculate until shot delay time, but then it will take a screenshot
11 * when the map isn't loaded yet (actually it won't be downloaded, because
12 * after the SS it will kill the preview). */
14 _nasty_hack(void *data)
16 Evas_Object *o = data;
17 Evas *e = evas_object_evas_get(o);
18 evas_smart_objects_calculate(e);
19 return ECORE_CALLBACK_CANCEL;
23 elm_main(int argc __UNUSED__, char **argv)
25 Evas_Object *win, *bg;
32 win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
34 elm_win_resize_object_add(win, bg);
37 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
40 evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
41 elm_win_resize_object_add(win, o);
44 ecore_timer_add(0.5, _nasty_hack, win);
46 #include "widget_preview_tmpl_foot.c"