diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-05-27 14:30:47 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-05-27 14:33:32 -0400 |
commit | 3bb404f40c97f757988551f23fa1434d01000f54 (patch) | |
tree | a00e58e42ca5351d73b310116d87dee97031e0d7 /gtk/gtkgesturerotate.c | |
parent | e4680d64a0864651557fbf8e04db409c827641a7 (diff) | |
download | gtk+-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/gtkgesturerotate.c')
-rw-r--r-- | gtk/gtkgesturerotate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkgesturerotate.c b/gtk/gtkgesturerotate.c index e42f64174e..5b1aa7c917 100644 --- a/gtk/gtkgesturerotate.c +++ b/gtk/gtkgesturerotate.c @@ -188,6 +188,8 @@ gtk_gesture_rotate_class_init (GtkGestureRotateClass *klass) GtkGesture * gtk_gesture_rotate_new (GtkWidget *widget) { + g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); + return g_object_new (GTK_TYPE_GESTURE_ROTATE, "widget", widget, NULL); |