diff options
author | suzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 16:33:55 +0000 |
---|---|---|
committer | suzhe@chromium.org <suzhe@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-18 16:33:55 +0000 |
commit | ae272cbc48e7618aac9cd29a0e946777b9f7efcf (patch) | |
tree | 4e44d815fbc14a52e80835b177c591acad126179 /chrome/browser/gtk/browser_window_gtk.cc | |
parent | 9de65c8b3f17f28ff7edebb63f0922f5734bf55b (diff) | |
download | chromium_src-ae272cbc48e7618aac9cd29a0e946777b9f7efcf.zip chromium_src-ae272cbc48e7618aac9cd29a0e946777b9f7efcf.tar.gz chromium_src-ae272cbc48e7618aac9cd29a0e946777b9f7efcf.tar.bz2 |
Fix issue 11258: Linux: gracefully handle small browser window
TODO: Make location bar to be freely shrinkable. Will be addressed in another CL.
BUG=11258
TEST=See bug report.
Review URL: http://codereview.chromium.org/507022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34954 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_window_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc index 1279dac..83c4d52 100644 --- a/chrome/browser/gtk/browser_window_gtk.cc +++ b/chrome/browser/gtk/browser_window_gtk.cc @@ -1583,14 +1583,6 @@ void BrowserWindowGtk::BookmarkBarIsFloating(bool is_floating) { } void BrowserWindowGtk::SetGeometryHints() { - // Do not allow the user to resize us arbitrarily small. When using the - // custom frame, the window can disappear entirely while resizing, or get - // to a size that's very hard to resize. - GdkGeometry geometry; - geometry.min_width = 100; - geometry.min_height = 100; - gtk_window_set_geometry_hints(window_, NULL, &geometry, GDK_HINT_MIN_SIZE); - // If we call gtk_window_maximize followed by gtk_window_present, compiz gets // confused and maximizes the window, but doesn't set the // GDK_WINDOW_STATE_MAXIMIZED bit. So instead, we keep track of whether to |