--- a/doc/reference/pidgin/pidgin-docs.xml Wed May 12 21:52:44 2021 -0500
+++ b/doc/reference/pidgin/pidgin-docs.xml Thu May 13 22:27:15 2021 -0500
@@ -65,7 +65,6 @@
<xi:include href="xml/pidginconversationwindow.xml" />
<xi:include href="xml/pidgincore.xml" />
<xi:include href="xml/pidgincredentialproviderrow.xml" />
- <xi:include href="xml/pidgincredentialproviderstore.xml" />
<xi:include href="xml/pidgincredentialspage.xml" />
<xi:include href="xml/pidgindebug.xml" />
<xi:include href="xml/pidgindialog.xml" />
--- a/pidgin/meson.build Wed May 12 21:52:44 2021 -0500
+++ b/pidgin/meson.build Thu May 13 22:27:15 2021 -0500
@@ -45,7 +45,6 @@
'pidginconversationwindow.c',
'pidgincredentialproviderrow.c',
- 'pidgincredentialproviderstore.c',
'pidgincredentialspage.c',
@@ -116,7 +115,6 @@
'pidgincredentialproviderrow.h',
- 'pidgincredentialproviderstore.h',
'pidgincredentialspage.h',
--- a/pidgin/pidgincredentialproviderstore.c Wed May 12 21:52:44 2021 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,184 +0,0 @@
- * Pidgin - Internet Messenger
- * Copyright (C) Pidgin Developers <devel@pidgin.im>
- * Pidgin is the legal property of its developers, whose names are too numerous
- * to list here. Please refer to the COPYRIGHT file distributed with this
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <https://www.gnu.org/licenses/>.
-#include <glib/gi18n-lib.h>
-#include "pidgin/pidgincredentialproviderstore.h"
-struct _PidginCredentialProviderStore {
-/******************************************************************************
- *****************************************************************************/
-pidgin_credential_provider_store_add(PidginCredentialProviderStore *store,
- PurpleCredentialProvider *provider)
- const gchar *id = NULL, *name = NULL, *description = NULL;
- id = purple_credential_provider_get_id(provider);
- name = purple_credential_provider_get_name(provider);
- description = purple_credential_provider_get_description(provider);
- markup = g_strdup_printf("<b>%s</b>\n%s", name, description);
- gtk_list_store_append(GTK_LIST_STORE(store), &iter);
- PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_ID, id,
- PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_MARKUP, markup,
-pidgin_credential_provider_store_add_helper(PurpleCredentialProvider *provider,
- pidgin_credential_provider_store_add(PIDGIN_CREDENTIAL_PROVIDER_STORE(data),
-pidgin_credential_provider_store_add_providers(PidginCredentialProviderStore *store)
- PurpleCredentialManager *manager = NULL;
- manager = purple_credential_manager_get_default();
- purple_credential_manager_foreach_provider(manager,
- pidgin_credential_provider_store_add_helper,
-pidgin_credential_provider_store_remove(PidginCredentialProviderStore *store,
- PurpleCredentialProvider *provider)
- const gchar *id = NULL;
- id = purple_credential_provider_get_id(provider);
- if(gtk_tree_model_get_iter_first(GTK_TREE_MODEL(store), &iter) == FALSE) {
- purple_debug_warning("credential-provider-store",
- "asked to remove provider %s but the store is "
- /* walk through the store and look for the provider to remove */
- PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_ID, &found,
- if(purple_strequal(found, id)) {
- gtk_list_store_remove(GTK_LIST_STORE(store), &iter);
- } while(gtk_tree_model_iter_next(GTK_TREE_MODEL(store), &iter));
-/******************************************************************************
- *****************************************************************************/
-purple_credential_provider_store_registered_cb(PurpleCredentialManager *manager,
- PurpleCredentialProvider *provider,
- pidgin_credential_provider_store_add(PIDGIN_CREDENTIAL_PROVIDER_STORE(data),
-purple_credential_provider_store_unregistered_cb(PurpleCredentialManager *manager,
- PurpleCredentialProvider *provider,
- pidgin_credential_provider_store_remove(PIDGIN_CREDENTIAL_PROVIDER_STORE(data),
-/******************************************************************************
- * GObject Implementation
- *****************************************************************************/
-G_DEFINE_TYPE(PidginCredentialProviderStore, pidgin_credential_provider_store, GTK_TYPE_LIST_STORE)
-pidgin_credential_provider_store_init(PidginCredentialProviderStore *store) {
- PurpleCredentialManager *manager = NULL;
- GType types[PIDGIN_CREDENTIAL_PROVIDER_STORE_N_COLUMNS] = {
- gtk_list_store_set_column_types(
- PIDGIN_CREDENTIAL_PROVIDER_STORE_N_COLUMNS,
- /* add the known providers */
- pidgin_credential_provider_store_add_providers(store);
- manager = purple_credential_manager_get_default();
- g_signal_connect_object(G_OBJECT(manager), "provider-registered",
- G_CALLBACK(purple_credential_provider_store_registered_cb),
- g_signal_connect_object(G_OBJECT(manager), "provider-unregistered",
- G_CALLBACK(purple_credential_provider_store_unregistered_cb),
-pidgin_credential_provider_store_class_init(PidginCredentialProviderStoreClass *klass) {
-/******************************************************************************
- *****************************************************************************/
-pidgin_credential_provider_store_new(void) {
- return GTK_LIST_STORE(g_object_new(PIDGIN_TYPE_CREDENTIAL_PROVIDER_STORE,
--- a/pidgin/pidgincredentialproviderstore.h Wed May 12 21:52:44 2021 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,81 +0,0 @@
- * Pidgin - Internet Messenger
- * Copyright (C) Pidgin Developers <devel@pidgin.im>
- * Pidgin is the legal property of its developers, whose names are too numerous
- * to list here. Please refer to the COPYRIGHT file distributed with this
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, see <https://www.gnu.org/licenses/>.
-#ifndef PIDGIN_CREDENTIAL_PROVIDER_STORE_H
-#define PIDGIN_CREDENTIAL_PROVIDER_STORE_H
- * SECTION:pidgincredentialproviderstore
- * @section_id: pidgin-pidgincredentialproviderstore
- * @short_description: A GtkListStore that keeps track of credential providers.
- * @title: Credential Provider Store
- * #PidginCredentialProviderStore is a #GtkListStore that automatically keeps
- * track of what credential providers are currently available in libpurple.
- * It's intended to be used any time that you need to present a credential
- * provider selection to the user.
- * PidginCredentialProviderStoreColumn:
- * @PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_ID: A constant for the id column.
- * @PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_MARKUP: A constant for the markup
- * that should be displayed.
- * @PIDGIN_CREDENTIAL_PROVIDER_STORE_N_COLUMNS: The number of columns in the
- * A collection of constants for referring to the columns in a
- * #PidginCredentialProviderStore.
- PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_ID,
- PIDGIN_CREDENTIAL_PROVIDER_STORE_COLUMN_MARKUP,
- PIDGIN_CREDENTIAL_PROVIDER_STORE_N_COLUMNS,
-} PidginCredentialProviderStoreColumn;
-#define PIDGIN_TYPE_CREDENTIAL_PROVIDER_STORE pidgin_credential_provider_store_get_type()
-G_DECLARE_FINAL_TYPE(PidginCredentialProviderStore, pidgin_credential_provider_store, PIDGIN,
- CREDENTIAL_PROVIDER_STORE, GtkListStore)
- * pidgin_credential_provider_store_new:
- * Creates a new #PidginCredentialProviderStore that can be used anywhere a
- * #GtkListStore can be used.
- * Returns: (transfer full): The new #PidginCredentialProviderStore instance.
-GtkListStore *pidgin_credential_provider_store_new(void);
-#endif /* PIDGIN_CREDENTIAL_PROVIDER_STORE_H */
--- a/po/POTFILES.in Wed May 12 21:52:44 2021 -0500
+++ b/po/POTFILES.in Thu May 13 22:27:15 2021 -0500
@@ -354,7 +354,6 @@
pidgin/pidgincontactlist.c
pidgin/pidginconversationwindow.c
pidgin/pidgincredentialproviderrow.c
-pidgin/pidgincredentialproviderstore.c
pidgin/pidgincredentialspage.c