[ease/builder] [welcomewindow] Connect the combo box
- From: Stéphane Maniaci <maniacis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/builder] [welcomewindow] Connect the combo box
- Date: Mon, 12 Jul 2010 20:10:40 +0000 (UTC)
commit bbec4ff97c3704e8e2f5c43d180503d3cc34d2da
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date: Mon Jul 12 14:33:17 2010 -0500
[welcomewindow] Connect the combo box
src/ease-welcome-window.vala | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/ease-welcome-window.vala b/src/ease-welcome-window.vala
index 7a6af5c..b9c7140 100644
--- a/src/ease-welcome-window.vala
+++ b/src/ease-welcome-window.vala
@@ -120,6 +120,17 @@ public class Ease.WelcomeWindow : Gtk.Window
combores.append_text(_("%i by %i").printf(RESOLUTIONS_X[i],
RESOLUTIONS_Y[i]));
}
+
+ combores.changed.connect ( () =>
+ {
+ var val = combores.get_active ();
+ if (val > 0) {
+ x_res.set_value (RESOLUTIONS_X[val - 1]);
+ y_res.set_value (RESOLUTIONS_Y[val - 1]);
+ }
+ reflow_previews();
+ });
+
hbox.pack_start (combores);
hbox.reorder_child (combores, 0);
@@ -218,19 +229,8 @@ public class Ease.WelcomeWindow : Gtk.Window
builder.connect_signals (this);
this.add (vbox);
this.show_all ();
-/* // ui signals
- // changing resolution values
-
- resolution.changed.connect(() => {
- var val = resolution.get_active();
- if (val > 0)
- {
- x_res.set_value(RESOLUTIONS_X[val - 1]);
- y_res.set_value(RESOLUTIONS_Y[val - 1]);
- }
- reflow_previews();
- });
-
+
+/*
// reflow the stage
embed.size_allocate.connect(() => {
reflow_previews();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]