diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 18:27:27 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-04 18:27:27 +0000 |
commit | 03c3b1e4170e845842833ad64cf36676043a357a (patch) | |
tree | 6d215da94ba60e53c6023a5b0ace750bd4a0e3ff /views/widget | |
parent | 6254686d113f977626e824b02e8cb676556734ec (diff) | |
download | chromium_src-03c3b1e4170e845842833ad64cf36676043a357a.zip chromium_src-03c3b1e4170e845842833ad64cf36676043a357a.tar.gz chromium_src-03c3b1e4170e845842833ad64cf36676043a357a.tar.bz2 |
Implement window state restoration for the views-gtk window.
Allows the window to be resized smaller than its current size by setting a minimum size before initiating the drag.
Fixes a crash in TabContentsViewGtk due to a NULL delegate deref.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/118227
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r-- | views/widget/widget_gtk.cc | 1 | ||||
-rw-r--r-- | views/widget/widget_gtk.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index f1cb67d..b105af8 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -241,7 +241,6 @@ void WidgetGtk::SetBounds(const gfx::Rect& bounds) { // TODO: this may need to set an initial size if not showing. // TODO: need to constrain based on screen size. gtk_window_resize(gtk_window, bounds.width(), bounds.height()); - gtk_window_move(gtk_window, bounds.x(), bounds.y()); } } diff --git a/views/widget/widget_gtk.h b/views/widget/widget_gtk.h index 3fd866b..6bd501e 100644 --- a/views/widget/widget_gtk.h +++ b/views/widget/widget_gtk.h @@ -138,6 +138,7 @@ class WidgetGtk : public Widget, public MessageLoopForUI::Observer { static void SetRootViewForWidget(GtkWidget* widget, RootView* root_view); // A set of static signal handlers that bridge + // TODO(beng): alphabetize! static void CallSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); static gboolean CallPaint(GtkWidget* widget, GdkEventExpose* event); static gboolean CallEnterNotify(GtkWidget* widget, GdkEventCrossing* event); |