Sort available themes in Menu preferences->Theme
This commit is contained in:
parent
19bf556553
commit
4d4558cc4e
@ -285,7 +285,7 @@ class mintMenuConfig( object ):
|
|||||||
model = Gtk.ListStore(str, str)
|
model = Gtk.ListStore(str, str)
|
||||||
self.builder.get_object("themesCombo").set_model(model)
|
self.builder.get_object("themesCombo").set_model(model)
|
||||||
selected_theme = model.append([_("Desktop theme"), "default"])
|
selected_theme = model.append([_("Desktop theme"), "default"])
|
||||||
for theme in themes:
|
for theme in sorted(themes):
|
||||||
if theme.startswith("/usr/share/themes") and theme.endswith("/gtk-2.0/gtkrc"):
|
if theme.startswith("/usr/share/themes") and theme.endswith("/gtk-2.0/gtkrc"):
|
||||||
theme = theme.replace("/usr/share/themes/", "")
|
theme = theme.replace("/usr/share/themes/", "")
|
||||||
theme = theme.replace("gtk-2.0", "")
|
theme = theme.replace("gtk-2.0", "")
|
||||||
|
Loading…
Reference in New Issue
Block a user