[vala/staging] gtk4: Add Gtk.INVALID_LIST_POSITION
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] gtk4: Add Gtk.INVALID_LIST_POSITION
- Date: Sun, 14 Mar 2021 09:32:22 +0000 (UTC)
commit bee6b5c713a3b398694c516066f6ffd6ea32015e
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sun Mar 14 08:06:22 2021 +0100
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 31265a317..aff178bc3 100644
--- a/vapi/Makefile.am
+++ b/vapi/Makefile.am
@@ -596,7 +596,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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]