summaryrefslogtreecommitdiff
path: root/sample/template/src/main.c
blob: 96b8da08fc239002f95f88de2677e1828eb60676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include <Elementary.h>

void
init()
{
   Evas_Object *win, *layout;
   char buf[PATH_MAX];

   //Create a Window
   win = elm_win_util_standard_add(elm_app_name_get(), elm_app_name_get());
   elm_win_focus_highlight_enabled_set(win, EINA_TRUE);
   elm_win_autodel_set(win, EINA_TRUE);
   evas_object_resize(win, 720, 400);
   evas_object_show(win);
}

EAPI_MAIN int
elm_main(int argc, char **argv)
{
   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   init();

   elm_run();

   elm_shutdown();

   return 0;
}
ELM_MAIN()