From 189b7b45fb9805d1beae9506cac2c001bd680470 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 4 Aug 2016 23:41:22 +0100 Subject: convert GTK global history to use GTK core window --- frontends/gtk/gui.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'frontends/gtk/gui.c') diff --git a/frontends/gtk/gui.c b/frontends/gtk/gui.c index 0ed32e9d6..1f22b6076 100644 --- a/frontends/gtk/gui.c +++ b/frontends/gtk/gui.c @@ -301,12 +301,6 @@ static nserror nsgtk_init(int argc, char** argv, char **respath) LOG("Set CSS DPI to %d", browser_get_dpi()); /* Initialise top level UI elements */ - error = nsgtk_history_init(); - if (error != NSERROR_OK) { - LOG("Unable to initialise global history window."); - return error; - } - error = nsgtk_download_init(); if (error != NSERROR_OK) { LOG("Unable to initialise download window."); @@ -449,7 +443,12 @@ static void gui_quit(void) messages_get_errorcode(res)); } - nsgtk_history_destroy(); + res = nsgtk_global_history_destroy(); + if (res != NSERROR_OK) { + LOG("Error finalising global history viewer: %s", + messages_get_errorcode(res)); + } + nsgtk_hotlist_destroy(); free(nsgtk_config_home); -- cgit v1.2.3