Control: tag -1 patch
Hello James Cowgill!
Thanks for your bug report.
The new gnome-tweak-tool is looking for a new gsettings attribute
for how you want your titlebar buttons to be placed.
A temporary workaround for this problem (until we have a newer
gsettings-desktop-schemas in debian unstable) is to simply catch
the error and initialize a default titelbar layout.
See attached patch for implementing this solution.
Will upload an updated package with this later if noone else
has a better suggestion or beats me to upload it.
If you want to work around this problem without rebuilding
packages, simply apply changes directly in
/usr/lib/python2.7/dist-packages/gtweak/tweakview.py
Regards,
Andreas Henriksson
diff --git a/gtweak/tweakview.py b/gtweak/tweakview.py
index cfd6b9d..c66e6fb 100644
--- a/gtweak/tweakview.py
+++ b/gtweak/tweakview.py
@@ -71,11 +71,14 @@ class Window(Gtk.ApplicationWindow):
right_header.get_style_context().add_class("titlebar")
right_header.get_style_context().add_class("tweak-titlebar-right")
- layout_desc = Gtk.Settings.get_default().props.gtk_decoration_layout;
- tokens = layout_desc.split(":", 2)
- if tokens != None:
- right_header.props.decoration_layout = ":" + tokens[1]
- left_header.props.decoration_layout = tokens[0]
+ try:
+ layout_desc = Gtk.Settings.get_default().props.gtk_decoration_layout;
+ tokens = layout_desc.split(":", 2)
+ if tokens != None:
+ right_header.props.decoration_layout = ":" + tokens[1]
+ left_header.props.decoration_layout = tokens[0]
+ except AttributeError:
+ left_header.props.show_close_button = False
self.title = Gtk.Label("")
self.title.get_style_context().add_class("title")