$OpenBSD: patch-src_main_c,v 1.1.1.1 2008/01/14 23:21:04 simon Exp $ --- src/main.c.orig Sun Jan 13 01:47:06 2008 +++ src/main.c Sun Jan 13 01:53:34 2008 @@ -149,6 +149,11 @@ static void verb_EditPreferences_cb (BonoboUIComponent #endif } +static void verb_CloseAbout_cb (GtkWidget *dialog, gpointer user_data) +{ + gtk_widget_destroy (dialog); +} + static void verb_HelpAbout_cb (BonoboUIComponent *uic, gpointer user_data, const char *cname) { @@ -175,6 +180,9 @@ static void verb_HelpAbout_cb (BonoboUIComponent *uic, gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG(dlg), authors); gtk_about_dialog_set_artists (GTK_ABOUT_DIALOG(dlg), artists); gtk_about_dialog_set_translator_credits (GTK_ABOUT_DIALOG(dlg), _("translator-credits")); + + g_signal_connect (dlg, "close", G_CALLBACK(verb_CloseAbout_cb), NULL); + g_signal_connect (dlg, "response", G_CALLBACK(verb_CloseAbout_cb), NULL); gtk_widget_show (dlg); }