Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Loic
station-tweak
Commits
6c31bb9a
Commit
6c31bb9a
authored
Apr 04, 2019
by
ericbsd
Browse files
fix is not none to get the UI working
parent
89446268
Changes
1
Hide whitespace changes
Inline
Side-by-side
station-tweak
View file @
6c31bb9a
...
...
@@ -44,7 +44,7 @@ class StationTweak:
def
init_checkbox
(
self
,
schema
,
key
,
name
):
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
)
value
=
self
.
get_bool
(
schema
,
key
)
widget
.
set_active
(
value
)
...
...
@@ -52,7 +52,7 @@ class StationTweak:
def
init_combobox
(
self
,
schema
,
key
,
name
):
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
)
conf
=
self
.
get_string
(
schema
,
key
)
index
=
0
...
...
@@ -284,7 +284,6 @@ class StationTweak:
dock
=
False
if
os
.
path
.
exists
(
'/usr/local/bin/plank'
):
dock
=
True
print
(
dock
)
# Do not show Marco configuration options because Marco is not
# currently running.
if
not
marco_mode
:
...
...
@@ -376,7 +375,7 @@ class StationTweak:
# interface page
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"
,
"buttons-have-icons"
,
"checkbutton_button_icons"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment