--- /rofs/usr/share/pyshared/gtweak/tweaks/tweak_windows.py	2012-05-26 14:30:42.000000000 +0000
+++ ./tweak_windows.py	2012-06-09 09:36:26.632250393 +0000
@@ -18,6 +18,8 @@
 import os.path
 
 import gtweak
+from gtweak.widgets import GConfComboTweak
+from gtweak.gconf import GConfSetting
 from gtweak.utils import walk_directories, make_combo_list_with_default
 from gtweak.tweakmodel import TWEAK_GROUP_WINDOWS, TWEAK_GROUP_THEME
 from gtweak.widgets import GSettingsComboTweak, GSettingsComboEnumTweak
@@ -38,10 +40,20 @@
                     os.path.exists(os.path.join(d, "metacity-1")))
         return valid
 
+class ShowWindowButtons(GConfComboTweak):
+     def __init__(self, **options):
+        GConfComboTweak.__init__(self,
+            "/apps/metacity/general/button_layout",
+            str,
+             (('close,minimize,maximize:', 'Left'),
+             ('menu:minimize,maximize,close', 'Right')),
+            **options)
+
 TWEAKS = (
     WindowThemeSwitcher(group_name=TWEAK_GROUP_THEME),
     GSettingsComboEnumTweak("org.gnome.desktop.wm.preferences", "action-double-click-titlebar", group_name=TWEAK_GROUP_WINDOWS),
     GSettingsComboEnumTweak("org.gnome.desktop.wm.preferences", "action-middle-click-titlebar", group_name=TWEAK_GROUP_WINDOWS),
     GSettingsComboEnumTweak("org.gnome.desktop.wm.preferences", "action-right-click-titlebar", group_name=TWEAK_GROUP_WINDOWS),
     GSettingsComboEnumTweak("org.gnome.desktop.wm.preferences", "focus-mode", group_name=TWEAK_GROUP_WINDOWS),
+    ShowWindowButtons(group_name=TWEAK_GROUP_WINDOWS),
 )
