Lines Matching full:icon
42 * having an emblem, which is an icon with additional properties.
55 GIcon *icon;
85 g_value_set_object (value, emblem->icon);
108 emblem->icon = g_value_get_object (value);
126 g_object_unref (emblem->icon);
151 g_param_spec_object ("icon",
152 P_("The icon of the emblem"),
153 P_("The actual icon of the emblem"),
166 * @icon: a GIcon containing the icon.
168 * Creates a new emblem for @icon.
175 g_emblem_new (GIcon *icon)
179 g_return_val_if_fail (icon != NULL, NULL);
180 g_return_val_if_fail (G_IS_ICON (icon), NULL);
181 g_return_val_if_fail (!G_IS_EMBLEM (icon), NULL);
184 emblem->icon = g_object_ref (icon);
192 * @icon: a GIcon containing the icon.
195 * Creates a new emblem for @icon.
202 g_emblem_new_with_origin (GIcon *icon,
207 g_return_val_if_fail (icon != NULL, NULL);
208 g_return_val_if_fail (G_IS_ICON (icon), NULL);
209 g_return_val_if_fail (!G_IS_EMBLEM (icon), NULL);
212 emblem->icon = g_object_ref (icon);
220 * @emblem: a #GEmblem from which the icon should be extracted.
222 * Gives back the icon from @emblem.
234 return emblem->icon;
257 g_emblem_hash (GIcon *icon)
259 GEmblem *emblem = G_EMBLEM (icon);
276 g_icon_equal (emblem1->icon, emblem2->icon);
280 g_emblem_to_tokens (GIcon *icon,
284 GEmblem *emblem = G_EMBLEM (icon);
289 * <origin> <icon>
296 s = g_icon_to_string (emblem->icon);
315 GIcon *icon;
340 icon = g_icon_new_for_string (tokens[0], error);
342 if (icon == NULL)
347 emblem = g_emblem_new_with_origin (icon, origin);
348 g_object_unref (icon);