Sort available themes in Menu preferences->Theme

This commit is contained in:
James Lu 2015-03-14 19:46:07 -07:00
parent 19bf556553
commit 4d4558cc4e

View File

@ -285,7 +285,7 @@ class mintMenuConfig( object ):
model = Gtk.ListStore(str, str)
self.builder.get_object("themesCombo").set_model(model)
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"):
theme = theme.replace("/usr/share/themes/", "")
theme = theme.replace("gtk-2.0", "")