1. 27 Jan, 2000 2 commits
    • Andy Hertzfeld's avatar
      hooked up zooming to the background context menu · c9692eff
      Andy Hertzfeld authored
      
            hooked up zooming to the background context menu
      c9692eff
    • Darin Adler's avatar
      Fixed a bug that was causing some icons to not get selected or unselected · 612168d1
      Darin Adler authored
      	* libnautilus/gnome-icon-container.c:
      	(icon_select):
      	Fixed a bug that was causing some icons to not get
      	selected or unselected properly due to strangeness of
      	bit fields.
      
      	* libnautilus/gnome-progressive-loader.h:
      	libnautilus/gnome-progressive-loader.c:
      	libnautilus/Makefile.am:
      	Got rid of GnomeProgressiveLoader.
      	We're not going to use it.
      
      	* RENAMING: Andy added a new file that matched RENAMING,
      	but then I changed my mind about a renaming, spawning yet
      	more renaming!
      
      	* src/file-manager/fm-directory-view-icons.c:
      	Just tiny reformatting.
      612168d1
  2. 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
    • Maciej Stachowiak's avatar
      Build with the recent Bonobo global renaming, and Havoc's changes. A patch · a26d6288
      Maciej Stachowiak authored
      	* components/help/hyperbola-main.c,
      	components/help/hyperbola-nav-tree.c,
      	components/history/ntl-history-view.c, components/html/main.c,
      	components/html/ntl-web-browser.c,
      	components/websearch/ntl-web-search.c, idl/nautilus.idl,
      	libnautilus/gnome-icon-container.c,
      	libnautilus/gnome-progressive-loader.c,
      	libnautilus/gnome-progressive-loader.h, libnautilus/libnautilus.h,
      	libnautilus/ntl-content-view-frame.c,
      	libnautilus/ntl-meta-view-frame.c, libnautilus/ntl-view-frame.c,
      	libnautilus/ntl-view-frame.h, src/nautilus.h,
      	src/ntl-index-panel.c, src/ntl-view-bonobo-control.c,
      	src/ntl-view-bonobo-subdoc.c, src/ntl-view-frame-svr.c,
      	src/ntl-view-nautilus.c, src/ntl-view-private.h, src/ntl-view.c,
      	src/ntl-view.h, src/ntl-window.c, src/ntl-window.h,
      	src/file-manager/dfos-corba.h, src/file-manager/dfos-xfer.c,
      	src/file-manager/dfos-xfer.h, src/file-manager/fm-main.c: Build
      	with the recent Bonobo global renaming, and Havoc's changes. A
      	patch from Kjartan Maraas <kmaraas@online.no> and scripts from Nat
      	Friedman <nat@helixcode.com> were a very helpful starting point.
      a26d6288
  3. 25 Jan, 2000 2 commits
    • Darin Adler's avatar
      Redid drag code so that it will work if there are multiple windows · 6d5f07d8
      Darin Adler authored
      	* libnautilus/gnome-icon-container-dnd.c:
      	(create_selection_shadow):
      	(set_gnome_icon_list_selection):
      	(get_gnome_icon_list_selection):
      	(gnome_icon_container_receive_dropped_icons):
      	Redid drag code so that it will work if there are multiple
      	windows involved, although we still don't handle copies.
      	Changed selection to include the width and height of the icon,
      	and to hold the top left of the icon.
      
      	* libnautilus/gnome-icon-container-private.h:
      	libnautilus/gnome-icon-container.c:
      	(move_icon):
      	(gnome_icon_container_move_icon):
      	Made move_icon visible to the DnD code, and added a raise boolean
      	so it could move and icon and bring it to the front.
      	(gnome_icon_container_get_icon_by_uri):
      	(gnome_icon_container_select_list_unselect_others):
      	Added new functions for use by DnD code.
      
      	* libnautilus/gnome-icon-container-private.h:
      	libnautilus/gnome-icon-container.c:
      	(handle_icon_button_press):
      	Got rid of unused drag_x_offset and drag_y_offset.
      
      	* libnautilus/gnome-icon-container.c:
      	(icon_select):
      	(icon_toggle_selected):
      	(select_icon):
      	(select_one_unselect_others):
      	(toggle_icon):
      	(unselect_all_but_one):
      	(unselect_all):
      	(rubberband_select_in_cell):
      	(kbd_move_to):
      	(kbd_space):
      	(linger_select_timeout_cb):
      	(handle_icon_button_press):
      	(gnome_icon_container_select_all):
      	(gnome_icon_container_unselect_all):
      	Cleaned up selection logic and made it simpler.
      
      	* libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container.c:
      	(gnome_icon_container_xlate_selected):
      	Got rid of unused function.
      
      	* libnautilus/nautilus-self-checks.h:
      	libnautilus/nautilus-self-checks.c:
      	(nautilus_self_checks_failed):
      	(nautilus_exit_if_self_checks_failed):
      	src/ntl-main.c:
      	(main):
      	Added blank lines before and after the first and last failed
      	checks when at least one check fails.
      
      	* src/ntl-view.c:
      	(nautilus_view_destroy):
      	Removed a straggler message. (I hope Elliot's not still using it.)
      
      	* RENAMING: Some new name ideas.
      6d5f07d8
    • Andy Hertzfeld's avatar
      icons are now drawn with a custom canvas item instead of with a group. · 961f18d6
      Andy Hertzfeld authored
      
             icons are now drawn with a custom canvas item instead of with a group.
             This is a first cut, it doesn't work at non-unity scale factors plus
             other small problems.
      961f18d6
  4. 24 Jan, 2000 2 commits
    • 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
    • John Sullivan's avatar
      Made Shift as well as Control modify the selection, and prevented · d12bae4b
      John Sullivan authored
      activation on single-click when modifying the selection.
      d12bae4b
  5. 21 Jan, 2000 2 commits
    • 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
    • Andy Hertzfeld's avatar
      disabled the pernicious call to relayout in size_allocate, at least · 8080e76f
      Andy Hertzfeld authored
      
            disabled the pernicious call to relayout in size_allocate, at least
            temporarily
      8080e76f
  6. 20 Jan, 2000 1 commit
    • Darin Adler's avatar
      Fixed a bug where dragging an icon would cause the "kbd_selected" icon to · c4c5ae7d
      Darin Adler authored
      	* src/gnome-icon-container.c:
      	(gnome_icon_container_xlate_selected):
      	Fixed a bug where dragging an icon would cause the "kbd_selected"
      	icon to scroll into view. Just passed FALSE instead of TRUE for
      	"schedule_visibility".
      
      	* libnautilus/nautilus-background.c:
      	(nautilus_background_draw_flat_box):
      	Tiny change, to fit our style rule against initializing.
      c4c5ae7d
  7. 19 Jan, 2000 4 commits
    • Darin Adler's avatar
      Icon positions are now written out when you drag an icon, · 771cbf47
      Darin Adler authored
      	and read in when you visit a directory. But the code then
      	immediately re-lays out the icons, so the position is lost!
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_icon_moved_cb):
      	(fm_directory_view_icons_initialize): (add_container_icon): Save
      	icon position when an icon is moved. Get icon position when an
      	icon is first created.
      
      	* libnautilus/nautilus-directory.c:
      	(nautilus_directory_get_metadata_from_node):
      	(nautilus_directory_get_metadata):
      	(nautilus_directory_create_metafile_tree_root):
      	(nautilus_directory_get_metadata):
      	(nautilus_directory_set_metadata):
      	(nautilus_directory_get_file_metadata):
      	(nautilus_directory_set_file_metadata): Added the routines to get
      	and set metadata for individual files.
      
      	* libnautilus/nautilus-string.h: libnautilus/nautilus-string.c:
      	(nautilus_eat_strcmp): (nautilus_string_to_int):
      	(nautilus_eat_string_to_int): Made new string functions that free
      	the existing strings, and a function to convert an int to a
      	string.
      
      	* libnautilus/gnome-icon-container.h:
      	libnautilus/gnome-icon-container.c: (move_icon): (class_init):
      	(handle_icon_button_press): Added context_click_background and
      	icon_moved signals, and renamed context_click to
      	context_click_icon.
      
      	* configure.in: Turned -Wunused back on. I had to turn -W off,
      	but I think it's worth it.
      771cbf47
    • Darin Adler's avatar
      Allow changing the background of the icon view by dropping colors · 4dc286da
      Darin Adler authored
      	on the icon view.
      
      	* libnautilus/gnome-icon-container-dnd.h:
      	libnautilus/gnome-icon-container-dnd.c:
      	(gnome_icon_container_position_shadow): (drag_data_received_cb):
      	(gnome_icon_container_ensure_drag_data): (drag_motion_cb):
      	(drag_drop_cb): (gnome_icon_container_receive_dropped_icons):
      	(gnome_icon_container_free_drag_data): (drag_leave_cb): Added
      	support for receiving dropped colors to change the background of a
      	GnomeIconContainer.
      
      	* src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_initialize_class):
      	(fm_directory_view_icons_clear):
      	(fm_directory_view_icons_background_changed_cb): Added code to
      	load and save the background color from metadata.
      
      	* libnautilus/gdk-extensions.c: (nautilus_gradient_new): Changed
      	nautilus_gradient_new to handle NULLs in the same way that the
      	rest of the gradient functions do instead of NULL being an illegal
      	input value.
      
      	* src/file-manager/fm-directory-view.h:
      	src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize): (fm_directory_view_destroy):
      	(fm_directory_view_get_model): (fm_directory_view_load_uri): Added
      	a NautilusDirectory object to each directory view, accessed by
      	subclasses with a call to fm_directory_view_get_model.
      
      	* libnautilus/nautilus-gtk-extensions.h:
      	libnautilus/nautilus-gtk-extensions.c:
      	(gnome_icon_container_dropped_icon_feedback):
      	(nautilus_gdk_selection_data_copy_deep): Added deep versions of
      	these GtkSelectionData functions.
      
      	* libnautilus/nautilus-gtk-macros.h:
      	(NAUTILUS_DEFINE_GET_TYPE_FUNCTION):
      	(NAUTILUS_DEFINE_CLASS_BOILERPLATE): Added definition and
      	initialization of the parent_class global to
      	NAUTILUS_DEFINE_GET_TYPE_FUNCTION and renamed it to
      	NAUTILUS_DEFINE_CLASS_BOILERPLATE.
      
      	* libnautilus/nautilus-background-canvas-group:
      	(nautilus_background_canvas_group_initialize_class):
      	libnautilus/nautilus-background.c:
      	(nautilus_background_initialize_class):
      	libnautilus/nautilus-directory.c:
      	(nautilus_directory_initialize_class): src/ntl-index-panel.c:
      	(nautilus_index_panel_initialize_class):
      	src/file-manager/fm-directory-view-icons.c:
      	(fm_directory_view_icons_initialize_class):
      	src/file-manager/fm-directory-view-list.c:
      	(fm_directory_view_list_initialize_class):
      	src/file-manager/fm-directory-view.c:
      	(fm_directory_view_initialize_class): Take advantage of the new
      	NAUTILUS_DEFINE_CLASS_BOILERPLATE and get rid of existing code to
      	set up parent_class.
      
      	* libnautilus/gnome-icon-container-dnd.h:
      	libnautilus/gnome-icon-container-dnd.c:
      	libnautilus/gnome-icon-container-layout.h:
      	libnautilus/gnome-icon-container-layout.c:
      	libnautilus/gnome-icon-container.c: Minimized includes.
      4dc286da
    • Andy Hertzfeld's avatar
      made icons centered with respect to the text · 2689b7f2
      Andy Hertzfeld authored
      
         made icons centered with respect to the text
      2689b7f2
    • Andy Hertzfeld's avatar
      don't activate files if the button was held down for too long · 3067cd62
      Andy Hertzfeld authored
      
              don't activate files if the button was held down for too long
      3067cd62
  8. 18 Jan, 2000 1 commit
    • Miguel de Icaza's avatar
      Initialize before using. · 17c50ced
      Miguel de Icaza authored
      2000-01-18  Miguel de Icaza  <miguel@gnu.org>
      
      	* libnautilus/gnome-icon-container.c (handle_icon_button_press):
      	Initialize before using.
      17c50ced
  9. 17 Jan, 2000 2 commits
  10. 11 Jan, 2000 1 commit
  11. 06 Jan, 2000 3 commits
  12. 03 Jan, 2000 1 commit
  13. 17 Dec, 1999 3 commits
  14. 15 Dec, 1999 2 commits
  15. 13 Dec, 1999 1 commit
  16. 13 Nov, 1999 1 commit
  17. 23 Oct, 1999 1 commit
  18. 07 Oct, 1999 1 commit