added gui related files.
This commit is contained in:
parent
bc144883a7
commit
7902008258
2
Makefile
2
Makefile
|
@ -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`
|
||||
|
|
|
@ -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;
|
||||
}
|
Loading…
Reference in New Issue