Top |
ThunarIconFactory * | thunar_icon_factory_get_default () |
ThunarIconFactory * | thunar_icon_factory_get_for_icon_theme () |
gboolean | thunar_icon_factory_get_show_thumbnail () |
GdkPixbuf * | thunar_icon_factory_load_icon () |
GdkPixbuf * | thunar_icon_factory_load_file_icon () |
void | thunar_icon_factory_clear_pixmap_cache () |
GtkIconTheme * | icon-theme | Read |
gboolean | thumbnail-draw-frames | Read / Write |
guint64 | thumbnail-max-file-size | Read / Write |
ThunarThumbnailMode | thumbnail-mode | Read / Write |
ThunarThumbnailSize | thumbnail-size | Read / Write |
ThunarIconFactory *
thunar_icon_factory_get_default (void
);
Returns the ThunarIconFactory that operates on the default GtkIconTheme. The default ThunarIconFactory instance will be around for the time the programs runs, starting with the first call to this function.
The caller is responsible to free the returned object using
g_object_unref()
when no longer needed.
ThunarIconFactory *
thunar_icon_factory_get_for_icon_theme
(GtkIconTheme *icon_theme
);
Determines the proper ThunarIconFactory to be used with the specified
icon_theme
and returns it.
You need to explicitly free the returned ThunarIconFactory object
using g_object_unref()
when you are done with it.
gboolean thunar_icon_factory_get_show_thumbnail (const ThunarIconFactory *factory
,const ThunarFile *file
);
GdkPixbuf * thunar_icon_factory_load_icon (ThunarIconFactory *factory
,const gchar *name
,gint size
,gint scale_factor
,gboolean wants_default
,gboolean symbolic
,GtkStyleContext *context
);
Looks up the icon named name
in the icon theme associated with factory
and returns a pixbuf for the icon at the given size
. This function will
return a default fallback icon if the requested icon could not be found
and wants_default
is TRUE
, else NULL
will be returned in that case.
If symbolic
is TRUE
, try to load a symbolic icon that optionally
matches the system colors provided by context
.
Call g_object_unref()
on the returned pixbuf when you are
done with it.
factory |
a ThunarIconFactory instance. |
|
name |
name of the icon to load. |
|
size |
desired icon size. |
|
scale_factor |
the UI scale factor. |
|
wants_default |
|
|
symbolic |
|
|
context |
a GtkStyleContext instance, can be |
GdkPixbuf * thunar_icon_factory_load_file_icon (ThunarIconFactory *factory
,ThunarFile *file
,ThunarFileIconState icon_state
,gint icon_size
,gint scale_factor
,gboolean symbolic
,GtkStyleContext *context
);
If symbolic
is TRUE
, try to load a symbolic icon that optionally
matches the system colors provided by context
.
The caller is responsible to free the returned object using
g_object_unref()
when no longer needed.
factory |
a ThunarIconFactory instance. |
|
file |
a ThunarFile. |
|
icon_state |
the desired icon state. |
|
icon_size |
the desired icon size. |
|
scale_factor |
the UI scale factor. |
|
symbolic |
load the symbolic version of the icon. |
|
context |
a GtkStyleContext instance, can be |
void
thunar_icon_factory_clear_pixmap_cache
(ThunarFile *file
);
Unset the pixmap cache on a file to force a reload on the next request.
“icon-theme”
property “icon-theme” GtkIconTheme *
The GtkIconTheme on which the given ThunarIconFactory instance operates on.
Owner: ThunarIconFactory
Flags: Read
“thumbnail-draw-frames”
property “thumbnail-draw-frames” gboolean
Whether to draw black frames around thumbnails. This looks neat, but will delay the first draw a bit. May have an impact on older systems, on folders with many pictures.
Owner: ThunarIconFactory
Flags: Read / Write
Default value: FALSE
“thumbnail-max-file-size”
property “thumbnail-max-file-size” guint64
Maximum file size (in bytes) allowed to be thumbnailed
Owner: ThunarIconFactory
Flags: Read / Write
Default value: 0
“thumbnail-mode”
property“thumbnail-mode” ThunarThumbnailMode
Whether this ThunarIconFactory will try to generate and load thumbnails when loading icons for ThunarFiles.
Owner: ThunarIconFactory
Flags: Read / Write
Default value: THUNAR_THUMBNAIL_MODE_ONLY_LOCAL
“thumbnail-size”
property“thumbnail-size” ThunarThumbnailSize
Size of the thumbnails to load
Owner: ThunarIconFactory
Flags: Read / Write
Default value: THUNAR_THUMBNAIL_SIZE_NORMAL