From 69fdb15a2f02fb0b2faeff732948af076b503f65 Mon Sep 17 00:00:00 2001 From: Gary Kramlich Date: Mon, 28 Nov 2022 21:05:22 -0600 Subject: 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/ --- finch/gntaccount.c | 1 + 1 file changed, 1 insertion(+) (limited to 'finch') 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) { -- cgit v1.2.1