Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adrien Plazas
libhandy
Commits
70a3f684
Commit
70a3f684
authored
Mar 18, 2020
by
Ujjwal Kumar
Committed by
Alexander Mikhaylenko
May 22, 2020
Browse files
swipeable: Correct signal parameters for begin-swipe
Fixes the function name conflict warning during introspection
parent
295a7057
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/hdy-swipe-group.c
View file @
70a3f684
...
...
@@ -120,6 +120,7 @@ switch_child_cb (HdySwipeGroup *self,
static
void
begin_swipe_cb
(
HdySwipeGroup
*
self
,
HdyNavigationDirection
direction
,
gboolean
direct
,
HdySwipeable
*
swipeable
)
{
GSList
*
swipeables
;
...
...
src/hdy-swipeable.c
View file @
70a3f684
...
...
@@ -63,12 +63,18 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
* HdySwipeable::begin-swipe:
* @self: The #HdySwipeable instance
* @direction: The direction of the swipe, can be 1 or -1
* @direct: %TRUE if the swipe is directly triggered by a gesture,
* %FALSE if it's triggered via a #HdySwipeGroup
*
* This signal is emitted when a possible swipe is detected. This is used by
* #HdySwipeGroup, applications should not connect to it.
* The @direction value can be used to restrict the swipe to a certain
* direction.
*
* The @direct parameter can be used to have widgets that aren't swipeable, but
* can still animate in sync with other widgets in a #HdySwipeGroup by only
* applying restrictions if @direct is %TRUE.
*
* Since: 0.0.12
*/
signals
[
SIGNAL_BEGIN_SWIPE
]
=
...
...
@@ -78,8 +84,8 @@ hdy_swipeable_default_init (HdySwipeableInterface *iface)
0
,
NULL
,
NULL
,
NULL
,
G_TYPE_NONE
,
1
,
HDY_TYPE_NAVIGATION_DIRECTION
);
2
,
HDY_TYPE_NAVIGATION_DIRECTION
,
G_TYPE_BOOLEAN
);
/**
* HdySwipeable::update-swipe:
...
...
@@ -181,7 +187,7 @@ hdy_swipeable_begin_swipe (HdySwipeable *self,
(
*
iface
->
begin_swipe
)
(
self
,
direction
,
direct
);
g_signal_emit
(
self
,
signals
[
SIGNAL_BEGIN_SWIPE
],
0
,
direction
);
g_signal_emit
(
self
,
signals
[
SIGNAL_BEGIN_SWIPE
],
0
,
direction
,
direct
);
}
/**
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment