diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 19:41:12 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 19:41:12 +0000 |
commit | 302bfc2a50ee155e3820f580ef2b0ab3fb068268 (patch) | |
tree | d200e81787cfc1200492a4d56cc927c9f7ecc6c7 /chrome/browser/gtk/bookmark_bar_gtk.h | |
parent | 06e6f87a7d99758524cefbd9d234b0635c420dbc (diff) | |
download | chromium_src-302bfc2a50ee155e3820f580ef2b0ab3fb068268.zip chromium_src-302bfc2a50ee155e3820f580ef2b0ab3fb068268.tar.gz chromium_src-302bfc2a50ee155e3820f580ef2b0ab3fb068268.tar.bz2 |
Squash the bookmark bar into the toolbar by 4 pixels.
On windows they do this by having the two views overlap. We can't so instead move the bottom 4 pixels of padding from the toolbar widget into the bookmark bar widget. When the bookmark bar is closed/hidden, it still shows those 4 pixels. When it opens, it is able to make use of those 4 pixels. Since we get 4 extra pixels, we can make the overall height of the bookmark bar 4 pixels less.
BUG=18570
Review URL: http://codereview.chromium.org/178029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25075 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, 3 insertions, 6 deletions
diff --git a/chrome/browser/gtk/bookmark_bar_gtk.h b/chrome/browser/gtk/bookmark_bar_gtk.h index f779a52..0f44bf6 100644 --- a/chrome/browser/gtk/bookmark_bar_gtk.h +++ b/chrome/browser/gtk/bookmark_bar_gtk.h @@ -54,9 +54,6 @@ class BookmarkBarGtk : public AnimationDelegate, // Create the contents of the bookmark bar. void Init(Profile* profile); - // Adds this GTK toolbar into a sizing box. - void AddBookmarkbarToBox(GtkWidget* box); - // Whether the current page is the New Tag Page (which requires different // rendering). bool OnNewTabPage(); @@ -185,9 +182,9 @@ class BookmarkBarGtk : public AnimationDelegate, guint target_type, guint time, BookmarkBarGtk* bar); - // GtkHBox callbacks. - static gboolean OnHBoxExpose(GtkWidget* widget, GdkEventExpose* event, - BookmarkBarGtk* window); + // GtkEventBox callbacks. + static gboolean OnEventBoxExpose(GtkWidget* widget, GdkEventExpose* event, + BookmarkBarGtk* window); // GtkVSeparator callbacks. static gboolean OnSeparatorExpose(GtkWidget* widget, GdkEventExpose* event, |