Lines Matching refs:icon
42 * #GFileIcon specifies an icon by pointing to an image file
43 * to be used as icon.
49 static void g_file_icon_load_async (GLoadableIcon *icon,
85 GFileIcon *icon = G_FILE_ICON (object);
90 g_value_set_object (value, icon->file);
104 GFileIcon *icon = G_FILE_ICON (object);
109 icon->file = G_FILE (g_value_dup_object (value));
120 GFileIcon *icon;
122 icon = G_FILE_ICON (object);
124 g_object_unref (icon->file);
141 * The file containing the icon.
146 _("The file containing the icon"),
160 * Creates a new icon for a file.
174 * @icon: a #GIcon.
176 * Gets the #GFile associated with the given @icon.
181 g_file_icon_get_file (GFileIcon *icon)
183 g_return_val_if_fail (G_IS_FILE_ICON (icon), NULL);
185 return icon->file;
189 g_file_icon_hash (GIcon *icon)
191 GFileIcon *file_icon = G_FILE_ICON (icon);
207 g_file_icon_to_tokens (GIcon *icon,
211 GFileIcon *file_icon = G_FILE_ICON (icon);
227 GIcon *icon;
230 icon = NULL;
252 icon = g_file_icon_new (file);
256 return icon;
270 g_file_icon_load (GLoadableIcon *icon,
277 GFileIcon *file_icon = G_FILE_ICON (icon);
287 GLoadableIcon *icon;
295 g_object_unref (data->icon);
313 simple = g_simple_async_result_new_from_error (G_OBJECT (data->icon),
321 simple = g_simple_async_result_new (G_OBJECT (data->icon),
338 g_file_icon_load_async (GLoadableIcon *icon,
344 GFileIcon *file_icon = G_FILE_ICON (icon);
348 data->icon = g_object_ref (icon);
359 g_file_icon_load_finish (GLoadableIcon *icon,