close the dialog when close button is pressed, this is apparently needed by older GTK+ versions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-10-08 15:15:32 +00:00
parent c2709a3dd7
commit 9948db2bf3

View 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;
}