diff --git a/desktop/browser.c b/desktop/browser.c index b075bcb15..f7acec491 100644 --- a/desktop/browser.c +++ b/desktop/browser.c @@ -67,6 +67,7 @@ #include "desktop/scrollbar.h" #include "desktop/selection.h" #include "desktop/plotters.h" +#include "desktop/theme.h" #include "desktop/gui_misc.h" #include "desktop/gui_window.h" #include "desktop/gui_internal.h" diff --git a/desktop/browser.h b/desktop/browser.h index 8757474fb..c384c7f65 100644 --- a/desktop/browser.h +++ b/desktop/browser.h @@ -651,20 +651,6 @@ bool browser_window_is_frameset(struct browser_window *bw); nserror browser_window_get_scrollbar_type(struct browser_window *bw, browser_scrolling *h, browser_scrolling *v); - -/** - * Dump debug info concerning the browser window's contents to file - * - * \param bw The browser window - * \param f The file to dump to - */ -nserror browser_window_debug_dump(struct browser_window *bw, FILE *f, enum content_debug op); - -/* In platform specific theme_install.c. */ -#ifdef WITH_THEME_INSTALL -void theme_install_start(struct hlcache_handle *c); -#endif - /** * Set the DPI of the browser. * @@ -679,4 +665,12 @@ nserror browser_set_dpi(int dpi); */ int browser_get_dpi(void); +/** + * Dump debug info concerning the browser window's contents to file + * + * \param bw The browser window + * \param f The file to dump to + */ +nserror browser_window_debug_dump(struct browser_window *bw, FILE *f, enum content_debug op); + #endif diff --git a/desktop/theme.h b/desktop/theme.h new file mode 100644 index 000000000..4eb19ba74 --- /dev/null +++ b/desktop/theme.h @@ -0,0 +1,31 @@ +/* + * Copyright 2014 Vincent Sanders + * + * This file is part of NetSurf, http://www.netsurf-browser.org/ + * + * NetSurf is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * NetSurf is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +/** \file + * GUI Themeing interface. + */ + +#ifndef _NETSURF_DESKTOP_THEME_H_ +#define _NETSURF_DESKTOP_THEME_H_ + +/* In platform specific theme_install.c. */ + +void theme_install_start(struct hlcache_handle *c); + + +#endif diff --git a/gtk/theme.c b/gtk/theme.c index e7f292b88..d793626ae 100644 --- a/gtk/theme.c +++ b/gtk/theme.c @@ -29,6 +29,7 @@ #include "utils/messages.h" #include "utils/utils.h" #include "desktop/browser.h" +#include "desktop/theme.h" #include "content/content.h" #include "content/content_type.h" #include "content/hlcache.h" diff --git a/riscos/theme_install.c b/riscos/theme_install.c index f29596c88..c161943ba 100644 --- a/riscos/theme_install.c +++ b/riscos/theme_install.c @@ -32,6 +32,7 @@ #include "content/content.h" #include "content/hlcache.h" #include "desktop/browser.h" +#include "desktop/theme.h" #include "riscos/dialog.h" #include "riscos/gui.h"