@set
Description:
[ CCode ( sentinel = "" ) ]
[ Version ( since = "2.26" ) ]
public bool @set (string key, string format, ...)
[ Version ( since = "2.26" ) ]
public bool @set (string key, string format, ...)
Sets key in this to value.
A convenience function that combines [method@Gio.Settings.set_value] with [ctor@GLib.Variant.new].
It is a programmer error to give a key that isn’t contained in the schema for this or for the
[struct@GLib.VariantType] of format to mismatch the type given in the schema.
Parameters:
| this |
the settings object |
| key |
the key to set the value for |
| format |
a [struct@GLib.Variant] format string |
| ... |
arguments as per |
Returns:
|
true if setting the key succeeded, false if the key was not writable |