From fd5c1f403f87b96c5230927e9105ab6a9d4cf96e Mon Sep 17 00:00:00 2001 From: Daemonratte Date: Mon, 19 Oct 2026 15:59:37 +0200 Subject: [PATCH] introspection: the old API in Gtk-2.0.gir again Since f0d1c05ea the scanner got -DGTK_DISABLE_DEPRECATED, and gtktextlayout.h, gtkprivate.h and gtkmarshal.h were left out, so Gtk-2.0.gir lost everything deprecated that 2.24.33 had in it: GtkCList, GtkCTree, GtkOptionMenu, GtkComboBoxEntry, the rulers, GtkItemFactory, gtk_signal_*, GtkTextLayout... 592 functions and types. Programs in Python or JavaScript that still use them broke. The scanner gets -UGDK_DISABLE_DEPRECATED -UGTK_DISABLE_DEPRECATED again as before, and the headers come back; the warnings that came with them are fixed by the annotations of the commit before. --- gtk/Makefile.am | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gtk/Makefile.am b/gtk/Makefile.am index b487cd9df..066124381 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -1133,11 +1133,12 @@ Gtk_2_0_gir_CFLAGS = \ -I$(top_builddir)/gtk \ -DGTK_COMPILATION \ $(AM_CPPFLAGS) \ - -DGTK_DISABLE_DEPRECATED \ + -UGDK_DISABLE_DEPRECATED \ + -UGTK_DISABLE_DEPRECATED \ -DGTK_TEXT_USE_INTERNAL_UNSUPPORTED_API Gtk_2_0_gir_LIBS = $(gtktargetlib) $(top_builddir)/gdk/$(gdktargetlib) Gtk_2_0_gir_FILES = \ - $(filter-out gtkprivate.h gtkpixdatautils.h gtktextlayout.h gtkmarshal.h, \ + $(filter-out gtkpixdatautils.h, \ $(introspection_files)) Gtk-2.0.gir: $(gtktargetlib)