Remove unused notify signals
Testing Done:
Compiled only, but I did grep for the old things.
Reviewed at https://reviews.imfreedom.org/r/1917/
--- a/ChangeLog.API Sun Oct 09 04:48:50 2022 -0500
+++ b/ChangeLog.API Sun Oct 09 04:50:08 2022 -0500
@@ -339,6 +339,10 @@
file-recv-start, file-send-accept, file-send-cancel,
file-send-complete, file-send-start signals. Use
notify::status on #PurpleXfer objects instead.
+ * displaying-email-notification, + displaying-emails-notification, displaying-emails-clear + * displaying-userinfo signal * got-attention, sent-attention signals
* network-configuration-changed signal
--- a/doc/reference/libpurple/libpurple.toml.in Sun Oct 09 04:48:50 2022 -0500
+++ b/doc/reference/libpurple/libpurple.toml.in Sun Oct 09 04:50:08 2022 -0500
@@ -47,7 +47,6 @@
"signals_conversation.md",
"signals_savedstatus.md",
--- a/doc/reference/libpurple/meson.build Sun Oct 09 04:48:50 2022 -0500
+++ b/doc/reference/libpurple/meson.build Sun Oct 09 04:50:08 2022 -0500
@@ -9,7 +9,6 @@
'signals_conversation.md',
'signals_savedstatus.md',
--- a/doc/reference/libpurple/signals_notify.md Sun Oct 09 04:48:50 2022 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,106 +0,0 @@
-* [displaying-userinfo](#displaying-userinfo)
-* [displaying-email-notification](#displaying-email-notification)
-* [displaying-emails-notification](#displaying-emails-notification)
-#### displaying-userinfo
-void user_function(PurpleAccount *account,
- PurpleNotifyUserInfo *user_info,
-Emitted before userinfo is handed to the UI to display. `user_info` can be manipulated via the PurpleNotifyUserInfo API in notify.c.
-> If adding a PurpleNotifyUserInfoEntry, be sure not to free it --
-> PurpleNotifyUserInfo assumes responsibility for its objects.
-: The account on which the info was obtained.
-: The name of the buddy whose info is to be displayed.
-: The information to be displayed, as PurpleNotifyUserInfoEntry objects.
-: user data set when the signal handler was connected.
-----
-#### displaying-email-notification
-void user_function(const gchar *subject,
-Emitted before notification of a single email is handed to the UI to display.
-: Subject of email being notified of.
-: Who the email is from.
-: A url to view the email.
-: user data set when the signal handler was connected.
-----
-#### displaying-emails-notification
-void user_function(const gchar **subjects,
-Emitted before notification of multiple emails is handed to the UI to display.
-: Subjects of emails being notified of.
-: Who the emails are from.
-: Who the emails are to.
-: The urls to view the emails.
-: Number of emails being notified of.
-: user data set when the signal handler was connected.
--- a/libpurple/notify.c Sun Oct 09 04:48:50 2022 -0500
+++ b/libpurple/notify.c Sun Oct 09 04:50:08 2022 -0500
@@ -318,9 +318,6 @@
if (ops != NULL && ops->notify_userinfo != NULL) {
- purple_signal_emit(purple_notify_get_handle(), "displaying-userinfo",
- purple_connection_get_account(gc), who, user_info);
ui_handle = ops->notify_userinfo(gc, who, user_info);
@@ -804,40 +801,12 @@
-purple_notify_get_handle(void)
- gpointer handle = purple_notify_get_handle();
- purple_signal_register(handle, "displaying-email-notification",
- purple_marshal_VOID__POINTER_POINTER_POINTER_POINTER,
- G_TYPE_NONE, 4, G_TYPE_STRING, G_TYPE_STRING,
- G_TYPE_STRING, G_TYPE_STRING);
- purple_signal_register(handle, "displaying-emails-notification",
- purple_marshal_VOID__POINTER_POINTER_POINTER_POINTER_UINT,
- G_TYPE_NONE, 5, G_TYPE_POINTER, G_TYPE_POINTER,
- G_TYPE_POINTER, G_TYPE_POINTER, G_TYPE_UINT);
- purple_signal_register(handle, "displaying-emails-clear",
- purple_marshal_VOID, G_TYPE_NONE, 0);
- purple_signal_register(handle, "displaying-userinfo",
- purple_marshal_VOID__POINTER_POINTER_POINTER,
- G_TYPE_NONE, 3, PURPLE_TYPE_ACCOUNT, G_TYPE_STRING,
- PURPLE_TYPE_NOTIFY_USER_INFO);
purple_notify_uninit(void)
- purple_signals_unregister_by_instance(purple_notify_get_handle());
--- a/libpurple/notify.h Sun Oct 09 04:48:50 2022 -0500
+++ b/libpurple/notify.h Sun Oct 09 04:50:08 2022 -0500
@@ -867,15 +867,6 @@
/**************************************************************************/
- * purple_notify_get_handle:
- * Returns the notify subsystem handle.
- * Returns: The notify subsystem handle.
-void *purple_notify_get_handle(void);
* Initializes the notify subsystem.