1. 14 Sep, 2000 1 commit
    • Pavel Cisler's avatar
      Add new smart duplicate name generator. Fixes bugzilla 2592, 2363, 2701. · 51f1a720
      Pavel Cisler authored
      2000-09-14  Pavel Cisler  <pavel@eazel.com>
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(extract_string_until), (parse_previous_duplicate_name),
      	(make_next_duplicate_name), (get_duplicate_name),
      	(get_next_duplicate_name), (handle_xfer_duplicate),
      	Add new smart duplicate name generator.
      	Fixes bugzilla 2592, 2363, 2701.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_self_check_file_operations),
      	(test_next_duplicate_name):
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	Add a test rig for the new code.
      51f1a720
  2. 05 Sep, 2000 1 commit
    • Ramiro Estrugo's avatar
      Add hook for scalable fonts test which im going to add soon. · b01779bf
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	Add hook for scalable fonts test which im going to add soon.
      
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	(nautilus_scalable_font_text_width), New convenience function to
      	measure just the text width.
      	(nautilus_self_check_scalable_font): Add hook for scalable fonts
      	test which im going to add soon.
      b01779bf
  3. 22 Aug, 2000 1 commit
    • Mathieu Lacage's avatar
      Add rebecka's class for queues. · b84f0168
      Mathieu Lacage authored
      2000-08-22  Mathieu Lacage  <mathieu@eazel.com>
      
      	Add rebecka's class for queues.
      
      	* libnautilus-extensions/Makefile.am: add files.
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	add self-test function for queues
      	* libnautilus-extensions/nautilus-queue.c: (nautilus_queue_new),
      	(nautilus_queue_add), (nautilus_queue_remove),
      	(nautilus_queue_free_deep), (nautilus_queue_is_empty),
      	(nautilus_queue_free), (nautilus_self_check_queue):
      	* libnautilus-extensions/nautilus-queue.h:
      b84f0168
  4. 21 Aug, 2000 1 commit
    • Ramiro Estrugo's avatar
      Tasks: 1612, 1274, 1511 and 1588. · 70505287
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	* libnautilus-extensions/nautilus-scalable-font.h:
      
      	New GtkObject subclass that provdes a simple interface to raph's
      	librsvg FreeType2 bases anti aliased text rendering.
      
      	* libnautilus-extensions/nautilus-font-picker.c:
      	* libnautilus-extensions/nautilus-font-picker.h:
      
      	New font picker class.  I will soon use it in the preferences
      	dialog instead of the current one.
      
      	* libnautilus-extensions/nautilus-buffered-widget.c:
      	* libnautilus-extensions/nautilus-buffered-widget.h:
      
      	New virtual widget class that encapsulates the details of finding
      	a suitable background for compositing pixbufs.
      
      	* libnautilus-extensions/nautilus-image.c:
      	* libnautilus-extensions/nautilus-image.h:
      
      	Rewritten NautilusImage class.  Took out all the label stuff,
      	which lives in its own class.  Now subclassed from
      	NautilusBufferedWidget so that background the image gets
      	composited on is always correct and groks NautilusBackground.
      
      	* libnautilus-extensions/nautilus-label.c:
      	* libnautilus-extensions/nautilus-label.h:
      
      	New NautilusLabel widget class.  A label widget that is capable of
      	displaying anti aliased text composited over a complex background.
      
      	The background can be installed as NautilusBackground on a
      	NautilusLabel widget or any of its ancestors.  The best background
      	will automatically be found and used by the widget.
      
      	* services/nautilus-dependant-shared/shared-service-widgets.c,
      	* services/nautilus-dependant-shared/shared-service-widgets.h,
      	* services/startup/nautilus-view/nautilus-service-startup-view.c:
      
      	Update for changes in the NautilusImage api.  Unfortunately, these
      	components are slightly broken now cause of the NautilusImage
      	changes.  I will fix them shortly.
      
      	* libnautilus-extensions/nautilus-string-map.c:
      	* libnautilus-extensions/nautilus-string-map.h:
      
      	New simple class to map an arbitrary number of strings to a single
      	string.
      
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	Add tests for the new string map class.
      
      	* libnautilus-extensions/Makefile.am:
      
      	Build the new widgets.  Also add some depedencies on the static
      	libraries we link into this beast.  This way,
      	libnautilus-extensions will rebuild of one if its dependency
      	static libs is touched.
      
      	* test/.cvsignore,
      	* test/Makefile.am,
      	* test/test-nautilus-font-picker.c,
      	* test/test-nautilus-font.c,
      	* test/test-nautilus-image.c,
      	* test/test-nautilus-label.c:
      
      	Update test programs for new widgets.
      70505287
  5. 15 Aug, 2000 1 commit
    • Darin Adler's avatar
      Getting closer to an implementation of the shared trash. Did a bit · 8d0a34c5
      Darin Adler authored
      	of factoring so that the trash has its own NautilusDirectory
      	subclass now, and the appropriate functions are virtual.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_are_all_files_seen),
      	(nautilus_directory_contains_file),
      	(nautilus_directory_call_when_ready),
      	(nautilus_directory_cancel_callback),
      	(nautilus_directory_file_monitor_add),
      	(nautilus_directory_file_monitor_remove),
      	(nautilus_directory_is_not_empty): Made all these functions
      	virtual.
      	(wait_until_ready_callback),
      	(nautilus_directory_wait_until_ready): Fixed some names and got
      	rid of some type casts.
      
      	* libnautilus-extensions/nautilus-gtk-macros.h: Added a new macro
      	to make calls to virtual functions easier to read.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_initialize):
      	Minor cleanup and name changes.
      
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	* libnautilus-extensions/nautilus-search-uri.h:
      	* libnautilus-extensions/nautilus-search-uri.c:
      	(nautilus_is_search_uri): Added a function to tell if a URI is a
      	search URI.
      	(nautilus_self_check_search_uri): Added self-checks.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(allow_metafile):
      	* src/nautilus-switchable-navigation-bar.c:
      	(nautilus_switchable_navigation_bar_set_location):
      	* src/nautilus-window-manage-views.c:
      	(nautilus_window_end_location_change_callback):
      	Changed to use the is_search_uri function.
      
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	(trash_destroy), (trash_contains_file), (trash_call_when_ready),
      	(trash_cancel_callback), (trash_file_monitor_add),
      	(trash_file_monitor_remove), (trash_are_all_files_seen),
      	(trash_is_not_empty), (nautilus_trash_directory_initialize_class):
      	Trash versions of the virtual functions.
      
      	* libnautilus-extensions/nautilus-vfs-directory.c: (vfs_destroy),
      	(vfs_contains_file), (vfs_call_when_ready), (vfs_cancel_callback),
      	(vfs_file_monitor_add), (vfs_file_monitor_remove),
      	(vfs_are_all_files_seen), (any_non_metafile_item),
      	(vfs_is_not_empty), (nautilus_vfs_directory_initialize_class):
      	Non-trash versions of the virtual functions (mostly code moved
      	from nautilus-directory.c).
      
      	* src/file-manager/fm-directory-view.c:
      	(disconnect_model_handlers): Fix a place that relied on doing a
      	call with a NautilusDirectory of NULL. We don't need to be so
      	tolerant of NULL any more now that nautilus_directory_get always
      	returns a non-NULL result for any URI.
      
      	* src/nautilus-window.c: (nautilus_window_realize):
      	A little code cleanup.
      	(nautilus_window_load_content_view_menu): Fixed a storage leak
      	of the method string.
      
      	* src/nautilus.oafinfo: Added trash and gnome-trash as additional
      	URIs supported by the icon and list view.
      8d0a34c5
  6. 07 Aug, 2000 1 commit
  7. 10 Jun, 2000 1 commit
    • Ramiro Estrugo's avatar
      Move the nautilus-widgets classes to libnautilus-extensions. · 2b631110
      Ramiro Estrugo authored
      * Makefile.am:
      * components/hardware/Makefile.am:
      * components/help/Makefile.am:
      * components/history/Makefile.am:
      * components/html/Makefile.am:
      * components/loser/content/Makefile.am:
      * components/loser/sidebar/Makefile.am:
      * components/music/Makefile.am:
      * components/notes/Makefile.am:
      * components/rpmview/Makefile.am:
      * components/sample/Makefile.am:
      * components/services/startup/nautilus-view/Makefile.am:
      * components/services/time/nautilus-view/Makefile.am:
      * components/services/trilobite/sample/nautilus-view/Makefile.am:
      * components/websearch/Makefile.am:
      * configure.in:
      * helper-utilities/authenticate/Makefile.am:
      * helper-utilities/authenticate/nautilus-authenticate.c:
      * libnautilus-extensions/Makefile.am:
      * libnautilus-extensions/nautilus-caption-table.c:
      * libnautilus-extensions/nautilus-caption.c:
      * libnautilus-extensions/nautilus-file-utilities.c:
      * libnautilus-extensions/nautilus-global-preferences.c:
      * libnautilus-extensions/nautilus-global-preferences.h:
      * libnautilus-extensions/nautilus-lib-self-check-functions.h:
      * libnautilus-extensions/nautilus-link-set.c:
      * libnautilus-extensions/nautilus-link.c:
      * libnautilus-extensions/nautilus-password-dialog.c:
      * libnautilus-extensions/nautilus-preference.c:
      (nautilus_self_check_preference):
      * libnautilus-extensions/nautilus-preferences-box.c:
      * libnautilus-extensions/nautilus-preferences-box.h:
      * libnautilus-extensions/nautilus-preferences-dialog.c:
      * libnautilus-extensions/nautilus-preferences-dialog.h:
      * libnautilus-extensions/nautilus-preferences-group.c:
      * libnautilus-extensions/nautilus-preferences-group.h:
      * libnautilus-extensions/nautilus-preferences-item.c:
      * libnautilus-extensions/nautilus-preferences-item.h:
      * libnautilus-extensions/nautilus-preferences-pane.c:
      * libnautilus-extensions/nautilus-preferences-pane.h:
      * libnautilus-extensions/nautilus-preferences.c:
      * libnautilus-extensions/nautilus-preferences.h:
      * libnautilus-extensions/nautilus-radio-button-group.c:
      * libnautilus-extensions/nautilus-string-picker.c:
      * libnautilus-extensions/nautilus-string-picker.h:
      * libnautilus-extensions/nautilus-text-caption.c:
      * libnautilus-extensions/nautilus-text-caption.h:
      * libnautilus-extensions/nautilus-undo-manager.c:
      * libnautilus-extensions/nautilus-user-level-manager.c:
      * libnautilus-extensions/nautilus-user-level-manager.h:
      * libnautilus-extensions/nautilus-widgets-self-check-functions.c:
      * libnautilus-extensions/nautilus-widgets-self-check-functions.h:
      * libnautilus-extensions/test-nautilus-preferences.c:
      * libnautilus-extensions/test-preferences.c:
      * nautilus-widgets/Makefile.am:
      * nautilus-widgets/nautilus-caption-table.c:
      * nautilus-widgets/nautilus-caption-table.h:
      * nautilus-widgets/nautilus-caption.c:
      * nautilus-widgets/nautilus-caption.h:
      * nautilus-widgets/nautilus-password-dialog.c:
      * nautilus-widgets/nautilus-password-dialog.h:
      * nautilus-widgets/nautilus-preference.c:
      * nautilus-widgets/nautilus-preference.h:
      * nautilus-widgets/nautilus-preferences-box.c:
      * nautilus-widgets/nautilus-preferences-box.h:
      * nautilus-widgets/nautilus-preferences-dialog.c:
      * nautilus-widgets/nautilus-preferences-dialog.h:
      * nautilus-widgets/nautilus-preferences-group.c:
      * nautilus-widgets/nautilus-preferences-group.h:
      * nautilus-widgets/nautilus-preferences-item.c:
      * nautilus-widgets/nautilus-preferences-item.h:
      * nautilus-widgets/nautilus-preferences-pane.c:
      * nautilus-widgets/nautilus-preferences-pane.h:
      * nautilus-widgets/nautilus-preferences.c:
      * nautilus-widgets/nautilus-preferences.h:
      * nautilus-widgets/nautilus-radio-button-group.c:
      * nautilus-widgets/nautilus-radio-button-group.h:
      * nautilus-widgets/nautilus-string-picker.c:
      * nautilus-widgets/nautilus-string-picker.h:
      * nautilus-widgets/nautilus-text-caption.c:
      * nautilus-widgets/nautilus-text-caption.h:
      * nautilus-widgets/nautilus-user-level-manager.c:
      * nautilus-widgets/nautilus-user-level-manager.h:
      * nautilus-widgets/nautilus-widgets-self-check-functions.c:
      * nautilus-widgets/nautilus-widgets-self-check-functions.h:
      * nautilus-widgets/test-nautilus-preferences.c:
      * nautilus-widgets/test-nautilus-widgets.c:
      * nautilus-widgets/test-preferences.c:
      * src/Makefile.am:
      * src/nautilus-main.c: (main):
      * src/nautilus-sidebar.c:
      * src/nautilus-window-menus.c:
      * test/Makefile.am:
      Move the nautilus-widgets classes to libnautilus-extensions.
      2b631110
  8. 22 Mar, 2000 1 commit
    • Darin Adler's avatar
      Did some of the items from RENAMING. · 1764f212
      Darin Adler authored
      	* libnautilus/Makefile.am:
      	* libnautilus/gnome-icon-container-dnd.c:
      	* libnautilus/gnome-icon-container-dnd.h:
      	* libnautilus/gnome-icon-container-grid.c:
      	* libnautilus/gnome-icon-container-grid.h:
      	* libnautilus/gnome-icon-container-private.h:
      	* libnautilus/gnome-icon-container.c:
      	* libnautilus/gnome-icon-container.h:
      	* libnautilus/gtkflist.c:
      	* libnautilus/gtkflist.h:
      	* libnautilus/nautilus-icon-canvas-item.c:
      	* libnautilus/nautilus-icon-canvas-item.h:
      	* libnautilus/nautilus-icon-container.c:
      	* libnautilus/nautilus-icon-container.h:
      	* libnautilus/nautilus-icon-dnd.c:
      	* libnautilus/nautilus-icon-dnd.h:
      	* libnautilus/nautilus-icon-grid.c:
      	* libnautilus/nautilus-icon-grid.h:
      	* libnautilus/nautilus-icon-private.h:
      	* libnautilus/nautilus-icons-view-icon-item.c:
      	* libnautilus/nautilus-icons-view-icon-item.h:
      	* libnautilus/nautilus-lib-self-check-functions.h:
      	* libnautilus/nautilus-list-column-title.c:
      	* libnautilus/nautilus-list.c:
      	* libnautilus/nautilus-list.h:
      	* src/file-manager/Makefile.am:
      	* src/file-manager/fm-directory-view-icons.c:
      	* src/file-manager/fm-directory-view-icons.h:
      	* src/file-manager/fm-directory-view-list.c:
      	* src/file-manager/fm-directory-view-list.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-icon-view.h:
      	* src/file-manager/fm-list-view.c:
      	* src/file-manager/fm-list-view.h:
      	* src/ntl-app.c:
      	Did these RENAMING entries:
      	  FMDirectoryViewIcons -> FMIconView
      	  FMDirectoryViewList  -> FMListView
      	  GnomeIconContainer -> NautilusIconContainer
      	  GnomeIconContainerIcon -> NautilusIcon
      	  NautilusIconsViewIconItem -> NautilusIconCanvasItem
      
      	* RENAMING: Marked the renaming done.
      1764f212
  9. 12 Mar, 2000 1 commit
    • Ramiro Estrugo's avatar
      *libnautilus/Makefile.am: Added nautilus_string_table · 29bb8019
      Ramiro Estrugo authored
      *libnautilus/nautilus-lib-self-check-functions.h: Added string
      table tests hooks.
      
      *libnautilus/nautilus-string-list.c,
      libnautilus/nautilus-string-list.h: New class to deal with lists
      of strings in a type safe manner.  Also added self tests for this
      class.
      29bb8019
  10. 10 Mar, 2000 1 commit
  11. 09 Mar, 2000 1 commit
    • Darin Adler's avatar
      Fixed bugs relating to multiple directory and file objects for the same · 8656eb9d
      Darin Adler authored
      	* libnautilus/nautilus-directory-private.h,
      	libnautilus/nautilus-directory.c, libnautilus/nautilus-file.c
      	(nautilus_directory_find_file, compare_file_with_name,
      	nautilus_directory_get, nautilus_file_get): Fixed bugs relating to
      	multiple directory and file objects for the same entity. Stripped
      	trailing '/' characters in nautilus_directory_get and changed
      	nautilus_file_get to return already-existing files instead of
      	always creating new ones. Added self-checks to make sure this
      	works.
      
      	* libnautilus/nautilus-directory.c
      	(nautilus_directory_try_to_read_metafile): Fixed bug where
      	metafile reading would fail. The gnome-xml parser requires a null
      	character at the end of the file, even though the size is passed
      	in!
      
      	* libnautilus/nautilus-directory.c
      	(nautilus_directory_remove_write_metafile_idle,
      	nautilus_directory_finalize,
      	nautilus_directory_try_to_write_metafile,
      	nautilus_directory_request_write_metafile, ): Changed metafile
      	writing so it always happens at idle time.
      
      	* libnautilus/nautilus-directory.c
      	(nautilus_directory_try_to_read_metafile): Fixed bug where
      	metafile reading would fail. The gnome-xml parser requires a null
      	character at the end of the file, even though the size is passed
      	in!
      
      	* libnautilus/nautilus-lib-self-check-functions.h: Changed order
      	so lower-level tests come before higher-level ones.
      
      	* libnautilus/nautilus-string.h, libnautilus/nautilus-string.c:
      	Renamed functions:
      		nautilus_has_prefix -> nautilus_str_has_prefix
      		nautilus_strdup_prefix -> nautilus_str_get_prefix
      		nautilus_has_suffix -> nautilus_str_has_suffix
      		nautilus_strstrip -> nautilus_str_strip_chr
      		nautilus_string_to_int -> nautilus_str_to_int
      		nautilus_eat_string_to_int -> nautilus_eat_str_to_int
      	Changed nautilus_str_strip_chr not to modify in place.
      	Added nautilus_str_strip_trailing_chr.
      
      	* components/music/nautilus-music-view.c (is_mp3_file,
      	nautilus_music_view_update_from_uri),
      	libnautilus/nautilus-icon-factory.c
      	(nautilus_icon_factory_get_icon_for_file, make_thumbnail_path,
      	load_specific_image), libnautilus/nautilus-icons-view-icon-item.c
      	(draw_mini_text), src/ntl-index-panel.c (command_button_cb,
      	add_command_buttons), src/ntl-window-msgs.c
      	(nautilus_window_change_location_2),
      	src/file-manager-fm-directory-view-icons.c
      	(fm_directory_view_icons_compute_menu_item_info),
      	src/file-manager/fm-directory-view.c (compute_menu_item_info),
      	src/file-manager/fm-icons-controller.c
      	(fm_icons_controller_get_icon_property): Switched callers to use
      	new names for string calls.
      
      	* libnautilus/gnome-icon-container.c (destroy): Reformatting.
      
      	* components/help/converters/gnome-info2html2/main.c (main):
      	Fixed a warning.
      8656eb9d
  12. 18 Feb, 2000 1 commit
    • 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
  13. 16 Feb, 2000 1 commit
    • 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
  14. 01 Feb, 2000 1 commit
    • Darin Adler's avatar
      Changed the icon factory interface in a few ways: 1) There's no longer a · 39b26449
      Darin Adler authored
      	* libnautilus/nautilus-icon-factory.h:
      	* libnautilus/nautilus-icon-factory.c:
      	(nautilus_icon_factory_new):
      	(nautilus_icon_factory_destroy):
      	(nautilus_get_current_icon_factory):
      	(nautilus_icon_factory_get_icon_for_file):
      	(nautilus_icon_factory_set_theme):
      	(nautilus_icon_factory_get_icon_by_name):
      	(nautilus_icon_factory_get_pixbuf_for_icon):
      	(nautilus_scalable_icon_ref):
      	(nautilus_scalable_icon_unref):
      	(nautilus_scalable_icon_get_name):
      	(scalable_icon_get):
      	(icon_set_possibly_free):
      	(scalable_icon_new):
      	Changed the icon factory interface in a few ways: 1) There's no
      	longer a NautilusIconFactory object. There's just a single global
      	icon factory. If we find that we need multiple factories, we can
      	implement that later. 2) Instead of going straight from a file to
      	a pixbuf, you get a scalable icon, and then get a pixbuf from
      	that. This allows you to choose the icon and then get
      	different-sized versions of it without going through the icon
      	selection process over and over again. There's also a name for
      	each icon which can be stored in the metafile so you can get the
      	same icon again before you have full information on a file.
      
      	* src/nautilus-bookmark.c:
      	(nautilus_bookmark_get_pixmap_and_mask):
      	* src/file-manager/fm-directory-view-list.c:
      	(install_icon):
      	* src/file-manager/fm-icons-controller.c:
      	(fm_icons_controller_get_icon_image):
      	Changed icon factory clients to use the new interface. Maybe
      	after a while I'll add a convenience function that's as simple as
      	the old interface was for the common case where you want to go
      	straight to the pixbuf, but lets try it this way for a while.
      
      	* libnautilus/nautilus-string.h:
      	* libnautilus/nautilus-string.c:
      	(nautilus_has_prefix):
      	Added nautilus_has_prefix. This checks to see if a string has a
      	particular prefix. It's both clearer to read and more efficient
      	than Andy's typical trick of calling strstr.
      
      	* libnautilus/nautilus-lib-self-check-functions.h:
      	* libnautilus/nautilus-string.c:
      	Added self-checks for nautilus-string.c. The tests uncovered a
      	bug in nautilus_string_to_int that I fixed.
      
      	* nautilus-glib-extensions.c:
      	Just a stray new-line.
      39b26449
  15. 25 Jan, 2000 1 commit
  16. 14 Jan, 2000 1 commit
  17. 10 Jan, 2000 1 commit
  18. 07 Jan, 2000 1 commit
  19. 04 Jan, 2000 1 commit
  20. 03 Jan, 2000 1 commit
  21. 07 Oct, 1999 1 commit