From: Benjamin Otte Date: Sun, 22 Aug 2021 18:49:12 +0000 (+0000) Subject: docs: Expand gdk_clipboard_set() docs X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2^2~54 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9c1bce629d792d424dda2e1be74eefe585885384;p=gtk4.git docs: Expand gdk_clipboard_set() docs --- diff --git a/gdk/gdkclipboard.c b/gdk/gdkclipboard.c index bbd1a1fde5..b2fd191538 100644 --- a/gdk/gdkclipboard.c +++ b/gdk/gdkclipboard.c @@ -1253,9 +1253,15 @@ gdk_clipboard_set_content (GdkClipboard *clipboard, * @...: value contents conforming to @type * * Sets the clipboard to contain the value collected from the given varargs. + * + * Values should be passed the same way they are passed to other value + * collecting APIs, such as [`method@GObject.Object.set`] or + * [`id@g_signal_emit`]. * * ```c - * gdk_clipboard_set (clipboard, GTK_TYPE_TEXT_BUFFER, buffer); + * gdk_clipboard_set (clipboard, GTK_TYPE_STRING, "Hello World"); + * + * gdk_clipboard_set (clipboard, GDK_TYPE_TEXTURE, some_texture); * ``` */ void