[gnome-tweak-tool/gnome-3-10] Fix detection of icon themes



commit 300253772c165739d41ce59395622ed5a58e11ce
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 16 10:43:26 2013 -0400

    Fix detection of icon themes
    
    GNOME can only deal with icon themes that have an index.theme file
    in their toplevel. It doesn't have any problem per se with a
    cursors/ directory living in the same location. Fix up the
    check to match this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=710275

 gtweak/tweaks/tweak_group_interface.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtweak/tweaks/tweak_group_interface.py b/gtweak/tweaks/tweak_group_interface.py
index 375e449..6103432 100644
--- a/gtweak/tweaks/tweak_group_interface.py
+++ b/gtweak/tweaks/tweak_group_interface.py
@@ -69,7 +69,7 @@ class IconThemeSwitcher(GSettingsComboTweak):
                  os.path.join(os.path.expanduser("~"), ".icons"))
         valid = walk_directories(dirs, lambda d:
                     os.path.isdir(d) and \
-                        not os.path.exists(os.path.join(d, "cursors")))
+                       os.path.exists(os.path.join(d, "index.theme")))
         return valid
 
 class CursorThemeSwitcher(GSettingsComboTweak):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]