From f8e8d016d02967756c09fd989ec1f48747920456 Mon Sep 17 00:00:00 2001 From: "estade@chromium.org" Date: Mon, 13 Jul 2009 23:43:24 +0000 Subject: 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 --- chrome/browser/gtk/infobar_gtk.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'chrome/browser') 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(); -- cgit v1.1