libpurple/purpleprotocolactions.h

changeset 41460
fccbea158b51
parent 41437
05ac40f0e0c4
child 42004
620d1adf91f2
--- a/libpurple/purpleprotocolactions.h	Fri Jul 29 00:47:59 2022 -0500
+++ b/libpurple/purpleprotocolactions.h	Fri Jul 29 01:13:51 2022 -0500
@@ -48,6 +48,8 @@
 
 /**
  * PurpleProtocolActionsInterface:
+ * @get_prefix: The prefix used for the actions in the group. If this isn't
+ *              implemented, the id of the protocol will be used instead.
  * @get_action_group: Returns the actions the protocol can perform. If actions
  *                    depend on connectivity, connect to the relevant signals
  *                    on the @connection and signal the action has changed with
@@ -67,6 +69,8 @@
 	GTypeInterface parent;
 
 	/*< public >*/
+	const gchar *(*get_prefix)(PurpleProtocolActions *actions);
+
 	GActionGroup *(*get_action_group)(PurpleProtocolActions *actions, PurpleConnection *connection);
 
 	GMenu *(*get_menu)(PurpleProtocolActions *actions);
@@ -78,6 +82,18 @@
 G_BEGIN_DECLS
 
 /**
+ * purple_protocol_actions_get_prefix:
+ * @actions: The PurpleProtocolActions instance.
+ *
+ * The prefix that should be used when inserting the action group into widgets.
+ *
+ * Returns: Gets the prefix for the name of the actions in @actions.
+ *
+ * Since: 3.0.0
+ */
+const gchar *purple_protocol_actions_get_prefix(PurpleProtocolActions *actions);
+
+/**
  * purple_protocol_actions_get_action_group:
  * @actions: The PurpleProtocolActions instance.
  * @connection: The [class@Connection] instance.

mercurial