Commit graph

33 commits

Author SHA1 Message Date
Ramiro Estrugo 584b28c403 Copy icons from gmc so that icon-association for mime type keys
work with nautilus.
2000-05-24 00:33:43 +00:00
Andy Hertzfeld 938da8dee4 fixed task 514, show file/folder permissions with emblems. Added Susan's
fixed task 514, show file/folder permissions with emblems.  Added
	Susan's images for "can't read" and "can't write", and made
	get_emblem_names return their names when appropriate
2000-05-22 23:47:28 +00:00
Andy Hertzfeld e04c173801 added Susan's new toolbar icons
added Susan's new toolbar icons
2000-05-10 07:16:34 +00:00
Andy Hertzfeld b11b42d4a7 implemented adding and removing new emblems
implemented adding and removing new emblems
2000-05-09 21:43:03 +00:00
Andy Hertzfeld edaa71b1d5 added an up arrow on the property browser title bar to act as an
added an up arrow on the property browser title bar to act as an
	affordance for go back; also, made add background check the
	mime type of the file selection and only add it if it's an image
2000-05-08 23:35:28 +00:00
John Sullivan 574a7c840a Fixed up code that limits how small icons are before they
stop showing embedded text. Too bad you can't see it in
	action until embedded text is turned back on.

	* icons/eazel/i-regular.xml: Added an embedded-text rectangle
	for one size smaller icon than had one before.

	* libnautilus-extensions/nautilus-icon-factory.c:
	Added #defines for minimum embedded text rectangle width
	and height.
	(embedded_text_rect_usable): New function, ensures that the
	embedded text rectangle is sufficiently large.
	(nautilus_icon_factory_embed_text),
	(nautilus_icon_factory_embed_file_text): Use new function to
	skip embedded text if rectangle is nonexistent or too small.

	* src/file-manager/fm-icon-view.c:
	(get_icon_images_callback): Removed the text-rectangle size
	limit here since now there's a universal one inside
	nautilus_icon_factory.
2000-05-07 00:50:34 +00:00
Andy Hertzfeld a151b66b83 added colors category image and another background
added colors category image and another background
2000-05-06 01:00:35 +00:00
Andy Hertzfeld f81dc0d45c 1st cut at the property browser for drag and drop customization
1st cut at the property browser for drag and drop customization
2000-05-03 01:11:00 +00:00
Andy Hertzfeld 9aad6753a6 changed the location of the novice home directory, and gave it a custom
changed the location of the novice home directory, and gave it
	a custom icon
2000-04-25 00:24:50 +00:00
Andy Hertzfeld 9f1eccb99b better abstraction for new, xml-based link files, plus added some objects
better abstraction for new, xml-based link files, plus added
       some objects for the novice home directory
2000-04-18 20:53:19 +00:00
Andy Hertzfeld 1ca4a4ba41 installed some icons for common file types
installed some icons for common file types
2000-04-16 04:38:51 +00:00
Andy Hertzfeld c599d12496 added Raph's scalable vector icons machinery
added Raph's scalable vector icons machinery
2000-04-14 01:33:35 +00:00
Andy Hertzfeld 615bb68313 added eazel theme open folder icons at different sizes, plus upgraded the
added eazel theme open folder icons at different sizes, plus
       upgraded the normal size one to make it less crufty
2000-04-13 03:54:58 +00:00
Andy Hertzfeld b6b126593e added framework for using custom images to reflect highlight state; used
added framework for using custom images to reflect highlight state;
	used it to make folders reflect drop-highlighting by opening (just
	in eazel theme for now)
2000-04-12 21:32:24 +00:00
Andy Hertzfeld 3c38b1490e more work on the service component
more work on the service component
2000-04-04 07:47:31 +00:00
Andy Hertzfeld 71bed26426 fixed bug #9, folder icon too small, by replacing the image with one
fixed bug #9, folder icon too small, by replacing the image with
       one that's the proper size.
2000-03-28 07:37:25 +00:00
Darin Adler bdf3c6c136 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.
2000-03-15 00:31:49 +00:00
Darin Adler 8a960c5ea6 Added nautilus_file_get_keywords, which returns a GList of keywords.
* libnautilus/nautilus-directory.h,
	libnautilus/nautilus-directory.c (get_file_metadata_node),
	(nautilus_directory_get_file_metadata),
	(nautilus_file_get_keywords): Added nautilus_file_get_keywords,
	which returns a GList of keywords.

	* libnautilus/nautilus-icon-factory.c (add_size_to_image_name),
	(get_themed_icon_file_path), (get_icon_file_path), (add_emblem),
	(nautilus_icon_factory_get_emblem_icons_for_file): Changed icon
	names to not include the extension and wired some extensions into
	the icon-reading code. The old code wired the entire file name, so
	this is a bit more flexible. Added code to return an emblem for
	each keyword attached to a file as well as the symbolic link emblem.

	* libnautilus/gnome-icon-container.c (update_icon): Handle NULL
	pixbufs for emblems. This happens when a keyword is specified that
	doesn't have a corresponding emblem icon.  Add g_list_reverse call
	to keep emblems in the correct order.

	* src/file-manager/fm-directory-view-icons.c
	(fm_directory_view_icons_merge_menus): Took out g_message left
	over from Bonobo menu merge work.

	* libnautilus/nautilus-glib-extensions.h,
	libnautilus/nautilus-glib-extensions.c
	(nautilus_g_list_free_deep): Added convenience function for
	getting rid of a GList of things that can be freed with g_free.

	* icons/Makefile.am, icons/certified.gif, icons/changed.gif,
	icons/confidential.gif, icons/emblem-certified.gif,
	icons/emblem-changed.gif, icons/emblem-confidential.gif,
	icons/emblem-encrypted.gif, icons/emblem-important.gif,
	icons/emblem-new.gif, icons/emblem-personal.gif,
	icons/emblem-remote.gif, icons/emblem-symbolic-link.png,
	icons/encrypted.gif, icons/i-symlink.png, icons/important.gif,
	icons/new.gif, icons/personal.gif, icons/remote.gif:
	Changed all emblem icons to have names that start with "emblem-".
2000-03-07 20:04:24 +00:00
Andy Hertzfeld 740fa0009c added 8 images for use as emblems
added 8 images for use as emblems
2000-03-07 08:24:34 +00:00
Andy Hertzfeld 618ca4bc4a implemented automatic thumbnail creation for large images
implemented automatic thumbnail creation for large images
2000-03-02 03:13:00 +00:00
Andy Hertzfeld 1b44e1796a this finishes the full set of multi-res icons for the generic document and
this finishes the full set of multi-res icons for the generic
      document and folder from Kenneth Christiansen
2000-02-23 20:02:17 +00:00
Andy Hertzfeld a4a2b0d6bc 12 and 24 pixel versions of the standard gnome file and folder icons,
12 and 24 pixel versions of the standard gnome file and folder icons,
       again contributed by Kenneth Christiansen
2000-02-23 03:09:16 +00:00
Andy Hertzfeld c407acb457 hi-res versions of the standard gnome folder icon, contributed by Kenneth
hi-res versions of the standard gnome folder icon, contributed by
       Kenneth Christiansen
2000-02-22 19:40:41 +00:00
Andy Hertzfeld a12301dbaf implemented text in icons feature, for eazel-style icons only also, added
implemented text in icons feature, for eazel-style icons only
       also, added multiple sizes of large gnome-style standard document
       icons contributed by Kenneth Christiansen
2000-02-22 10:09:59 +00:00
Andy Hertzfeld 3b2499e446 added Susan's document icons to eazel theme in 4 sizes
added Susan's document icons to eazel theme in 4 sizes
2000-02-22 01:11:14 +00:00
Darin Adler 3bce71a502 Hand tuned icons for multiple resolutions.
So for example you can have an icon designed for the 96x96
	size, which is called i-directory-96.png, and it will be
	loaded instead of loading i-directory.png and scaling it.

	* libnautilus/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_icon_name_for_regular_file),
	(add_size_to_icon_name), (nautilus_icon_factory_load_icon),
	(nautilus_icon_factory_create_image_for_item),
	(get_larger_icon_size), (get_smaller_icon_size),
	(get_next_icon_size_to_try), (load_specific_image),
	(load_image_for_scaling), (load_image_scale_if_necessary),
	(nautilus_icon_factory_mark_recently_used), (mark_recently_used),
	(nautilus_icon_factory_get_pixbuf_for_icon),
	(get_image_from_cache), (nautilus_icon_factory_scale): Changed the
	icon factory so it will look for icons of multiple resolutions and
	scale the nearest. Also made other improvements including sharing
	a single fallback icon instead of making multiple ones, using the
	"core-dump" icon for files named "core", adding some additional
	g_return_if_fail.

	* libnautilus/nautilus-icon-factory.c:
	(self_test_next_icon_size_to_try),
	(nautilus_self_check_icon_factory):
	* libnautilus/nautilus-lib-self-check-functions.h:
	The new code needed a bit of self-check code, so I added it.

	* libnautilus/nautilus-directory.c:
	(nautilus_directory_try_to_read_metafile),
	(nautilus_directory_construct_alternate_metafile_uri):
	Since "make check" was failing, I checked to see what was wrong.
	The code that was respecting the new "valid_fields" part of
	GnomeVFSFileInfo was looking at the wrong field (flags instead
	of valid_fields), which caused all metafile reading to fail.
	While debugging this, I noticed that the alternate metafiles
	had particularly bad long names, so I fixed that too.

	* libnautilus/nautilus-directory.c: (nautilus_file_ref):
	* libnautilus/nautilus-glib-extensions.c:
	(nautilus_strdup_strftime):
	* libnautilus/nautilus-string.c: (nautilus_string_to_int):
	Switched from using <limits.h> constants to the ones from
	<glib.h>. I have no idea why I made this change. All hail
	glib! C Standard be damned!

	* fm-directory-view.c:
	(use_eazel_theme_icons_cb), (add_menu_item),
	(fm_directory_view_real_append_background_context_menu_items):
	Started on a user interface to switch to the Eazel theme
	icons so you can see the multiple-resolution icons, but
	I wanted to check in, so I stopped before it was done.

	* src/nautilus-index-title.c:
	Reindented Andy's new code to match the emacs mode header.

	* configure.in:
	* icons/Makefile.am:
	* icons/eazel/.cvsignore:
	* icons/eazel/Makefile.am:
	* icons/eazel/i-directory-24.png:
	* icons/eazel/i-directory-36.png:
	* icons/eazel/i-directory-72.png:
	* icons/eazel/i-directory-96.png:
	* icons/eazel/i-directory.png:
	I needed some variable-size icons to demonstrate the multiple
	resolution support in the icon factory, so I added a few
	directory icons from gnomad. Since these don't match the other
	icons, I made them part of an "eazel" icons theme.

	* RENAMING: Some new name ideas.
2000-02-18 01:17:30 +00:00
Andy Hertzfeld 639b6426f3 more work on the new index tabs; they draw properly now, but they're still
more work on the new index tabs; they draw properly now, but they're
       still not ready for prime time.
2000-02-09 06:03:43 +00:00
Andy Hertzfeld f8db5f0606 new class for the tabs in the index panel. It's still incomplete and not
new class for the tabs in the index panel.  It's still incomplete and
       not hooked up yet, but it will be soon.
2000-02-08 00:05:02 +00:00
Andy Hertzfeld c729ae0409 fixed update problem with zoom control and disabled arrows when
fixed update problem with zoom control and disabled arrows when
       appropriate.
       Also, crassly slapped an Eazel logo on the nautilus image
2000-02-02 04:41:22 +00:00
Andy Hertzfeld 7c97b308cf added zoom control to location bar, not yet wired up to the content view
added zoom control to location bar, not yet wired up to the content view
2000-02-01 11:27:43 +00:00
Elliot Lee 78353a733d Add gratuitous "About" box.
Add gratuitous "About" box.
1999-12-21 01:47:28 +00:00
Darin Adler 7bc3340f5a Ignore more generated files. 1999-12-15 00:04:42 +00:00
Elliot Lee 0e11f0e3f5 Add icons
* configure.in, Makefile.am, icons/: Add icons

* src/file-manager/fm-directory-view.c: Everything goes inside the scroll-frame, not the
view itself.
1999-12-14 19:46:16 +00:00