From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: tangxiaofeng <tangxiaofeng@kylinos.cn>
Date: Wed, 16 Sep 2026 13:30:55 +0000
Subject: [PATCH] Ignore Gdk.RGBA::print in Gir.toml

Description: Ignore Gdk.RGBA::print in Gir.toml so that the regenerated bindings compile
 The build regenerates the bindings from the system GIR files. GTK 4.22
 newly exposes gdk_rgba_print(), whose GString* parameter and return value
 make gir emit references to glib::String, a type that no longer exists in
 glib 0.21 (the equivalent type is named glib::GString), so the gdk4 crate
 failed to compile. Ignore this C helper function, like upstream gdk4 does.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Applied-Upstream: 0.11.0
---
--- rust-gdk4-0.10.3.orig/Gir.toml
+++ rust-gdk4-0.10.3/Gir.toml
@@ -646,6 +646,9 @@ boxed_inline = true
     name = "parse"
     # This is a constructor
     manual = true
+    [[object.function]]
+    name = "print"
+    ignore = true # This is a C helper
 
 [[object]]
 name = "Gdk.Seat"
