Lines Matching full:origin
41 * Currently, only metainformation about the emblem's origin is
52 GEmblemOrigin origin; member
85 g_value_set_enum (value, emblem->origin); in G_DEFINE_TYPE_WITH_CODE()
109 emblem->origin = g_value_get_enum (value); in g_emblem_set_property()
140 g_param_spec_enum ("origin", in g_emblem_class_init()
141 P_("GEmblem’s origin"), in g_emblem_class_init()
142 … P_("Tells which origin the emblem is derived from"), in g_emblem_class_init()
183 emblem->origin = G_EMBLEM_ORIGIN_UNKNOWN; in g_emblem_new()
191 * @origin: a GEmblemOrigin enum defining the emblem's origin
201 GEmblemOrigin origin) in g_emblem_new_with_origin() argument
211 emblem->origin = origin; in g_emblem_new_with_origin()
240 * Gets the origin of the emblem.
242 * Returns: (transfer none): the origin of the emblem
251 return emblem->origin; in g_emblem_get_origin()
261 hash ^= emblem->origin; in g_emblem_hash()
273 return emblem1->origin == emblem2->origin && in g_emblem_equal()
287 * <origin> <icon> in g_emblem_to_tokens()
300 s = g_strdup_printf ("%d", emblem->origin); in g_emblem_to_tokens()
314 GEmblemOrigin origin; in g_emblem_from_tokens() local
343 origin = atoi (tokens[1]); in g_emblem_from_tokens()
345 emblem = g_emblem_new_with_origin (icon, origin); in g_emblem_from_tokens()
356 GEnumValue *origin; in g_emblem_serialize() local
363 origin = g_enum_get_value (g_type_class_peek (G_TYPE_EMBLEM_ORIGIN), emblem->origin); in g_emblem_serialize()
364 result = g_variant_new_parsed ("('emblem', <(%v, {'origin': <%s>})>)", in g_emblem_serialize()
365 icon_data, origin ? origin->value_nick : "unknown"); in g_emblem_serialize()