diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 01:56:59 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 01:56:59 +0000 |
commit | 0e0a3d49dc72974cc622b56c6c160683e03ae564 (patch) | |
tree | d6ff6572e411da9671904505db438441bbe721cd /chrome/browser/gtk | |
parent | 7991a2336f3e5b975d5f31ffa24f129eb8bf32ad (diff) | |
download | chromium_src-0e0a3d49dc72974cc622b56c6c160683e03ae564.zip chromium_src-0e0a3d49dc72974cc622b56c6c160683e03ae564.tar.gz chromium_src-0e0a3d49dc72974cc622b56c6c160683e03ae564.tar.bz2 |
GTK: Erase the thin green line on the floating NTP bookmark bar (un-themed mode).
BUG=26740
Review URL: http://codereview.chromium.org/371005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31193 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r-- | chrome/browser/gtk/bookmark_bar_gtk.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.cc b/chrome/browser/gtk/bookmark_bar_gtk.cc index a544a9b..d4949c7 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.cc +++ b/chrome/browser/gtk/bookmark_bar_gtk.cc @@ -1147,7 +1147,11 @@ gboolean BookmarkBarGtk::OnEventBoxExpose(GtkWidget* widget, return FALSE; gfx::CanvasPaint canvas(event, true); NtpBackgroundUtil::PaintBackgroundDetachedMode(theme_provider, &canvas, - gfx::Rect(widget->allocation), tab_contents_size.height()); + // We can't just use gfx::Rect(widget->allocation) because the x,y for + // the allocation is relative to the parent widget rather than the + // GdkWindow. + gfx::Rect(0, 0, widget->allocation.width, widget->allocation.height), + tab_contents_size.height()); } return FALSE; // Propagate expose to children. |