diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-08-01 00:58:42 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-08-01 01:00:13 +0100 |
commit | 58eea873f875b58050a01478b4aaed0d75135e9a (patch) | |
tree | 50c532e971a097a756b7391de97960316b957ae8 /gtk/gui.c | |
parent | 43fea75b7290cdcbfafa8e159dc3832581352755 (diff) | |
download | netsurf-58eea873f875b58050a01478b4aaed0d75135e9a.tar.gz netsurf-58eea873f875b58050a01478b4aaed0d75135e9a.tar.bz2 |
rationalise source view
Diffstat (limited to 'gtk/gui.c')
-rw-r--r-- | gtk/gui.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -208,6 +208,11 @@ nsgtk_new_ui(char **respath, const char *name, GtkBuilder **pglade) if (pglade != NULL) { *pglade = builder; + } else { + /* release our reference to the builder if it is not + * being used. + */ + g_object_unref(G_OBJECT(builder)); } return filepath; @@ -237,6 +242,7 @@ nsgtk_init_glade(char **respath) glade_file_location->options = nsgtk_new_ui(respath, "options", NULL); glade_file_location->hotlist = nsgtk_new_ui(respath, "hotlist", NULL); glade_file_location->cookies = nsgtk_new_ui(respath, "cookies", NULL); + glade_file_location->viewdata = nsgtk_new_ui(respath, "viewdata", NULL); glade_file_location->warning = nsgtk_new_ui(respath, "warning", &gladeWarning); nsgtk_warning_window = GTK_WINDOW(gtk_builder_get_object(gladeWarning, "wndWarning")); |