[ease/builder: 31/34] Add the VBox to the window
- From: Stéphane Maniaci <maniacis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/builder: 31/34] Add the VBox to the window
- Date: Mon, 12 Jul 2010 17:02:11 +0000 (UTC)
commit 32fe143bd3b154ef4261dfbf73d3f0048ff678fe
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date: Mon Jul 12 11:17:07 2010 -0500
Add the VBox to the window
src/ease-welcome-window.vala | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/src/ease-welcome-window.vala b/src/ease-welcome-window.vala
index b2afafe..8207743 100644
--- a/src/ease-welcome-window.vala
+++ b/src/ease-welcome-window.vala
@@ -84,12 +84,24 @@ public class Ease.WelcomeWindow : Gtk.Window
public WelcomeWindow()
{
-/* assert(RESOLUTIONS_X.length == RESOLUTIONS_Y.length);
+ assert(RESOLUTIONS_X.length == RESOLUTIONS_Y.length);
- title = _("New Presentation");
- set_default_size(640, 480);
+ this.title = _("Pick a theme and start editing");
+ this.set_default_size(640, 480);
- // build the bottom UI
+ var builder = new Gtk.Builder ();
+ try {
+ builder.add_from_file ("data/ui/welcome-window.ui");
+ //FIXME : compute path
+ } catch (Error e) {
+ error ("Unable to load UI : %s", e.message);
+ }
+
+ var vbox = builder.get_object ("vbox1") as Gtk.VBox;
+ this.add (vbox);
+
+ this.show_all ();
+/* // build the bottom UI
var hbox = new Gtk.HBox(false, 5);
resolution = new Gtk.ComboBox.text();
resolution.append_text(_("Custom"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]