summaryrefslogtreecommitdiffstats
path: root/views/widget
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 03:49:49 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 03:49:49 +0000
commit1cd6d7ffcfb20215c225e613a67b39dc5f51c4cf (patch)
treee5675385887bb9b244f10e8f4e5bf2090ef3e135 /views/widget
parent3c615f736d826d651890df71b0775873771aa7c0 (diff)
downloadchromium_src-1cd6d7ffcfb20215c225e613a67b39dc5f51c4cf.zip
chromium_src-1cd6d7ffcfb20215c225e613a67b39dc5f51c4cf.tar.gz
chromium_src-1cd6d7ffcfb20215c225e613a67b39dc5f51c4cf.tar.bz2
Implement custom window shapes as provided by the NonClientView in WindowGtk.
BUG=none TEST=none Review URL: http://codereview.chromium.org/119145 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget')
-rw-r--r--views/widget/widget_gtk.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/views/widget/widget_gtk.cc b/views/widget/widget_gtk.cc
index ee380d3..f1cb67d 100644
--- a/views/widget/widget_gtk.cc
+++ b/views/widget/widget_gtk.cc
@@ -370,6 +370,10 @@ void WidgetGtk::CreateGtkWidget() {
SetViewForNative(child_widget_parent_, this);
}
+
+ // The widget needs to be realized before handlers like size-allocate can
+ // function properly.
+ gtk_widget_realize(widget_);
}
void WidgetGtk::OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation) {