Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Issue 2095001: GTK: Support Ambiance/Radiance and Dust button ordering. (Closed)

Created:
10 years, 7 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
tony, Evan Stade
CC:
chromium-reviews, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

GTK: Support Ambiance/Radiance and Dust button ordering. When running under GNOME, read the gconf key that defines the button placement and lay the close, minimize and maximize buttons out. This can even handle bizarre combinations like putting the close button on the left and the minimize/maximize buttons on the right. When running under anything else, use the default button ordering. BUG=39406 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=47195

Patch Set 1 #

Patch Set 2 : Cleanup #

Patch Set 3 : more cleanup argh #

Total comments: 3

Patch Set 4 : Move the new class into its own file #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -87 lines) Patch
M chrome/browser/gtk/browser_titlebar.h View 1 4 chunks +34 lines, -8 lines 0 comments Download
M chrome/browser/gtk/browser_titlebar.cc View 1 2 3 12 chunks +207 lines, -79 lines 0 comments Download
A chrome/browser/gtk/gconf_titlebar_listener.h View 1 chunk +64 lines, -0 lines 1 comment Download
A chrome/browser/gtk/gconf_titlebar_listener.cc View 1 chunk +117 lines, -0 lines 2 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Elliot Glaysher
10 years, 7 months ago (2010-05-13 18:04:43 UTC) #1
Evan Stade
does this respect Fitt's law for when some button is placed by one of the ...
10 years, 7 months ago (2010-05-13 18:15:50 UTC) #2
Evan Stade
does this respect Fitt's law for when some button is placed by one of the ...
10 years, 7 months ago (2010-05-13 18:15:50 UTC) #3
Elliot Glaysher
On 2010/05/13 18:15:50, Evan Stade wrote: > does this respect Fitt's law for when some ...
10 years, 7 months ago (2010-05-13 19:28:00 UTC) #4
Evan Stade
Mostly LGTM. Can you post screenshots of left-aligned buttons for maximized and not maximized windows, ...
10 years, 7 months ago (2010-05-13 20:30:16 UTC) #5
Elliot Glaysher
I have attached two images. The first shows what happens in RTL mode; we still ...
10 years, 7 months ago (2010-05-13 21:00:19 UTC) #6
use chromium acct.
great. LGTM -- Evan Stade On Thu, May 13, 2010 at 2:00 PM, Elliot Glaysher ...
10 years, 7 months ago (2010-05-13 21:18:12 UTC) #7
tony
10 years, 7 months ago (2010-05-14 01:02:55 UTC) #8
This is great.  Thanks for working on this.  Just a drive-by nit, feel free to
ignore.

Also, do you have any idea how the performance of gconf queries are?  I know we
already load gconf at startup for proxy settings, but how quick are key queries?

http://codereview.chromium.org/2095001/diff/10001/11003
File chrome/browser/gtk/gconf_titlebar_listener.cc (right):

http://codereview.chromium.org/2095001/diff/10001/11003#newcode76
chrome/browser/gtk/gconf_titlebar_listener.cc:76: return;
Nit: This early return seems pointless.

Powered by Google App Engine
This is Rietveld 408576698