From 3e2270482f73528949746fc24a01d0f0c01baee8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 15 Jun 2015 13:36:53 +0100 Subject: 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. --- gtk/resources.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/resources.c') 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); -- cgit v1.2.3