After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 649132 - Add an option to move button(s) on either side of windows
Add an option to move button(s) on either side of windows
Status: RESOLVED FIXED
Product: gnome-tweak-tool
Classification: Applications
Component: general
3.0.x
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Tweak Tool maintainer(s)
GNOME Tweak Tool maintainer(s)
: 724038 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-05-02 01:14 UTC by Alexandre Demers
Modified: 2017-05-29 19:24 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for Gnome Tweak Tool to move buttons to the Left or the Right side of windows (1.54 KB, patch)
2012-06-09 10:35 UTC, Mantas Kriaučiūnas
none Details | Review
windows: Add Left/Right Placement toggle for window buttons (5.67 KB, patch)
2017-05-29 01:17 UTC, Jeremy Bicha
none Details | Review
windows: Add Left/Right Placement toggle for window buttons (5.57 KB, patch)
2017-05-29 17:24 UTC, Jeremy Bicha
none Details | Review
split tweak_group_shell.py into separate source files (16.10 KB, patch)
2017-05-29 17:24 UTC, Jeremy Bicha
none Details | Review
top_bar: Implement mockup from Design Team (2.47 KB, patch)
2017-05-29 17:25 UTC, Jeremy Bicha
none Details | Review
workspaces: Partially implement mockup from Design Team (1.48 KB, patch)
2017-05-29 17:25 UTC, Jeremy Bicha
none Details | Review
power: Implement mockup from Design Team (2.46 KB, patch)
2017-05-29 17:26 UTC, Jeremy Bicha
none Details | Review
top_bar: Implement mockup from Design Team (2.47 KB, patch)
2017-05-29 18:53 UTC, Jeremy Bicha
none Details | Review
workspaces: Partially implement mockup from Design Team (1.46 KB, patch)
2017-05-29 18:54 UTC, Jeremy Bicha
none Details | Review

Description Alexandre Demers 2011-05-02 01:14:24 UTC
add an option under Gnome Tweak Tool to move button(s) to the left side of windows (like Ubuntu does). I know how to change it under gconf-editor, you just have to move the ":" where you want it. It is used to separate left from right buttons.

It could be in the form of a checkbox or a radio button.
Comment 1 Mantas Kriaučiūnas 2012-06-09 10:35:32 UTC
Created attachment 216029 [details] [review]
patch for Gnome Tweak Tool to move buttons to the Left or the Right side of windows

Here is a patch, which adds an option under "Windows" section of Gnome Tweak Tool for moving window buttons to the Left side of windows (like Ubuntu does) or to the Right.
Comment 2 Mantas Kriaučiūnas 2012-06-09 10:38:40 UTC
My patch currently works with Gconf instead of GSettings because latest Ubuntu versions still use Gconf-based Metacity 2.34.1 and Compiz in Ubuntu (Unity interface) also uses Gconf key, not GSettings
Comment 3 John Stowers 2012-06-09 11:31:05 UTC
Review of attachment 216029 [details] [review]:

This just conflicts with a similar option in the Shell page of gnome tweak-tool.

Such an option to switch the side that the buttons lie on needs to be implemented there, and it needs to handle all combinations of metacity/mutter/gsettings/gconf. Unfortunately this is quite hard because Ubuntu decided to stick with old gconf versions.

I will accept a patch that works in all cases, but I will not bother doing it myself, I am tired of working around Ubuntu differences.
Comment 4 Jeremy Bicha 2012-07-19 23:11:18 UTC
Ubuntu 12.10 will use metacity with gsettings so there's no need to bother with gconf. Both Unity and GNOME Fallback use metacity though.

I don't think it's possible to implement both mutter and metacity in the same drop-down setting. At least it would be a bit complicated.
Comment 5 John Stowers 2012-07-19 23:18:35 UTC
(In reply to comment #4)
> Ubuntu 12.10 will use metacity with gsettings so there's no need to bother with
> gconf. Both Unity and GNOME Fallback use metacity though.
> 
> I don't think it's possible to implement both mutter and metacity in the same
> drop-down setting. At least it would be a bit complicated.

Cool.

What is the delta looking like for the rest of the stack - g-s-d and the old keybindings mechanism comes to mind here.
Comment 6 Jeremy Bicha 2012-07-20 01:11:31 UTC
Keybindings for Unity and Compiz will be using gsettings also. That hasn't landed yet so I can't tell you whether Unity will be using org.gnome.desktop.wm.keybindings or something Compiz-specific.

I can't think of any other g-s-d patches that would cause you a problem. Canonical's Desktop Team is skeptical about the ibus work so that particular work may be reverted until 13.04.

There was talk about splitting gnome-control-center into gnome-control-center and ubuntu-control-center but that is waiting on the Compiz gsettings work to land first. I'm not sure whether that split is definitely happening or not as I've not really heard it discussed since UDS 2.5 months ago.
Comment 7 Robert Roth 2014-10-21 18:34:58 UTC
*** Bug 724038 has been marked as a duplicate of this bug. ***
Comment 8 Jeremy Bicha 2017-05-29 01:17:09 UTC
Created attachment 352748 [details] [review]
windows: Add Left/Right Placement toggle for window buttons

Easily switch between Unity-style and GNOME-style placement

This patch depends on the "widgets" and "windows" patches from https://bugzilla.gnome.org/783176
Comment 9 Rui Matos 2017-05-29 15:47:49 UTC
Review of attachment 352748 [details] [review]:

otherwise looks good, thanks

::: gtweak/tweaks/tweak_group_windows.py
@@ -18,2 @@
 import gtweak
 from gtweak.gshellwrapper import GnomeShellFactory

you can remove this import too

@@ +94,3 @@
+        btn1 = Gtk.RadioButton.new_with_label_from_widget(None, _("Left"))
+        btn1.set_property("draw-indicator", False)
+        btn1.set_property("draw-indicator", False)

duped line?

@@ +108,3 @@
+        box_btn.pack_start(btn1, True, True, 0)
+        box_btn.pack_start(btn2, True, True, 0)
+        self.pack_end(box_btn, False, False, 0)

this isn't needed and causes a runtime message inside build_label_beside_widget()
Comment 10 Jeremy Bicha 2017-05-29 15:53:43 UTC
Yes, thank you. I had fixed both those issues locally but hadn't pushed a new patch version here yet.
Comment 11 Jeremy Bicha 2017-05-29 15:59:04 UTC
Attachment 352748 [details] pushed as ca24926 - windows: Add Left/Right Placement toggle for window buttons
Comment 12 Jeremy Bicha 2017-05-29 17:24:10 UTC
Created attachment 352804 [details] [review]
windows: Add Left/Right Placement toggle for window buttons

Easily switch between Unity-style and GNOME-style placement
Comment 13 Jeremy Bicha 2017-05-29 17:24:58 UTC
Created attachment 352805 [details] [review]
split tweak_group_shell.py into separate source files
Comment 14 Jeremy Bicha 2017-05-29 17:25:17 UTC
Created attachment 352806 [details] [review]
top_bar: Implement mockup from Design Team
Comment 15 Jeremy Bicha 2017-05-29 17:25:33 UTC
Created attachment 352807 [details] [review]
workspaces: Partially implement mockup from Design Team

https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/tweak-tool/tweak-tool-wires.png
Comment 16 Jeremy Bicha 2017-05-29 17:26:59 UTC
Created attachment 352808 [details] [review]
power: Implement mockup from Design Team

The dropped settings were dropped from gnome-settings-daemon in 2012
https://git.gnome.org/browse/gnome-settings-daemon/commit/data/?id=a95d9c
https://git.gnome.org/browse/gnome-settings-daemon/commit/data/?id=58cb4e
Comment 17 Jeremy Bicha 2017-05-29 18:53:59 UTC
Created attachment 352815 [details] [review]
top_bar: Implement mockup from Design Team

(Keep "Application Menu" singular for now)
Comment 18 Jeremy Bicha 2017-05-29 18:54:23 UTC
Created attachment 352816 [details] [review]
workspaces: Partially implement mockup from Design Team

(drop extra whitespace from previous version of this patch)
Comment 19 Piotr Drąg 2017-05-29 19:10:27 UTC
(In reply to Jeremy Bicha from comment #16)
> Created attachment 352808 [details] [review] [review]
> power: Implement mockup from Design Team
> 
> The dropped settings were dropped from gnome-settings-daemon in 2012
> https://git.gnome.org/browse/gnome-settings-daemon/commit/data/?id=a95d9c
> https://git.gnome.org/browse/gnome-settings-daemon/commit/data/?id=58cb4e

https://wiki.gnome.org/TranslationProject/DevGuidelines/Don%27t%20mark%20empty%20strings%20for%20translation seems relevant here. :)
Comment 20 Jeremy Bicha 2017-05-29 19:22:29 UTC
Thank you. I had just noticed that issue while trying with a different language, but I hadn't tried to figure out what I had done wrong yet.

I meant to attach these patches to bug 783176 so I'll fix that issue and re-attach the patches there instead.