summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturezoom.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-27 14:30:47 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-27 14:33:32 -0400
commit3bb404f40c97f757988551f23fa1434d01000f54 (patch)
treea00e58e42ca5351d73b310116d87dee97031e0d7 /gtk/gtkgesturezoom.c
parente4680d64a0864651557fbf8e04db409c827641a7 (diff)
downloadgtk+-3bb404f40c97f757988551f23fa1434d01000f54.tar.gz
Don't assert in gtk_event_controller_constructed
This prevents some of our generic object implementation tests from working with gesture objects. Instead, add g_return_if_fail checks in all the gesture constructors.
Diffstat (limited to 'gtk/gtkgesturezoom.c')
-rw-r--r--gtk/gtkgesturezoom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c
index a80ebd12bd..02e5a08695 100644
--- a/gtk/gtkgesturezoom.c
+++ b/gtk/gtkgesturezoom.c
@@ -181,6 +181,8 @@ gtk_gesture_zoom_class_init (GtkGestureZoomClass *klass)
GtkGesture *
gtk_gesture_zoom_new (GtkWidget *widget)
{
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+
return g_object_new (GTK_TYPE_GESTURE_ZOOM,
"widget", widget,
NULL);