summaryrefslogtreecommitdiff
path: root/main.c
blob: 8205668abae9f78f0063827a6d6f88067b66a7aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * gcc main.c -o main `pkg-config --cflags --libs elementary` -g
 */
#include <Elementary.h>

EAPI_MAIN int
elm_main(int argc, char **argv)
{
   Evas_Object *win = NULL;

   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   win = elm_win_util_standard_add("main", "Main");
   elm_win_autodel_set(win, EINA_TRUE);
   evas_object_resize(win, 300, 400);
   evas_object_show(win);

   elm_run();

   return 0;
}
ELM_MAIN()