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:
@@ -82,6 +82,12 @@ private:
|
|||||||
// implementation
|
// implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
|
||||||
|
extern "C" void
|
||||||
|
wxGtkAboutDialogOnClose(GtkAboutDialog *about)
|
||||||
|
{
|
||||||
|
gtk_widget_destroy(GTK_WIDGET(about));
|
||||||
|
}
|
||||||
|
|
||||||
extern "C" void
|
extern "C" void
|
||||||
wxGtkAboutDialogOnLink(GtkAboutDialog * WXUNUSED(about),
|
wxGtkAboutDialogOnLink(GtkAboutDialog * WXUNUSED(about),
|
||||||
const gchar *link,
|
const gchar *link,
|
||||||
@@ -149,6 +155,9 @@ void wxAboutBox(const wxAboutDialogInfo& info)
|
|||||||
|
|
||||||
gtk_about_dialog_set_translator_credits(dlg, GtkStr(transCredits));
|
gtk_about_dialog_set_translator_credits(dlg, GtkStr(transCredits));
|
||||||
|
|
||||||
|
g_signal_connect(dlg, "response",
|
||||||
|
G_CALLBACK(wxGtkAboutDialogOnClose), NULL);
|
||||||
|
|
||||||
gtk_widget_show(GTK_WIDGET(dlg));
|
gtk_widget_show(GTK_WIDGET(dlg));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user