summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 20:12:25 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-29 20:12:25 +0000
commit825dd109a3acdcf2640c531068a602dd8f40a196 (patch)
treee4f785874ce02c8d8110e793996019a486e2f8bf /chrome/browser/gtk
parent97cd4aca5dac2e27970580aa74db317542d3856c (diff)
downloadchromium_src-825dd109a3acdcf2640c531068a602dd8f40a196.zip
chromium_src-825dd109a3acdcf2640c531068a602dd8f40a196.tar.gz
chromium_src-825dd109a3acdcf2640c531068a602dd8f40a196.tar.bz2
Move the tabstrip to the right one pixel so our tab placement
matches up with Windows. BUG=17915 Review URL: http://codereview.chromium.org/160281 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21986 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/browser_titlebar.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/chrome/browser/gtk/browser_titlebar.cc b/chrome/browser/gtk/browser_titlebar.cc
index c745b1c..16b7e92 100644
--- a/chrome/browser/gtk/browser_titlebar.cc
+++ b/chrome/browser/gtk/browser_titlebar.cc
@@ -49,6 +49,11 @@ const int kOTRSideSpacing = 2;
// titlebar is showing.
const int kFrameBorderThickness = 4;
+// The left padding of the tab strip. In Views, the tab strip has a left
+// margin of FrameBorderThickness + kClientEdgeThickness. This offset is to
+// account for kClientEdgeThickness.
+const int kTabStripLeftPadding = 1;
+
gboolean OnMouseMoveEvent(GtkWidget* widget, GdkEventMotion* event,
BrowserWindowGtk* browser_window) {
// Reset to the default mouse cursor.
@@ -178,9 +183,10 @@ void BrowserTitlebar::UpdateCustomFrame(bool use_custom_frame) {
void BrowserTitlebar::UpdateTitlebarAlignment() {
if (using_custom_frame_ && !browser_window_->IsMaximized()) {
gtk_alignment_set_padding(GTK_ALIGNMENT(titlebar_alignment_),
- kTitlebarHeight, 0, 0, 0);
+ kTitlebarHeight, 0, kTabStripLeftPadding, 0);
} else {
- gtk_alignment_set_padding(GTK_ALIGNMENT(titlebar_alignment_), 0, 0, 0, 0);
+ gtk_alignment_set_padding(GTK_ALIGNMENT(titlebar_alignment_), 0, 0,
+ kTabStripLeftPadding, 0);
}
int close_button_width = close_button_default_width_;