summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk/infobar_gtk.cc
diff options
context:
space:
mode:
authorsuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 18:14:53 +0000
committersuzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-28 18:14:53 +0000
commit845932751eb8f6ec642c6f91e74b4a4d32c50154 (patch)
tree35450552ac83ad630a3cc79c0f539e8f7aee70e3 /chrome/browser/gtk/infobar_gtk.cc
parente7e5cfb5f44adb69cb4bd55eb1436d0ce353b474 (diff)
downloadchromium_src-845932751eb8f6ec642c6f91e74b4a4d32c50154.zip
chromium_src-845932751eb8f6ec642c6f91e74b4a4d32c50154.tar.gz
chromium_src-845932751eb8f6ec642c6f91e74b4a4d32c50154.tar.bz2
[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
Diffstat (limited to 'chrome/browser/gtk/infobar_gtk.cc')
-rw-r--r--chrome/browser/gtk/infobar_gtk.cc4
1 files changed, 4 insertions, 0 deletions
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);