Commit 4ce2f3e7 authored by Matthias Clasen's avatar Matthias Clasen

Silence gtk-doc warnings

parent 7fa02287
......@@ -8046,7 +8046,6 @@ gtk_gesture_multi_press_get_type
<TITLE>GtkGesturePan</TITLE>
GtkGesturePan
GtkPanDirection
GtkPanOrientation
gtk_gesture_pan_new
gtk_gesture_pan_get_orientation
gtk_gesture_pan_set_orientation
......
......@@ -198,7 +198,8 @@ gtk_gesture_rotate_new (GtkWidget *widget)
* @gesture: a #GtkGestureRotate
*
* If @gesture is active, this function returns the angle difference
* in radians since the gesture was first recognized.
* in radians since the gesture was first recognized. If @gesture is
* not active, 0 is returned.
*
* Returns: the angle delta in radians
*
......@@ -210,10 +211,10 @@ gtk_gesture_rotate_get_angle_delta (GtkGestureRotate *gesture)
GtkGestureRotatePrivate *priv;
gdouble angle;
g_return_val_if_fail (GTK_IS_GESTURE_ROTATE (gesture), FALSE);
g_return_val_if_fail (GTK_IS_GESTURE_ROTATE (gesture), 0.0);
if (!_gtk_gesture_rotate_get_angle (gesture, &angle))
return 0;
return 0.0;
priv = gtk_gesture_rotate_get_instance_private (gesture);
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment