Lines Matching refs:variant
28 GVariant *variant = NULL; in g_settings_set_mapping_int() local
41 variant = g_variant_new_int16 ((gint16) l); in g_settings_set_mapping_int()
46 variant = g_variant_new_uint16 ((guint16) l); in g_settings_set_mapping_int()
51 variant = g_variant_new_int32 ((gint) l); in g_settings_set_mapping_int()
56 variant = g_variant_new_uint32 ((guint) l); in g_settings_set_mapping_int()
61 variant = g_variant_new_int64 ((gint64) l); in g_settings_set_mapping_int()
66 variant = g_variant_new_uint64 ((guint64) l); in g_settings_set_mapping_int()
71 variant = g_variant_new_handle ((guint) l); in g_settings_set_mapping_int()
74 variant = g_variant_new_double ((gdouble) l); in g_settings_set_mapping_int()
76 return variant; in g_settings_set_mapping_int()
83 GVariant *variant = NULL; in g_settings_set_mapping_float() local
96 variant = g_variant_new_int16 ((gint16) l); in g_settings_set_mapping_float()
101 variant = g_variant_new_uint16 ((guint16) l); in g_settings_set_mapping_float()
106 variant = g_variant_new_int32 ((gint) l); in g_settings_set_mapping_float()
111 variant = g_variant_new_uint32 ((guint) l); in g_settings_set_mapping_float()
116 variant = g_variant_new_int64 ((gint64) l); in g_settings_set_mapping_float()
121 variant = g_variant_new_uint64 ((guint64) l); in g_settings_set_mapping_float()
126 variant = g_variant_new_handle ((guint) l); in g_settings_set_mapping_float()
129 variant = g_variant_new_double ((gdouble) d); in g_settings_set_mapping_float()
131 return variant; in g_settings_set_mapping_float()
137 GVariant *variant = NULL; in g_settings_set_mapping_unsigned_int() local
150 variant = g_variant_new_int16 ((gint16) u); in g_settings_set_mapping_unsigned_int()
155 variant = g_variant_new_uint16 ((guint16) u); in g_settings_set_mapping_unsigned_int()
160 variant = g_variant_new_int32 ((gint) u); in g_settings_set_mapping_unsigned_int()
165 variant = g_variant_new_uint32 ((guint) u); in g_settings_set_mapping_unsigned_int()
170 variant = g_variant_new_int64 ((gint64) u); in g_settings_set_mapping_unsigned_int()
175 variant = g_variant_new_uint64 ((guint64) u); in g_settings_set_mapping_unsigned_int()
180 variant = g_variant_new_handle ((guint) u); in g_settings_set_mapping_unsigned_int()
183 variant = g_variant_new_double ((gdouble) u); in g_settings_set_mapping_unsigned_int()
185 return variant; in g_settings_set_mapping_unsigned_int()
190 GVariant *variant) in g_settings_get_mapping_int() argument
195 type = g_variant_get_type (variant); in g_settings_get_mapping_int()
198 l = g_variant_get_int16 (variant); in g_settings_get_mapping_int()
200 l = g_variant_get_int32 (variant); in g_settings_get_mapping_int()
202 l = g_variant_get_int64 (variant); in g_settings_get_mapping_int()
237 GVariant *variant) in g_settings_get_mapping_float() argument
243 type = g_variant_get_type (variant); in g_settings_get_mapping_float()
246 d = g_variant_get_double (variant); in g_settings_get_mapping_float()
281 GVariant *variant) in g_settings_get_mapping_unsigned_int() argument
286 type = g_variant_get_type (variant); in g_settings_get_mapping_unsigned_int()
289 u = g_variant_get_uint16 (variant); in g_settings_get_mapping_unsigned_int()
291 u = g_variant_get_uint32 (variant); in g_settings_get_mapping_unsigned_int()
293 u = g_variant_get_uint64 (variant); in g_settings_get_mapping_unsigned_int()
295 u = g_variant_get_handle (variant); in g_settings_get_mapping_unsigned_int()
438 GVariant *variant, in g_settings_get_mapping() argument
441 if (g_variant_is_of_type (variant, G_VARIANT_TYPE_BOOLEAN)) in g_settings_get_mapping()
445 g_value_set_boolean (value, g_variant_get_boolean (variant)); in g_settings_get_mapping()
449 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_BYTE)) in g_settings_get_mapping()
452 g_value_set_uchar (value, g_variant_get_byte (variant)); in g_settings_get_mapping()
454 g_value_set_schar (value, (gint8)g_variant_get_byte (variant)); in g_settings_get_mapping()
460 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_INT16) || in g_settings_get_mapping()
461 g_variant_is_of_type (variant, G_VARIANT_TYPE_INT32) || in g_settings_get_mapping()
462 g_variant_is_of_type (variant, G_VARIANT_TYPE_INT64)) in g_settings_get_mapping()
463 return g_settings_get_mapping_int (value, variant); in g_settings_get_mapping()
465 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_DOUBLE)) in g_settings_get_mapping()
466 return g_settings_get_mapping_float (value, variant); in g_settings_get_mapping()
468 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_UINT16) || in g_settings_get_mapping()
469 g_variant_is_of_type (variant, G_VARIANT_TYPE_UINT32) || in g_settings_get_mapping()
470 g_variant_is_of_type (variant, G_VARIANT_TYPE_UINT64) || in g_settings_get_mapping()
471 g_variant_is_of_type (variant, G_VARIANT_TYPE_HANDLE)) in g_settings_get_mapping()
472 return g_settings_get_mapping_unsigned_int (value, variant); in g_settings_get_mapping()
474 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_STRING) || in g_settings_get_mapping()
475 g_variant_is_of_type (variant, G_VARIANT_TYPE_OBJECT_PATH) || in g_settings_get_mapping()
476 g_variant_is_of_type (variant, G_VARIANT_TYPE_SIGNATURE)) in g_settings_get_mapping()
480 g_value_set_string (value, g_variant_get_string (variant, NULL)); in g_settings_get_mapping()
492 nick = g_variant_get_string (variant, NULL); in g_settings_get_mapping()
505 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE ("as"))) in g_settings_get_mapping()
509 g_value_take_boxed (value, g_variant_dup_strv (variant, NULL)); in g_settings_get_mapping()
523 g_variant_iter_init (&iter, variant); in g_settings_get_mapping()
543 else if (g_variant_is_of_type (variant, G_VARIANT_TYPE_BYTESTRING)) in g_settings_get_mapping()
545 g_value_set_string (value, g_variant_get_bytestring (variant)); in g_settings_get_mapping()
550 g_variant_get_type_string (variant)); in g_settings_get_mapping()