summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturedrag.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/gtkgesturedrag.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/gtkgesturedrag.c')
-rw-r--r--gtk/gtkgesturedrag.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c
index 3f8f1e1d71..0b53285cee 100644
--- a/gtk/gtkgesturedrag.c
+++ b/gtk/gtkgesturedrag.c
@@ -186,6 +186,8 @@ gtk_gesture_drag_init (GtkGestureDrag *gesture)
GtkGesture *
gtk_gesture_drag_new (GtkWidget *widget)
{
+ g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
+
return g_object_new (GTK_TYPE_GESTURE_DRAG,
"widget", widget,
NULL);