summaryrefslogtreecommitdiff
path: root/gtk/gtkgesturezoom.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-05-27 12:45:04 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-05-27 13:17:34 -0400
commit4ce2f3e7696f5a36c456ecd196b2d0a2ed0c4b3c (patch)
treeac073d26e05529e23dc094f3a8ee8d4e6328e076 /gtk/gtkgesturezoom.c
parent7fa02287556131aa66a5062fb091bdd3f15c360b (diff)
downloadgtk+-4ce2f3e7696f5a36c456ecd196b2d0a2ed0c4b3c.tar.gz
Silence gtk-doc warnings
Diffstat (limited to 'gtk/gtkgesturezoom.c')
-rw-r--r--gtk/gtkgesturezoom.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gtk/gtkgesturezoom.c b/gtk/gtkgesturezoom.c
index 6fef52195b..a80ebd12bd 100644
--- a/gtk/gtkgesturezoom.c
+++ b/gtk/gtkgesturezoom.c
@@ -189,13 +189,12 @@ gtk_gesture_zoom_new (GtkWidget *widget)
/**
* gtk_gesture_zoom_get_scale_delta:
* @gesture: a #GtkGestureZoom
- * @scale: (out) (transfer none): zoom delta
*
* If @gesture is active, this function returns the zooming difference
* since the gesture was recognized (hence the starting point is
* considered 1:1). If @gesture is not active, 1 is returned.
*
- * Returns: %TRUE if @controller is recognizing a zoom gesture
+ * Returns: the scale delta
*
* Since: 3.14
**/
@@ -205,10 +204,10 @@ gtk_gesture_zoom_get_scale_delta (GtkGestureZoom *gesture)
GtkGestureZoomPrivate *priv;
gdouble distance;
- g_return_val_if_fail (GTK_IS_GESTURE_ZOOM (gesture), FALSE);
+ g_return_val_if_fail (GTK_IS_GESTURE_ZOOM (gesture), 1.0);
if (!_gtk_gesture_zoom_get_distance (gesture, &distance))
- return 1;
+ return 1.0;
priv = gtk_gesture_zoom_get_instance_private (gesture);