From 845932751eb8f6ec642c6f91e74b4a4d32c50154 Mon Sep 17 00:00:00 2001 From: "suzhe@chromium.org" Date: Mon, 28 Jun 2010 18:14:53 +0000 Subject: [Linux]Make the whole infor bar horizontally shrinkable. BUG=39400 TEST=Activate translate bar then try to shrink browser window. Review URL: http://codereview.chromium.org/2858029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51003 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/infobar_gtk.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome') diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc index 435162e..a389853 100644 --- a/chrome/browser/gtk/infobar_gtk.cc +++ b/chrome/browser/gtk/infobar_gtk.cc @@ -40,6 +40,10 @@ InfoBar::InfoBar(InfoBarDelegate* delegate) theme_provider_(NULL) { // Create |hbox_| and pad the sides. hbox_ = gtk_hbox_new(FALSE, kElementPadding); + + // Make the whole infor bar horizontally shrinkable. + gtk_widget_set_size_request(hbox_, 0, -1); + GtkWidget* padding = gtk_alignment_new(0, 0, 1, 1); gtk_alignment_set_padding(GTK_ALIGNMENT(padding), 0, 0, kLeftPadding, kRightPadding); -- cgit v1.1