Actually get an interface

This commit is contained in:
Jaime Thomas
2008-08-05 03:12:24 +00:00
parent cc5eeed0a2
commit 38e7a407d0
7 changed files with 113 additions and 124 deletions

View File

@@ -30,6 +30,8 @@ ecdb_cb_resize(Ecore_Evas *ee)
int
ecdb_create_main_gui(void)
{
Evas_Object *gui;
em->main_win_ee = ecore_evas_software_x11_new(0, 0, 0, 0, 255, 255);
if (!em->main_win_ee)
@@ -52,6 +54,11 @@ ecdb_create_main_gui(void)
edje_frametime_set(1.0 / 60.0);
ecore_evas_show(em->main_win_ee);
gui = edje_object_add(ecore_evas_get(em->main_win_ee));
evas_object_name_set(gui, "gui");
evas_object_move(gui, 0, 0);
evas_object_show(gui);
ecdb_set_main_theme(NULL, "ecdb/window");
return TRUE;
@@ -81,10 +88,11 @@ ecdb_set_main_theme(const char *theme_name, const char *group)
if (!theme_name)
{
if (!edje_object_file_set(gui, PACKAGE_DATA_DIR"/default.edj",
group))
if (!edje_object_file_set(gui, PACKAGE_DATA_DIR
"/themes/default.edj", group))
{
printf("Error setting default theme\n");
printf("Error setting default theme: %s\n",
PACKAGE_DATA_DIR"/themes/default/edj");
return;
}
}