[libhandy/swipe-tracker-public: 8/16] swipeable: Rename update-swipe signal to swipe-updated
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/swipe-tracker-public: 8/16] swipeable: Rename update-swipe signal to swipe-updated
- Date: Sun, 14 Jun 2020 20:45:14 +0000 (UTC)
commit be43a466e7c38962c7f073cf4f1f285e4bc0e762
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 | 10 +++++-----
2 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/src/hdy-swipe-group.c b/src/hdy-swipe-group.c
index d44389fc..3650f266 100644
--- a/src/hdy-swipe-group.c
+++ b/src/hdy-swipe-group.c
@@ -135,9 +135,9 @@ swipe_started_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-started", G_CALLBACK (swipe_started_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 536aabab..5c1d5181 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_STARTED,
- SIGNAL_UPDATE_SWIPE,
+ SIGNAL_SWIPE_UPDATED,
SIGNAL_END_SWIPE,
SIGNAL_LAST_SIGNAL,
};
@@ -82,7 +82,7 @@ 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
*
@@ -91,8 +91,8 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
*
* Since: 0.0.12
*/
- 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]