VariantDict.this

Allocates and initialises a new glib.VariantDict

You should call Variant.dictUnref on the return value when it is no longer needed. The memory will not be automatically freed by any other call.

In some cases it may be easier to place a glib.VariantDict directly on the stack of the calling function and initialise it with Variant.dictInit. This is particularly useful when you are using glib.VariantDict to construct a glib.Variant

  1. this(GVariantDict* gVariantDict, bool ownedRef)
  2. this(Variant fromAsv)
    class VariantDict

Parameters

fromAsv Variant

the glib.Variant with which to initialise the dictionary

Return Value

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.40