Package: sysinfo / 0.7-8

05-fix_about_close_button.patch Patch series | download
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
#! /bin/sh /usr/share/dpatch/dpatch-run
## 03_fix_about_close_button.dpatch by Koen Beek <koen.beek@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: close button of about dialog box did not work

@DPATCH@
Index: sysinfo-0.7/Sysinfo/Main.cs
===================================================================
--- sysinfo-0.7.orig/Sysinfo/Main.cs	2008-12-29 16:49:38.000000000 +0000
+++ sysinfo-0.7/Sysinfo/Main.cs	2008-12-29 16:49:43.000000000 +0000
@@ -1130,6 +1130,10 @@
 			
 			aboutdialog1.Show();
 		}
+
+                public void on_aboutdialog1_response (object o, ResponseArgs r) {
+                        aboutdialog1.Hide();
+                }
 		
 		//menu - preferences dialog
 		public void on_preferences1_activate (object o, EventArgs e) {
Index: sysinfo-0.7/Sysinfo/gui.glade
===================================================================
--- sysinfo-0.7.orig/Sysinfo/gui.glade	2008-12-29 16:49:35.000000000 +0000
+++ sysinfo-0.7/Sysinfo/gui.glade	2008-12-29 16:49:43.000000000 +0000
@@ -3684,6 +3684,19 @@
 Fedora logo &lt;htp://fedora.redhat.com&gt;
 Ubuntu logo &lt;http://www.ubuntu.com&gt; (Ubuntu is a trademark of Canonical Limited)</property>
   <property name="translator_credits" translatable="yes" comments="TRANSLATORS: Replace this string with your names, one name per line.">translator-credits</property>
+    <signal name="response" handler="on_aboutdialog1_response"/>
+    <child internal-child="vbox">
+      <widget class="GtkVBox" id="dialog-vbox1">
+        <child internal-child="action_area">
+          <widget class="GtkHButtonBox" id="dialog-action_area1">
+          </widget>
+          <packing>
+            <property name="expand">False</property>
+            <property name="pack_type">GTK_PACK_END</property>
+          </packing>
+        </child>
+      </widget>
+    </child>
 </widget>
 
 <widget class="GtkDialog" id="preferences_dialog">