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

Unified Diff: chrome/browser/gtk/nine_box.cc

Issue 63148: linux: offset toolbar graphic so tabs merge in properly. (Closed)
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/nine_box.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/nine_box.cc
diff --git a/chrome/browser/gtk/nine_box.cc b/chrome/browser/gtk/nine_box.cc
index 5b8e45f0f79fab3987d9a4f429cb022aa31a9571..e2c42f6598ea1daee669b72c40a77fec2f5f0369 100644
--- a/chrome/browser/gtk/nine_box.cc
+++ b/chrome/browser/gtk/nine_box.cc
@@ -68,7 +68,7 @@ void NineBox::RenderToWidget(GtkWidget* dst) {
if (images[0])
DrawPixbuf(dst, images[0], 0, 0);
if (images[1])
- RenderTopCenterStrip(dst, x1, x2);
+ RenderTopCenterStrip(dst, x1, x2, 0);
if (images[2])
DrawPixbuf(dst, images[2], x2, 0);
@@ -106,10 +106,10 @@ void NineBox::RenderToWidget(GtkWidget* dst) {
DrawPixbuf(dst, images[2], x2, y2);
}
-void NineBox::RenderTopCenterStrip(GtkWidget* dst, int x1, int x2) {
+void NineBox::RenderTopCenterStrip(GtkWidget* dst, int x1, int x2, int y1) {
TileImage(dst, images_[1],
- x1, 0,
- x2, 0);
+ x1, y1,
+ x2, y1);
}
void NineBox::TileImage(GtkWidget* dst, GdkPixbuf* src,
« no previous file with comments | « chrome/browser/gtk/nine_box.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698