[gtk] css provider: Remove outdated version check
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] css provider: Remove outdated version check
- Date: Wed, 8 May 2019 14:34:53 +0000 (UTC)
commit a86160265afd684824b8df4b54efd3d4f43a26af
Author: Matthias Clasen <mclasen redhat com>
Date: Wed May 8 14:33:23 2019 +0000
css provider: Remove outdated version check
When looking for versioned theme files, we were
looking for directories names gtk-4.x for x
bigger than 14, which mades sense for GTK 3,
but we are starting out at 0 again, so remove
this check.
gtk/gtkcssprovider.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gtk/gtkcssprovider.c b/gtk/gtkcssprovider.c
index 50a7bf80a4..62f1759875 100644
--- a/gtk/gtkcssprovider.c
+++ b/gtk/gtkcssprovider.c
@@ -1283,9 +1283,6 @@ _gtk_css_find_theme_dir (const gchar *dir,
for (i = MINOR; i >= 0; i = i - 2)
{
- if (i < 14)
- i = 0;
-
subsubdir = g_strdup_printf ("gtk-4.%d", i);
path = g_build_filename (base, subsubdir, file, NULL);
g_free (subsubdir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]