Commit 3b551c8c authored by John Stowers's avatar John Stowers

Display default shell theme more similar to other defaults

parent 4620d0b3
......@@ -98,7 +98,7 @@ class ShellThemeTweak(Tweak):
#manually add Adwaita to represent the default
cb = build_combo_box_text(
("", "default"),
("", "<i>Default</i>"),
*[(v,v) for v in valid])
cb.connect('changed', self._on_combo_changed)
self._combo = cb
......@@ -27,9 +27,20 @@ from gtweak.gconf import GConfSetting
from gi.repository import GLib
def make_combo_list_with_default(opts, default, title=True):
Turns a list of values into a list of value,name (where name is the
display name a user will see in a combo box). If a value is opt is
equal to that supplied in default the display name for that value is
modified to "value <i>(default)</i>"
@opts: a list of value
@returns: a list of 2-tuples (value, name)
themes = []
for t in opts:
if t == "default":
if t == "default" and t != default:
#some themes etc are actually called default. Ick. Dont show them if they
#are not the actual default value
if title:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment