GNOME Bugzilla – Bug 612907
Appearance preview does not reflect placement of WM buttons (min/max/close) correctly
Last modified: 2011-03-17 15:08:18 UTC
Forwarded from: https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/532754 Appearance preview does not reflect left-to-right, or ordering of WM action buttons. Ideally the preview should accurately reflect the user's setup and locale (eg. if a right-to-left language is in-use, the positioning of the buttons should also follow what the WM will ultimately draw. ---- Screenshot says it all: since the order/position of Metacity buttons has recently changed, this is not correctly reflected in gnome-appearance theme manager. http://launchpadlibrarian.net/40259083/Screenshot.png
The preview is actually rendered by metacity so it's not a bug in the control-center.
Reassigning back to control center, the button order can be set with meta_preview_set_button_layout(). Setting the button order is easy, but the caching of the previews makes it difficult. When the layout changes the previews need to be regenerated.
Created attachment 165070 [details] [review] Displays the correct button layout in the preview (not working) An attempt at setting the button layout. This patch crashes, haven't been able to work out why. The layout the previews are generated with is stored in gconf and if the layout changes, the previews are regenerated. It appears the async generation code is not re-entrant, so this is not going to work.
gnome-appearance-properties does not exist in GNOME 3 any more, and those bugs are thus obsolete. Theme tweaking feature requests should go to gnome-tweak-tool (in GNOME Bugzilla).