[libhandy/swipe-tracker-public: 9/16] swipeable: Rename end-swipe signal to swipe-ended
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/swipe-tracker-public: 9/16] swipeable: Rename end-swipe signal to swipe-ended
- Date: Sun, 14 Jun 2020 20:45:19 +0000 (UTC)
commit 224fe5821e4334cfc3e4dfe133ea5c5559ae4605
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 | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/hdy-swipe-group.c b/src/hdy-swipe-group.c
index 3650f266..add9bd58 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-started", G_CALLBACK (swipe_started_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 5c1d5181..218adc11 100644
--- a/src/hdy-swipeable.c
+++ b/src/hdy-swipeable.c
@@ -28,7 +28,7 @@ enum {
SIGNAL_CHILD_SWITCHED,
SIGNAL_SWIPE_STARTED,
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
@@ -112,8 +112,8 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
*
* Since: 0.0.12
*/
- 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]