--- a/pidgin/plugins/disco/xmppdisco.c Sun Jul 31 00:54:46 2022 -0500
+++ b/pidgin/plugins/disco/xmppdisco.c Sun Jul 31 01:45:36 2022 -0500
@@ -583,24 +583,13 @@
-create_dialog(PurplePluginAction *action)
+create_dialog(G_GNUC_UNUSED GSimpleAction *action, + G_GNUC_UNUSED GVariant *parameter, + G_GNUC_UNUSED gpointer data) pidgin_disco_dialog_new();
-actions(PurplePlugin *plugin)
- PurplePluginAction *action = NULL;
- action = purple_plugin_action_new(_("XMPP Service Discovery"),
- l = g_list_prepend(l, action);
signed_off_cb(PurpleConnection *pc, gpointer unused)
@@ -614,11 +603,26 @@
static GPluginPluginInfo *
xmpp_disco_query(GError **error)
+ GActionEntry entries[] = { + .activate = create_dialog, + GSimpleActionGroup *group = NULL; const gchar * const authors[] = {
"Paul Aurich <paul@darkrain42.org>",
+ group = g_simple_action_group_new(); + g_action_map_add_action_entries(G_ACTION_MAP(group), entries, + G_N_ELEMENTS(entries), NULL); + g_menu_append(menu, _("XMPP Service Discovery"), "dialog"); return pidgin_plugin_info_new(
"name", N_("XMPP Service Discovery"),
@@ -630,7 +634,8 @@
"website", PURPLE_WEBSITE,
"abi-version", PURPLE_ABI_VERSION,