logo

badwolf

minimalist and privacy-oriented web browser based on WebKitGTK git clone https://hacktivis.me/git/badwolf.git
commit: 1661e0380ec0a37b04d33f9a487c9b2c0047b05a
parent 5da426dab654296ff8c53ad138317df0d7984d12
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 22 Apr 2021 03:35:14 +0200

about-dialog: Auto-switch, use gtk_window_close

gtk_widget_destroy on about_dialog shouldn't SEGV but it does on GTK+ 3.24.26

Diffstat:

Mkeybindings.c4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/keybindings.c b/keybindings.c @@ -14,9 +14,9 @@ about_dialogCb_activate_link(GtkAboutDialog *about_dialog, gchar *uri, gpointer (void)about_dialog; struct Window *window = (struct Window *)user_data; - badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, uri, NULL), FALSE); + badwolf_new_tab(GTK_NOTEBOOK(window->notebook), new_browser(window, uri, NULL), TRUE); - gtk_widget_destroy(GTK_WIDGET(about_dialog)); + gtk_window_close(GTK_WINDOW(about_dialog)); return TRUE; }