summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Juyung Seo <juyung.seo@samsung.com>2013-06-16 20:09:47 +0900
committerDaniel Juyung Seo <juyung.seo@samsung.com>2013-06-16 20:09:47 +0900
commit6cc7805fd8269558bab7da154cc55cb65a65e1dc (patch)
tree568147898f45cf73413f930ad0c037d0f5dd3109
parentccc896a5233e0f0661cc514be236f8763b5f79fe (diff)
basic: added a basic elementary sample.
-rw-r--r--sample/basic/Makefile2
-rw-r--r--sample/basic/main.c24
2 files changed, 26 insertions, 0 deletions
diff --git a/sample/basic/Makefile b/sample/basic/Makefile
new file mode 100644
index 0000000..f4ed0a7
--- /dev/null
+++ b/sample/basic/Makefile
@@ -0,0 +1,2 @@
1main: main.c
2 gcc main.c -o main `pkg-config --cflags --libs elementary` -g
diff --git a/sample/basic/main.c b/sample/basic/main.c
new file mode 100644
index 0000000..8ffd89c
--- /dev/null
+++ b/sample/basic/main.c
@@ -0,0 +1,24 @@
1/*
2 * gcc main.c -o main `pkg-config --cflags --libs elementary`
3 */
4#include <Elementary.h>
5
6EAPI_MAIN int
7elm_main(int argc, char **argv)
8{
9 Evas_Object *win = NULL;
10
11 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
12
13 //Create a window
14 win = elm_win_util_standard_add("main", "Main");
15 elm_win_autodel_set(win, EINA_TRUE);
16 evas_object_resize(win, 420, 700);
17 evas_object_show(win);
18
19 elm_run();
20 elm_shutdown();
21
22 return 0;
23}
24ELM_MAIN()