elm examples: Use standard way of elementary applications. EAPI_MAIN, elm_shutdown, ELM_MAIN()

SVN revision: 69690
This commit is contained in:
Daniel Juyung Seo 2012-03-28 06:04:36 +00:00
parent 24637aff41
commit 7a4ed3f94f
98 changed files with 206 additions and 111 deletions

View File

@ -147,6 +147,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -11,7 +11,7 @@
static void _anchorblock_clicked_cb(void *data, Evas_Object *obj, void *ev);
static void _anchorview_clicked_cb(void *data, Evas_Object *obj, void *ev);
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *box, *o, *frame;
@ -80,10 +80,11 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
elm_object_content_set(frame, o);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()
static void _anchor_buttons_create(Evas_Object *ao, Elm_Entry_Anchorblock_Info *info, Evas_Smart_Cb btn_end_cb);

View File

@ -15,7 +15,7 @@ on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __U
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg;
@ -52,5 +52,4 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
/* exit code */
return 0;
}
ELM_MAIN()

View File

@ -16,7 +16,7 @@ on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __U
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg;
@ -42,8 +42,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -61,7 +61,7 @@ _cb_color_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
elm_bg_color_set(o_bg, 0, 255, 0);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg;
@ -168,6 +168,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -71,7 +71,7 @@ _test_box_transition_change(void *data)
tdata->transitions);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *bigbox, *bx, *bt;
@ -167,7 +167,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
_test_box_transition_change(&tdata);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -66,8 +66,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(bubble);
elm_run();
evas_object_del(icon);
elm_shutdown();
return 0;
}

View File

@ -14,7 +14,7 @@ on_click(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win = NULL;
@ -47,8 +47,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(btn);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -100,7 +100,7 @@ _btn_options_cb(void *data, Evas_Object *btn, void *ev __UNUSED__)
}
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *box, *box2, *btn, *icon;
@ -263,7 +263,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
data.cursors.down = btn;
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -39,6 +39,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -57,6 +57,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -41,6 +41,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -60,6 +60,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -67,6 +67,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -94,6 +94,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -51,7 +51,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
evas_object_del(icon);
elm_shutdown();
return 0;
}

View File

@ -24,7 +24,7 @@ _on_done(void *data __UNUSED__,
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bx, *ck;
@ -83,6 +83,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -67,6 +67,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -74,6 +74,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -80,6 +80,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -104,6 +104,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
elm_list_go(list);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -16,7 +16,7 @@ _on_done(void *data __UNUSED__,
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *bx, *datetime;
@ -67,7 +67,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -50,7 +50,7 @@ static void _changed_cb(void* data __UNUSED__, Evas_Object* obj, void* event_inf
}
/* End of clicked callback */
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bx, *dayselector;
@ -90,6 +90,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -102,6 +102,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -347,6 +347,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -50,7 +50,7 @@ my_thread_new(void)
perror("pthread_create");
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *o, *bg;
@ -77,7 +77,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -66,7 +66,7 @@ my_thread_mainloop_code(void *data)
return NULL;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *o, *bg;
@ -93,7 +93,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -68,7 +68,7 @@ my_thread_mainloop_code(void *data)
free(inf);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *o, *bg;
@ -95,7 +95,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -88,7 +88,7 @@ down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, voi
pthread_mutex_unlock(&th_lock);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *o, *bg;
@ -118,7 +118,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -68,7 +68,7 @@ down(void *data __UNUSED__, Evas *e __UNUSED__, Evas_Object *obj __UNUSED__, voi
ecore_thread_cancel(thr);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *o, *bg;
@ -102,7 +102,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
thr = ecore_thread_feedback_run(th_do, th_feedback, th_end, th_cancel,
NULL, EINA_TRUE);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -122,7 +122,7 @@ anim(void *data)
return EINA_TRUE;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *o, *bg;
@ -163,7 +163,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
}
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -55,7 +55,7 @@ my_thread_new(void)
}
}
int
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *o, *bg;
@ -82,7 +82,8 @@ elm_main(int argc, char **argv)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -71,7 +71,7 @@ my_thread_mainloop_code(void *data)
return NULL;
}
int
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *o, *bg;
@ -98,7 +98,8 @@ elm_main(int argc, char **argv)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -73,7 +73,7 @@ my_thread_mainloop_code(void *data)
free(inf);
}
int
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *o, *bg;
@ -100,7 +100,8 @@ elm_main(int argc, char **argv)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -94,7 +94,7 @@ down(void *data, Evas *e, Evas_Object *obj, void *event_info)
LeaveCriticalSection(&lock);
}
int
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *o, *bg;
@ -124,7 +124,8 @@ elm_main(int argc, char **argv)
my_thread_new();
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -494,7 +494,7 @@ _win_del_cb(void *data __UNUSED__, Evas_Object *obj, void *event __UNUSED__)
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *box, *tb, *en, *o, *icon;
@ -578,7 +578,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
evas_object_resize(win, 300, 780);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -179,7 +179,8 @@ elm_main(int argc __UNUSED__,
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -168,7 +168,8 @@ elm_main(int argc __UNUSED__,
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -238,7 +238,8 @@ elm_main(int argc __UNUSED__,
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -82,6 +82,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -204,6 +204,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
fprintf(stdout, "%s", commands);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -75,11 +75,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
evas_object_del(r1);
evas_object_del(r2);
evas_object_del(r3);
evas_object_del(r4);
elm_shutdown();
return 0;
}

View File

@ -68,7 +68,7 @@ _btn_scale_cb(void *data __UNUSED__,
elm_object_scale_set(d.btn, elm_slider_value_get(obj));
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__,
char **argv __UNUSED__)
{
@ -190,5 +190,4 @@ elm_main(int argc __UNUSED__,
/* exit code */
return 0;
}
ELM_MAIN()

View File

@ -425,7 +425,7 @@ _page_change_cb(void *data,
fprintf(stdout, "Setting grid page's relative size to %f\n", val);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__,
char **argv __UNUSED__)
{
@ -628,7 +628,8 @@ elm_main(int argc __UNUSED__,
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -39,7 +39,7 @@ _item_sel_cb(void *data, Evas_Object *obj, void *event_info)
data, obj, event_info);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg;
@ -87,8 +87,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -88,7 +88,7 @@ _realize_cb(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED__)
elm_genlist_realized_items_update(list);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *box, *hbox;
@ -201,8 +201,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -78,7 +78,7 @@ _genlist_fill(Evas_Object *list)
}
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *box;
@ -129,8 +129,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -236,7 +236,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
return bt;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *box, *fbox;
@ -362,8 +362,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -307,7 +307,7 @@ _button_add(Evas_Object *list, Evas_Object *box, const char *label, Evas_Smart_C
return bt;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *box, *fbox;
@ -340,7 +340,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
_itc->func.state_get = NULL;
_itc->func.del = NULL;
}
if (!_itp)
{
_itp = elm_genlist_item_class_new();
@ -350,7 +350,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
_itp->func.state_get = NULL;
_itp->func.del = NULL;
}
if (!_itfav)
{
_itfav = elm_genlist_item_class_new();
@ -423,8 +423,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -245,7 +245,7 @@ _del(void *data, Evas *evas, Evas_Object *obj, void *event_info)
}
EAPI int
EAPI_MAIN int
elm_main(int argc, char **argv)
{
Evas_Object *win, *bg, *bx, *bt, *gl;
@ -332,6 +332,8 @@ elm_main(int argc, char **argv)
// run the mainloop and process events and callbacks
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -78,6 +78,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -56,6 +56,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
elm_run();
elm_shutdown();
return 0;
}

View File

@ -9,7 +9,7 @@
# define PACKAGE_DATA_DIR "."
#endif
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *icon;
@ -52,8 +52,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -53,8 +53,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -111,7 +111,7 @@ _on_done(void *data __UNUSED__,
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__,
char **argv __UNUSED__)
{
@ -207,7 +207,8 @@ elm_main(int argc __UNUSED__,
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -92,7 +92,7 @@ _index_icmp(const void *data1,
return strcasecmp(label1, label2);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__,
char **argv __UNUSED__)
{
@ -149,7 +149,8 @@ elm_main(int argc __UNUSED__,
elm_index_autohide_disabled_set(idx, EINA_FALSE);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -113,7 +113,7 @@ _screenshot_hack_cb(void *data)
return EINA_FALSE;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *box, *o;
@ -150,7 +150,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
ecore_timer_add(0.1, _screenshot_hack_cb, o);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -78,6 +78,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -56,7 +56,7 @@ _swallow_btn_cb(void *data, Evas_Object *btn __UNUSED__, void *event_info __UNUS
evas_object_del(item);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *icon, *icon2, *bt, *bt2, *layout;
@ -148,8 +148,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -40,7 +40,7 @@ _signal_cb(void *data, Evas_Object *o, const char *emission, const char *source
elm_icon_standard_set(icon, images[app->current]);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *layout, *icon;
@ -81,8 +81,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -45,7 +45,7 @@ _size_changed_cb(void *data __UNUSED__, Evas_Object *layout, const char *emissio
printf("Minimum size for this theme: %dx%d\n", w, h);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *btn, *layout;
@ -92,8 +92,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -69,6 +69,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -83,6 +83,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -439,6 +439,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -119,6 +119,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
ecore_timer_add(0.5, _nasty_hack, win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -256,6 +256,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
ecore_timer_add(1, _nasty_hack, win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -206,6 +206,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
ecore_timer_add(0.5, _nasty_hack, win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -124,6 +124,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -71,6 +71,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -71,6 +71,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -73,6 +73,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -60,7 +60,7 @@ _clicked_double(void *data __UNUSED__, Evas_Object *obj, void *event_info __UNUS
}
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *panes, *panes_h, *bt;
@ -120,6 +120,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -61,6 +61,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -46,6 +46,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_resize(win, 480, 800);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -73,10 +73,12 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()
static void
_response_cb(void *data, Evas_Object *obj __UNUSED__,
void *event_info __UNUSED__)

View File

@ -83,6 +83,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -96,7 +96,7 @@ _on_done(void *data __UNUSED__,
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__,
char **argv __UNUSED__)
{
@ -236,7 +236,8 @@ elm_main(int argc __UNUSED__,
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -82,6 +82,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -140,6 +140,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -24,7 +24,7 @@ _on_done(void *data __UNUSED__,
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *sc, *ic;
@ -81,6 +81,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -53,6 +53,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -52,7 +52,7 @@ _indicator_free(char *str)
free(str);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bx, *sl, *ic;
@ -147,6 +147,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -179,7 +179,7 @@ _cmp_func(const void *data1,
return strcasecmp(img_path1, img_path2);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__,
char **argv __UNUSED__)
{
@ -317,7 +317,8 @@ elm_main(int argc __UNUSED__,
_notify_show(notify, NULL, NULL, NULL);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -36,7 +36,7 @@ _delay_changed_cb(void *data __UNUSED__, Evas_Object *obj, void *event_info __UN
printf("Value delay changed to %0.f\n", elm_spinner_value_get(obj));
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bx, *sp;
@ -130,6 +130,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -51,6 +51,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -54,6 +54,7 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}

View File

@ -39,7 +39,7 @@ btn_style_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSED__)
elm_object_style_set(btn, styles[sel_style]);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *box, *btn;
@ -77,7 +77,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
evas_object_smart_callback_add(btn, "clicked", btn_style_click_cb, NULL);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -19,7 +19,7 @@ _btn_clicked_cb(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *ev __U
loaded = 1 - loaded;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *box, *btn;
@ -68,7 +68,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
evas_object_smart_callback_add(btn, "clicked", _btn_clicked_cb, NULL);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -27,7 +27,7 @@ _generation_error_cb(void *data __UNUSED__, Evas_Object *o __UNUSED__, void *eve
printf("thumbnail generation error.\n");
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
#if 0
@ -83,5 +83,4 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
/* exit code */
return 0;
}
ELM_MAIN()

View File

@ -95,6 +95,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -86,6 +86,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -79,6 +79,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -15,7 +15,7 @@ on_done(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __U
elm_exit();
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bt;
@ -50,8 +50,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
elm_transit_go(trans);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -8,7 +8,7 @@
# define __UNUSED__
#endif
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *bt, *bt2, *bt3, *bt4;
@ -83,8 +83,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
elm_transit_chain_transit_add(trans3, trans4);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -174,7 +174,7 @@ _cb_tween_changed(void *data, Evas_Object *obj, void *event __UNUSED__)
*mode = ELM_TRANSIT_TWEEN_MODE_ACCELERATE;
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *obj, *icon, *box, *vbox, *vbox2, *hbox, *btn;
@ -328,8 +328,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -90,7 +90,7 @@ _transit_start(void *data, Evas_Object *o __UNUSED__, void *event_info __UNUSED_
elm_transit_go(trans);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char **argv __UNUSED__)
{
Evas_Object *win, *bg, *obj, *icon, *box, *vbox, *btn, *dummy;
@ -170,10 +170,8 @@ elm_main(int argc __UNUSED__, char **argv __UNUSED__)
evas_object_show(win);
elm_run();
eina_list_free(objs);
elm_shutdown();
return 0;
}
ELM_MAIN()

View File

@ -464,7 +464,7 @@ default_content_set(Evas_Object *web)
#endif
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *bg, *box, *box2, *btn, *ic, *url, *naviframe, *tabs, *web;
@ -621,7 +621,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
evas_object_show(win);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()

View File

@ -175,7 +175,7 @@ _win_focused_cb(void *data, Evas_Object *obj __UNUSED__, void *event __UNUSED__)
printf("Window focused: %s\n", name);
}
int
EAPI_MAIN int
elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
{
Evas_Object *win, *win2, *bg, *bigbox, *box, *btn, *o;
@ -324,7 +324,8 @@ elm_main(int argc __UNUSED__, char *argv[] __UNUSED__)
WIN_ACTION(sticky);
elm_run();
elm_shutdown();
return 0;
}
ELM_MAIN();
ELM_MAIN()