[ease/builder] Connects the new button signal
- From: Stéphane Maniaci <maniacis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ease/builder] Connects the new button signal
- Date: Mon, 12 Jul 2010 20:10:30 +0000 (UTC)
commit 0dbf4979c82e098d9e4dbb8db78179dfab74189a
Author: Stéphane Maniaci <stephane maniaci gmail com>
Date: Mon Jul 12 14:25:21 2010 -0500
Connects the new button signal
data/ui/welcome-window.ui | 1 +
src/ease-welcome-window.vala | 5 ++---
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/data/ui/welcome-window.ui b/data/ui/welcome-window.ui
index 2eaf987..2f351f1 100644
--- a/data/ui/welcome-window.ui
+++ b/data/ui/welcome-window.ui
@@ -47,6 +47,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
+ <signal name="clicked" handler="ease_welcome_window_new_document"/>
</object>
<packing>
<property name="position">3</property>
diff --git a/src/ease-welcome-window.vala b/src/ease-welcome-window.vala
index 14f2d5e..d18273a 100644
--- a/src/ease-welcome-window.vala
+++ b/src/ease-welcome-window.vala
@@ -199,8 +199,6 @@ public class Ease.WelcomeWindow : Gtk.Window
this.add (vbox);
this.show_all ();
/* // ui signals
- new_button.clicked.connect(new_document);
-
// changing resolution values
x_res.value_changed.connect(() => {
set_resolution_box((int)(x_res.get_value()),
@@ -273,7 +271,8 @@ public class Ease.WelcomeWindow : Gtk.Window
OpenDialog.run();
}
- private void new_document()
+ [CCode (instance_pos = -1)]
+ public void new_document()
{
try
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]