[libhandy] swipeable: Rename end-swipe signal to swipe-ended



commit 180691d3f9efdfc2bb023c124fe8d26e7820c487
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Sun Jun 14 23:14:13 2020 +0500

    swipeable: Rename end-swipe signal to swipe-ended
    
    The last one.
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-swipe-group.c | 10 +++++-----
 src/hdy-swipeable.c   | 12 ++++++------
 2 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/src/hdy-swipe-group.c b/src/hdy-swipe-group.c
index 5310b369..e8f0ae3e 100644
--- a/src/hdy-swipe-group.c
+++ b/src/hdy-swipe-group.c
@@ -150,10 +150,10 @@ swipe_updated_cb (HdySwipeGroup *self,
 }
 
 static void
-end_swipe_cb (HdySwipeGroup *self,
-              gint64         duration,
-              gdouble        to,
-              HdySwipeable  *swipeable)
+swipe_ended_cb (HdySwipeGroup *self,
+                gint64         duration,
+                gdouble        to,
+                HdySwipeable  *swipeable)
 {
   GSList *swipeables;
 
@@ -187,7 +187,7 @@ hdy_swipe_group_add_swipeable (HdySwipeGroup *self,
   g_signal_connect_swapped (swipeable, "child-switched", G_CALLBACK (child_switched_cb), self);
   g_signal_connect_swapped (swipeable, "swipe-began", G_CALLBACK (swipe_began_cb), self);
   g_signal_connect_swapped (swipeable, "swipe-updated", G_CALLBACK (swipe_updated_cb), self);
-  g_signal_connect_swapped (swipeable, "end-swipe", G_CALLBACK (end_swipe_cb), self);
+  g_signal_connect_swapped (swipeable, "swipe-ended", G_CALLBACK (swipe_ended_cb), self);
 
   self->swipeables = g_slist_prepend (self->swipeables, swipeable);
 
diff --git a/src/hdy-swipeable.c b/src/hdy-swipeable.c
index dfb71244..8b5eb361 100644
--- a/src/hdy-swipeable.c
+++ b/src/hdy-swipeable.c
@@ -28,7 +28,7 @@ enum {
   SIGNAL_CHILD_SWITCHED,
   SIGNAL_SWIPE_BEGAN,
   SIGNAL_SWIPE_UPDATED,
-  SIGNAL_END_SWIPE,
+  SIGNAL_SWIPE_ENDED,
   SIGNAL_LAST_SIGNAL,
 };
 
@@ -102,7 +102,7 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
                   G_TYPE_DOUBLE);
 
   /**
-   * HdySwipeable::end-swipe:
+   * HdySwipeable::swipe-ended:
    * @self: The #HdySwipeable instance
    * @duration: Snap-back animation duration in milliseconds
    * @to: The progress value to animate to
@@ -110,10 +110,10 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
    * This signal is emitted as soon as the gesture has stopped. This is used by
    * #HdySwipeGroup, applications should not connect to it.
    *
-   * Since: 0.0.12
+   * Since: 1.0
    */
-  signals[SIGNAL_END_SWIPE] =
-    g_signal_new ("end-swipe",
+  signals[SIGNAL_SWIPE_ENDED] =
+    g_signal_new ("swipe-ended",
                   G_TYPE_FROM_INTERFACE (iface),
                   G_SIGNAL_RUN_FIRST,
                   0,
@@ -244,7 +244,7 @@ hdy_swipeable_end_swipe (HdySwipeable *self,
 
   (* iface->end_swipe) (self, duration, to);
 
-  g_signal_emit (self, signals[SIGNAL_END_SWIPE], 0, duration, to);
+  g_signal_emit (self, signals[SIGNAL_SWIPE_ENDED], 0, duration, to);
 }
 
 /**


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