Lines Matching refs:icon
122 g_icon_hash (gconstpointer icon) in g_icon_hash() argument
126 g_return_val_if_fail (G_IS_ICON (icon), 0); in g_icon_hash()
128 iface = G_ICON_GET_IFACE (icon); in g_icon_hash()
130 return (* iface->hash) ((GIcon *)icon); in g_icon_hash()
163 g_icon_to_string_tokenized (GIcon *icon, GString *s) in g_icon_to_string_tokenized() argument
171 g_return_val_if_fail (icon != NULL, FALSE); in g_icon_to_string_tokenized()
172 g_return_val_if_fail (G_IS_ICON (icon), FALSE); in g_icon_to_string_tokenized()
176 icon_iface = G_ICON_GET_IFACE (icon); in g_icon_to_string_tokenized()
181 if (!icon_iface->to_tokens (icon, tokens, &version)) in g_icon_to_string_tokenized()
191 g_string_append (s, g_type_name_from_instance ((GTypeInstance *)icon)); in g_icon_to_string_tokenized()
246 g_icon_to_string (GIcon *icon) in g_icon_to_string() argument
250 g_return_val_if_fail (icon != NULL, NULL); in g_icon_to_string()
251 g_return_val_if_fail (G_IS_ICON (icon), NULL); in g_icon_to_string()
255 if (G_IS_FILE_ICON (icon)) in g_icon_to_string()
259 file = g_file_icon_get_file (G_FILE_ICON (icon)); in g_icon_to_string()
272 else if (G_IS_THEMED_ICON (icon)) in g_icon_to_string()
276 names = g_themed_icon_get_names (G_THEMED_ICON (icon)); in g_icon_to_string()
291 if (g_icon_to_string_tokenized (icon, s)) in g_icon_to_string()
304 GIcon *icon; in g_icon_new_from_tokens() local
314 icon = NULL; in g_icon_new_from_tokens()
407 icon = icon_iface->from_tokens (tokens + 1, num_tokens - 1, version, error); in g_icon_new_from_tokens()
412 return icon; in g_icon_new_from_tokens()
446 GIcon *icon; in g_icon_new_for_string() local
452 icon = NULL; in g_icon_new_for_string()
462 icon = g_icon_new_from_tokens (tokens, error); in g_icon_new_for_string()
481 icon = g_file_icon_new (location); in g_icon_new_for_string()
485 icon = g_themed_icon_new (str); in g_icon_new_for_string()
489 return icon; in g_icon_new_for_string()