Replace deprecated (since 2.38) g_simple_action_group_lookup

with g_action_map_lookup_action
pull/1523/head
Richard Cohen 3 years ago
parent 44f4b55927
commit d91d270a76

@ -2176,7 +2176,7 @@ recn_destroy_cb (GtkWidget *w, gpointer data)
//Disable the actions, the handlers try to access recnData
for (gint i = 0; i < num_actions; i++)
{
GAction *action = g_simple_action_group_lookup (recnData->simple_action_group, actions[i]);
GAction *action = g_action_map_lookup_action (G_ACTION_MAP(recnData->simple_action_group), actions[i]);
g_simple_action_set_enabled (G_SIMPLE_ACTION(action), FALSE);
}
g_strfreev (actions);

Loading…
Cancel
Save