[libhandy/swipe-tracker-public: 7/16] swipeable: Rename start-swipe signal to swipe-started
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libhandy/swipe-tracker-public: 7/16] swipeable: Rename start-swipe signal to swipe-started
- Date: Sun, 14 Jun 2020 20:45:09 +0000 (UTC)
commit a7df4da640df589702269d8b62562201695e516f
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Sun Jun 14 23:11:51 2020 +0500
swipeable: Rename start-swipe signal to swipe-started
Fixes https://gitlab.gnome.org/GNOME/libhandy/-/issues/199
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 5ae3b100..d44389fc 100644
--- a/src/hdy-swipe-group.c
+++ b/src/hdy-swipe-group.c
@@ -118,9 +118,9 @@ child_switched_cb (HdySwipeGroup *self,
}
static void
-start_swipe_cb (HdySwipeGroup *self,
- HdyNavigationDirection direction,
- HdySwipeable *swipeable)
+swipe_started_cb (HdySwipeGroup *self,
+ HdyNavigationDirection direction,
+ HdySwipeable *swipeable)
{
GSList *swipeables;
@@ -185,7 +185,7 @@ hdy_swipe_group_add_swipeable (HdySwipeGroup *self,
g_return_if_fail (HDY_IS_SWIPEABLE (swipeable));
g_signal_connect_swapped (swipeable, "child-switched", G_CALLBACK (child_switched_cb), self);
- g_signal_connect_swapped (swipeable, "start-swipe", G_CALLBACK (start_swipe_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, "end-swipe", G_CALLBACK (end_swipe_cb), self);
diff --git a/src/hdy-swipeable.c b/src/hdy-swipeable.c
index 0a8105c0..536aabab 100644
--- a/src/hdy-swipeable.c
+++ b/src/hdy-swipeable.c
@@ -26,7 +26,7 @@ G_DEFINE_INTERFACE (HdySwipeable, hdy_swipeable, GTK_TYPE_WIDGET)
enum {
SIGNAL_CHILD_SWITCHED,
- SIGNAL_START_SWIPE,
+ SIGNAL_SWIPE_STARTED,
SIGNAL_UPDATE_SWIPE,
SIGNAL_END_SWIPE,
SIGNAL_LAST_SIGNAL,
@@ -60,7 +60,7 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
G_TYPE_UINT, G_TYPE_INT64);
/**
- * HdySwipeable::start-swipe:
+ * HdySwipeable::swipe-started:
* @self: The #HdySwipeable instance
* @direction: The direction of the swipe, can be 1 or -1
*
@@ -71,8 +71,8 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
*
* Since: 0.0.12
*/
- signals[SIGNAL_START_SWIPE] =
- g_signal_new ("start-swipe",
+ signals[SIGNAL_SWIPE_STARTED] =
+ g_signal_new ("swipe-started",
G_TYPE_FROM_INTERFACE (iface),
G_SIGNAL_RUN_FIRST,
0,
@@ -181,7 +181,7 @@ hdy_swipeable_start_swipe (HdySwipeable *self,
(* iface->start_swipe) (self, direction, direct);
- g_signal_emit (self, signals[SIGNAL_START_SWIPE], 0, direction);
+ g_signal_emit (self, signals[SIGNAL_SWIPE_STARTED], 0, direction);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]