added gui related files.

This commit is contained in:
Daniel Juyung Seo 2012-08-13 11:52:52 +09:00 committed by Daniel Juyung Seo
parent bc144883a7
commit 7902008258
4 changed files with 23 additions and 1 deletions

View File

@ -1,2 +1,2 @@
all:
gcc main.c -o elm-theme-viwer `pkg-config --cflags --libs elementary`
gcc main.c gui.c -o elm-theme-viwer `pkg-config --cflags --libs elementary`

18
gui.c Normal file
View File

@ -0,0 +1,18 @@
#include <Elementary.h>
void
gui_create(void)
{
Evas_Object *win, *box, *o;
win = elm_win_util_standard_add("elm-theme-viewer", "Elm Theme Viewer");
evas_object_resize(win, 300, 400);
evas_object_show(win);
box = o = elm_box_add(win);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
elm_win_resize_object_add(win, o);
evas_object_show(o);
return;
}

1
gui.h Normal file
View File

@ -0,0 +1 @@
void gui_create(void);

3
main.c
View File

@ -1,8 +1,11 @@
#include <Elementary.h>
#include "gui.h"
EAPI_MAIN int
elm_main(int argc, char **argv)
{
gui_create();
elm_run();
elm_shutdown();