diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 23:43:24 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-13 23:43:24 +0000 |
commit | f8e8d016d02967756c09fd989ec1f48747920456 (patch) | |
tree | 65e990234b0a031bb13fbea1fbfdd05247aa7ee0 /chrome/browser | |
parent | ba7a68dfbf6f30e5b3efc3f5034499a952463d96 (diff) | |
download | chromium_src-f8e8d016d02967756c09fd989ec1f48747920456.zip chromium_src-f8e8d016d02967756c09fd989ec1f48747920456.tar.gz chromium_src-f8e8d016d02967756c09fd989ec1f48747920456.tar.bz2 |
Set infobar height on a different widget.
Honestly I'm not completely sure why this is happening, all I know is the internal widget isn't getting sized as large as we want it, so I changed it to take a more direct action to set the size.
BUG=16412
TEST=go to c, see infobar, switch tabs and go back and re-look at infobar. Should look same, with no 4 pixel strip of plainness.
Review URL: http://codereview.chromium.org/149579
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20569 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/gtk/infobar_gtk.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc index 31e86a5..c97f65b 100644 --- a/chrome/browser/gtk/infobar_gtk.cc +++ b/chrome/browser/gtk/infobar_gtk.cc @@ -77,10 +77,11 @@ InfoBar::InfoBar(InfoBarDelegate* delegate) G_CALLBACK(OnBackgroundExpose), NULL); gtk_container_add(GTK_CONTAINER(padding), hbox_); gtk_container_add(GTK_CONTAINER(bg_box), padding); + // The -1 on the kInfoBarHeight is to account for the border. + gtk_widget_set_size_request(bg_box, -1, kInfoBarHeight - 1); border_bin_.Own(gtk_util::CreateGtkBorderBin(bg_box, &kBorderColor, 0, 1, 0, 0)); - gtk_widget_set_size_request(border_bin_.get(), -1, kInfoBarHeight); // Add the icon on the left, if any. SkBitmap* icon = delegate->GetIcon(); |