1. 20 Dec, 2007 1 commit
    • Alexander Larsson's avatar
      Update to new gio file attribute names · 8c0c4e1f
      Alexander Larsson authored
      2007-12-20  Alexander Larsson  <alexl@redhat.com>
      
              * libnautilus-private/nautilus-customization-data.c:
              * libnautilus-private/nautilus-directory-async.c:
              * libnautilus-private/nautilus-dnd.c:
              * libnautilus-private/nautilus-file-operations.c:
              * libnautilus-private/nautilus-file-utilities.c:
              * libnautilus-private/nautilus-file.c:
              * libnautilus-private/nautilus-icon-dnd.c:
              * libnautilus-private/nautilus-link.c:
              * libnautilus-private/nautilus-search-engine-simple.c:
              * libnautilus-private/nautilus-trash-monitor.c:
              * src/file-manager/fm-directory-view.c:
              * src/file-manager/fm-properties-window.c:
              * src/nautilus-pathbar.c:
              * src/nautilus-property-browser.c:
      	Update to new gio file attribute names
      
      
      svn path=/trunk/; revision=13538
      8c0c4e1f
  2. 03 Dec, 2007 1 commit
    • Christian Persch's avatar
      Remove some small allocations, and use GSlice more often. Bug #461795. · 0c5414e6
      Christian Persch authored
      2007-12-03  Christian Persch  <chpe@gnome.org>
      
      	* libnautilus-private/nautilus-directory-metafile.c:
      	(nautilus_directory_get_integer_file_metadata),
      	(nautilus_directory_set_integer_file_metadata):
      	* libnautilus-private/nautilus-directory.c:
      	(nautilus_directory_schedule_position_set):
      	* libnautilus-private/nautilus-dnd.c: (add_one_gnome_icon):
      	* libnautilus-private/nautilus-file-operations-progress.c:
      	(time_remaining_callback):
      	* libnautilus-private/nautilus-icon-dnd.c: (handle_local_move):
      	* src/file-manager/fm-directory-view.c: (new_folder_done):
      	* src/nautilus-application.c: (get_desktop_manager_selection):
      	* src/nautilus-connect-server-dialog.c: (display_server_uri):
      	* src/nautilus-information-panel.c: (receive_dropped_color):
      	* src/nautilus-property-browser.c: (add_color_to_browser):
      	* src/nautilus-window.c: (nautilus_window_init),
      	(nautilus_window_finalize), (free_activate_view_data),
      	(add_view_as_menu_item), (nautilus_window_synch_view_as_menus),
      	(nautilus_window_class_init): Remove some small allocations, and use
      	GSlice more often. Bug #461795.
      
      svn path=/trunk/; revision=13479
      0c5414e6
  3. 30 Nov, 2007 1 commit
  4. 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
  5. 07 May, 2006 1 commit
    • Martin Wehner's avatar
      Use eel_gtk_menu_append_separator. · 0af35337
      Martin Wehner authored
      2006-05-07  Martin Wehner  <martin.wehner@gmail.com>
      
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_drop_action_ask),
      	(nautilus_drag_drop_background_ask):
      	* src/file-manager/fm-tree-view.c: (create_popup_menu):
      	* src/nautilus-places-sidebar.c:
      	(bookmarks_build_popup_menu):
      	Use eel_gtk_menu_append_separator.
      
      	* src/nautilus-places-sidebar.c:
      	(bookmarks_check_popup_sensitivity):
      	Use eel_gtk_widget_set_shown.
      0af35337
  6. 18 Mar, 2006 1 commit
    • Martin Wehner's avatar
      Use gi18n.h instead of deprecated gnome-i18n.h header. · cb131b9c
      Martin Wehner authored
      2006-03-18  Martin Wehner  <martin.wehner@gmail.com>
      
      	* libnautilus-private/*.c:
      	* src/file-manager/*.c:
      	* src/*.c:
      	Use gi18n.h instead of deprecated gnome-i18n.h header.
      
      	* libnautilus-private/nautilus-query.c:
      	(nautilus_query_to_readable_string):
      	Mark string for translation.
      
      	* po/POTFILES.in:
      	Add nautilus-query.c
      
      	Patch from Wouter Bolsterlee <uws+gnome@xs4all.nl>
      cb131b9c
  7. 17 Dec, 2005 1 commit
  8. 28 Jul, 2005 1 commit
  9. 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
  10. 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
  11. 01 Oct, 2004 1 commit
    • Alexander Larsson's avatar
      Allow move to non-same-fs. (#120052) · 61f2d9b1
      Alexander Larsson authored
      2004-10-01  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/nautilus-dnd.c (nautilus_drag_default_drop_action_for_icons):
      	Allow move to non-same-fs. (#120052)
      61f2d9b1
  12. 09 Apr, 2004 1 commit
    • Dave Camp's avatar
      By default set the background per-directory in spatial mode. Take out · a5805999
      Dave Camp authored
      004-04-09  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/nautilus-directory-background.c:
      	(nautilus_connect_desktop_background_to_file_metadata),
      	(background_changed_callback),
      	(nautilus_connect_background_to_file_metadata):
      	* libnautilus-private/nautilus-directory-background.h:
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_drop_background_ask):
      	* libnautilus-private/nautilus-dnd.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(get_background_drag_action):
      	* src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading):
      	By default set the background per-directory in spatial mode.
      	* src/file-manager/fm-list-view.c: (fm_list_view_begin_loading):
      	Take out background metadata stuff, we don't use an eelbackground
      	here.
      a5805999
  13. 11 Dec, 2003 1 commit
    • Alexander Larsson's avatar
      Handle defaults for desktop drops like normal directories. · 4aa5ada4
      Alexander Larsson authored
      2003-12-11  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/nautilus-dnd.c
      	(nautilus_drag_default_drop_action_for_icons):
      	Handle defaults for desktop drops like
      	normal directories.
      
      	* libnautilus-private/nautilus-desktop-link-monitor.c (nautilus_desktop_link_monitor_delete_link):
      	Don't allow deletion of standard desktop links.
      
      	* src/file-manager/fm-directory-view.c (fm_directory_view_confirm_deletion):
      	Don't need to confirm for desktop icons.
      4aa5ada4
  14. 15 May, 2003 1 commit
    • Alexander Larsson's avatar
      Added new files. · 11958681
      Alexander Larsson authored
      2003-05-15  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/Makefile.am:
      	Added new files.
      
      	* libnautilus-private/apps_nautilus_preferences.schemas.in:
      	* libnautilus-private/nautilus-global-preferences.[ch]:
      	New prefs for home and trash links.
      
      	* libnautilus-private/nautilus-desktop-directory.[ch]:
      	New files. Implements the NautilusDesktop object for the
      	virtual x-nautilus-desktop: uri. The directory merges the contents
      	of the directory with the real desktop directory.
      
      	* libnautilus-private/nautilus-desktop-directory-file.[ch]:
      	New files. Implements the Nautilusfile corresponding to
      	NautilusDestkopDirectory.
      
      	* libnautilus-private/nautilus-desktop-icon-file.[ch]:
      	New files.
      	Implement NautilusFile for a virtual file in a NautilusDesktopDirectory.
      	Gets all the actual file data from a NautilusDesktopLink.
      
      	* libnautilus-private/nautilus-desktop-link-monitor.[ch]:
      	New files.
      	Keep track of home and trash visibility prefs and mounted volumes and
      	create/destroy corresponding NautilusDesktopLink object.
      
      	* libnautilus-private/nautilus-desktop-link.[ch]:
      	New files.
      	Keeps track of all the real information in a desktop icon link.
      	These are home, trash and volume links at the moment.
      
      	* libnautilus-private/nautilus-directory-async.c:
      	Indentation correction.
      
      	* libnautilus-private/nautilus-directory.c:
      	(nautilus_directory_new):
      	Create NautilusDesktopDirectory objects for x-nautilus-desktop: uris
      
      	* libnautilus-private/nautilus-dnd.c: (nautilus_drag_items_local):
      	Handle NULL GnomeVFSURIs.
      	(nautilus_drag_items_on_desktop): New function to check if items
      	are on the desktop.
      	(nautilus_drag_default_drop_action_for_icons):
      	Special case desktop uris.
      	(nautilus_drag_selection_includes_special_link):
      	Convert from old-style special links to current.
      
      	* libnautilus-private/nautilus-dnd.h:
      	New function nautilus_drag_items_on_desktop.
      
      	* libnautilus-private/nautilus-file-operations.c:
      	(is_special_link), (nautilus_file_operations_copy_move):
      	Convert from old-style special links to current.
      	(nautilus_file_operations_delete):
      	Special case desktop links
      
      	* libnautilus-private/nautilus-file-utilities.[ch]:
      	(nautilus_get_desktop_directory):
      	(nautilus_get_gmc_desktop_directory):
      	Change desktop dir to ~/Desktop
      	(nautilus_get_desktop_directory_uri):
      	New function to return desktop dir as a uri.
      
      
      	* libnautilus-private/nautilus-file.c:
      	(nautilus_file_new_from_relative_uri),
      	(nautilus_file_get_internal):
      	Handle creation of desktop icon files.
      	(nautilus_file_can_rename), (rename_guts),
      	(nautilus_file_get_drop_target_uri):
      	Update for new special links.
      	(nautilus_file_is_in_desktop):
      	Update for new desktop dir.
      	(nautilus_file_get_uri):
      	Fix uris for self owned files. This changed due to
      	the new canonicalization rules for foo:
      
      
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(nautilus_icon_container_selection_items_local),
      	(handle_nonlocal_move):
      	Handle desktop uri.
      
      	* src/Nautilus_shell.server.in:
      	icon view handles x-nautilus-desktop: uris
      
      	* src/nautilus-application.c: (finish_startup):
      	Initialize the desktop link monitor
      
      	* src/nautilus-desktop-window.c:
      	(nautilus_desktop_window_update_directory):
      	Show x-nautilus-desktop:
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(fm_desktop_icon_view_finalize), (fm_desktop_icon_view_init),
      	(volume_ops_callback), (trash_link_is_selection),
      	(volume_link_is_selection), (volume_link_device_type),
      	(real_supports_zooming):
      
      	* src/file-manager/fm-directory-view.c:
      	Remove lots of old support for desktop icon.
      	Reimplement some of it with the new desktop icon support.
      
      	* src/file-manager/fm-directory-view.h:
      	New function fm_directory_view_get_backing_uri
      
      	* src/file-manager/fm-icon-container.c:
      	(fm_icon_container_get_icon_text):
      	Don't show extra text for desktop icons
      	(get_sort_category): Update for new desktop icons
      
      	* src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list):
      	Use get_backing_uri()
      
      	* src/file-manager/fm-properties-window.c: (get_target_file):
      	Use the new desktop icon support.
      
      	* libnautilus-private/nautilus-icon-container.c:
      	(lay_down_icons_tblr):
      	Don't loop forever if icon doesn't in the height of the container.
      11958681
  15. 27 Mar, 2003 1 commit
  16. 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
  17. 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
  18. 31 Dec, 2002 1 commit
    • Dave Camp's avatar
      Applied UI review suggestions. Patch from Luca Ferretti · ecff8ee4
      Dave Camp authored
      2002-12-31  Dave Camp  <dave@ximian.com>
      
      	* src/nautilus-file-management-properties.glade: Applied UI review
      	suggestions.  Patch from Luca Ferretti <elle.uca@libero.it>
      
      	* libnautilus-private/nautilus-dnd.c
      	(nautilus_drag_drop_background_ask): Use "Folder" instead of
      	"Directory".
      ecff8ee4
  19. 31 Oct, 2002 1 commit
    • Dave Camp's avatar
      Set the background globally by default. On a right-drag from the property · cd6b5059
      Dave Camp authored
      2002-10-31  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/nautilus-directory-background.c:
      	(nautilus_file_background_get_default_settings),
      	(nautilus_file_background_is_set), (background_changed_callback),
      	(background_reset_callback):
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_drop_background_ask):
      	* libnautilus-private/nautilus-dnd.h:
      	* libnautilus-private/nautilus-global-preferences.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(get_background_drag_action),
      	(receive_dropped_color), (receive_dropped_tile_image),
      	(nautilus_icon_container_receive_dropped_icons),
      	(drag_data_received_callback):  Set the background globally by
      	default.  On a right-drag from the property dialog, pop up a
      	context menu asking to set it globally or for that directory.
      
      	* libnautilus-private/apps_nautilus_preferences.schemas:
      	* src/nautilus-information-panel.c: (nautilus_information_panel_init),
      	(nautilus_information_panel_finalize),
      	(information_panel_has_background),
      	(nautilus_information_panel_create_context_menu),
      	(nautilus_information_panel_read_defaults),
      	(nautilus_information_panel_theme_changed),
      	(receive_dropped_uri_list), (receive_dropped_color),
      	(nautilus_information_panel_drag_data_received),
      	(background_settings_changed_callback),
      	(background_reset_callback),
      	(nautilus_information_panel_update_appearance): Take the default
      	background from gconf, handle global vs. per-directory
      	backgrounds.
      
      	* nautilus-property-browser.c: (element_clicked_callback): Add
      	ASK to the list of actions.
      cd6b5059
  20. 02 Oct, 2002 1 commit
    • Mark McLoughlin's avatar
      Merge the multihead branch into HEAD and : · 3e6bfd6a
      Mark McLoughlin authored
      2002-10-02  Mark McLoughlin  <mark@skynet.ie>
      
              * acconfig.h: define HAVE_GTK_MULTIHEAD for
              egg-screen-exec methods.
      
              * configure.in: require gtk 2.1.0 and don't
              define HAVE_GTK_MULTIHEAD.
      
              * libnautilus-private/nautilus-multihead-hacks.h: kill.
      
              * libnautilus-private/nautilus-directory-background:
              (make_root_pixmap), (set_root_pixmap): use
               gdk_screen_get_display instead of assuming the default
              display.
      
              * src/nautilus-shell.c: (restore_one_window_callback):
              add backwards compat support for sessions without
              a screen number.
      3e6bfd6a
  21. 12 Aug, 2002 1 commit
    • Dave Camp's avatar
      Unref target_uri before returning when eel_uri_is_trash · 0459d0d0
      Dave Camp authored
      2002-08-12  Dave Camp  <dave@ximian.com>
      
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_default_drop_action_for_icons): Unref target_uri
      	before returning when eel_uri_is_trash (target_uri_string).
      	* libnautilus-private/nautilus-file-operations.c:
      	(append_basename): Free the filename returned from
      	gnome_vfs_uri_etract_short_name().
      	* libnautilus-private/nautilus-theme.c: (attributes_free): Free
      	the attributes struct.
      	* libnautilus-private/nautilus-undo-manager.c: (finalize): Free
      	the details struct.
      	* src/nautilus-bookmark-list.c: (append_bookmark_node): Free the
      	mime type string.
      0459d0d0
  22. 07 Aug, 2002 1 commit
    • Michael Meeks's avatar
      pass in info if we have it already. · 94c8b8b8
      Michael Meeks authored
      2002-08-07  Michael Meeks  <michael@ximian.com>
      
              * libnautilus-private/nautilus-file.c
              (nautilus_file_can_rename): pass in info if we
              have it already.
      
              * src/file-manager/fm-desktop-icon-view.c
              (update_trash_link_and_delete_copies),
              (update_home_link_and_delete_copies),
              (delete_all_mount_links): kill in favour of
              (update_desktop_directory): so we don't stat / mime
              sniff everything 3+ times.
              (update_link_and_delete_copies): push this method and
              it's file / sniff loop upwards.
      
              * src/file-manager/fm-directory-view.c
              (special_link_in_selection): upd.
              (fm_directory_link_type_in_selection): kill, unused.
      
              * libnautilus-private/nautilus-link.c
              (get_link_style_for_local_file): operate on the passed
              in GnomeVFSInfo if we have it.
      
              * libnautilus-private/nautilus-dnd.c
              (nautilus_drag_selection_includes_special_link): upd
              for efficiency.
      94c8b8b8
  23. 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
  24. 15 Jul, 2002 1 commit
    • Rohit R's avatar
      Laavanya K R <laavanya.gopalan@wipro.com> · 31d4b306
      Rohit R authored
      2002-07-15  Rohit R  <rohit.raveendran@wipro.com>
                  Laavanya K R  <laavanya.gopalan@wipro.com>
      
      	* src/file-manager/fm-directory-view.c: (can_move_uri_to_trash)
      	* libnautilus-private/nautilus-dnd.c
              (nautilus_drag_default_drop_action_for_icons): Changed the file
      	permission from 0777 to 0 for the .Trash while calling
      	gnome_vfs_find_directory, since gnome-vfs now ignores the
      	permissions parameter when creating trash.
      31d4b306
  25. 25 Jun, 2002 1 commit
    • Frank Worsley's avatar
      implement viewing/opening and executing of files for the tree view · f0a1aa57
      Frank Worsley authored
      2002-06-25  Frank Worsley  <fworsley@shaw.ca>
      
      	* components/tree/nautilus-tree-view.c:
      	(got_activation_uri_callback):
      	implement viewing/opening and executing of files
      	for the	tree view
      
      	* libnautilus-private/nautilus-dnd.c:
      	* libnautilus-private/nautilus-link-desktop-file.c:
      	* libnautilus-private/nautilus-link-historical.c:
      	updated for new desktop-file: command specifier to allow
      	proper launching of desktop files
      
      	* libnautilus-private/nautilus-program-choosing.c:
      	(nautilus_launch_desktop_file):
      	new function to launch desktop files with proper exec
      	parameter support
      
      	* libnautilus-private/nautilus-program-choosing.h:
      	define command specifiers in one place
      
      	* src/file-manager/fm-directory-view.c:
      	(get_executable_text_file_action):
      	add "run in terminal" button, partial fix for #41773
      
      	(activate_callback), (fm_directory_view_move_copy_items):
      	support proper launching of and dnd to desktop files
      f0a1aa57
  26. 22 May, 2002 1 commit
    • Michael Meeks's avatar
      add the full, non-mangled, clean, escaped URI. · 2c1fa37d
      Michael Meeks authored
      2002-05-22  Michael Meeks  <michael@ximian.com>
      
      	* libnautilus-private/nautilus-dnd.c (add_one_uri):
      	add the full, non-mangled, clean, escaped URI.
      	(is_path_that_gnome_uri_list_extract_filenames_can_parse),
      	(add_one_compatible_uri): #ifdef out these abominations :-)
      	Fixes bug #48423, breaks a certain level of
      	compatibility with gnome-libs 1.4, inasmuch that
      	complex URLs, containing strange characters will not
      	be backwards compatible.
      
      	* src/nautilus-window-manage-views.c (open_location):
      	add a eel_uri_is_valid check, so the next #48423 is easier
      	to track.
      2c1fa37d
  27. 28 Apr, 2002 1 commit
    • Alexander Larsson's avatar
      Make dnd modifiers behave like standard Gtk+ (#76789). Implemented "Set as · 22fe6c76
      Alexander Larsson authored
      2002-04-27  Alexander Larsson  <alexl@redhat.com>
      
      	* libnautilus-private/nautilus-dnd.c:
      	(nautilus_drag_default_drop_action_for_icons),
      	(nautilus_drag_drop_action_ask):
      	* libnautilus-private/nautilus-dnd.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	(selection_is_image_file),
      	(nautilus_icon_container_receive_dropped_icons),
      	(nautilus_icon_container_get_drop_action), (drag_motion_callback):
      	Make dnd modifiers behave like standard Gtk+ (#76789).
      	Implemented "Set as Background" for dnd action == ASK.
      22fe6c76
  28. 19 Feb, 2002 1 commit
    • Michael Meeks's avatar
      setup both the rgba and GdkColor variants. (update_label_color): upd. · b99fa350
      Michael Meeks authored
      2002-02-17  Michael Meeks  <michael@ximian.com>
      
      	* libnautilus-private/nautilus-icon-container.c
      	(nautilus_icon_container_theme_changed): setup both
      	the rgba and GdkColor variants.
      	(update_label_color): upd. color handling.
      	(alloc_colors): allocate the colors on realize
      
      2002-02-15  Michael Meeks  <michael@ximian.com>
      
      	* libnautilus-private/nautilus-icon-container.c
      	(nautilus_icon_container_get_label_color): return
      	the colors we need, grab them from the style's text
      	information though.
      
      2002-02-14  Michael Meeks  <michael@ximian.com>
      
      	* libnautilus-private/nautilus-icon-canvas-item.c
      	(nautilus_icon_canvas_item_get_property),
      	(nautilus_icon_canvas_item_set_property): port to
      	properties.
      	(draw_or_measure_label_text): update color handling,
      	could we re-use the gc here ?
      	(draw_stretch_handles): upd gc unref.
      	(nautilus_icon_canvas_item_class_init): upd.
      
      	* libnautilus-private/nautilus-theme.c
      	(nautilus_pixmap_file_may_be_local),
      	(nautilus_theme_install_user_theme),
      	(nautilus_theme_make_preview_pixbuf),
      	(theme_get_property),
      	(load_theme_document): upd. file tests.
      
      	* libnautilus-private/nautilus-monitor.c
      	(get_event_uri): use g_build_filename.
      
      	* libnautilus-private/nautilus-find-icon-image.c
      	(get_user_emblem_path, make_full_icon_path),
      	(make_full_icon_path): upd. file test.
      
      	* libnautilus-private/nautilus-file-utilities.c
      	(nautilus_pixmap_file),
      	(nautilus_get_data_file_path),
      	(nautilus_get_user_directory),
      	(nautilus_get_desktop_directory): upd. file tests.
      
      	* libnautilus-private/nautilus-directory-metafile.c
      	(nautilus_directory_get_boolean_file_metadata): use
      	strcasecmp not ascii_strdown to save yet more malloc
      	locking penalty.
      
      	* libnautilus-private/nautilus-directory-background.c
      	(nautilus_file_background_receive_root_window_changes),
      	(desktop_background_destroyed_callback): upd. root
      	window macro.
      	(nautilus_connect_background_to_file_metadata),
      	(initialize_background_from_settings),
      	(image_loading_done_callback): upd g_signal bits.
      
      	* libnautilus-private/nautilus-volume-monitor.c
      	(nautilus_volume_monitor_class_init): upd file test.
      
      	* libnautilus-private/nautilus-undo-signal-handlers.c
      	(nautilus_undo_tear_down_nautilus_entry_for_undo): upd.
      
      	* libnautilus-private/nautilus-undo-manager.c
      	(nautilus_undo_manager_class_init): upd. signal bits.
      
      	* libnautilus-private/nautilus-trash-monitor.c
      	(nautilus_trash_monitor_class_init): g_cclosureize.
      	(nautilus_trash_monitor_init): g_signal upds.
      
      	* libnautilus-private/nautilus-trash-file.c
      	(trash_destroy, nautilus_trash_file_init),
      	(remove_real_file): upd. g_signal bits.
      
      	* libnautilus-private/nautilus-trash-directory.c
      	(nautilus_trash_directory_init): upd. signal connect.
      	(trash_destroy): upd. signal bits.
      
      	* libnautilus-private/nautilus-program-choosing.c
      	(get_xalf_prefix): upd. find_program_in_path.
      
      	* libnautilus-private/nautilus-program-chooser.c
      	(nautilus_program_chooser_init): upd. window policy
      
      	* libnautilus-private/nautilus-merged-directory.c
      	(merged_remove_real_directory): upd. g_signal.
      	(nautilus_merged_directory_class_init): upd. g_closure
      
      	* libnautilus-private/nautilus-link-desktop-file.c
      	(nautilus_link_desktop_file_get_link_icon_from_desktop):
      	upd. pixmap location.
      
      	* libnautilus-private/nautilus-icon-factory.c
      	(nautilus_icon_factory_class_init): upd. marshallers
      	(is_theme_in_user_directory): upd. file test.
      
      	* libnautilus-private/nautilus-icon-dnd.c
      	(auto_scroll_timeout_callback): do a queue_draw_area
      	instead of a widget_draw.
      
      	* libnautilus-private/nautilus-icon-container.c
      	(nautilus_icon_container_init),
      	(set_pending_icon_to_reveal): g_signal updates.
      	(nautilus_icon_container_new): remove visual
      	push/pop.
      
      	* libnautilus-private/nautilus-file.c
      	(nautilus_file_fit_date_as_string): upd. julian date get.
      	(nautilus_file_class_init): upd. marshallers.
      
      	* libnautilus-private/nautilus-file-operations.c
      	(extract_and_ellipsize_file_name_for_dialog): use
      	get_basename.
      	(nautilus_file_operations_copy_move): use gtk stock.
      
      
      	* libnautilus-private/nautilus-file-operations-progress.c
      	(nautilus_file_operations_progress_update): use
      	progress_bar_set_fraction.
      	(nautilus_file_operations_progress_init): prune
      	progress setup - these are the defaults.
      
      	* libnautilus-private/nautilus-entry.c
      	(nautilus_entry_key_press): upd select_region.
      
      	* libnautilus-private/nautilus-drag-window.c
      	(get_ancestor_blocked_by): upd type_is_a.
      
      	* libnautilus-private/nautilus-dnd.c
      	(nautilus_drag_finalize),
      	(nautilus_drag_init): g_object ref upd.
      
      	* libnautilus-private/nautilus-directory.c
      	(nautilus_directory_class_init): marshaller upd..
      	(nautilus_directory_schedule_metadata_remove),
      	(nautilus_directory_schedule_metadata_copy),
      	(nautilus_directory_schedule_metadata_move):
      	basename upd.
      
      	* libnautilus-private/nautilus-directory-background.c
      	(desktop_background_realized): g_signal upd.
      	(theme_image_path_to_uri): file test upd.
      	(image_loading_done_callback): object unref on gc & pixmap.
      	(background_changed_callback): g_signal upd.
      
      	* libnautilus-private/nautilus-bookmark.c
      	(nautilus_bookmark_disconnect_file): g_signal upd.
      	(nautilus_bookmark_uri_known_not_to_exist): upd
      	file test.
      
      	* libnautilus-private/nautilus-authn-manager.c
      	(authentication_dialog_button_clicked): use
      	GTK_RESPONSE_OK
      
      	* libnautilus-private/Makefile.am: add deprc.
      	CFLAGS.
      
      	* libnautilus/Makefile.am: ditto.
      
      	* configure.in (DISABLE_DEPRECATED_CFLAGS): add.
      
      2002-02-13  Michael Meeks  <michael@ximian.com>
      
      	* libnautilus-private/nautilus-icon-dnd.c
      	(nautilus_icon_container_free_drag_data):
      	re-enterancy protection.
      b99fa350
  29. 05 Feb, 2002 1 commit
    • Darin Adler's avatar
      Remove. Remove. Remove. Remove. Remove. · 61fe873c
      Darin Adler authored
      	* components/tree/nautilus-tree-change-queue.c: Remove.
      	* components/tree/nautilus-tree-change-queue.h: Remove.
      	* components/tree/nautilus-tree-view-dnd.c: Remove.
      	* components/tree/nautilus-tree-view-dnd.h: Remove.
      	* components/tree/nautilus-tree-view-private.h: Remove.
      
      	* libnautilus-private/Makefile.am:
      	* libnautilus-private/nautilus-dnd.c:
      	* libnautilus-private/nautilus-dnd.h:
      	Move eel-dnd.[ch] back into Nautilus, because it currently is
      	completely file-manager-specific.
      
      	* libnautilus-private/nautilus-file-dnd.c:
      	* libnautilus-private/nautilus-file-dnd.h:
      	* libnautilus-private/nautilus-icon-dnd.c:
      	* libnautilus-private/nautilus-icon-dnd.h:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	Change to use eel-dnd.[ch] in their new location in Nautilus.
      
      	* src/file-manager/fm-directory-view.c: Add included needed due
      	to include changes.
      61fe873c