summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturedrag.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2018-03-10 18:05:57 +0100
committerCarlos Garnacho <carlosg@gnome.org>2018-04-26 17:59:42 +0200
commit1e6eb1f8b94ad10f30678285860dc24877bbbac3 (patch)
treeeef4b5f579a657072967e7f7dd047494af5add1d /gtk/gtkgesturedrag.c
parentbf82149271b4f6bf6379b22eeea191dffe6823dd (diff)
downloadgtk+-1e6eb1f8b94ad10f30678285860dc24877bbbac3.tar.gz
draggesture: Port to new API model
Diffstat (limited to 'gtk/gtkgesturedrag.c')
-rw-r--r--gtk/gtkgesturedrag.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkgesturedrag.c b/gtk/gtkgesturedrag.c
index 11d7752056..baccf2f2df 100644
--- a/gtk/gtkgesturedrag.c
+++ b/gtk/gtkgesturedrag.c
@@ -195,19 +195,15 @@ gtk_gesture_drag_init (GtkGestureDrag *gesture)
/**
* gtk_gesture_drag_new:
- * @widget: a #GtkWidget
*
* Returns a newly created #GtkGesture that recognizes drags.
*
* Returns: a newly created #GtkGestureDrag
**/
GtkGesture *
-gtk_gesture_drag_new (GtkWidget *widget)
+gtk_gesture_drag_new (void)
{
- g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL);
-
return g_object_new (GTK_TYPE_GESTURE_DRAG,
- "widget", widget,
NULL);
}