projects
/
framework
/
uifw
/
elementary.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
change the way elm_main() must be declared (fix bug on Windows).
[framework/uifw/elementary.git]
/
doc
/
widgets
/
widget_preview_tmpl_head.c
1
#include <Elementary.h>
2
#ifdef HAVE_CONFIG_H
3
# include "elementary_config.h"
4
#else
5
# define __UNUSED__
6
#endif
7
8
EAPI_MAIN int
9
elm_main(int argc __UNUSED__, char **argv)
10
{
11
Evas_Object *win, *bg;
12
Evas_Coord w, h;
13
14
w = atoi(argv[1]);
15
h = atoi(argv[2]);
16
17
win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
18
bg = elm_bg_add(win);
19
elm_win_resize_object_add(win, bg);
20
evas_object_show(bg);