1. 02 Mar, 2007 1 commit
    • Alexander Larsson's avatar
      Sparse cleanups from kjartan · ef3034fa
      Alexander Larsson authored
      2007-03-02  Alexander Larsson  <alexl@redhat.com>
      
              * libnautilus-private/nautilus-file.c:
              * libnautilus-private/nautilus-icon-canvas-item.c:
              * libnautilus-private/nautilus-icon-container.c:
              * libnautilus-private/nautilus-program-choosing.c:
              * libnautilus-private/nautilus-trash-file.c:
              * libnautilus-private/nautilus-tree-view-drag-dest.c:
              * src/file-manager/fm-desktop-icon-view.c:
              * src/file-manager/fm-directory-view.c:
              * src/file-manager/fm-list-model.c:
              * src/file-manager/fm-list-view.c:
              * src/file-manager/fm-tree-model.c:
              * src/nautilus-image-properties-page.c:
              * src/nautilus-navigation-bar.c:
              * src/nautilus-query-editor.c:
              * src/nautilus-search-bar.c:
              * src/nautilus-window-private.h:
      	Sparse cleanups from kjartan
      
      
      svn path=/trunk/; revision=12780
      ef3034fa
  2. 27 Jul, 2006 1 commit
    • Christian Neumair's avatar
      Rename nautilus_drag_default_drop_action_for_url to · bef04d93
      Christian Neumair authored
      2006-07-25  Christian Neumair  <chris@gnome-de.org>
      
      	* libnautilus-private/nautilus-dnd.c:
      	Rename nautilus_drag_default_drop_action_for_url to
      	nautilus_drag_default_drop_action_for_netscape_url.
      	Don't offer netscape URL drags.
      
      	* libnautilus-private/nautilus-dnd.h: Rename
      	NAUTILUS_ICON_DND_URL(_TYPE) to NAUTILUS_ICON_DND_NETSCAPE_URL(_TYPE)
      	and nautilus_drag_default_drop_action_for_url to
      	nautilus_drag_default_drop_action_for_netscape_url.
      
      	* libnautilus-private/nautilus-file-operations.c:
      	(nautilus_file_operations_new_file_from_template):
      	Filter out special URIs, handle gnome_vfs_uri_new() failure.
      
      	* libnautilus-private/nautilus-file-utilities.c:
      	(test_uri_exists), (nautilus_ensure_unique_file_name):
      	Handle gnome_vfs_uri_new() failure by returning NULL.
      
      	* libnautilus-private/nautilus-icon-container.c:
      	* libnautilus-private/nautilus-icon-container.h:
      	Rename HANDLE_URL signal to HANDLE_NETSCAPE_URL.
      
      	* libnautilus-private/nautilus-icon-dnd.c:
      	* libnautilus-private/nautilus-icon-dnd.h:
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	* libnautilus-private/nautilus-tree-view-drag-dest.h:
      	Don't offer netscape URL drags, prefer netscape URL drops over
      	"text/uri-list" drops. Also rename DND_URL symbols to DND_NETSCAPE_URL.
      
      	* libnautilus-private/nautilus-link-desktop-file.c:
      	(nautilus_link_desktop_file_local_create):
      	Handle trash, desktop and search URIs, handle
      	NULL retval of nautilus_ensure_unique_file_name.
      
      	* src/nautilus-location-bar.c:
      	* src/nautilus-spatial-window.c:
      	* src/file-manager/fm-list-model.c:
      	Don't offer/handle netscape URL drags.
      
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view:
      	Rename DND_URL symbols to DND_NETSCAPE_URL.
      
      	Should fix #347673.
      bef04d93
  3. 11 Jul, 2006 1 commit
    • Martin Wehner's avatar
      Add functions nautilus_drag_can_accept_files and · 293e7cd0
      Martin Wehner authored
      2006-07-11  Martin Wehner  <martin.wehner@gmail.com>
      
      	* libnautilus-private/nautilus-file-dnd.[ch]:
      	Add functions nautilus_drag_can_accept_files and
      	nautilus_drag_can_accept_info.
      
      	* libnautilus-private/nautilus-icon-dnd.c: (receive_dropped_url),
      	(receive_dropped_uri_list), (receive_dropped_text),
      	(drag_data_received_callback):
      	Accept the entire drag context as parameter and use
      	nautilus_icon_container_find_drop_target.
      
      	(nautilus_icon_container_find_drop_target):
      	(nautilus_icon_dnd_update_drop_target):
      	Use nautilus_drag_can_accept_info.
      
      	* libnautilus-private/nautilus-marshal.list:
      	Add new signature.
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	Add function get_drop_target_uri_at_pos and use it in the drop
      	handlers to determine the target uris for actions.
      	Rename get_drop_target to get_drop_target_uri_for path.
      
      	(nautilus_tree_view_drag_dest_class_init):
      	Adapt to new drag handler signatures.
      
      	(set_widget_highlight):
      	Fix DND highlighting of an empty tree view.
      
      	(drag_motion_callback):
      	Ignore drags on the header.
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.[ch]:
      	* libnautilus-private/nautilus-icon-container.[ch]:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	Add a target/parent uri parameter to the drop handler functions.
      
      	* src/file-manager/fm-directory-view.[ch]:
      	Add handling for the additional target parameter to support
      	drops of URIs, URLs and text to subfolders.
      
      	Patch from Christian Neumair  <chris@gnome-de.org>
      293e7cd0
  4. 27 Feb, 2006 1 commit
    • Martin Wehner's avatar
      Test for the right path in the break condition. Fixes an infinite loop · 0a9e3528
      Martin Wehner authored
      2006-02-27  Martin Wehner  <martin.wehner@gmail.com>
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	(get_drop_path):
      	Test for the right path in the break condition. Fixes an infinite
      	loop when dragging an item over a non-folder child of an expanded
      	node in the list view, deadlocking the desktop.
      0a9e3528
  5. 12 Dec, 2005 1 commit
  6. 22 Aug, 2005 1 commit
    • Martin Wehner's avatar
      Enable emblem dropping to the list view and allow text drags on the list · 036a331e
      Martin Wehner authored
      2005-08-23  Martin Wehner  <martin.wehner@gmail.com>
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	(get_drop_action), (receive_dropped_keyword),
      	(drag_data_received_callback):
      	Enable emblem dropping to the list view and allow text
      	drags on the list background. Fixes #313408.
      
      	Based on a patch from Christian Neumair  <chris@gnome-de.org>
      036a331e
  7. 06 Jul, 2005 1 commit
    • Christian Neumair's avatar
      Correctly sort files before operating on them. Fixes #308884. · e940b87f
      Christian Neumair authored
      2005-07-06  Christian Neumair  <chris@gnome-de.org>
      
      	* libnautilus-private/nautilus-icon-container.c:
      	(nautilus_icon_container_get_selection):
      	* src/file-manager/fm-directory-view.c: (delete_selected_files):
      	Correctly sort files before operating on them. Fixes #308884.
      
      	* libnautilus-private/nautilus-dnd.c: (nautilus_drag_init):
      	* libnautilus-private/nautilus-dnd.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(get_data_on_first_target_we_support), (nautilus_icon_dnd_init):
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	(nautilus_tree_view_drag_dest_new):
      	* src/nautilus-spatial-window.c:
      	(nautilus_spatial_window_instance_init):
      	* src/file-manager/fm-list-model.c:
      	(fm_list_model_multi_drag_data_get):
      	Use GTK+ helpers for text D'n'D.
      
      	* src/nautilus-shell-ui.xml:
      	* src/nautilus-window-menus.c:
      	Register control-+/- keys on keypad for zooming. Fixes #309018.
      
      	* libnautilus-private/nautilus-file-operations.c:
      	(new_file_transfer_callback):
      	Fix template duplicate numbering. Fixes #307252.
      e940b87f
  8. 05 Jul, 2005 1 commit
    • Christian Neumair's avatar
      Change NAUTILUS_ICON_DND_TEXT_TYPE to UTF-8 string. · e5e83363
      Christian Neumair authored
      2005-07-05  Christian Neumair  <chris@gnome-de.org>
      
      	* libnautilus-private/nautilus-dnd.h:
      	Change NAUTILUS_ICON_DND_TEXT_TYPE to UTF-8 string.
      
      	* libnautilus-private/nautilus-file-operations.[ch]:
      	* libnautilus-private/nautilus-icon-container.[ch]:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	* libnautilus-private/nautilus-marshal.list:
      	* libnautilus-private/nautilus-tree-view-drag-dest.[ch]:
      	* src/file-manager/fm-directory-view.[ch]:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	* src/file-manager/fm-tree-view.c:
      	Enable dropping of text, which will create a new file containing the
      	dropped text. Fix drop handle marshallers.
      e5e83363
  9. 16 Jun, 2005 1 commit
    • Alexander Larsson's avatar
      Slightly slower auto hover expand. · 9efbacad
      Alexander Larsson authored
      2005-06-16  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	Slightly slower auto hover expand.
      
      	* src/file-manager/fm-directory-view.c:
      	Make add/remove_subdirectory more straightforward.
      	Now remove just removes the NautilusDirectory passed in, and
      	you're not allowed to add multiple times or remove non-added.
      
      	* src/file-manager/fm-list-model.[ch]:
      	Actually track the NautilusDirectories that are added to the
      	FMDirectoryView so we can easily remove them when the files are
      	removed. This was causing problem before where directories for
      	removed files weren't removed.
      
      	Emits the subdirectory_unloaded signal when subdirectories go away.
      
      	Add support for unloading subdirectories.
      
      	* src/file-manager/fm-list-view.c:
      	Unload subdirectories in timeout on collapse.
      	remove subdirectories when they get unloaded.
      9efbacad
  10. 15 Jun, 2005 1 commit
    • Alexander Larsson's avatar
      Add hover expansion · eed94367
      Alexander Larsson authored
      2005-06-15  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	Add hover expansion
      
      	* src/file-manager/fm-directory-view.[ch]:
      	Add support for adding/removing subdirectories.
      
      	* src/file-manager/fm-list-model.[ch]:
      	Add support for subdirectories making this a tree view.
      
      	* src/file-manager/fm-list-view.c:
      	Turn listview into a treeview.
      
      	Patch from Jürg Billeter <j@bitron.ch>
      eed94367
  11. 02 Jun, 2005 1 commit
    • Christian Neumair's avatar
      src/nautilus-emblem-sidebar.c · d4f56052
      Christian Neumair authored
      2005-05-02  Christian Neumair  <chris@gnome-de.org>
      
      	* libnautilus-private/nautilus-clipboard.c:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	* src/file-manager/fm-desktop-icon-view.c:
      	* src/file-manager/fm-ditem-page.c:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-model.c:
      	* src/file-manager/fm-list-model.h:
      	* src/file-manager/fm-list-view.c:
      	* src/file-manager/fm-properties-window.c:
      	* src/nautilus-emblem-sidebar.c
      	* src/nautilus-file-management-properties.c:
      	* src/nautilus-information-panel.c:
      	* src/nautilus-location-bar.c:
      	* src/nautilus-navigation-window-menus.c:
      	* src/nautilus-spatial-window.c:
      	* src/nautilus-zoom-controls.c:
      	Also declare GtkToggleActionEntry, GtkRadioActionEntry and
      	GtkTargetEntry as well as some char and int arrays const.
      d4f56052
  12. 13 Jan, 2005 1 commit
    • Alexander Larsson's avatar
      Add handle_url signal Fix argument list for handle_uri_list · 9f46a89e
      Alexander Larsson authored
      2005-01-13  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/nautilus-icon-container.[ch]:
      	* libnautilus-private/nautilus-marshal.list:
      	Add handle_url signal
      	Fix argument list for handle_uri_list
      
      	* libnautilus-private/nautilus-dnd.[ch]:
      	Add nautilus_drag_default_drop_action_for_url
      
      	* libnautilus-private/nautilus-icon-dnd.c: (receive_dropped_url),
      	(nautilus_icon_container_get_drop_action),
      	(drag_data_received_callback):
      	Handle URL drops separately from URI_LIST
      	Set different actions for URL drop
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.[ch]:
      	(get_drop_action), (receive_dropped_uri_list),
      	(receive_dropped_url), (drag_data_received_callback),
      	(nautilus_tree_view_drag_dest_class_init):
      	Add handle_url and handle_uri lists
      	Set different actions for URL drop
      	Fix bug that made url_list & url drops not work
      
      	* src/file-manager/fm-directory-view.[ch]: (revert_slashes),
      	(ask_link_action), (fm_directory_view_handle_url_drop),
      	(fm_directory_view_handle_uri_list_drop):
      	Move url and uri_list drop handling here. Make it handle
      	url drops better.
      
      	* src/file-manager/fm-icon-view.c: (icon_view_handle_url),
      	(icon_view_handle_uri_list), (fm_icon_view_init):
      	* src/file-manager/fm-list-view.c: (list_view_handle_url),
      	(list_view_handle_uri_list), (create_and_set_up_tree_view):
      	Call up to the drop code in directory view.
      
      	The above is based on a patch from Jorn Baayen <jbaayen@gnome.org>
      
      	* libnautilus-private/nautilus-directory.c:
      	(nautilus_directory_schedule_metadata_copy):
      	Handle source_directory being NULL. (happens on toplevel uri)
      
      	* libnautilus-private/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move):
      	Handle source_dir_uri being NULL. (happens on toplevel uri)
      
      	* libnautilus-private/nautilus-link-desktop-file.c:
      	(nautilus_link_desktop_file_local_create):
      	Use right icon field
      9f46a89e
  13. 27 Jun, 2003 1 commit
    • Alexander Larsson's avatar
      This is based on a patch by Jrg Billeter <j@bitron.ch> which was partly · 0f758600
      Alexander Larsson authored
      2003-06-27  Alexander Larsson  <alexl@redhat.com>
      
      	This is based on a patch by Jrg Billeter <j@bitron.ch> which was
      	partly based on a patch by Wolfgang Pichler <madmin@dialog-telekom.at>.
      
      	* components/tree/nautilus-tree-model.[ch]:
      	Support multiple roots. New row_loaded signal that gets fired when a
      	directory has been fully loaded. New font-weight column.
      	* components/tree/nautilus-tree-view.c:
      	Remove tree expansion.
      	Populate multiple roots: ~/,  / and mounted removable media.
      	Tree follows view uri.
      	* libnautilus-private/nautilus-desktop-link-monitor.c:
      	(create_volume_link), (nautilus_desktop_link_monitor_init),
      	(desktop_link_monitor_finalize):
      	Kill black_list, its moved to nautilus-volume-manager.
      	* libnautilus-private/nautilus-desktop-link.c:
      	(nautilus_desktop_link_new_from_volume):
      	Move get_icon_for_volume to nautilus-volume-manager
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	(file_for_path), (get_drop_target):
      	Handle NULL for root_uri, meaning drops on the background
      	are not allowed.
      	* libnautilus-private/nautilus-volume-monitor.[ch]:
      	(nautilus_volume_get_icon),
      	(nautilus_volume_is_in_removable_blacklist):
      	Add get_icon and the removable media blacklist.
      0f758600
  14. 28 Feb, 2003 1 commit
    • Alexander Larsson's avatar
      Don't use deprecated APIs. Patch by iain <iain@prettypeople.org> · 5e85711b
      Alexander Larsson authored
      2003-02-28  Alexander Larsson  <alexl@redhat.com>
      
      	* components/throbber/nautilus-throbber.c:
      	* libnautilus-private/nautilus-bonobo-extensions.c:
      	* libnautilus-private/nautilus-directory-async.c:
      	* libnautilus-private/nautilus-directory.c:
      	* libnautilus-private/nautilus-dnd.c:
      	* libnautilus-private/nautilus-drag-window.c:
      	* libnautilus-private/nautilus-entry.c:
      	* libnautilus-private/nautilus-file-operations-progress.c:
      	* libnautilus-private/nautilus-icon-canvas-item.c:
      	* libnautilus-private/nautilus-icon-container.c:
      	* libnautilus-private/nautilus-metafile.c:
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	* libnautilus-private/nautilus-volume-monitor.c:
      	* libnautilus/nautilus-idle-queue.c:
      	* src/file-manager/fm-desktop-icon-view.c:
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-properties-window.c:
      	* src/nautilus-bookmarks-window.c:
      	* src/nautilus-location-bar.c:
      	* src/nautilus-main.c:
      	* src/nautilus-view-frame.c:
      	* src/nautilus-window-menus.c:
      	* src/nautilus-window.c:
      	Don't use deprecated APIs.
      	Patch by iain <iain@prettypeople.org>
      5e85711b
  15. 08 Feb, 2003 1 commit
    • Dave Camp's avatar
      Set the GdkScreen on the drag-and-drop context menu. Fixes #90920. · 2f970025
      Dave Camp authored
      2003-02-08  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_drop_action_ask),
      	(nautilus_drag_drop_background_ask):
      	* libnautilus-private/nautilus-dnd.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(get_background_drag_action),
      	(nautilus_icon_container_receive_dropped_icons):
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	(receive_uris):
      	* src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list):
      	* src/nautilus-information-panel.c: (receive_dropped_uri_list),
      	(receive_dropped_color): Set the GdkScreen on the drag-and-drop
      	context menu.  Fixes #90920.
      2f970025
  16. 04 Dec, 2002 1 commit
    • Dave Camp's avatar
      Remove the scroll timeout when either the TreeView or the DragDest is · ab23849b
      Dave Camp authored
      2002-12-04  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/nautilus-tree-view-drag-dest.c:
      	(tree_view_weak_notify), (nautilus_tree_view_drag_dest_dispose),
      	(nautilus_tree_view_drag_dest_class_init),
      	(nautilus_tree_view_drag_dest_new): Remove the scroll timeout
      	when either the TreeView or the DragDest is destroyed.
      ab23849b
  17. 25 Jul, 2002 1 commit
    • Dave Camp's avatar
      New functions. (create_tree): Create a NautilusTreeViewDragDest. · 8fed4ca3
      Dave Camp authored
      2002-07-25  Dave Camp  <dave@ximian.com>
      
      	* components/tree/nautilus-tree-view.c: (get_root_uri_callback),
      	(get_file_for_path_callback), (move_copy_items_callback): New
      	functions.
      	(create_tree): Create a NautilusTreeViewDragDest.
      	(nautilus_tree_view_dispose): Unref the DragDest object.
      	(nautilus_tree_view_class_init): initialize dispose.
      	* libnautilus-private/Makefile.am: Build
      	nautilus-tree-view-drag-dest.[ch].
      	* libnautilus-tree-view-drag-dest.c:
      	* libnautilus-tree-view-drag-dest.h: New files.
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_selection_includes_special_link): Moved here
      	from nautilus-icon-dnd.c.
      	* libnautilus-private/nautilus-dnd.h: Prototype for
      	nautilus_drag_selection_includes_special_link.
      	* libnautilus-private/nautilus-file.c:
      	(nautilus_file_get_drop_target_uri): Moved here from
      	fm-directory-view.
      	* libnautilus-private/nautilus-file.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(nautilus_icon_container_receive_dropped_icons): Call
      	nautilus_drag_selection_includes_special_link().
      	* libnautilus-private/nautilus-marshal.list: New marshallers.
      	* src/file-manager/fm-icon-view.c:
      	(get_icon_drop_target_uri_callback): Use
      	nautilus_file_get_drop_target_uri().
      	* src/file-manager/fm-list-view.c: (get_root_uri_callback),
      	(get_file_for_path_callback), (move_copy_items_callback): New
      	functions.
      	(create_and_set_up_tree_view): Create a NautilusViewDragDest
      	object.
      	(fm_list_view_dispose): Unref the DragDest object.
      8fed4ca3