gtk: export the nine marshallers from 2.24.32 again

2.24.32 exported them by accident, and programs built against it link
to them.
This commit is contained in:
Daemonratte 2026-10-15 09:54:09 +02:00
commit c9c7a294c1
2 changed files with 49 additions and 0 deletions

View file

@ -2531,6 +2531,23 @@ gtk_marshal_VOID__UINT_STRING
#endif
#endif
/* in gtkmisc.c, without aliases: for programs built against 2.24.32 */
#if IN_HEADER(__GTK_MARSHAL_COMPAT_H__)
#if IN_FILE(__GTK_MARSHAL_COMPAT_C__)
#ifndef GTK_DISABLE_DEPRECATED
gtk_marshal_VOID__BOOLEAN
gtk_marshal_VOID__BOXED
gtk_marshal_VOID__ENUM
gtk_marshal_VOID__INT
gtk_marshal_VOID__OBJECT
gtk_marshal_VOID__POINTER
gtk_marshal_VOID__STRING
gtk_marshal_VOID__UINT
gtk_marshal_VOID__VOID
#endif
#endif
#endif
#if IN_HEADER(__GTK_MENU_BAR_H__)
#if IN_FILE(__GTK_MENU_BAR_C__)
gtk_menu_bar_get_type

View file

@ -339,5 +339,37 @@ gtk_misc_realize (GtkWidget *widget)
}
}
/* GTK+ 2.24.32 exported these marshallers by accident, through the
* glib-genmarshal it was made with, and programs built against it refer
* to them. Later releases lost them; they stay here for those programs. */
#define COMPAT_MARSHALLER(name) \
void gtk_marshal_ ## name (GClosure *closure, \
GValue *return_value, \
guint n_param_values, \
const GValue *param_values, \
gpointer invocation_hint, \
gpointer marshal_data); \
void \
gtk_marshal_ ## name (GClosure *closure, \
GValue *return_value, \
guint n_param_values, \
const GValue *param_values, \
gpointer invocation_hint, \
gpointer marshal_data) \
{ \
g_cclosure_marshal_ ## name (closure, return_value, n_param_values, \
param_values, invocation_hint, marshal_data); \
}
COMPAT_MARSHALLER (VOID__BOOLEAN)
COMPAT_MARSHALLER (VOID__BOXED)
COMPAT_MARSHALLER (VOID__ENUM)
COMPAT_MARSHALLER (VOID__INT)
COMPAT_MARSHALLER (VOID__OBJECT)
COMPAT_MARSHALLER (VOID__POINTER)
COMPAT_MARSHALLER (VOID__STRING)
COMPAT_MARSHALLER (VOID__UINT)
COMPAT_MARSHALLER (VOID__VOID)
#define __GTK_MISC_C__
#include "gtkaliasdef.c"