summaryrefslogtreecommitdiff
path: root/gtk/gui.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2011-09-24 09:24:13 +0000
committerVincent Sanders <vince@netsurf-browser.org>2011-09-24 09:24:13 +0000
commit7334ec404e2ff3b3e502bb366afac376b7e6262e (patch)
tree6913e5444fca07e116679232dc769d5666963540 /gtk/gui.h
parent9854ad631326d19fed5243b51716b3606fb2484c (diff)
downloadnetsurf-7334ec404e2ff3b3e502bb366afac376b7e6262e.tar.gz
netsurf-7334ec404e2ff3b3e502bb366afac376b7e6262e.tar.bz2
reduce to a single global structure for glade file locations
svn path=/trunk/netsurf/; revision=12872
Diffstat (limited to 'gtk/gui.h')
-rw-r--r--gtk/gui.h23
1 files changed, 16 insertions, 7 deletions
diff --git a/gtk/gui.h b/gtk/gui.h
index 9035d8873..40f41a078 100644
--- a/gtk/gui.h
+++ b/gtk/gui.h
@@ -31,13 +31,22 @@
#include <gtk/gtk.h>
#include <glade/glade.h>
-extern char *glade_netsurf_file_location;
-extern char *glade_password_file_location;
-extern char *glade_warning_file_location;
-extern char *glade_login_file_location;
-extern char *glade_ssl_file_location;
-extern char *glade_toolbar_file_location;
-extern char *glade_options_file_location;
+struct glade_file_location_s {
+ char *netsurf;
+ char *password;
+ char *warning;
+ char *login;
+ char *ssl;
+ char *toolbar;
+ char *options;
+ char *downloads;
+ char *history;
+ char *hotlist;
+ char *cookies;
+};
+
+/** location of all glade files. */
+extern struct glade_file_location_s *glade_file_location;
extern char *languages_file_location;
extern char *toolbar_indices_file_location;