--- a/ChangeLog.API Fri May 20 02:55:51 2022 -0500
+++ b/ChangeLog.API Fri May 20 15:13:02 2022 -0500
@@ -966,6 +966,8 @@
* pidgin_pounces_manager_hide
* pidgin_pounces_manager_show
+ * pidgin_prefs_labeled_entry + * pidgin_prefs_labeled_password * pidgin_protocol_option_menu_get_selected
--- a/pidgin/prefs/pidginprefs.c Fri May 20 02:55:51 2022 -0500
+++ b/pidgin/prefs/pidginprefs.c Fri May 20 15:13:02 2022 -0500
@@ -1,4 +1,6 @@
+ * 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
@@ -15,9 +17,7 @@
* 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ * along with this program; if not, see <https://www.gnu.org/licenses/>. @@ -29,28 +29,16 @@
#include <glib/gi18n-lib.h>
+#include "pidginprefs.h" +#include "pidginprefsinternal.h" -#include "pidgindebug.h"
-#include "pidginprefs.h"
-#include "pidginprefsinternal.h"
#include "pidginvvprefs.h"
-#include <libsoup/soup.h>
-#define PREFS_OPTIMAL_ICON_SIZE 32
-#define PREFS_MAX_DOWNLOADED_THEME_SIZE 26214400
struct _PidginPrefsWindow {
@@ -62,12 +50,11 @@
static PidginPrefsWindow *prefs = NULL;
G_DEFINE_TYPE(PidginPrefsWindow, pidgin_prefs_window, GTK_TYPE_DIALOG);
-static void delete_prefs(GtkWidget *, void *);
+/****************************************************************************** + *****************************************************************************/ update_spin_value(GtkWidget *w, GtkWidget *spin)
@@ -126,24 +113,6 @@
purple_prefs_set_string(key, gtk_entry_get_text(entry));
-pidgin_prefs_labeled_entry(GtkWidget *page, const gchar *title,
- const char *key, GtkSizeGroup *sg)
- value = purple_prefs_get_string(key);
- entry = gtk_entry_new();
- gtk_entry_set_text(GTK_ENTRY(entry), value);
- g_signal_connect(G_OBJECT(entry), "changed",
- G_CALLBACK(entry_set), (char*)key);
- gtk_widget_show(entry);
- return pidgin_add_widget_to_vbox(GTK_BOX(page), title, sg, entry, TRUE, NULL);
pidgin_prefs_bind_entry(const char *key, GtkWidget *entry)
@@ -156,25 +125,6 @@
-pidgin_prefs_labeled_password(GtkWidget *page, const gchar *title,
- const char *key, GtkSizeGroup *sg)
- value = purple_prefs_get_string(key);
- entry = gtk_entry_new();
- gtk_entry_set_visibility(GTK_ENTRY(entry), FALSE);
- gtk_entry_set_text(GTK_ENTRY(entry), value);
- g_signal_connect(G_OBJECT(entry), "changed",
- G_CALLBACK(entry_set), (char*)key);
- gtk_widget_show(entry);
- return pidgin_add_widget_to_vbox(GTK_BOX(page), title, sg, entry, TRUE, NULL);
dropdown_set(GtkComboBox *combo_box, G_GNUC_UNUSED gpointer data)
@@ -462,7 +412,6 @@
/* Close any request dialogs */
purple_request_close_with_handle(prefs);
purple_notify_close_with_handle(prefs);
/* Unregister callbacks. */
@@ -485,6 +434,9 @@
+/****************************************************************************** + * GObject Implementation + *****************************************************************************/ pidgin_prefs_window_class_init(PidginPrefsWindowClass *klass)
@@ -507,13 +459,7 @@
- /* copy the preferences to tmp values...
- * I liked "take affect immediately" Oh well :-( */
- /* (that should have been "effect," right?) */
- /* Back to instant-apply! I win! BU-HAHAHA! */
- /* Create the window */
gtk_widget_init_template(GTK_WIDGET(win));
@@ -524,6 +470,9 @@
+/****************************************************************************** + *****************************************************************************/ --- a/pidgin/prefs/pidginprefs.h Fri May 20 02:55:51 2022 -0500
+++ b/pidgin/prefs/pidginprefs.h Fri May 20 15:13:02 2022 -0500
@@ -1,4 +1,6 @@
+ * 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
@@ -15,9 +17,7 @@
* 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, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
+ * along with this program; if not, see <https://www.gnu.org/licenses/>. #if !defined(PIDGIN_GLOBAL_HEADER_INSIDE) && !defined(PIDGIN_COMPILATION)
@@ -27,12 +27,15 @@
#define PIDGIN_TYPE_PREFS_WINDOW (pidgin_prefs_window_get_type())
-G_DECLARE_FINAL_TYPE(PidginPrefsWindow, pidgin_prefs_window, PIDGIN, PREFS_WINDOW, GtkDialog)
+G_DECLARE_FINAL_TYPE(PidginPrefsWindow, pidgin_prefs_window, PIDGIN, + PREFS_WINDOW, GtkDialog) @@ -80,39 +83,6 @@
const gchar *title, const char *key, int min, int max, GtkSizeGroup *sg);
- * pidgin_prefs_labeled_entry:
- * @page: The page to which the entry will be added
- * @title: The text to be displayed as the entry label
- * @key: The key of the string pref that will be represented by the entry
- * @sg: If not NULL, the size group to which the entry will be added
- * Add a new entry representing a string preference
- * Returns: (transfer full) :An hbox containing both the label and the entry. Can be used to set
- * the widgets to sensitive or insensitive based on the value of a
-GtkWidget *pidgin_prefs_labeled_entry(GtkWidget *page, const gchar *title,
- const char *key, GtkSizeGroup *sg);
- * pidgin_prefs_labeled_password:
- * @page: The page to which the entry will be added
- * @title: The text to be displayed as the entry label
- * @key: The key of the string pref that will be represented by the entry
- * @sg: If not NULL, the size group to which the entry will be added
- * Add a new entry representing a password (string) preference
- * The entry will use a password-style text entry (the text is substituted)
- * Returns: (transfer full): An hbox containing both the label and the entry. Can be used to set
- * the widgets to sensitive or insensitive based on the value of a
-GtkWidget *pidgin_prefs_labeled_password(GtkWidget *page, const gchar *title,
- const char *key, GtkSizeGroup *sg);
* @page: The page to which the dropdown will be added
* @title: The text to be displayed as the dropdown label