GNOME Bugzilla – Bug 689358
Tweak the window buttons based on the mode
Last modified: 2012-12-02 13:49:56 UTC
The proposed replaced for the fallback session will run gnome-shell in a different mode. It will use a tiny extension to add the minimize (and maximize?) buttons to the titlebar by default (bug 689275). Therefore the ShowWindowButtons tweak should differentiate between the vanilla GNOME Shell mode and the fallback replacement mode (which is yet to be named). An org.gnome.Shell.Mode property was added for this: bug 689300.
Created attachment 230303 [details] [review] Choose the schema for window buttons tweak based on the session mode In addition to the vanilla GNOME Shell modes, it will now have a fallback replacement mode, which uses a different schema for the button-layout key. Choose the schema depending on the value of the org.gnome.Shell.Mode property.
Currently I am reading the mode only once, so if someone restarts gnome-shell manually in a different mode then it will not be detected unless the tweak-tool is restarted. This is what we have been doing for the version, so I kept it simple and did the same.
Attachment 230303 [details] pushed as f2d8f43 - Choose the schema for window buttons tweak based on the session mode