Package: gdk

Function gdk:content-provider-new-for-value

Lambda List

gdk:content-provider-new-for-value (gvalue)

Arguments

gvalue -- a g:value instance

Return Value

The new gdk:content-provider object.

Details

Creates a content provider that provides the given gvalue.

Examples

A signal handler for a gtk:drag-source instance that provides a gdk:rgba instance as value:
(g:signal-connect source "prepare"
        (lambda (source x y)
          (declare (ignore source x y))
          (g:with-value (gvalue "GdkRGBA" (color-swatch-color swatch))
            (gdk:content-provider-new-for-value gvalue))))    
 

See also

2025-08-23