The config dialog is now accessable. A bit more work done on the slide_in tab, but it still a bit glitchy.

This commit is contained in:
Jaime Thomas
2009-02-21 01:23:34 +00:00
parent 6fc629a0a3
commit 676d7ee77e
6 changed files with 292 additions and 60 deletions

View File

@@ -13,6 +13,8 @@ static void _filelist_del(Ewl_Widget *w, void *ev_data, void *data);
static void ecdb_welcome_page_show_about(void *data, Evas_Object *o,
const char *emission, const char *source);
static void ecdb_welcome_page_show_config(void *data, Evas_Object *o,
const char *emission, const char *source);
static void
ecdb_welcome_page_show_about(void *data __UNUSED__, Evas_Object *o __UNUSED__,
@@ -22,6 +24,14 @@ ecdb_welcome_page_show_about(void *data __UNUSED__, Evas_Object *o __UNUSED__,
ecdb_about_show();
}
static void
ecdb_welcome_page_show_config(void *data __UNUSED__, Evas_Object *o __UNUSED__,
const char *emission __UNUSED__,
const char *source __UNUSED__)
{
ecdb_config_dialog_show();
}
static void
_filelist_del(Ewl_Widget *w, void *ev_data __UNUSED__, void *data __UNUSED__)
{
@@ -223,14 +233,16 @@ ecdb_create_main_gui(void)
edje_frametime_set(1.0 / (double)em->fps);
ecore_evas_show(em->main_win_ee);
/* Make this configurable at some point */
edje_scale_set(em->scalef);
if (ecore_config_boolean_get("use_scale"))
edje_scale_set(em->scalef);
em->page = calloc(1, sizeof(Ecdb_Page));
em->page->gui = edje_object_add(ecore_evas_get(em->main_win_ee));
edje_object_file_set(em->page->gui, em->theme_path, "ecdb/window");
edje_object_signal_callback_add(em->page->gui, "ecdb/about/show",
"ecdb", ecdb_welcome_page_show_about, NULL);
edje_object_signal_callback_add(em->page->gui, "ecdb/config/show",
"ecdb", ecdb_welcome_page_show_config, NULL);
edje_object_size_min_get(em->page->gui, &mw, &mh);
if (mw <= 0) mw = 400;
if (mh <= 0) mh = 300;