diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-27 18:06:07 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-27 18:07:00 +0100 |
commit | 55669387ffcb802307e91deb7027f17b8de20e00 (patch) | |
tree | c567160e413d1fdc3160708f98e1120b835fa791 /gtk/theme.c | |
parent | 06a1d75d52dc533474194c0c9b33eecf09b59068 (diff) | |
download | netsurf-55669387ffcb802307e91deb7027f17b8de20e00.tar.gz netsurf-55669387ffcb802307e91deb7027f17b8de20e00.tar.bz2 |
clean up gtk scaffolding interface, remove lots of cruft and globals
Diffstat (limited to 'gtk/theme.c')
-rw-r--r-- | gtk/theme.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/theme.c b/gtk/theme.c index adc434183..dd034ac8b 100644 --- a/gtk/theme.c +++ b/gtk/theme.c @@ -161,7 +161,7 @@ static bool nsgtk_theme_verify(const char *themename) void nsgtk_theme_init(void) { int theme; - nsgtk_scaffolding *list = scaf_list; + struct nsgtk_scaffolding *list; FILE *fp; char buf[50]; int row_count = 0; @@ -194,6 +194,7 @@ void nsgtk_theme_init(void) } fclose(fp); + list = nsgtk_scaffolding_iterate(NULL); while (list != NULL) { nsgtk_theme_implement(list); list = nsgtk_scaffolding_iterate(list); @@ -287,7 +288,7 @@ void nsgtk_theme_add(const char *themename) * sets the images for a particular scaffolding according to the current theme */ -void nsgtk_theme_implement(struct gtk_scaffolding *g) +void nsgtk_theme_implement(struct nsgtk_scaffolding *g) { struct nsgtk_theme *theme[IMAGE_SET_COUNT]; int i; |