blob: 4825ff0adcee580cef11ee9245b031af06684bd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
From 7091829d92427f7f2773fa7519e5c5e6b95b3a17 Mon Sep 17 00:00:00 2001
From: Priit Laes <plaes@plaes.org>
Date: Mon, 10 Nov 2008 01:00:31 +0200
Subject: [PATCH] Workaround for non-working signals specified in Glade file.
---
data/glade/AddWindow.glade | 2 --
src/AddWindow.cs | 5 ++++-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/data/glade/AddWindow.glade b/data/glade/AddWindow.glade
index 0e72749..4b3ef0e 100644
--- a/data/glade/AddWindow.glade
+++ b/data/glade/AddWindow.glade
@@ -19,8 +19,6 @@
<property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
<property name="focus_on_map">True</property>
<property name="has_separator">False</property>
- <signal name="response" handler="OnWindowResponse" last_modification_time="Tue, 04 Jan 2005 17:48:15 GMT"/>
- <signal name="delete_event" handler="OnWindowDeleteEvent" last_modification_time="Tue, 04 Jan 2005 17:48:11 GMT"/>
<child internal-child="vbox">
<widget class="GtkVBox" id="dialog-vbox1">
diff --git a/src/AddWindow.cs b/src/AddWindow.cs
index 0b602f6..eba501c 100644
--- a/src/AddWindow.cs
+++ b/src/AddWindow.cs
@@ -23,7 +23,7 @@ using System.Collections;
namespace Muine
{
- public abstract class AddWindow : Gtk.Window
+ public abstract class AddWindow : Gtk.Dialog
{
#region Enums
#region Enums.ResponseType
@@ -116,6 +116,9 @@ namespace Muine
this.entry_container.Add (this.entry);
// List
+ this.Response += OnWindowResponse;
+ this.DeleteEvent += OnWindowDeleteEvent;
+
this.list.RowActivated += OnRowActivated;
this.list.Selection.Changed += OnSelectionChanged;
scrolledwindow.Add (this.list);
--
1.6.0.3
|