Commit 6c31bb9a authored by ericbsd's avatar ericbsd
Browse files

fix is not none to get the UI working

parent 89446268
...@@ -44,7 +44,7 @@ class StationTweak: ...@@ -44,7 +44,7 @@ class StationTweak:
def init_checkbox(self, schema, key, name): def init_checkbox(self, schema, key, name):
source = Gio.SettingsSchemaSource.get_default() source = Gio.SettingsSchemaSource.get_default()
if source.lookup(schema, True) is None: if source.lookup(schema, True) is not None:
widget = self.builder.get_object(name) widget = self.builder.get_object(name)
value = self.get_bool(schema, key) value = self.get_bool(schema, key)
widget.set_active(value) widget.set_active(value)
...@@ -52,7 +52,7 @@ class StationTweak: ...@@ -52,7 +52,7 @@ class StationTweak:
def init_combobox(self, schema, key, name): def init_combobox(self, schema, key, name):
source = Gio.SettingsSchemaSource.get_default() source = Gio.SettingsSchemaSource.get_default()
if source.lookup(schema, True) is None: if source.lookup(schema, True) is not None:
widget = self.builder.get_object(name) widget = self.builder.get_object(name)
conf = self.get_string(schema, key) conf = self.get_string(schema, key)
index = 0 index = 0
...@@ -284,7 +284,6 @@ class StationTweak: ...@@ -284,7 +284,6 @@ class StationTweak:
dock = False dock = False
if os.path.exists('/usr/local/bin/plank'): if os.path.exists('/usr/local/bin/plank'):
dock = True dock = True
print(dock)
# Do not show Marco configuration options because Marco is not # Do not show Marco configuration options because Marco is not
# currently running. # currently running.
if not marco_mode: if not marco_mode:
...@@ -376,7 +375,7 @@ class StationTweak: ...@@ -376,7 +375,7 @@ class StationTweak:
# interface page # interface page
self.init_checkbox("org.mate.interface", "menus-have-icons", "checkbutton_menuicon") self.init_checkbox("org.mate.interface", "menus-have-icons", "checkbutton_menuicon")
self.init_checkbox("org.mate.interface", "show-input-method-menu","checkbutton_im_menu") self.init_checkbox("org.mate.interface", "show-input-method-menu", "checkbutton_im_menu")
self.init_checkbox("org.mate.interface", "show-unicode-menu", "checkbutton_unicode") self.init_checkbox("org.mate.interface", "show-unicode-menu", "checkbutton_unicode")
self.init_checkbox("org.mate.interface", "buttons-have-icons", "checkbutton_button_icons") self.init_checkbox("org.mate.interface", "buttons-have-icons", "checkbutton_button_icons")
......
Supports Markdown
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