]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/aboutdlg.cpp
Use generic collapsible pane for wxUniv based builds.
[wxWidgets.git] / 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;
     }