diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 01:30:05 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-05 01:30:05 +0000 |
commit | 7950e31931438b182662ce54c187f288aa613f41 (patch) | |
tree | 38ca696dfb2be45bcc9fffb0e15b969ae4fcc476 /chrome | |
parent | 116569a0b372a52f2640285d32c29f7661b5957c (diff) | |
download | chromium_src-7950e31931438b182662ce54c187f288aa613f41.zip chromium_src-7950e31931438b182662ce54c187f288aa613f41.tar.gz chromium_src-7950e31931438b182662ce54c187f288aa613f41.tar.bz2 |
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
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/gtk/browser_toolbar_view_gtk.cc | 7 |
1 files changed, 3 insertions, 4 deletions
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(); |