From a9506152782734e866b0e735a88329a5967485f0 Mon Sep 17 00:00:00 2001 From: Rico Tzschichholz Date: Sun, 14 Mar 2021 08:06:22 +0100 Subject: gtk4: Add Gtk.INVALID_LIST_POSITION Fixes https://gitlab.gnome.org/GNOME/vala/issues/1151 --- vapi/Makefile.am | 2 +- vapi/gtk4.vapi | 2 ++ vapi/metadata/Gtk-4.0-custom.vala | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 5136d5812..5127e65ec 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -584,7 +584,7 @@ gtk+-3.0: $(GENVAPI) --library $(srcdir)/gtk+-3.0 --pkg atk --pkg gdk-3.0 --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --pkg pango --pkg cairo --metadatadir $(METADATADIR) $(METADATADIR)/Gtk-3.0-custom.vala $(GIRDIR)/Gtk-3.0.gir gtk4: - $(GENVAPI) --library $(srcdir)/gtk4 --pkg cairo --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --pkg graphene-gobject-1.0 --pkg pango --pkg x11 \ + $(GENVAPI) --library $(srcdir)/gtk4 --pkg cairo --pkg gdk-pixbuf-2.0 --pkg gio-2.0 --pkg graphene-gobject-1.0 --pkg pango --pkg pangocairo --pkg x11 \ --metadatadir $(METADATADIR) \ $(METADATADIR)/GdkWayland-4.0-custom.vala $(GIRDIR)/GdkWayland-4.0.gir \ $(METADATADIR)/GdkX11-4.0-custom.vala $(GIRDIR)/GdkX11-4.0.gir \ diff --git a/vapi/gtk4.vapi b/vapi/gtk4.vapi index ee63daba5..bdfcd15db 100644 --- a/vapi/gtk4.vapi +++ b/vapi/gtk4.vapi @@ -14121,6 +14121,8 @@ namespace Gtk { public const int INPUT_ERROR; [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_INTERFACE_AGE")] public const int INTERFACE_AGE; + [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_INVALID_LIST_POSITION")] + public const uint INVALID_LIST_POSITION; [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_LEVEL_BAR_OFFSET_FULL")] public const string LEVEL_BAR_OFFSET_FULL; [CCode (cheader_filename = "gtk/gtk.h", cname = "GTK_LEVEL_BAR_OFFSET_HIGH")] diff --git a/vapi/metadata/Gtk-4.0-custom.vala b/vapi/metadata/Gtk-4.0-custom.vala index c3f98568b..9c600f520 100644 --- a/vapi/metadata/Gtk-4.0-custom.vala +++ b/vapi/metadata/Gtk-4.0-custom.vala @@ -39,4 +39,7 @@ namespace Gtk { [CCode (delegate_target = false)] public unowned Gtk.BuildableParserErrorFunc error; } + + [CCode (cname = "GTK_INVALID_LIST_POSITION")] + public const uint INVALID_LIST_POSITION; } -- cgit v1.2.1