[gtk+/wip/baedert/gtkimageview: 601/625] Remove target parameter from animate_to_xxx functions



commit 13a3fa9831b4963409c235d718719d2e0b7d6fd2
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]