[gnome-tweak-tool] Fix detection of icon themes



commit f71f07894cdd56bc2389bbbee14a72cc14d7c23a
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]