StefanSalewski / gintro

High level GObject-Introspection based GTK3/GTK4 bindings for Nim language
MIT License
296 stars 20 forks source link

gdk_clipboard_set_text missing #194

Open zaifoo opened 2 years ago

zaifoo commented 2 years ago

gdk_clipboard_set_text missing

StefanSalewski commented 2 years ago

Yes, it is strange:

grep -C8 gdk_clipboard_set_text /opt/gtk/share/gir-1.0/Gdk-4.0.gir

      <method name="set_text"
              c:identifier="gdk_clipboard_set_text"
              introspectable="0">

https://docs.gtk.org/gdk4/method.Clipboard.set_text.html

https://gitlab.gnome.org/GNOME/gtk/-/blob/master/gdk/gdkclipboard.c#L1338

I think I have to ask Mr. Bassi.

StefanSalewski commented 2 years ago

I hope the explanation of Mr. Bassi is good enough for you:

https://discourse.gnome.org/t/gtk4-gdk-clipboard-set-text-hidden-in-gobject-introspection/8587/2

Of course we could add a setText() manually, if someone would really like to use that. But I assume this issue was created automatically for ducumentation purposes, not because someone is actually using the GTK clipboard from Nim?