[libhandy] swipeable: Rename update-swipe signal to swipe-updated



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

    swipeable: Rename update-swipe signal to swipe-updated
    
    Signed-off-by: Alexander Mikhaylenko <alexm gnome org>

 src/hdy-swipe-group.c |  8 ++++----
 src/hdy-swipeable.c   | 12 ++++++------
 2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/hdy-swipe-group.c b/src/hdy-swipe-group.c
index ea948e31..5310b369 100644
--- a/src/hdy-swipe-group.c
+++ b/src/hdy-swipe-group.c
@@ -135,9 +135,9 @@ swipe_began_cb (HdySwipeGroup          *self,
 }
 
 static void
-update_swipe_cb (HdySwipeGroup *self,
-                 gdouble        value,
-                 HdySwipeable  *swipeable)
+swipe_updated_cb (HdySwipeGroup *self,
+                  gdouble        value,
+                  HdySwipeable  *swipeable)
 {
   GSList *swipeables;
 
@@ -186,7 +186,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, "update-swipe", G_CALLBACK (update_swipe_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);
 
   self->swipeables = g_slist_prepend (self->swipeables, swipeable);
diff --git a/src/hdy-swipeable.c b/src/hdy-swipeable.c
index 181e33b7..dfb71244 100644
--- a/src/hdy-swipeable.c
+++ b/src/hdy-swipeable.c
@@ -27,7 +27,7 @@ G_DEFINE_INTERFACE (HdySwipeable, hdy_swipeable, GTK_TYPE_WIDGET)
 enum {
   SIGNAL_CHILD_SWITCHED,
   SIGNAL_SWIPE_BEGAN,
-  SIGNAL_UPDATE_SWIPE,
+  SIGNAL_SWIPE_UPDATED,
   SIGNAL_END_SWIPE,
   SIGNAL_LAST_SIGNAL,
 };
@@ -82,17 +82,17 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
                   HDY_TYPE_NAVIGATION_DIRECTION);
 
   /**
-   * HdySwipeable::update-swipe:
+   * HdySwipeable::swipe-updated:
    * @self: The #HdySwipeable instance
    * @value: The current animation progress value
    *
    * This signal is emitted every time the progress value changes. This is used
    * by #HdySwipeGroup, applications should not connect to it.
    *
-   * Since: 0.0.12
+   * Since: 1.0
    */
-  signals[SIGNAL_UPDATE_SWIPE] =
-    g_signal_new ("update-swipe",
+  signals[SIGNAL_SWIPE_UPDATED] =
+    g_signal_new ("swipe-updated",
                   G_TYPE_FROM_INTERFACE (iface),
                   G_SIGNAL_RUN_FIRST,
                   0,
@@ -207,7 +207,7 @@ hdy_swipeable_update_swipe (HdySwipeable *self,
 
   (* iface->update_swipe) (self, value);
 
-  g_signal_emit (self, signals[SIGNAL_UPDATE_SWIPE], 0, value);
+  g_signal_emit (self, signals[SIGNAL_SWIPE_UPDATED], 0, value);
 }
 
 /**


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