diff options
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
1 files changed, 2 insertions, 2 deletions
| -rw-r--r-- | keybindings.c | 4 |
diff --git a/keybindings.c b/keybindings.c index bfc8f7a..ad704d1 100644 --- 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; } |