summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-icon-container.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-04-16 18:29:19 +0000
committerDarin Adler <darin@src.gnome.org>2001-04-16 18:29:19 +0000
commit88eb050895ac4ba9e3a428224e99a16d0fd35689 (patch)
tree8e5144e8b8277702f6965bb78aa78d052a940cc3 /libnautilus-private/nautilus-icon-container.c
parent17af0c518cd34c079fe81a8170932b5d365b5088 (diff)
downloadnautilus-88eb050895ac4ba9e3a428224e99a16d0fd35689.tar.gz
Fixed API to icon factory that took an anti-aliased parameter when
creating a scalable icon. Instead it should be possible to get a scalable icon and then get either an anti-aliased-optimized or non-anti-alias-optimized version of the icon. * libnautilus-extensions/nautilus-bookmark.h: * libnautilus-extensions/nautilus-bookmark.c: (nautilus_bookmark_get_pixmap_and_mask): Pass FALSE so we get the non-anti-aliased version. (nautilus_bookmark_get_pixbuf): Add parameter to indicate if we want the anti-aliased-optimized version or not. (nautilus_bookmark_update_icon): Get rid of anti-aliased boolean here since we are just updating the scalable icon. (nautilus_bookmark_set_icon_to_default): Get rid of anti-aliased boolean here since we are just updating the scalable icon. * libnautilus-extensions/nautilus-icon-container.c: (nautilus_icon_container_update_icon): Pass in a flag to indicate if we need the anti-aliased version of the icon or not. * libnautilus-extensions/nautilus-icon-factory.h: * libnautilus-extensions/nautilus-icon-factory.c: (nautilus_scalable_icon_new_from_text_pieces): Removed the anti-aliased parameter. (nautilus_scalable_icon_hash), (nautilus_scalable_icon_equal): Remove the anti-aliased flag. A scalable icon itself is created before we make the "anti-aliased or not" choice. (nautilus_icon_factory_get_icon_for_file): Since we no longer know whether the icon will be needed anti-aliased or not, make the thumbnail code always use the anti-aliased version (and added FIXME). Also changed the "loading" image to use the normal icon name case instead of hard-coding. (nautilus_icon_factory_get_emblem_icon_by_name): Removed the anti-aliased parameter. (nautilus_icon_factory_get_emblem_icons_for_file): Removed the anti-aliased parameter. (load_specific_icon): Add an anti-aliased parameter. (load_icon_for_scaling): Add an anti-aliased parameter. (load_icon_scale_if_necessary): Pass in the anti-aliased parameter from the icon size request. (get_icon_from_cache): Pass in the anti-aliased parameter from the icon size request. (nautilus_icon_factory_get_pixbuf_for_icon): Add an anti-aliased parameter. (cache_key_hash): Include the anti-aliased flag in the hash. (cache_key_equal): Include the anti-aliased flag in the compare. (nautilus_icon_factory_get_pixbuf_for_file): Pass the anti-aliased parameter into the get_pixbuf half, not the get_icon_for_file half. (nautilus_icon_factory_get_pixbuf_from_name): Pass the anti-aliased parameter into the get_pixbuf half, not the scalable_icon_new half. (load_icon_with_embedded_text): Remove the anti-aliased parameter. * src/file-manager/fm-icon-view.c: (get_icon_images_callback): Get rid of code to pass in the anti-aliased parameter. * src/file-manager/fm-list-view.c: (fm_list_view_get_emblem_pixbufs_for_file): Pass the anti-aliased parameter to the pixbuf-getting function, not the scalable-icon-getting part. * src/nautilus-bookmark-parsing.c: (nautilus_bookmark_new_from_node): No need to pass an anti-aliased parameter (before it was always FALSE). * src/nautilus-sidebar-title.c: (update_emblems): Pass FALSE for the anti-aliased parameter to the get_pixbuf call rather than to the get_icons call. * src/nautilus-window-manage-views.c: (get_history_list_callback): No need to pass FALSE for anti-aliased any more. * src/nautilus-window-menus.c: (append_bookmark_to_menu): No need to pass FALSE for anti-aliased any more.
Diffstat (limited to 'libnautilus-private/nautilus-icon-container.c')
-rw-r--r--libnautilus-private/nautilus-icon-container.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-icon-container.c b/libnautilus-private/nautilus-icon-container.c
index 6bda841d1..fba118c60 100644
--- a/libnautilus-private/nautilus-icon-container.c
+++ b/libnautilus-private/nautilus-icon-container.c
@@ -3749,6 +3749,7 @@ nautilus_icon_container_update_icon (NautilusIconContainer *container,
icon_size_y,
max_image_size * icon->scale_x,
max_image_size * icon->scale_y,
+ nautilus_icon_container_get_anti_aliased_mode (container),
&attach_points,
TRUE);
@@ -3784,6 +3785,7 @@ nautilus_icon_container_update_icon (NautilusIconContainer *container,
icon_size_y,
MAXIMUM_EMBLEM_SIZE,
MAXIMUM_EMBLEM_SIZE,
+ nautilus_icon_container_get_anti_aliased_mode (container),
NULL,
FALSE);
if (emblem_pixbuf != NULL) {
@@ -4118,8 +4120,8 @@ gboolean
nautilus_icon_container_get_anti_aliased_mode (NautilusIconContainer *container)
{
GnomeCanvas *canvas;
+
canvas = GNOME_CANVAS (container);
-
return canvas->aa;
}