pidgin/pidgin

Fix incompatible type conversion errors
release-2.x.y
4 months ago, Elliott Sales de Andrade
488055ab5531
Fix incompatible type conversion errors

- A recent libxml2 changed its handler function to take a `const` pointer. It's
safe for us to have it, and them not, but the opposite way causes an implicit
cast warning.
- In relatively new GLib (many years now), `g_object_ref` casts its output to
match its input. This means we should not be casting to `G_OBJECT`, as that
is not the type it expects, and would translate to the output being `GObject`
instead of the original type.

This fixes the build in Fedora 40, which changes several incompatible pointer
conversion warnings into errors.

This patch is partially from the Fedora maintainer @yarda, with some corrections by me (to the `g_object_ref` portions.)

Testing Done:
Compiled in a Rawhide environment with this patch applied.

Bugs closed: PIDGIN-17850

Reviewed at https://reviews.imfreedom.org/r/2944/
man_MANS =
if ENABLE_GTK
man_MANS += pidgin.1
endif
if ENABLE_GNT
man_MANS += finch.1
endif
EXTRA_DIST = \
C-HOWTO.dox \
PERL-HOWTO.dox \
SIGNAL-HOWTO.dox \
TCL-HOWTO.dox \
TracFooter.html \
TracHeader.html \
account-signals.dox \
blist-signals.dox \
certificate-signals.dox \
cipher-signals.dox \
connection-signals.dox \
conversation-signals.dox \
core-signals.dox \
dbus-server-signals.dox \
funniest_home_convos.txt \
finch.1.in \
gtkaccount-signals.dox \
gtkblist-signals.dox \
gtkconv-signals.dox \
gtklog-signals.dox \
gtkimhtml-signals.dox \
gtkrc-2.0 \
imgstore-signals.dox \
jabber-signals.dox \
log-signals.dox \
notify-signals.dox \
pidgin.1.in \
plugin-i18n.dox \
plugin-ids.dox \
plugin-signals.dox \
savedstatus-signals.dox \
sound-signals.dox \
the_penguin.txt \
xfer-signals.dox