summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-factory.h
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2004-03-31 09:24:55 +0000
committerAlexander Larsson <alexl@src.gnome.org>2004-03-31 09:24:55 +0000
commitb3175310b94f6bff55c7946997935b91c9cc93f2 (patch)
treecc0831b4ce37a2ac39249a275e3e94ad8b91cab9 /libnautilus-private/nautilus-icon-factory.h
parent0ff09bc6fda79f3d6973d44763ade79e948f70d5 (diff)
downloadnautilus-b3175310b94f6bff55c7946997935b91c9cc93f2.tar.gz
Based on patch from Soeren Sandmann:
2004-03-31 Alexander Larsson <alexl@redhat.com> Based on patch from Soeren Sandmann: * libnautilus-private/nautilus-file.c: (get_description): Only warn once per mimetype with no description. * libnautilus-private/nautilus-icon-factory.[ch]: Add force_size option to force the nominal size. * src/file-manager/fm-list-model.c: * src/file-manager/fm-tree-model.c: Use force_size to avoid constantly scaling things.
Diffstat (limited to 'libnautilus-private/nautilus-icon-factory.h')
-rw-r--r--libnautilus-private/nautilus-icon-factory.h41
1 files changed, 26 insertions, 15 deletions
diff --git a/libnautilus-private/nautilus-icon-factory.h b/libnautilus-private/nautilus-icon-factory.h
index c7cfe9a8a..1b1a055c7 100644
--- a/libnautilus-private/nautilus-icon-factory.h
+++ b/libnautilus-private/nautilus-icon-factory.h
@@ -124,20 +124,30 @@ char * nautilus_icon_factory_get_emblem_icon_by_name (const
* If the wants_default boolean is set, return a default icon instead
* of NULL if we can't find anything
*/
-GdkPixbuf * nautilus_icon_factory_get_pixbuf_for_icon (const char *icon,
- const char *modifier,
- guint nominal_size,
- NautilusEmblemAttachPoints *attach_points,
- GdkRectangle *embedded_text_rect,
- gboolean wants_default,
- char **display_name);
+GdkPixbuf *nautilus_icon_factory_get_pixbuf_for_icon (const char *icon,
+ const char *modifier,
+ guint nominal_size,
+ NautilusEmblemAttachPoints *attach_points,
+ GdkRectangle *embedded_text_rect,
+ gboolean wants_default,
+ char **display_name);
+GdkPixbuf *nautilus_icon_factory_get_pixbuf_for_icon_force_size (const char *icon,
+ const char *modifier,
+ guint nominal_size,
+ NautilusEmblemAttachPoints *attach_points,
+ GdkRectangle *embedded_text_rect,
+ gboolean wants_default,
+ char **display_name);
/* Convenience functions for the common case where you want to choose
* and render the icon into a pixbuf all at once.
*/
-GdkPixbuf * nautilus_icon_factory_get_pixbuf_for_file (NautilusFile *file,
- const char *modifer,
- guint size_in_pixels);
+GdkPixbuf *nautilus_icon_factory_get_pixbuf_for_file (NautilusFile *file,
+ const char *modifer,
+ guint size_in_pixels);
+GdkPixbuf *nautilus_icon_factory_get_pixbuf_for_file_force_size (NautilusFile *file,
+ const char *modifier,
+ guint size_in_pixels);
/* Convenience routine for getting a pixbuf from an icon name
*/
@@ -146,11 +156,12 @@ GdkPixbuf * nautilus_icon_factory_get_pixbuf_from_name (const
guint size_in_pixels,
char **display_name);
-GtkIconTheme * nautilus_icon_factory_get_icon_theme (void);
-GnomeThumbnailFactory *nautilus_icon_factory_get_thumbnail_factory (void);
-gboolean nautilus_icon_factory_remove_from_cache (const char *icon_name,
- const char *modifier,
- guint size);
+GtkIconTheme * nautilus_icon_factory_get_icon_theme (void);
+GnomeThumbnailFactory *nautilus_icon_factory_get_thumbnail_factory (void);
+gboolean nautilus_icon_factory_remove_from_cache (const char *icon_name,
+ const char *modifier,
+ guint size);
+
#endif /* NAUTILUS_ICON_FACTORY_H */