summaryrefslogtreecommitdiff
path: root/icons
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2000-03-15 00:31:49 +0000
committerDarin Adler <darin@src.gnome.org>2000-03-15 00:31:49 +0000
commitbdf3c6c1366ad421815e7de00cc3d8a929b0443e (patch)
tree82ad90eaba5fbfa3bdc1b3925c401acf052ce31a /icons
parentfbae65f1dc0b01da98006ffeb3c6c13af476e426 (diff)
downloadnautilus-bdf3c6c1366ad421815e7de00cc3d8a929b0443e.tar.gz
Added additional data to icons so they can specify where the
embedded text fits in each icon. * icons/eazel/Makefile.am, icons/eazel/i-regular.xml: Added the file to specify attributes of icons. Specifically added the attribute that says there is space for embedded text in the Eazel-theme regular icon. * libnautilus/nautilus-icon-factory.h: * libnautilus/nautilus-icon-factory.c: (get_child_node_by_property), (get_themed_icon_file_path), (get_icon_file_path), (nautilus_icon_factory_get_thumbnail_uri), (load_specific_image), (load_image_for_scaling), (get_image_from_cache), (load_image_scale_if_necessary), (nautilus_icon_factory_get_pixbuf_for_icon), (nautilus_icon_factory_get_pixbuf_for_file): Added code to read a rectangle for the embedded text along with the icon, cache it with the icon, scale it with the icon, and return it to the caller along with the icon. * libnautilus/nautilus-icons-view-icon-item.c: (nautilus_icons_view_icon_item_initialize_class), (nautilus_icons_view_icon_item_set_arg), (nautilus_icons_view_icon_item_get_arg), (nautilus_icons_view_icon_item_get_image), (nautilus_icons_view_icon_item_set_image), (nautilus_art_irect_to_gdk_rectangle), (draw_mini_text), (draw_embedded_text), (nautilus_icons_view_icon_item_draw): Changed the code that draws the embedded text to respect the text rectangle passed in. Changed the pixbuf setting to use a function instead of the arg interface and take a text rectangle along with the pixbuf. * libnautilus/gnome-icon-container-dnd.c (gnome_icon_container_dnd_begin_drag): * libnautilus/gnome-icon-container.c: (icon_get_actual_size): Got rid of callers who were using the arg interface to get at the image of an icon ("NautilusIconsViewIconItem::pixbuf"). * src/file-manager/fm-directory-view-icons.c: (get_icon_property_cb): Get rid of hard-coded rule that only themes with eazel at the front of their names can display text inside the icons. * libnautilus/gnome-icon-container.c: (icon_new): Fixed a bug where icons would be super-tiny if they got too big, like if you entered a directory that was zoomed all the way in. (start_stretching), (ungrab_stretch_icon), (end_stretching), (gnome_icon_container_show_stretch_handles): Added code to grab the pointer while stretching an icon. (item_event_cb): Added a return statement that John forgot when he was editing. Without that, it was falling through to the next case, which had the same effect anyway. (update_icon): Pass the text rectangle through from the icon factory to the icon canvas item, using the new call instead of the old arg interface approach. * components/help/.cvsignore: Added entries for .la and .lo files. * components/help/Makefile.am: * components/help/hyperbola-nav-index.c: * components/help/hyperbola-nav-search.c: * libnautilus/nautilus-directory-private.h: * libnautilus/nautilus-directory.c: * src/nautilus-bookmarklist.c: Fixed flags for gnome-xml includes. Someone pointed out that you are supposed to include these as "#include <tree.h>", not "#include <gnome-xml/tree.h>" so I fixed our uses to work that way. * libnautilus/nautilus-directory.c: (nautilus_directory_get_file_metadata_node): Fixed code that was destroying something allocated by gnome-xml with g_free instead of xmlFree. * libnautilus/nautilus-file.c: (nautilus_file_get_keywords), (nautilus_file_set_keywords): Fixed storage leak where we were getting a property and not freeing it. * libnautilus/nautilus-default-file-icon.h: * libnautilus/nautilus-default-file-icon.c: * libnautilus/nautilus-icon-factory.c: (load_image_for_scaling): Got rid of the global that tells whether the default icon has an alpha channel -- it's not hardwired TRUE.
Diffstat (limited to 'icons')
-rw-r--r--icons/eazel/Makefile.am2
-rw-r--r--icons/eazel/i-regular.xml6
2 files changed, 7 insertions, 1 deletions
diff --git a/icons/eazel/Makefile.am b/icons/eazel/Makefile.am
index faf8a17c6..497a28025 100644
--- a/icons/eazel/Makefile.am
+++ b/icons/eazel/Makefile.am
@@ -7,9 +7,9 @@ eazel_DATA = \
i-directory-72.png \
i-directory-96.png \
i-regular.png \
+ i-regular.xml \
i-regular-36.png \
i-regular-72.png \
i-regular-96.png
-
EXTRA_DIST = $(eazel_DATA)
diff --git a/icons/eazel/i-regular.xml b/icons/eazel/i-regular.xml
new file mode 100644
index 000000000..a8f42b472
--- /dev/null
+++ b/icons/eazel/i-regular.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<ICON_SET>
+ <ICON SIZE="48" EMBEDDED_TEXT_RECTANGLE="5,4,38,47"/>
+ <ICON SIZE="72" EMBEDDED_TEXT_RECTANGLE="6,6,51,62"/>
+ <ICON SIZE="96" EMBEDDED_TEXT_RECTANGLE="8,8,76,94"/>
+</ICON_SET>