From 6a4efa35f815b85c5e59b3781263a956fab8d86d Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 20 Feb 2016 18:37:50 +0000 Subject: update gtk resource path setting to use makefile variable --- gtk/gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gtk/gui.c') diff --git a/gtk/gui.c b/gtk/gui.c index 28e5c3c90..7ad18b499 100644 --- a/gtk/gui.c +++ b/gtk/gui.c @@ -116,7 +116,7 @@ nsgtk_init_resource_path(const char *config_home) if (config_home != NULL) { resource_path_len = snprintf(NULL, 0, - "%s:${NETSURFRES}:%s:./gtk/res", + "%s:${NETSURFRES}:%s", config_home, GTK_RESPATH); resource_path = malloc(resource_path_len + 1); @@ -124,12 +124,12 @@ nsgtk_init_resource_path(const char *config_home) return NULL; } snprintf(resource_path, resource_path_len + 1, - "%s:${NETSURFRES}:%s:./gtk/res", + "%s:${NETSURFRES}:%s", config_home, GTK_RESPATH); } else { resource_path_len = snprintf(NULL, 0, - "${NETSURFRES}:%s:./gtk/res", + "${NETSURFRES}:%s", GTK_RESPATH); resource_path = malloc(resource_path_len + 1); if (resource_path == NULL) { @@ -137,7 +137,7 @@ nsgtk_init_resource_path(const char *config_home) } snprintf(resource_path, resource_path_len + 1, - "${NETSURFRES}:%s:./gtk/res", + "${NETSURFRES}:%s", GTK_RESPATH); } -- cgit v1.2.3