]> git.saurik.com Git - wxWidgets.git/commitdiff
close the dialog when close button is pressed, this is apparently needed by older...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 15:15:32 +0000 (15:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 8 Oct 2006 15:15:32 +0000 (15:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/aboutdlg.cpp

index 5f83dc37fd9d28ac69eb4ba1326756c0d90a93ac..c5c73555634b9de7981a2e404de9180dc078d9f0 100644 (file)
@@ -82,6 +82,12 @@ private:
 // implementation
 // ============================================================================
 
+extern "C" void
+wxGtkAboutDialogOnClose(GtkAboutDialog *about)
+{
+    gtk_widget_destroy(GTK_WIDGET(about));
+}
+
 extern "C" void
 wxGtkAboutDialogOnLink(GtkAboutDialog * WXUNUSED(about),
                        const gchar *link,
@@ -149,6 +155,9 @@ void wxAboutBox(const wxAboutDialogInfo& info)
 
         gtk_about_dialog_set_translator_credits(dlg, GtkStr(transCredits));
 
+        g_signal_connect(dlg, "response",
+                            G_CALLBACK(wxGtkAboutDialogOnClose), NULL);
+
         gtk_widget_show(GTK_WIDGET(dlg));
         return;
     }