From 2d41d6c933cec1a0660bc71aaa115b41dcfdfbed Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 25 Jul 2016 21:55:03 +0100 Subject: cleanup gtk cookie interface use gtk_window_present instead of gdk_window_raise and reduce exposed variables and interfaces. --- frontends/gtk/scaffolding.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'frontends/gtk/scaffolding.c') diff --git a/frontends/gtk/scaffolding.c b/frontends/gtk/scaffolding.c index cd3779e1e..811c84444 100644 --- a/frontends/gtk/scaffolding.c +++ b/frontends/gtk/scaffolding.c @@ -1523,9 +1523,11 @@ MULTIHANDLER(showbookmarks) MULTIHANDLER(showcookies) { - gtk_widget_show(GTK_WIDGET(wndCookies)); - gdk_window_raise(nsgtk_widget_get_window(GTK_WIDGET(wndCookies))); - + nserror res; + res = nsgtk_cookies_present(); + if (res != NSERROR_OK) { + LOG("Unable to initialise cookies window."); + } return TRUE; } -- cgit v1.2.3