diff -r ff94f8ff8a70 -r 38e61d11b89f pidgin/pidginaccounteditor.c --- a/pidgin/pidginaccounteditor.c Sat Oct 29 00:52:04 2022 -0500 +++ b/pidgin/pidginaccounteditor.c Sat Oct 29 00:53:33 2022 -0500 @@ -579,6 +579,7 @@ pidgin_account_editor_update_proxy_options(PidginAccountEditor *editor) { PurpleProxyInfo *info = NULL; GListModel *model = NULL; + char *str = NULL; const char *type = "global"; const char *hostname = NULL; const char *username = NULL; @@ -637,8 +638,10 @@ } gtk_editable_set_text(GTK_EDITABLE(editor->proxy_host), hostname); - gtk_spin_button_set_value(GTK_SPIN_BUTTON(editor->proxy_port), - (gdouble)port); + + str = g_strdup_printf("%d", port); + gtk_editable_set_text(GTK_EDITABLE(editor->proxy_port), str); + g_free(str); if(username == NULL) { username = ""; @@ -874,7 +877,6 @@ PurpleProxyType type = PURPLE_PROXY_TYPE_NONE; GObject *item = NULL; const gchar *svalue = NULL; - gint ivalue = 0; /* Build the ProxyInfo object */ if(!new_account) { @@ -911,8 +913,8 @@ svalue = gtk_editable_get_text(GTK_EDITABLE(editor->proxy_host)); purple_proxy_info_set_hostname(info, svalue); - ivalue = gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(editor->proxy_port)); - purple_proxy_info_set_port(info, ivalue); + svalue = gtk_editable_get_text(GTK_EDITABLE(editor->proxy_port)); + purple_proxy_info_set_port(info, atoi(svalue)); svalue = gtk_editable_get_text(GTK_EDITABLE(editor->proxy_username)); purple_proxy_info_set_username(info, svalue);