summaryrefslogtreecommitdiff
path: root/finch
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2022-11-28 21:05:22 -0600
committerGary Kramlich <grim@reaperworld.com>2022-11-28 21:05:22 -0600
commit69fdb15a2f02fb0b2faeff732948af076b503f65 (patch)
treec8aa19c20197c2e63fd67f7901aecd64994be65a /finch
parent4ef109d2593c0a041af303acbeaf7b4c4de46702 (diff)
downloadpidgin-69fdb15a2f02fb0b2faeff732948af076b503f65.tar.gz
Add a setting-changed signal to PurpleAccount and propagate it from PurpleAccountManager
Also add a freeze and thaw mechanism to make sure state is consistent when the signal is emitted. Add a `GParamSpec` parameter to the `account-changed` signal as well, so that users can determine which property changed. Testing Done: Used `g_message` in the propagator to verify that everything was behaving. Reviewed at https://reviews.imfreedom.org/r/2060/
Diffstat (limited to 'finch')
-rw-r--r--finch/gntaccount.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/finch/gntaccount.c b/finch/gntaccount.c
index ad3364f05d..0d17c70737 100644
--- a/finch/gntaccount.c
+++ b/finch/gntaccount.c
@@ -871,6 +871,7 @@ account_removed_callback(G_GNUC_UNUSED PurpleAccountManager *manager,
static void
account_abled_cb(G_GNUC_UNUSED PurpleAccountManager *manager,
PurpleAccount *account,
+ G_GNUC_UNUSED GParamSpec *pspec,
G_GNUC_UNUSED gpointer data)
{
if(accounts.window == NULL) {