mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-14 14:20:21 +00:00
gtk: ref the action around gtk_action_emit_activate()
for the same reason we already ref the action's group in the function.
This commit is contained in:
parent
1d07ef714d
commit
ebe50bbecb
@ -785,18 +785,20 @@ _gtk_action_emit_activate (GtkAction *action)
|
||||
{
|
||||
GtkActionGroup *group = action->private_data->action_group;
|
||||
|
||||
if (group != NULL)
|
||||
if (group != NULL)
|
||||
{
|
||||
g_object_ref (action);
|
||||
g_object_ref (group);
|
||||
_gtk_action_group_emit_pre_activate (group, action);
|
||||
}
|
||||
|
||||
g_signal_emit (action, action_signals[ACTIVATE], 0);
|
||||
g_signal_emit (action, action_signals[ACTIVATE], 0);
|
||||
|
||||
if (group != NULL)
|
||||
if (group != NULL)
|
||||
{
|
||||
_gtk_action_group_emit_post_activate (group, action);
|
||||
g_object_unref (group);
|
||||
g_object_unref (action);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user