diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 21:10:31 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-01 21:10:31 +0000 |
commit | 993e3e4526f5fa205d2ec290c4f931d97826c9ee (patch) | |
tree | 2bdc0c25300f93f26504b7c34af695ea0d00fd55 /views/widget | |
parent | b7a763ad855baecbbf22a617164d5b5fd43ae899 (diff) | |
download | chromium_src-993e3e4526f5fa205d2ec290c4f931d97826c9ee.zip chromium_src-993e3e4526f5fa205d2ec290c4f931d97826c9ee.tar.gz chromium_src-993e3e4526f5fa205d2ec290c4f931d97826c9ee.tar.bz2 |
Moves WindowGtk::SetBounds implementation to WidgetGtk as WidgetGetk
needs to deal with windows/popups too.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/118082
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17350 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r-- | views/widget/widget_gtk.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc index 876a130..01b6b87 100644 --- a/views/widget/widget_gtk.cc +++ b/views/widget/widget_gtk.cc @@ -231,7 +231,12 @@ void WidgetGtk::SetBounds(const gfx::Rect& bounds) { parent_widget->PositionChild(widget_, bounds.x(), bounds.y(), bounds.width(), bounds.height()); } else { - NOTIMPLEMENTED(); + GtkWindow* gtk_window = GTK_WINDOW(widget_); + // 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()); } } |