Bit more work on welcome page

This commit is contained in:
Jaime Thomas 2008-09-17 13:56:08 +00:00
parent 5f469fb305
commit 82caf3442d
2 changed files with 118 additions and 1 deletions

View File

@ -1,4 +1,106 @@
group { group {
name: "ecdb/welcome_page"; name: "ecdb/welcome_page";
min: 640 170; min: 640 170;
parts {
part {
name: "background";
type: RECT;
description {
state: "default" 0.0;
color: 0 255 0 255;
rel1 {
relative: 0.0 0.0;
offset: 0 0;
}
rel2 {
relative: 1.0 1.0;
offset: -1 -1;
}
}
}
part {
name: "b1";
type: SWALLOW;
description {
state: "default" 0.0;
min: 88 24;
rel1 {
relative: 0.0 0.0;
offset: 10 10;
}
rel2 {
relative: 0.5 0.5;
offset: -11 -11;
}
}
}
part {
name: "b2";
type: SWALLOW;
description {
state: "default" 0.0;
min: 88 24;
rel1 {
relative: 0.5 0.0;
offset: 10 10;
}
rel2 {
relative: 1.0 0.5;
offset: -11 -11;
}
}
}
part {
name: "b3";
type: SWALLOW;
description {
state: "default" 0.0;
min: 88 24;
rel1 {
relative: 0.0 0.5;
offset: 10 10;
}
rel2 {
relative: 0.5 1.0;
offset: -11 -11;
}
}
}
part {
name: "b4";
type: SWALLOW;
description {
state: "default" 0.0;
min: 88 24;
rel1 {
relative: 0.5 0.5;
offset: 10 10;
}
rel2 {
relative: 1.0 1.0;
offset: -11 -11;
}
}
}
}
} }

View File

@ -208,7 +208,22 @@ ecdb_create_main_gui(void)
_cb_filelist_key_down, gui); _cb_filelist_key_down, gui);
evas_object_show(swallow); evas_object_show(swallow);
/* Set up the paned stuff necessary */ // Set up the welcome page
Evas_Object *welcome_page, *buttons;
welcome_page = edje_object_add(ecore_evas_get(em->main_win_ee));
evas_object_name_set(welcome_page, "welcome_page");
// XXX Don't hardcode this
edje_object_file_set(welcome_page, PACKAGE_DATA_DIR
"/themes/default.edj", "ecdb/welcome_page");
edje_object_part_swallow(gui, "action_area", welcome_page);
edje_object_part_geometry_get(gui, "active_area", &x, &y, &w, &h);
evas_object_move(welcome_page, x, y);
evas_object_resize(welcome_page, w, h);
evas_object_show(welcome_page);
/* Buttons next */
return TRUE; return TRUE;
} }