 +}
 +
 +static void
-+gtk_ns_view_dispose (GObject *object)
++gtk_ns_view_finalize (GObject *object)
 +{
 +  GtkNSView *ns_view = GTK_NS_VIEW (object);
 +

+static void       gtk_ns_view_notify        (GObject        *object,
+                                             GParamSpec     *pspec);
+
+static void       gtk_ns_view_map           (GtkWidget      *widget);
+static void       gtk_ns_view_unmap         (GtkWidget      *widget);
+static void       gtk_ns_view_size_request  (GtkWidget      *widget,

+
+  [ns_view->priv->view setNextKeyView:nil];
+
+  g_signal_connect_object (gtk_widget_get_window (toplevel), "native-child-event",
+                           G_CALLBACK (gtk_ns_view_native_child_event),
+                           G_OBJECT (widget), 0);
+
+  GTK_WIDGET_CLASS (gtk_ns_view_parent_class)->map (widget);
+}
