File: fix-close-button-of-about-dialog.patch

package info (click to toggle)
gnomekiss 2.0-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,764 kB
  • sloc: ansic: 4,480; sh: 1,006; makefile: 55; xml: 52
file content (24 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Markus Koschany <apo@gambaru.de>
Date: Fri, 21 Jun 2013 20:32:11 +0200
Subject: fix close button of about dialog

---
 src/callbacks.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/callbacks.c b/src/callbacks.c
index b175c6f..299f6d4 100644
--- a/src/callbacks.c
+++ b/src/callbacks.c
@@ -171,7 +171,10 @@ void
 on_about_activate                      (GtkMenuItem     *menuitem,
                                         gpointer         user_data)
 {
-  gtk_widget_show (about);
+  GtkWidget *about_dialog;
+  about = create_about ();
+  gtk_dialog_run (GTK_DIALOG (about));
+  gtk_widget_destroy (about);
 }
 
 gboolean