[libdazzle/libdazzle-3-26] themes: use trailing / for various resource paths
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle/libdazzle-3-26] themes: use trailing / for various resource paths
- Date: Thu, 11 Jan 2018 01:04:29 +0000 (UTC)
commit 036f0f793ce4741854f0503cbcf028932231b8b5
Author: Christian Hergert <chergert redhat com>
Date: Mon Nov 13 05:24:41 2017 -0800
themes: use trailing / for various resource paths
src/theming/dzl-theme-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/theming/dzl-theme-manager.c b/src/theming/dzl-theme-manager.c
index 147d943..b7c40e6 100644
--- a/src/theming/dzl-theme-manager.c
+++ b/src/theming/dzl-theme-manager.c
@@ -108,7 +108,7 @@ dzl_theme_manager_add_resources (DzlThemeManager *self,
* current application theme, using @resource_path/css as the base directory
* to locate theming files.
*/
- css_dir = g_build_filename (resource_path, "themes", NULL);
+ css_dir = g_build_path ("/", resource_path, "themes/", NULL);
g_debug ("Including CSS overrides from %s", css_dir);
provider = dzl_css_provider_new (css_dir);
g_hash_table_insert (self->providers_by_path, g_strdup (resource_path), g_object_ref (provider));
@@ -120,7 +120,7 @@ dzl_theme_manager_add_resources (DzlThemeManager *self,
* Add the icons sub-directory so that Gtk can locate the themed
* icons (svg, png, etc).
*/
- icons_dir = g_build_filename (real_path, "icons", NULL);
+ icons_dir = g_build_path ("/", real_path, "icons/", NULL);
g_debug ("Loading icon resources from %s", icons_dir);
if (!g_str_equal (real_path, resource_path))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]