From f4e98eeb6d0f10f8518f19641230c1de91ff43a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Leporcq?= Date: Mon, 15 Jun 2015 21:33:28 +0200 Subject: [PATCH] Fix #22 support of *.svg based unity themes --- common/theme.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common/theme.c b/common/theme.c index b61bfa8..b8741cb 100644 --- a/common/theme.c +++ b/common/theme.c @@ -24,7 +24,8 @@ #include "theme.h" -#define UNITY_TEST_FILE "close_focused_normal.png" +#define UNITY_TEST_FILE_PNG "close_focused_normal.png" +#define UNITY_TEST_FILE_SVG "close_focused_normal.svg" gchar *test_theme_dir (const gchar *theme, const char *themedir, const gchar *file) { @@ -66,7 +67,10 @@ get_unity_theme_dir (const gchar *theme, const gchar *default_theme) } } - abs_path = test_theme_dir (theme, "unity", UNITY_TEST_FILE); + abs_path = test_theme_dir (theme, "unity", UNITY_TEST_FILE_PNG); + + if (!abs_path) + abs_path = test_theme_dir (theme, "unity", UNITY_TEST_FILE_SVG); if (abs_path) return abs_path;