From 7950e31931438b182662ce54c187f288aa613f41 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Thu, 5 Mar 2009 01:30:05 +0000 Subject: Fix a toolbar width TODO. Review URL: http://codereview.chromium.org/39168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10954 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/browser_toolbar_view_gtk.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'chrome/browser') diff --git a/chrome/browser/gtk/browser_toolbar_view_gtk.cc b/chrome/browser/gtk/browser_toolbar_view_gtk.cc index 1dd3ef3..5d043e1 100644 --- a/chrome/browser/gtk/browser_toolbar_view_gtk.cc +++ b/chrome/browser/gtk/browser_toolbar_view_gtk.cc @@ -54,10 +54,9 @@ void BrowserToolbarGtk::Init(Profile* profile) { toolbar_ = gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(toolbar_), 4); - // TODO(evanm): this setting of the x-size to 0 makes it so the window - // can be resized arbitrarily small. We should figure out what we want - // with respect to resizing before engineering around it, though. - gtk_widget_set_size_request(toolbar_, 0, kToolbarHeight); + // Demand we're always at least kToolbarHeight tall. + // -1 for width means "let GTK do its normal sizing". + gtk_widget_set_size_request(toolbar_, -1, kToolbarHeight); toolbar_tooltips_ = gtk_tooltips_new(); -- cgit v1.1