summaryrefslogtreecommitdiff
path: root/gtk/gtkgestureswipe.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-08 23:49:41 +0100
committerCarlos Garnacho <carlosg@gnome.org>2018-04-26 17:59:41 +0200
commit66223aaa08e2343eebe6a6b241212aaa5a237b14 (patch)
tree7c587948dc8534db265ec961125d1472014aff79 /gtk/gtkgestureswipe.c
parent91efa37fcbf10e595a4e129f80ae47fc152a37ea (diff)
downloadgtk+-66223aaa08e2343eebe6a6b241212aaa5a237b14.tar.gz
swipegesture: Port to new API model
Diffstat (limited to 'gtk/gtkgestureswipe.c')
-rw-r--r--gtk/gtkgestureswipe.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkgestureswipe.c b/gtk/gtkgestureswipe.c
index 15872f8096..83bc65653e 100644
--- a/gtk/gtkgestureswipe.c
+++ b/gtk/gtkgestureswipe.c
@@ -252,19 +252,15 @@ gtk_gesture_swipe_init (GtkGestureSwipe *gesture)
/**
* gtk_gesture_swipe_new:
- * @widget: a #GtkWidget
*
* Returns a newly created #GtkGesture that recognizes swipes.
*
* Returns: a newly created #GtkGestureSwipe
**/
GtkGesture *
-gtk_gesture_swipe_new (GtkWidget *widget)
+gtk_gesture_swipe_new (void)
{
- g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-
return g_object_new (GTK_TYPE_GESTURE_SWIPE,
- "widget", widget,
NULL);
}