summaryrefslogtreecommitdiff
path: root/gtk/resources.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-06-15 13:36:53 +0100
committerVincent Sanders <vince@kyllikki.org>2015-06-17 21:35:40 +0100
commit3e2270482f73528949746fc24a01d0f0c01baee8 (patch)
tree1d6b4914c6cf8b59aaa0c19ba322e4c56eb2a836 /gtk/resources.c
parent59fbd51a77a684c15b189f666e4359bfd820f627 (diff)
downloadnetsurf-3e2270482f73528949746fc24a01d0f0c01baee8.tar.gz
netsurf-3e2270482f73528949746fc24a01d0f0c01baee8.tar.bz2
Make GTK resource handling configurable
This makes the GTK resource handling configurable in the same way as all other pkg-config style feature options. It is now possible to completely disable compiled in resources if wanted as well as forcing inline pixdata on if desired.
Diffstat (limited to 'gtk/resources.c')
-rw-r--r--gtk/resources.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/resources.c b/gtk/resources.c
index e3e044e00..d28414d60 100644
--- a/gtk/resources.c
+++ b/gtk/resources.c
@@ -118,7 +118,6 @@ GdkCursor *nsgtk_create_menu_cursor(void)
static nserror
init_resource(char **respath, struct nsgtk_resource_s *resource)
{
- int resnamelen;
char *resname;
#ifdef WITH_BUILTIN_PIXBUF
if (strncmp(resource->name, "menu_cursor.png", resource->len) == 0) {
@@ -129,6 +128,7 @@ init_resource(char **respath, struct nsgtk_resource_s *resource)
}
#endif
#ifdef WITH_GRESOURCE
+ int resnamelen;
gboolean present;
resnamelen = snprintf(NULL, 0, "/org/netsurf/%s", resource->name);