[gtk+/wip/baedert/gtkimageview: 220/255] Remove target parameter from animate_to_xxx functions



commit 02f0429dea64f35aa6dbd93838f2cf473ba40ae8
Author: Timm Bäder <mail baedert org>
Date:   Wed Feb 10 21:01:56 2016 +0100

    Remove target parameter from animate_to_xxx functions

 gtk/gtkimageview.c |   12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index ad9be34..085a7dc 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -330,8 +330,7 @@ scale_frameclock_cb (GtkWidget     *widget,
 }
 
 static void
-gtk_image_view_animate_to_scale (GtkImageView *image_view,
-                                 double        new_scale)
+gtk_image_view_animate_to_scale (GtkImageView *image_view)
 {
   GtkImageViewPrivate *priv = gtk_image_view_get_instance_private (image_view);
 
@@ -392,8 +391,7 @@ angle_frameclock_cb (GtkWidget     *widget,
 
 
 static void
-gtk_image_view_animate_to_angle (GtkImageView *image_view,
-                                 double        target_angle)
+gtk_image_view_animate_to_angle (GtkImageView *image_view)
 {
   GtkImageViewPrivate *priv = gtk_image_view_get_instance_private (image_view);
 
@@ -418,7 +416,7 @@ gtk_image_view_do_snapping (GtkImageView *image_view)
   g_assert (priv->snap_angle);
 
   if (gtk_image_view_transitions_enabled (image_view))
-    gtk_image_view_animate_to_angle (image_view, new_angle);
+    gtk_image_view_animate_to_angle (image_view);
 
   priv->angle = new_angle;
 
@@ -1286,7 +1284,7 @@ gtk_image_view_set_scale (GtkImageView *image_view,
   gtk_image_view_get_current_state (image_view, &state);
 
   if (gtk_image_view_transitions_enabled (image_view))
-    gtk_image_view_animate_to_scale (image_view, scale);
+    gtk_image_view_animate_to_scale (image_view);
 
   priv->scale = scale;
   g_object_notify_by_pspec (G_OBJECT (image_view),
@@ -1370,7 +1368,7 @@ gtk_image_view_set_angle (GtkImageView *image_view,
 
   if (gtk_image_view_transitions_enabled (image_view) &&
       ABS(gtk_image_view_clamp_angle (angle) - priv->angle) > ANGLE_TRANSITION_MIN_DELTA)
-      gtk_image_view_animate_to_angle (image_view, angle);
+      gtk_image_view_animate_to_angle (image_view);
 
   angle = gtk_image_view_clamp_angle (angle);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]