Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xfce4-whiskermenu-plugin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Custom Issue Tracker
Custom Issue Tracker
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Panel Plugins
xfce4-whiskermenu-plugin
Commits
188cd5d6
Commit
188cd5d6
authored
Feb 13, 2020
by
Graeme Gott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix crash when selecting desktop action. (bug #16445)
parent
14605a36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
panel-plugin/slot.h
panel-plugin/slot.h
+7
-7
No files found.
panel-plugin/slot.h
View file @
188cd5d6
...
...
@@ -92,28 +92,28 @@ gulong g_signal_connect_slot(gpointer instance, const gchar* detailed_signal, R(
after
?
G_CONNECT_AFTER
:
GConnectFlags
(
0
));
}
// Member function with
parameters
and 1 bound parameter
template
<
typename
T
,
typename
R
,
typename
...
Args
,
typename
A2
>
gulong
g_signal_connect_slot
(
gpointer
instance
,
const
gchar
*
detailed_signal
,
R
(
T
::*
member
)(
A
rgs
...
,
A2
),
T
*
obj
,
A2
bound1
,
bool
after
=
false
)
// Member function with
1 parameter
and 1 bound parameter
template
<
typename
T
,
typename
R
,
typename
A1
,
typename
A2
>
gulong
g_signal_connect_slot
(
gpointer
instance
,
const
gchar
*
detailed_signal
,
R
(
T
::*
member
)(
A
1
,
A2
),
T
*
obj
,
A2
bound1
,
bool
after
=
false
)
{
class
Slot
{
T
*
m_instance
;
R
(
T
::*
m_member
)(
A
rgs
...
,
A2
);
R
(
T
::*
m_member
)(
A
1
,
A2
);
A2
m_bound1
;
public:
Slot
(
T
*
instance
,
R
(
T
::*
member
)(
A
rgs
...
,
A2
),
A2
bound1
)
:
Slot
(
T
*
instance
,
R
(
T
::*
member
)(
A
1
,
A2
),
A2
bound1
)
:
m_instance
(
instance
),
m_member
(
member
),
m_bound1
(
bound1
)
{
}
static
R
invoke
(
A
rgs
...
args
,
gpointer
user_data
)
static
R
invoke
(
A
1
arg
,
gpointer
user_data
)
{
Slot
*
slot
=
static_cast
<
Slot
*>
(
user_data
);
return
(
slot
->
m_instance
->*
slot
->
m_member
)(
arg
s
...
,
slot
->
m_bound1
);
return
(
slot
->
m_instance
->*
slot
->
m_member
)(
arg
,
slot
->
m_bound1
);
}
static
void
destroy
(
gpointer
data
,
GClosure
*
)
...
...
Write
Preview
Markdown
is supported
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