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/
#ifndef __gtksourceview_marshal_MARSHAL_H__
#define __gtksourceview_marshal_MARSHAL_H__
#include <glib-object.h>
G_BEGIN_DECLS
/* VOID:VOID (gtksourceview-marshal.list:1) */
#define gtksourceview_marshal_VOID__VOID g_cclosure_marshal_VOID__VOID
/* VOID:BOOLEAN (gtksourceview-marshal.list:2) */
#define gtksourceview_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN
/* VOID:BOXED (gtksourceview-marshal.list:3) */
#define gtksourceview_marshal_VOID__BOXED g_cclosure_marshal_VOID__BOXED
/* VOID:BOXED,BOXED (gtksourceview-marshal.list:4) */
extern void gtksourceview_marshal_VOID__BOXED_BOXED (GClosure *closure,
GValue *return_value,
guint n_param_values,
const GValue *param_values,
gpointer invocation_hint,
gpointer marshal_data);
/* VOID:STRING (gtksourceview-marshal.list:5) */
#define gtksourceview_marshal_VOID__STRING g_cclosure_marshal_VOID__STRING
G_END_DECLS
#endif /* __gtksourceview_marshal_MARSHAL_H__ */