1. 18 Feb, 2000 2 commits
    • Darin Adler's avatar
      Hand tuned icons for multiple resolutions. · 3bce71a5
      Darin Adler authored
      	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.
      3bce71a5
    • Jonathan Blandford's avatar
      forgot to commit this · f32e59de
      Jonathan Blandford authored
      f32e59de
  2. 17 Feb, 2000 7 commits
  3. 16 Feb, 2000 9 commits
    • Jonathan Blandford's avatar
      handle file:// · 7ad52de2
      Jonathan Blandford authored
      7ad52de2
    • Elliot Lee's avatar
      Fixups for VFS usage. Search info path for files. · b62e6d7d
      Elliot Lee authored
      
      
      * components/html/ntl-web-browser.c: Fixups for VFS usage.
      * components/help/converters/gnome-info2html2/main.c: Search info path for files.
      b62e6d7d
    • Elliot Lee's avatar
      Fix warning. Update for Bonobo UIH changes. Update repo ID for Bonobo · e8c96238
      Elliot Lee authored
      
      
      * components/help/hyperbola-nav-index.c: Fix warning.
      * components/history/ntl-history-view.c: Update for Bonobo UIH changes.
      * components/html/main.c: Update repo ID for Bonobo changes.
      * src/ntl-view-bonobo-control.c: Likewise
      * src/ntl-view-bonobo-subdoc.c: Likewise
      * src/ntl-view-nautilus.c: Likewise
      * src/ntl-view.c: Only check for death every other second.
      * components/html/ntl-web-browser: Debugging printfs for now
      e8c96238
    • Darin Adler's avatar
      Added icon stretching and did some cleanups. · 9b94323c
      Darin Adler authored
      	Stretched icons aren't yet persistent (the scale factor is not
      	saved in metadata), but that's not much more work.
      
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.h:
      	* libnautilus/gnome-icon-container.c: (icon_new), (icon_position),
      	(icon_set_position), (icon_get_size), (icon_set_size),
      	(icon_toggle_selected), (icon_select), (icon_set_selected),
      	(button_press_event), (gnome_icon_container_begin_stretch),
      	(start_stretching), (gnome_icon_container_stretch),
      	(continue_stretching), (gnome_icon_container_end_stretch),
      	(end_stretching), (button_release_event), (motion_notify_event),
      	(handle_icon_button_press), (gnome_icon_container_clear),
      	(request_update_one), (update_icon), (get_first_selected_icon),
      	(gnome_icon_container_show_stretch_handles),
      	(gnome_icon_container_has_stretch_handles),
      	(gnome_icon_container_is_stretched),
      	(gnome_icon_container_unstretch), (compute_stretch),
      	(nautilus_self_check_compute_stretch),
      	(nautilus_self_check_gnome_icon_container):
      	* libnautilus/nautilus-icons-view-icon-item.h:
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	(nautilus_icons_view_icon_item_draw),
      	(nautilus_icons_view_icon_item_point),
      	(nautilus_icons_view_icon_item_set_show_stretch_handles),
      	(nautilus_icons_view_icon_item_get_hit_stretch_handle):
      	* libnautilus/nautilus-lib-self-check-functions.h:
      	Added machinery for stretching icons.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-directory-view.c:
      	(append_item_context_menu_items),
      	(fm_directory_view_real_append_item_context_menu_items),
      	(fm_directory_view_initialize_class), (create_item_context_menu):
      	Added machinery for views to have view-specific menu items for
      	icons as well as for the window as a whole.
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_initialize_class),
      	(fm_directory_view_icons_append_item_context_menu_items),
      	(show_stretch_handles_cb), (unstretch_item_cb):
      	Added menu items for stretching icons.
      
      	* libnautilus/gnome-icon-container.c: (start_rubberbanding):
      	Fixed bug that would result in two rubberband timeouts at
      	once if you did rubberbanding quickly.
      
      	* components/notes/.cvsignore: Andy's new component needs a
      	.cvsignore file for its generated pieces.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_try_to_read_metafile),
      	(nautilus_directory_read_metafile):
      	Simplified logic in metafile-reading functions and fixed a bug
      	where the vfs handle would be left open if certain categories
      	of errors occurred.
      
      	* libnautilus/nautilus-gtk-extensions.h:
      	Added a missing gtk_marshal function.
      
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	(nautilus_icon_size_for_zoom_level),
      	(nautilus_get_icon_size_for_zoom_level),
      	(nautilus_icon_factory_get_pixbuf_for_file),
      	(nautilus_icon_factory_get_pixmap_and_mask_for_file):
      	* src/nautilus-index-title.c: (nautilus_index_title_set_up_icon):
      	* src/nautilus-zoom-control.c: (set_zoom_level):
      	* src/file-manager/fm-directory-view-list.c:
      	(fm_directory_view_list_bump_zoom_level), (install_icon):
      	Made some API improvements for the icon factory. Added a missing
      	get_ to the name nautilus_get_icon_size_for_zoom_level and added
      	convenience functions for the most common uses of the factory.
      
      	* libnautilus/ntl-content-view-frame.c:
      	* libnautilus/ntl-meta-view-frame.c:
      	* libnautilus/ntl-view-frame.c:
      	Weaned all the files in libnautilus itself from using the
      	libnautilus.h include file. They instead include the parts that
      	they need. Also added some missing <config.h> includes.
      9b94323c
    • Andy Hertzfeld's avatar
      added logic to break the title in the index panel into two lines so it can · d3d8e1d7
      Andy Hertzfeld authored
      
             added logic to break the title in the index panel into two lines
             so it can use a larger font, if it can find an appropriate
             breaking point.
      d3d8e1d7
    • Maciej Stachowiak's avatar
      gtk_quit_add_destroy the NautilusWindow at level 1, so that we can clean · 0d857f95
      Maciej Stachowiak authored
      	* src/ntl-window.c (nautilus_window_init): gtk_quit_add_destroy
      	the NautilusWindow at level 1, so that we can clean up CORBA
      	objects and such when we Exit rather than Closing the last window.
      0d857f95
    • Maciej Stachowiak's avatar
      sink and ref the notebook and unref in the destructor, so it gets · 8b49231a
      Maciej Stachowiak authored
      	* src/ntl-index-panel.c: sink and ref the notebook and unref in
      	the destructor, so it gets destroyed even if it never ends up
      	getting added to the index panel.
      
      	* src/ntl-view-nautilus.c: Don't ref the Control interface we just
      	QI'd; query_interface implicitly refs.
      8b49231a
    • Elliot Lee's avatar
      Pay attention to the GnomeVFSFileInfo flags to determine whether to read · 0189d027
      Elliot Lee authored
      
      
      * libnautilus/nautilus-directory.c: Pay attention to the
      GnomeVFSFileInfo flags to determine whether to read the metafile.
      
      * components/html/ntl-web-browser.c: Try to fall back to using
      gnome-vfs if we can't load it via libwww. Sort of bad hack, but it
      just might work.
      0189d027
    • John Sullivan's avatar
      History metaview now lists all locations visited in this session, from most · 4535d2bb
      John Sullivan authored
      recent (top) to longest ago, with no duplicates.
      4535d2bb
  4. 15 Feb, 2000 13 commits
  5. 14 Feb, 2000 9 commits
    • Darin Adler's avatar
      Undo the cast. · f90a9976
      Darin Adler authored
      f90a9976
    • Darin Adler's avatar
      Need a cast in here so people can build while I wait for the OK from · 1f59bf3c
      Darin Adler authored
      	* libnautilus/nautilus-icon-factory.c:
      	(nautilus_icon_factory_load_icon):
      	Need a cast in here so people can build while I wait for the OK
      	from Federico to check in my const change to gdk-pixbuf.
      1f59bf3c
    • Elliot Lee's avatar
      Use GPOINTER_TO_UINT() instead of a manual cast. · e22cc60a
      Elliot Lee authored
      
      
      * libnautilus/nautilus-icon-factory.c: Use GPOINTER_TO_UINT() instead of a manual cast.
      e22cc60a
    • Darin Adler's avatar
      Handle the case where you try to make a NautilusDirectory object for · db87f5e7
      Darin Adler authored
      	* libnautilus/nautilus-directory.c: (nautilus_directory_read_metafile):
      	Handle the case where you try to make a NautilusDirectory object for
      	something that's a file.
      
      	* libnautilus/nautilus-directory.c: (nautilus_directory_get_metadata):
      	Handle NULL directory objects better.
      
      	* src/ntl-index-panel.c:
      	Changed handling of NULL directory case so it will display something
      	instead of doing early exits that leave the display as-is.
      
      	* src/nautilus-index-title.h:
      	* src/nautilus-index-title.c:
      	Reformatted, some minor cleanups.
      db87f5e7
    • Darin Adler's avatar
      Redid the icon factory to fix a few things: · 291fb2d6
      Darin Adler authored
      	* libnautilus/nautilus-icon-factory.c:
      	Redid the icon factory to fix a few things:
      
      	- Replaced the existing non-working count-based LRU algorithm with
      	  one that works (uses a linked list).
      	- Keep resized icons in the cache.
      	- Hand out a single NautilusScalableIcon when multiple callers ask
      	  for the same icon instead of a new one each time.
      	- Fixed one bug where pixbuf's would get an extra ref and never get
      	  freed once they are no longer used.
      
      	* libnautilus/nautilus-metadata.h:
      	* src/nautilus-index-title.c (nautilus_index_title_set_up_info):
      	* libnautilus/nautilus-icon-factory.c
      	(nautilus_icon_factory_get_icon_for_file):
      	Added keys for the two pieces of metadata Andy just added.
      
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c: (scroll),
      	(make_icon_visible), (set_scroll_region): Fixed the code that
      	resizes the canvas as items are added and removed to properly
      	handle the case where the canvas extends into negative-coordinate
      	territory. This included removing the width and height that were
      	stored in the private structure.
      
      	* libnautilus/nautilus-directory.c: (nautilus_directory_get): Tiny
      	formatting tweak.
      291fb2d6
    • John Sullivan's avatar
      Quick fixes to some NULL-dereference problems in new index title code; · 6db4c052
      John Sullivan authored
      also made zoom level change stick until you visit a location that had a zoom
      level set earlier.
      6db4c052
    • Jonathan Blandford's avatar
      sync to laptop · 305e3f87
      Jonathan Blandford authored
      305e3f87
    • Elliot Lee's avatar
      Send status strings for now, until nautilus knows how to generate them · 72b6dbb7
      Elliot Lee authored
      
      
      * components/html/ntl-web-browser.c: Send status strings for now,
      until nautilus knows how to generate them from selection info.
      72b6dbb7
    • Andy Hertzfeld's avatar
      fixed warning about measuring NULL string that Elliot pointed out · bc961a70
      Andy Hertzfeld authored
      
             fixed warning about measuring NULL string that Elliot pointed out
      bc961a70