diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 20:15:06 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-14 20:15:06 +0000 |
commit | 71209500be9de1ac73329d4694b4508db31561ce (patch) | |
tree | cb7f3995151b278f9b7048323aafe2bfd7b7bd3b /chrome/browser/gtk/bookmark_bar_gtk.h | |
parent | 4363d13f155fd3eabacffce58a31b1d0dbfd0368 (diff) | |
download | chromium_src-71209500be9de1ac73329d4694b4508db31561ce.zip chromium_src-71209500be9de1ac73329d4694b4508db31561ce.tar.gz chromium_src-71209500be9de1ac73329d4694b4508db31561ce.tar.bz2 |
GTK Themes: Put the bookmark bar in a event box to prevent leaking.
Some engines (clearlooks) query the bg color of a widget directly, so wrap the bookmarkbar in an event box so that the bg value set in browser_window_gtk.cc doesn't leak through.
http://crbug.com/16382
Review URL: http://codereview.chromium.org/155504
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20643 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/bookmark_bar_gtk.h')
-rw-r--r-- | chrome/browser/gtk/bookmark_bar_gtk.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h index 102a646..0c2aa39 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.h +++ b/chrome/browser/gtk/bookmark_bar_gtk.h @@ -209,9 +209,12 @@ class BookmarkBarGtk : public AnimationDelegate, // shown. This is owned by the Profile. BookmarkModel* model_; - // Container that has all the individual members of - // |current_bookmark_buttons_| as children. - OwnedWidgetGtk bookmark_hbox_; + // Contains |bookmark_hbox_|. Event box exists to prevent leakage of + // background color from the toplevel application window's GDK window. + OwnedWidgetGtk event_box_; + + // Used to position all children. + GtkWidget* bookmark_hbox_; // A GtkLabel to display when there are no bookmark buttons to display. GtkWidget* instructions_; |