diff options
author | Gary Kramlich <grim@reaperworld.com> | 2022-03-25 02:56:25 -0500 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2022-03-25 02:56:25 -0500 |
commit | dc8e99ba12de80e3a6e20da2b2bf00eb257d9eb3 (patch) | |
tree | bd0b5a870cfca729034078656cb216bf8ec6ef79 /libpurple/purpleaccountmanager.h | |
parent | 30b2d2563e45c2ac4bcfd9b0792818f455e0d8cc (diff) | |
download | pidgin-dc8e99ba12de80e3a6e20da2b2bf00eb257d9eb3.tar.gz |
Replace PidginAccountsDisabledMenu with PidginInactiveAccountsMenu which is a GMenuModel subclass.
This gives us a bit more control as we are always in control of the attributes,
so we don't need to modify the menu in place. This also made it trivial to add
the protocol icons which are very helpful when you have the same user name on
multiple protocols.
Testing Done:
Enabled and disabled two accounts a lot while under valgrind.
Reviewed at https://reviews.imfreedom.org/r/1366/
Diffstat (limited to 'libpurple/purpleaccountmanager.h')
-rw-r--r-- | libpurple/purpleaccountmanager.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libpurple/purpleaccountmanager.h b/libpurple/purpleaccountmanager.h index 03fbdad67a..71c624079c 100644 --- a/libpurple/purpleaccountmanager.h +++ b/libpurple/purpleaccountmanager.h @@ -126,6 +126,19 @@ GList *purple_account_manager_get_all(PurpleAccountManager *manager); GList *purple_account_manager_get_active(PurpleAccountManager *manager); /** + * purple_account_manager_get_inactive: + * @manager: The account manager instance. + * + * Gets the list of all inactive accounts. + * + * Returns: (transfer container) (element-type PurpleAccount): The list of all + * inactive accounts. + * + * Since: 3.0.0 + */ +GList *purple_account_manager_get_inactive(PurpleAccountManager *manager); + +/** * purple_account_manager_find_by_id: * @manager: The account manager instance. * @id: The id of the account. |