eventcontroller: Chain up on constructed

https://bugzilla.gnome.org/show_bug.cgi?id=745225
This commit is contained in:
Debarshi Ray 2015-03-01 13:35:02 +01:00
parent 7c4bf742e8
commit 0910eaf6fe

View File

@ -115,6 +115,8 @@ gtk_event_controller_constructed (GObject *object)
GtkEventController *controller = GTK_EVENT_CONTROLLER (object);
GtkEventControllerPrivate *priv;
G_OBJECT_CLASS (gtk_event_controller_parent_class)->constructed (object);
priv = gtk_event_controller_get_instance_private (controller);
if (priv->widget)
_gtk_widget_add_controller (priv->widget, controller);