summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 01:21:04 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-23 01:21:04 +0000
commit9d391c62e127172e069f17619a7e9b07328fae56 (patch)
tree4d563f50ea0487e94670b03b31cd22759bd65bba /chrome/browser
parent4349dcf41a371acd0ca85fa48fa46995186d2059 (diff)
downloadchromium_src-9d391c62e127172e069f17619a7e9b07328fae56.zip
chromium_src-9d391c62e127172e069f17619a7e9b07328fae56.tar.gz
chromium_src-9d391c62e127172e069f17619a7e9b07328fae56.tar.bz2
GTK: adjust OTR spy spacing in titlebar.
BUG=36474 TEST=visual comparison with windows Review URL: http://codereview.chromium.org/650192 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/gtk/browser_titlebar.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.cc b/chrome/browser/gtk/browser_titlebar.cc
index 99f87ba..d51341c 100644
--- a/chrome/browser/gtk/browser_titlebar.cc
+++ b/chrome/browser/gtk/browser_titlebar.cc
@@ -52,14 +52,7 @@ const int kNormalVerticalOffset = kTitlebarHeight + kTabOuterThickness;
// A linux specific menu item for toggling window decorations.
const int kShowWindowDecorationsCommand = 200;
-// The following OTR constants copied from opaque_browser_frame_view.cc:
-// In maximized mode, the OTR avatar starts 2 px below the top of the screen, so
-// that it doesn't extend into the "3D edge" portion of the titlebar.
-const int kOTRMaximizedTopSpacing = 2;
-// The OTR avatar ends 2 px above the bottom of the tabstrip (which, given the
-// way the tabstrip draws its bottom edge, will appear like a 1 px gap to the
-// user).
-const int kOTRBottomSpacing = 2;
+const int kOTRBottomSpacing = 1;
// There are 2 px on each side of the OTR avatar (between the frame border and
// it on the left, and between it and the tabstrip on the right).
const int kOTRSideSpacing = 2;
@@ -190,7 +183,7 @@ void BrowserTitlebar::Init() {
GtkWidget* spy_frame = gtk_alignment_new(0.0, 0.0, 1.0, 1.0);
// We use this alignment rather than setting padding on the GtkImage because
// the image's intrinsic padding doesn't clip the pixbuf during painting.
- gtk_alignment_set_padding(GTK_ALIGNMENT(spy_frame), kOTRMaximizedTopSpacing,
+ gtk_alignment_set_padding(GTK_ALIGNMENT(spy_frame), 0,
kOTRBottomSpacing, kOTRSideSpacing, kOTRSideSpacing);
gtk_widget_set_size_request(spy_guy, -1, 0);
gtk_container_add(GTK_CONTAINER(spy_frame), spy_guy);