diff options
author | Benjamin Otte <otte@redhat.com> | 2018-03-08 23:40:45 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2018-04-26 17:59:41 +0200 |
commit | 91efa37fcbf10e595a4e129f80ae47fc152a37ea (patch) | |
tree | d356dfbd8b0f90051885ad383a41425b30ccf183 /gtk/gtkgesturezoom.c | |
parent | 703d5340f1076994206a83e37f505a4ff8503e2c (diff) | |
download | gtk+-91efa37fcbf10e595a4e129f80ae47fc152a37ea.tar.gz |
zoomgesture: Port to new API model
Diffstat (limited to 'gtk/gtkgesturezoom.c')
-rw-r--r-- | gtk/gtkgesturezoom.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c index 74e9025717..208daf74b2 100644 --- a/gtk/gtkgesturezoom.c +++ b/gtk/gtkgesturezoom.c @@ -218,7 +218,6 @@ gtk_gesture_zoom_class_init (GtkGestureZoomClass *klass) /** * gtk_gesture_zoom_new: - * @widget: a #GtkWidget * * Returns a newly created #GtkGesture that recognizes zoom * in/out gestures (usually known as pinch/zoom). @@ -226,12 +225,9 @@ gtk_gesture_zoom_class_init (GtkGestureZoomClass *klass) * Returns: a newly created #GtkGestureZoom **/ GtkGesture * -gtk_gesture_zoom_new (GtkWidget *widget) +gtk_gesture_zoom_new (void) { - g_return_val_if_fail (GTK_IS_WIDGET (widget), NULL); - return g_object_new (GTK_TYPE_GESTURE_ZOOM, - "widget", widget, NULL); } |