diff options
Diffstat (limited to 'frontends/gtk/cookies.c')
-rw-r--r-- | frontends/gtk/cookies.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/frontends/gtk/cookies.c b/frontends/gtk/cookies.c index 0df9719cb..d9e1f0b68 100644 --- a/frontends/gtk/cookies.c +++ b/frontends/gtk/cookies.c @@ -23,13 +23,13 @@ #include <stdint.h> #include <stdlib.h> -#include <gtk/gtk.h> #include "utils/log.h" #include "netsurf/keypress.h" #include "netsurf/plotters.h" #include "desktop/cookie_manager.h" +#include "gtk/compat.h" #include "gtk/cookies.h" #include "gtk/plotters.h" #include "gtk/resources.h" @@ -275,10 +275,7 @@ static nserror nsgtk_cookies_init(void) gtk_builder_get_object(ncwin->builder, "cookiesDrawingArea")); /* make the delete event hide the window */ - g_signal_connect(G_OBJECT(ncwin->wnd), - "delete_event", - G_CALLBACK(gtk_widget_hide_on_delete), - NULL); + nsgtk_window_set_hide_on_close(ncwin->wnd, TRUE); nsgtk_cookies_init_menu(ncwin); @@ -334,7 +331,7 @@ nserror nsgtk_cookies_destroy(void) res = cookie_manager_fini(); if (res == NSERROR_OK) { res = nsgtk_corewindow_fini(&cookie_window->core); - gtk_widget_destroy(GTK_WIDGET(cookie_window->wnd)); + nsgtk_window_destroy(GTK_WINDOW(cookie_window->wnd)); g_object_unref(G_OBJECT(cookie_window->builder)); free(cookie_window); cookie_window = NULL; |