1. 12 Mar, 2000 2 commits
  2. 11 Mar, 2000 1 commit
    • Darin Adler's avatar
      Fixed typo that broke all hit testing except for rubber band selection! · 374870d5
      Darin Adler authored
      	* libnautilus/nautilus-icons-view-icon-item.c
      	(nautilus_icons_view_icon_item_point):
      	Fixed typo that broke all hit testing except for rubber band
      	selection! (Sorry.)
      
      	* libnautilus/gnome-icon-container-dnd.c
      	(set_gnome_icon_list_selection, set_uri_list_selection),
      	libnautilus/gnome-icon-container-private.h,
      	libnautilus/gnome-icon-container.h,
      	libnautilus/gnome-icon-container.c
      	(gnome_icon_container_get_icon_uri,
      	gnome_icon_container_initialize_class, gnome_icon_container_new,
      	update_icon, gnome_icon_container_update,
      	gnome_icon_container_request_update),
      	src/file-manager/fm-directory-view-icons.c (create_icon_container,
      	get_icon_images_cb, get_icon_uri_cb, get_icon_text_cb,
      	get_icon_property_cb): Change code that used to use a separate
      	controller object to just use signals on the icon container
      	instead.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c,
      	src/file-manager/fm-directory-view.c: Add new signal marshal
      	functions as needed and changed the name of one of the old
      	functions.
      
      	* libnautilus/Makefile.am,
      	libnautilus/nautilus-icons-controller.h,
      	libnautilus/nautilus-icons-controller.c,
      	src/file-manager/Makefile.am,
      	src/file-manager/fm-icons-controller.h,
      	src/file-manager/fm-icons-controller.c: Removed the old controller
      	object, it was a bad idea.
      374870d5
  3. 10 Mar, 2000 1 commit
    • Darin Adler's avatar
      Fixed rubber banding to hit test with all the parts of the icon, not just · bddcc07d
      Darin Adler authored
      	* libnautilus/Makefile.am, libnautilus/gnome-icon-container-dnd.c
      	  (set_gnome_icon_list_selection,
      	  gnome_icon_container_dnd_begin_drag),
      	  libnautilus/gnome-icon-container.c (icon_is_in_region,
      	  start_stretching), libnautilus/nautilus-icons-view-icon-item.h,
      	  libnautilus/nautilus-icons-view-icon-item.c (hit_stretch_handle,
      	  hit_test_pixbuf, hit_test, nautilus_icons_view_icon_item_point,
      	  nautilus_icons_view_icon_item_get_icon_world_rectangle,
      	  nautilus_icons_view_icon_item_get_icon_rectangle,
      	  nautilus_icons_view_icon_item_get_icon_window_rectangle,
      	  nautilus_icons_view_icon_item_get_hit_stretch_handle,
      	  hit_stretch_handle,
      	  nautilus_icons_view_icon_item_hit_test_stretch_handles,
      	  nautilus_icons_view_icon_item_hit_test_rectangle):
      	Fixed rubber banding to hit test with all the parts of the icon,
      	not just the icon pixbuf itself. Did this by changing all the
      	internal hit testing to use rects instead of points. At the same
      	time changed the external interface to always use world
      	coordinates for clarity.
      
      	* libnautilus/nautilus-directory.c (compare_file_with_name),
      	libnautilus/nautilus-file.c (nautilus_file_set_keywords): Fixed
      	some void * problems that upset newer versions of GCC but not the
      	older one that I'm using.
      
      	* libnautilus/nautilus-gtk-extensions.h,
      	libnautilus/nautilus-gtk-extensions.c: Formatting and include
      	statements fix up.
      bddcc07d
  4. 09 Mar, 2000 1 commit
  5. 08 Mar, 2000 1 commit
    • Darin Adler's avatar
      Broke the file part of nautilus-directory.[ch] into nautilus-file.[ch]. · 6ba4e1e5
      Darin Adler authored
      	* components/music/nautilus-music-view.c,
      	components/notes/ntl-notes.c, libnautilus/Makefile.am,
      	libnautilus/nautilus-directory-private.h,
      	libnautilus/nautilus-directory.h,
      	libnautilus/nautilus-directory.c,
      	libnautilus/nautilus-file-private.h, libnautilus/nautilus-file.h,
      	libnautilus/nautilus-file.c, libnautilus/nautilus-icon-factory.h,
      	src/ntl-index-panel.c, src/file-manager/fm-directory-view.h:
      	Broke the file part of nautilus-directory.[ch] into
      	nautilus-file.[ch].
      
      	* libnautilus/nautilus-string.c (nautilus_strstrip): Added more
      	tests. Changed algorithm on strstrip so it's linear instead of
      	n^2.
      
      	* libnautilus/gnome-icon-container.c
      	(gnome_icon_container_initialize): Fixed font for "larger" zoom
      	level. Also made it assert if the font can't be loaded.
      
      	* components/help/hyperbola-nav-index.c (despace):
      	Fixed warning.
      
      	* libnautilus/gnome-icon-container-dnd.c,
      	libnautilus/nautilus-string.h: Whitespace.
      
      	* src/file-manager/Makefile.am,
      	src/file-manager/fm-directory-view.c,
      	src/file-manager/fm-properties-window.h,
      	src/file-manager/fm-properties-window.c: Added properties window
      	hook, but no window yet. The menu item still needs to be added to
      	the main menus as well as the context menus.
      
      	* src/file-manager/fm-directory-view.c,
      	src/file-manager/fm-directory-view-icons.c,
      	src/file-manager/fm-icon-text-window.h,
      	src/file-manager/fm-icon-text-window.c: A little cleanup. Shorter
      	names.
      6ba4e1e5
  6. 03 Mar, 2000 1 commit
    • Jonathan Blandford's avatar
      added libpng to Makefile.am · d5c646e8
      Jonathan Blandford authored
      2000-03-03  Jonathan Blandford  <jrb@redhat.com>
      
      	* libnautilus/Makefile.am (libnautilus_la_LDFLAGS): added libpng
      	to Makefile.am
      
      	* configure.in: added autoconf check for png.
      d5c646e8
  7. 24 Feb, 2000 1 commit
    • Maciej Stachowiak's avatar
      Added Nautilus::Zoomable and Nautilus::ZoomableFrame interfaces. New files · 839744da
      Maciej Stachowiak authored
      	* idl/nautilus.idl: Added Nautilus::Zoomable and
      	Nautilus::ZoomableFrame interfaces.
      	* nautilus-zoomable.c, nautilus-zoomable.h: New files for the
      	NautilusZoomable class. This class is used to implement the
      	Nautilus::Zoomable interface on a nautilus view or other control.
      	* Makefile.am: Added nautilus.c and nautilus.h to the build.
      839744da
  8. 18 Feb, 2000 1 commit
  9. 15 Feb, 2000 1 commit
  10. 10 Feb, 2000 1 commit
    • Elliot Lee's avatar
      In notify_location_change, send progress back (because the Bonobo control, · a0d4440b
      Elliot Lee authored
      
      
      * src/ntl-view-bonobo-control.c: In notify_location_change, send
      progress back (because the Bonobo control, which might be the
      content view, can't do it).
      
      * src/ntl-view-bonobo-subdoc.c: As above, plus don't use
      PersistFile interface, plus use bonobo-stream-vfs instead of
      bonobo-stream-fs.
      
      * src/ntl-uri-map.c: If no content type is found, default to text/plain.
      
      * libnautilus/bonobo-stream-vfs.[ch], libnautilus/Makefile.am:
      Initial implementation of bonobo streams in terms of Gnome VFS.
      a0d4440b
  11. 07 Feb, 2000 1 commit
    • Elliot Lee's avatar
      Include the .idl files of other modules that we use. Define -D_REENTRANT, · ed8a9567
      Elliot Lee authored
      
      
      * idl/*.idl: Include the .idl files of other modules that we use.
      * libnautilus/Makefile.am, src/Makefile.am, src/file-manager/Makefile.am:
      Define -D_REENTRANT, just in case.
      * src/file-manager/Makefile.am: Add cflags for .idl compilation.
      * components/help/Makefile.am: Build converters. Stop installing
      the now-unneeded .schemes file.
      * components/websearch/ntl-web-search.c: Get rid of
      gnome_button_can_default()
      * libnautilus/nautilus-icons-view-icon-item.c: Get rid of missing
      prototypes and associated warnings by including needed headers.
      * src/ntl-types.h, src/ntl-uri-map.[ch], src/ntl-window.h,
      src/ntl-window-msgs.c: Remove scheme mapping functionality (now
      done in gnome-vfs). Use asynchronous version of get_file_info.
      ed8a9567
  12. 30 Jan, 2000 1 commit
  13. 27 Jan, 2000 2 commits
  14. 26 Jan, 2000 2 commits
    • Elliot Lee's avatar
      Link to $(BONOBO_LIBS) Include <string.h> to get prototype for memset. · fc0007b3
      Elliot Lee authored
      
      
      * libnautilus/Makefile.am: Link to $(BONOBO_LIBS)
      * libnautilus/gnome-icon-container.c: Include <string.h> to get prototype for memset.
      fc0007b3
    • Darin Adler's avatar
      Added interface to get a NautilusFile for a specific file rather than a · c796ee4c
      Darin Adler authored
      	* libnautilus/nautilus-directory.h:
      	(nautilus_file_get):
      	(nautilus_file_detach):
      	(nautilus_directory_finalize):
      	(nautilus_file_unref):
      	Added interface to get a NautilusFile for a specific file rather than
      	a file from a directory that we are scanning.
      
      	* libnautilus/nautilus-glib-extensions.c:
      	(check_tm_to_g_date):
      	A little cleanup of the self-check code.
      
      	* libnautilus/Makefile.am:
      	libnautilus/libnautilus.h:
      	libnautilus/nautilus-alloc.h:
      	libnautilus/nautilus-directory.h:
      	Moved g_alloca into its own header file so you don't have to include
      	all the Bonobo stuff just to use g_alloca.
      c796ee4c
  15. 25 Jan, 2000 2 commits
  16. 24 Jan, 2000 1 commit
    • Darin Adler's avatar
      Added a controller object that lets GnomeIconContainer · c8853690
      Darin Adler authored
      	ask questions and perform actions, even though only the
      	FMDirectoryViewIcons knows how to answer the questions
      	and perform the actions.
      
      	Replaced use of nautilus_file_get_info with specific
      	accessors for various file info.
      
      	* libnautilus/Makefile.am:
      	libnautilus/nautilus-icons-controller.h:
      	libnautilus/nautilus-icons-controller.c:
      	libnautilus/gnome-icon-container-private.h:
      	libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container.c:
      	(icon_new_pixbuf):
      	(gnome_icon_container_new):
      	(gnome_icon_container_add):
      	(gnome_icon_container_add_auto):
      	Added NautilusIconsController, an interface provided so that the
      	file manager can connect the icons up with the file code. This is
      	all so we can keep the view/controller separation. This eliminates
      	the need to pass around the icon name all the time, so the signals
      	have changed to not take the icon name as a parameter.
      
      	* src/file-manager/Makefile.am:
      	src/file-manager/fm-icons-controller.c:
      	src/file-manager/fm-icons-controller.h:
      	Added FMIconsController, the actual controller used by the file
      	manager instance of GnomeIconContainer.
      	src/file-manager/fm-directory-view-icons.c:
      	(create_icon_container):
      	(add_icon_if_already_positioned):
      	(add_icon_at_free_position):
      	(icon_container_activate_cb):
      	(fm_directory_view_icons_icon_moved_cb):
      	Create and use the FMIconController.
      
      	* libnautilus/gnome-icon-container-private.h:
      	libnautilus/gnome-icon-container-dnd.c:
      	(set_gnome_icon_list_selection):
      	(set_uri_list_selection):
      	libnautilus/gnome-icon-container.c:
      	(gnome_icon_container_set_base_uri):
      	src/file-manager/fm-directory-view-icons.c:
      	(set_up_base_uri):
      	(fm_directory_view_icons_begin_loading):
      	Get rid of the old base_uri technique for handling drags. Instead
      	the icon controller supplies URIs for icons when requested.
      
      	* RENAMING: Proposed that we use NautilusIconsView as the new name
      	for GnomeIconContainer instead of NautilusIconContainer.
      
      	* libnautilus/gnome-icon-container-private.h:
      	libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container.c:
      	(gnome_icon_container_initialize):
      	(handle_icon_enter_notify):
      	(handle_icon_leave_notify):
      	Renamed browser mode to linger selection mode.
      
      	* libnautilus/gnome-icon-container-private.h:
      	libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container.c:
      	(icon_configure):
      	(icon_position):
      	(change_icon_mode):
      	(gnome_icon_container_initialize):
      	(gnome_icon_container_set_icon_mode):
      	(gnome_icon_container_get_icon_mode):
      	src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_initialize):
      	Got rid of icon mode, since we won't be using it.
      
      	* libnautilus/gnome-icon-container-dnd.c:
      	(get_gnome_icon_list_selection):
      	Changed geometry parsing so it will not ignore extra characters
      	after the numeric geometry.
      	(gnome_icon_container_receive_dropped_icons):
      	The code here tried to work when dragging icons between windows,
      	but the implementation was actually only good within the same
      	window, so I modified it to check for that case.
      
      	* libnautilus/gnome-icon-container-dnd.c:
      	(create_selection_shadow):
      	(set_gnome_icon_list_selection):
      	libnautilus/gnome-icon-container.c:
      	(icon_position):
      	Renamed GNOME_ICON_CONTAINER_ICON_XOFFSET to
      	GNOME_ICON_CONTAINER_ICON_X_OFFSET and
      	GNOME_ICON_CONTAINER_ICON_YOFFSET to
      	GNOME_ICON_CONTAINER_ICON_Y_OFFSET. We use an underscore between
      	words in identifiers.
      
      	* libnautilus/gnome-icon-container.c:
      	(destroy):
      	Added code to remove timeouts and idles when the container is
      	destroyed.
      
      	* libnautilus/nautilus-directory.h:
      	libnautilus/nautilus-directory.c:
      	(nautilus_file_get_info):
      	Get rid of the direct call to get GnomeVFSFileInfo. All info is
      	accessed through individual functions.
      	(nautilus_file_get_size):
      	(nautilus_file_get_type):
      	(nautilus_file_get_mime_type):
      	(nautilus_file_is_executable):
      	(nautilus_file_is_symbolic_link):
      	Added new accessor functions as needed.
      	src/file-manager/fm-directory-view.c:
      	(display_selection_info):
      	src/file-manager/fm-icon-cache.c:
      	(fm_icon_cache_get_icon_set_for_file):
      	(fm_icon_cache_get_icon_for_file):
      	Change code to use the accessors instead of get_info.
      
      	* libnautilus/nautilus-gtk-macros.h:
      	(NAUTILUS_ASSIGN_MUST_OVERRIDE_SIGNAL):
      	Changed macro to take a class pointer of the right type instead
      	of taking both a casting macro name and a class pointer.
      	src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize_class):
      	Changed existing uses of macro to match.
      
      	* src/file-manager/Makefile.am:
      	src/file-manager/fm-icon-cache.c:
      	src/file-manager/fm-default-file-icon.h:
      	src/file-manager/fm-default-file-icon.c:
      	Moved the default icon into its own file.
      c8853690
  17. 22 Jan, 2000 1 commit
    • Havoc Pennington's avatar
      fix to gnomecanvaspixbuf · 7bc75aef
      Havoc Pennington authored
      2000-01-21  Havoc Pennington  <hp@redhat.com>
      
      * src/file-manager/Makefile.am (INCLUDES): fix to gnomecanvaspixbuf
      
      * src/Makefile.am (INCLUDES): fix to gnomecanvaspixbuf
      
      * libnautilus/Makefile.am (INCLUDES): fix to use gnomecanvaspixbuf
      flags
      
      * configure.in: Look for gnomecanvaspixbuf properly (via
      gnome-config)
      7bc75aef
  18. 21 Jan, 2000 1 commit
    • Darin Adler's avatar
      Started some cleanup of the icon view. · 49f7a162
      Darin Adler authored
      	* libnautilus/Makefile.am:
      	libnautilus/gnome-icon-container-layout.c:
      	libnautilus/gnome-icon-container-layout.h:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gnome-icon-container.h:
      	src/file-manager/fm-directory-view-icons.c:
      	src/file-manager/fm-directory-view-icons.h:
      	Got rid of the GnomeIconContainerLayout.
      	This was the old mechanism for saving and loading
      	icon positions and we have a better signal-based one.
      	Also made the new mechanism work more the way that
      	Ettore had intended to make the layout work, where
      	all the icons that have preassigned positions get
      	positioned first, then the ones that are auto positioned.
      	In the long run, we'll need something a bit fancier.
      
      	* libnautilus/gnome-icon-container-dnd.c:
      	libnautilus/gnome-icon-container.c:
      	libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container-private.h:
      	Change the priv pointer to be named details to match
      	what we use in other places in Nautilus.
      49f7a162
  19. 18 Jan, 2000 1 commit
    • Darin Adler's avatar
      Added first cut at code to put metafiles in the user's home directory if · 7e292ac0
      Darin Adler authored
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_read_metafile):
      	(nautilus_directory_try_to_read_metafile):
      	(nautilus_directory_write_metafile):
      	(nautilus_directory_try_to_write_metafile):
      	(nautilus_directory_switch_to_alternate_metafile_uri):
      	(nautilus_directory_escape_slashes):
      	(nautilus_make_directory_and_parents): Added first cut at code to
      	put metafiles in the user's home directory if the directory is not
      	accessible and you can't read and write a metafile in the
      	directory itself. We'll have to refine this later to handle cases
      	where you end up with two metafiles.
      
      	* libnautilus/Makefile.am: libnautilus/nautilus-debug.h:
      	libnautilus/nautilus-debug.c: Took trick for getting into the
      	debugger and put it into a public header file so it can be used
      	outside of the nautilus executable.
      
      	* src/ntl-main.c: (stop_in_debugger):
      	(nautilus_stop_after_default_log_handler): (main): Use the new
      	calls from libnautilus to set up the drop into debugger for
      	criticals and warnings.
      
      	* src/file-manager/fm-main.c: (main): Minimized includes and used
      	the new calls from libnautilus to set up the drop into debugger
      	for criticals and warnings.
      
      	* src/ntl-uri-map.c: (nautilus_navinfo_add_mapping):
      	src/ntl-window.c: (nautilus_window_constructed):
      	src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize): (fm_directory_view_destroy):
      	(notify_location_change_cb): (stop_location_change_cb):
      	(fm_directory_view_sort): Removed some messages that aren't so
      	useful.
      
      	* libnautilus/ntl-view-frame.h: Minimized includes.
      	* libnautilus/ntl-view-frame.c: Include "ntl-view-frame.h" first
      	so it tests to see that it has sufficient includes in it.
      
      	* src/ntl-view.c: (nautilus_view_load_client): Changed function so
      	that NULL for an iid is allowed and simply results in a failed
      	load instead of being illegal.
      
      	* src/ntl-window-msgs.c:
      	(nautilus_window_change_location_internal): src/ntl-window.c:
      	(nautilus_window_up): Got rid of calls to gnome_vfs_uri_destroy;
      	use gnome_vfs_uri_unref instead since it's safer and Federico is
      	getting rid of gnome_vfs_uri_destroy.
      
      	* src/file-manager/fm-directory-view-icons.h:
      	src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_new):
      	src/file-manager/fm-directory-view-list.h:
      	src/file-manager/fm-directory-view-list.c:
      	(fm_directory_view_list_new):
      	src/file-manager/fm-directory-view.h:
      	src/file-manager/fm-directory-view.c: (fm_directory_view_new):
      	Minimized includes and got rid of the unused _new functions.
      
      	* libnautilus/nautilus-directory.h: Added a missing 2000 copyright
      	date.
      7e292ac0
  20. 14 Jan, 2000 1 commit
  21. 10 Jan, 2000 3 commits
    • Maciej Stachowiak's avatar
      Renamed from libnautilus/ntl-view-client.c, libnautilus/ntl-view-client.h, · 0018d98d
      Maciej Stachowiak authored
      	* libnautilus/ntl-view-frame.c, libnautilus/ntl-view-frame.h,
      	libnautilus/ntl-content-view-frame.c,
      	libnautilus/ntl-content-view-frame.h,
      	libnautilus/ntl-meta-view-frame.c,
      	libnautilus/ntl-meta-view-frame.h: Renamed from
      	libnautilus/ntl-view-client.c, libnautilus/ntl-view-client.h,
      	libnautilus/ntl-content-view-client.c,
      	libnautilus/ntl-content-view-client.h,
      	libnautilus/ntl-meta-view-client.c,
      	libnautilus/ntl-meta-view-client.h.
      	* libnautilus/Makefile.am, libnautilus/libnautilus.h: reflect this
      	renaming.
      0018d98d
    • Elliot Lee's avatar
      use libcanvas_pixbuf · fbd68ec5
      Elliot Lee authored
      fbd68ec5
    • Darin Adler's avatar
      Added NautilusBackground class, string functions that allow NULL, made · c912e1ef
      Darin Adler authored
      gradient functions allow NULL and treat it as an empty string, added
      gdk_color_parse variants that have a default color, cleanup of
      NautilusIndexPanel, and some other minor stuff.
      c912e1ef
  22. 07 Jan, 2000 2 commits
  23. 04 Jan, 2000 2 commits
  24. 03 Jan, 2000 1 commit
  25. 23 Dec, 1999 1 commit
  26. 16 Dec, 1999 1 commit
  27. 15 Dec, 1999 1 commit
  28. 14 Dec, 1999 1 commit
  29. 13 Dec, 1999 1 commit
  30. 10 Dec, 1999 1 commit
  31. 08 Dec, 1999 1 commit
  32. 06 Dec, 1999 1 commit
    • Elliot Lee's avatar
      Implement libnautilus. · 1d23907d
      Elliot Lee authored
      
      
      Implement libnautilus.
      
      Normalize the way requests and notifications are passed around.
      1d23907d