summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-icon-factory.h
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-03-06 21:21:15 +0000
committerDarin Adler <darin@src.gnome.org>2000-03-06 21:21:15 +0000
commit2d3c87e1dfb67fe081a52e7de6c2bd9c9cd77a63 (patch)
tree890a3f0b44f1e48658447ab423c3b863c54571df /libnautilus-extensions/nautilus-icon-factory.h
parent7792555892ae09a56072b3498793d8361d6c569b (diff)
downloadnautilus-2d3c87e1dfb67fe081a52e7de6c2bd9c9cd77a63.tar.gz
Added the concept of separate X and Y scale factors to more
of the code. Even though we don't want to scale the two dimensions separately at the moment, I figured it was better to go in this direction than to remove all the separate X and Y stuff that Seth Nickell added. * libnautilus/gnome-icon-container-dnd.c (gnome_icon_container_receive_dropped_icons): * libnautilus/gnome-icon-container-private.h: * libnautilus/gnome-icon-container.c (icon_get_actual_size), (icon_new), (icon_get_size), (start_stretching), (update_icon), (gnome_icon_container_add), (gnome_icon_container_is_stretched), (gnome_icon_container_unstretch), (gnome_icon_container_move_icon): * libnautilus/gnome-icon-container.h: Got rid of the old "scale", "xscale", and "yscale" and replaced them with "scale_x" and "scale_y". Made the code always set the scale factor through the gnome_icon_container_move_icon bottleneck so the changes are all reported throught the icon_moved signal. * src/file-manager/fm-directory-view-icons.c: (add_icon_if_already_positioned), (fm_directory_view_icons_icon_moved_cb): Store only a single scale factor if the X and Y are both scaled exactly the same (the normal case). Also, use a default for the scale factor so we don't save 1.0 for every file. * libnautilus/nautilus-gtk-extensions.h: * libnautilus/nautilus-gtk-extensions.c: My original change required an additional marshal function. I decided to add it anyway even though I don't need it right now. * libnautilus/nautilus/nautilus-bookmark.c (nautilus_bookmark_get_pixmap_and_mask): Changed to use the nautilus_icon_factory_get_pixbuf_for_file convenience function which has a simpler interface. * libnautilus/nautilus-icon-factory.h: * libnautilus/nautilus-icon-factory.c: Added separate X and Y scaling of icons for possible future use; the convenience functions still use the same size in both dimentions. * components/music/.cvsignore: New directory, new .cvsignore needed. * RENAMING: Some more name change ideas.
Diffstat (limited to 'libnautilus-extensions/nautilus-icon-factory.h')
-rw-r--r--libnautilus-extensions/nautilus-icon-factory.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-icon-factory.h b/libnautilus-extensions/nautilus-icon-factory.h
index 9d3848df1..545211440 100644
--- a/libnautilus-extensions/nautilus-icon-factory.h
+++ b/libnautilus-extensions/nautilus-icon-factory.h
@@ -105,9 +105,12 @@ GList * nautilus_icon_factory_get_emblem_icons_for_file (Nautil
/* Render an icon to a particular size.
* Ownership of a ref. count in this pixbuf comes with the deal.
+ * This allows scaling in both dimensions. All other calls assume
+ * that X and Y scaling are the same.
*/
GdkPixbuf * nautilus_icon_factory_get_pixbuf_for_icon (NautilusScalableIcon *scalable_icon,
- guint size_in_pixels);
+ guint size_in_pixels_x,
+ guint size_in_pixels_y);
/* Convenience functions for the common case where you want to choose
* and render the icon into a pixbuf all at once.