summaryrefslogtreecommitdiffstats
path: root/views/window/window_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/window/window_gtk.cc')
-rw-r--r--views/window/window_gtk.cc13
1 files changed, 2 insertions, 11 deletions
diff --git a/views/window/window_gtk.cc b/views/window/window_gtk.cc
index 30900df..3979831 100644
--- a/views/window/window_gtk.cc
+++ b/views/window/window_gtk.cc
@@ -41,19 +41,10 @@ gfx::Rect WindowGtk::GetNormalBounds() const {
return GetBounds();
}
-void WindowGtk::SetBounds(const gfx::Rect& bounds) {
- GtkWindow* gtk_window = GetNativeWindow();
- // 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());
-}
-
void WindowGtk::SetBounds(const gfx::Rect& bounds,
gfx::NativeWindow other_window) {
// TODO: need to deal with other_window.
- SetBounds(bounds);
+ WidgetGtk::SetBounds(bounds);
}
void WindowGtk::Show() {
@@ -242,7 +233,7 @@ void WindowGtk::Init(const gfx::Rect& bounds) {
void WindowGtk::SetInitialBounds(const gfx::Rect& create_bounds) {
gfx::Rect saved_bounds(create_bounds.ToGdkRectangle());
if (window_delegate_->GetSavedWindowBounds(&saved_bounds)) {
- SetBounds(saved_bounds);
+ WidgetGtk::SetBounds(saved_bounds);
} else {
if (create_bounds.IsEmpty()) {
SizeWindowToDefault();