Lines Matching refs:icon
90 _icon_cache_get_icon_key( GIcon * icon )
94 if ( G_IS_THEMED_ICON( icon )) {
98 g_object_get( icon, "names", &icon_names, NULL );
106 else if ( G_IS_FILE_ICON( icon )) {
110 file = g_file_icon_get_file( G_FILE_ICON( icon ));
124 get_themed_icon_pixbuf( GThemedIcon * icon,
133 g_object_get( icon, "names", &icon_names, NULL );
142 g_warning( "could not load icon pixbuf: %s\n", error->message );
154 get_file_icon_pixbuf( GFileIcon * icon, int size )
160 file = g_file_icon_get_file( icon );
171 _get_icon_pixbuf( GIcon * icon, int size, GtkIconTheme * theme )
173 if ( icon == NULL )
175 if ( G_IS_THEMED_ICON (icon) )
176 return get_themed_icon_pixbuf( G_THEMED_ICON( icon ), size, theme );
177 if ( G_IS_FILE_ICON (icon) )
178 return get_file_icon_pixbuf( G_FILE_ICON( icon ), size );
186 GIcon * icon;
190 icon = g_content_type_get_icon( mime_type );
191 key = _icon_cache_get_icon_key( icon );
199 g_object_unref( G_OBJECT( icon ) );
203 pixbuf = _get_icon_pixbuf( icon, icon_cache->icon_size, icon_cache->icon_theme );
207 g_object_unref( G_OBJECT( icon ) );