summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/webwidget_host_gtk.cc
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/tools/test_shell/webwidget_host_gtk.cc')
-rw-r--r--webkit/tools/test_shell/webwidget_host_gtk.cc16
1 files changed, 13 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc
index 5ca52e6..fdd9df2 100644
--- a/webkit/tools/test_shell/webwidget_host_gtk.cc
+++ b/webkit/tools/test_shell/webwidget_host_gtk.cc
@@ -83,10 +83,20 @@ void WebWidgetHostGtkSizeAllocate(GtkWidget* widget,
WebWidgetHostGtkSendConfigure(widget);
}
+// Implementation of "remove" for our GtkContainer subclass.
+// This called when plugins shut down. We can just ignore it.
+void WebWidgetHostGtkRemove(GtkContainer* container, GtkWidget* widget) {
+ // Do nothing.
+}
+
// Implementation of the class init function for WebWidgetHostGtk.
-void WebWidgetHostGtkClassInit(GtkWidgetClass* klass) {
- klass->realize = WebWidgetHostGtkRealize;
- klass->size_allocate = WebWidgetHostGtkSizeAllocate;
+void WebWidgetHostGtkClassInit(GtkContainerClass* container_class) {
+ GtkWidgetClass* widget_class =
+ reinterpret_cast<GtkWidgetClass*>(container_class);
+ widget_class->realize = WebWidgetHostGtkRealize;
+ widget_class->size_allocate = WebWidgetHostGtkSizeAllocate;
+
+ container_class->remove = WebWidgetHostGtkRemove;
}
// Constructs the GType for the custom Gtk widget.