1. 11 May, 2001 1 commit
    • Darin Adler's avatar
      Changed code that uses g_list_append to use g_list_prepend in all the · 0067b899
      Darin Adler authored
      	* components/help/hyperbola-filefmt.c:
      	(prepend_help_dir_if_exists), (fmt_help_populate_tree):
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	(mozilla_view_create_charset_encoding_submenu),
      	(mozilla_new_window_callback),
      	(should_uri_navigate_bypass_nautilus),
      	(should_mozilla_load_uri_directly):
      	* components/music/fileinfo.c: (mpg123_file_info_box):
      	* components/music/nautilus-music-view.c:
      	(nautilus_music_view_update):
      	* components/notes/nautilus-notes.c: (notes_load_metainfo):
      	* components/throbber/nautilus-throbber.c:
      	(nautilus_throbber_load_images):
      	* components/tree/nautilus-tree-node.c:
      	(nautilus_tree_node_set_parent):
      	* libnautilus-private/nautilus-directory-background.c:
      	(nautilus_connect_background_to_file_metadata):
      	* libnautilus-private/nautilus-directory.c:
      	(nautilus_self_check_directory):
      	* libnautilus-private/nautilus-file-changes-queue.c:
      	(nautilus_file_changes_consume_changes):
      	* libnautilus-private/nautilus-file-dnd.c:
      	(nautilus_drag_file_receive_dropped_keyword):
      	* libnautilus-private/nautilus-file-operations.c:
      	(handle_transfer_ok), (nautilus_file_operations_new_folder):
      	* libnautilus-private/nautilus-file.c: (nautilus_self_check_file):
      	* libnautilus-private/nautilus-icon-container.c:
      	(lay_down_icons_tblr):
      	* libnautilus-private/nautilus-mime-actions.c:
      	(nautilus_do_component_query):
      	* libnautilus-private/nautilus-search-uri.c: (tokenize_uri):
      	* libnautilus-private/nautilus-theme.c: (theme_list_prepend),
      	(theme_get_themes_for_location), (theme_get_default_themes),
      	(nautilus_theme_remove_user_theme):
      	* libnautilus-private/nautilus-thumbnails.c:
      	(nautilus_get_thumbnail_uri):
      	* libnautilus-private/nautilus-trash-monitor.c:
      	(nautilus_trash_monitor_initialize), (add_one_volume_trash):
      	* libnautilus-private/nautilus-volume-monitor.c:
      	(get_removable_volumes), (build_volume_list_delta),
      	(get_mount_list), (get_current_mount_list),
      	(mount_volume_prepend_filesystem):
      	* src/file-manager/fm-directory-view.c: (prepend_uri_one),
      	(fm_directory_view_create_links_for_files),
      	(fm_directory_view_duplicate_selection):
      	* src/file-manager/fm-properties-window.c:
      	(property_button_toggled):
      	* src/nautilus-window-manage-views.c:
      	(determined_initial_view_callback):
      	Changed code that uses g_list_append to use g_list_prepend in all
      	the cases where it was simple enough.
      0067b899
  2. 04 May, 2001 2 commits
  3. 01 May, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Darin Adler <darin@eazel.com> · a9e16f06
      Pavel Cisler authored
      2001-04-30  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Darin Adler  <darin@eazel.com>
      
      	Fixed 4964 (Files dragged to Trash from floppy don't
      		    appear in Trash Can)
      	Fixed 7406 (Trash doesn't work until first restart of Nautilus)
      	Fixed 7976 (some files that you can't leave in the Trash just
      		    silently go away instead of showing the dialog as
      		    they should)
      
      	New trash directories are created lazily, when someone tries to
      	delete an item on the respective disk for the first time. The
      	problem was that these new trash directories do not get integrated
      	into the unified trash directory. Added logic to do that.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move):
      
      	Before a move to trash operation is started check for any new
      	trash directories and integrate them if needed.
      
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	(check_trash_created), (check_trash_directory_added_callback),
      	(volume_mounted_callback)
      
      	Add calls to allow adding a new physical trash directory to the
      	unified trash.
      
      	* libnautilus-extensions/nautilus-trash-directory.h:
      	* libnautilus-extensions/nautilus-trash-monitor.c:
      	(nautilus_trash_monitor_initialize_class),
      	(nautilus_trash_monitor_get),
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	(nautilus_trash_directory_initialize),
      	(nautilus_trash_directory_finish_initializing):
      
      	Rearrange to allow initializing the nautilus trash directory and
      	nautilus trash monitor properly, dodging a cyclic dependency.
      
      	* libnautilus-extensions/nautilus-trash-monitor.c:
      	* libnautilus-extensions/nautilus-trash-monitor.h:
      	(nautilus_trash_monitor_get_trash_directories),
      	(add_one_trash_directory_if_needed),
      	(nautilus_trash_monitor_add_new_trash_directories):
      	Add a new signal to allow clients get notified when a new
      	trash directory might get added to the unified trash.
      a9e16f06
  4. 27 Apr, 2001 1 commit
    • Darin Adler's avatar
      Fixed bug 7818 (Duplicating a link to a file on a different · 5a4fec36
      Darin Adler authored
      	partition gives "You can't copy a file over itself" error).
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move): There was a bug in the call
      	to check_same_fs in here (it was passing in the target URI, which
      	is often a file that doesn't even exist), so I removed that check.
      	Did some other cleanups too.
      5a4fec36
  5. 19 Apr, 2001 1 commit
    • Darin Adler's avatar
      Fix bug 8082 (Dragging a file to a treeview destination causes · 03814a9e
      Darin Adler authored
      	nautilus to freeze):
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(transfer_info_destroy): Destroy the hash table in a way that
      	ignores the values. This is just a loose end from changes I made
      	to the copy machinery a few days back.
      
      	* libnautilus-extensions/nautilus-monitor.h:
      	Add missing include to fix build.
      03814a9e
  6. 13 Apr, 2001 1 commit
    • Darin Adler's avatar
      Remove code that fills the progress bar to the end. The callback from · fb65f036
      Darin Adler authored
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(nautilus_file_operations_progress_done): Remove code that fills
      	the progress bar to the end. The callback from gnome-vfs now takes
      	care of this (need the new gnome-vfs with bug fixes).
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_close_callback), (create_transfer_dialog): Handle the
      	cancel button in a cleaner way. Just make it close the dialog and
      	fall into the code already there to handle cases where the dialog
      	is closed directly.
      
      	* src/file-manager/fm-icon-view.c: (get_default_zoom_level): Fixed
      	a strangely named variable.
      	(fm_icon_view_begin_loading): Don't set the zoom level if the view
      	does not support zooming (desktop view anyone?).
      	(default_zoom_level_changed_callback): Don't set the zoom level if
      	the view does not support zooming (desktop view anyone?).
      
      	* src/nautilus-window.c: (handle_view_as_item_from_bonobo_menu):
      	Use eel_strcmp, because the container path can be NULL in some
      	cases.
      fb65f036
  7. 11 Apr, 2001 1 commit
    • Darin Adler's avatar
      Put flags in the debuting_uris hash table so we can tell files that are · 1815bfbf
      Darin Adler authored
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(sync_transfer_callback): Put flags in the debuting_uris hash
      	table so we can tell files that are actually moved from files that
      	are not because they are already in the right place.
      
      	* src/file-manager/fm-directory-view.c:
      	(copy_move_done_data_free): Use nautilus_file_list_free to save
      	code.
      	(remove_not_really_moved_files): Function to pick out files that
      	are not actually moved (recognized by the flag in the
      	debuting_uris hash table) and treat them as if they had already
      	been moved.
      	(copy_move_done_callback): Use g_hash_table_foreach_remove with
      	the function above.
      
      	* src/Nautilus_shell.oaf.in: Fix the the typo.
      
      	* src/nautilus-sidebar-tabs.c: (get_property_bag): New function
      	so we can share more code.
      	(tab_item_destroy): Use new function for clarity and to fix lack
      	of CORBA_exception_free.
      	(get_tab_image_name): New function factored out.
      	(nautilus_sidebar_tabs_update_tab_item): Use new function, also
      	reduced some redundant code.
      	(nautilus_sidebar_tabs_connect_view): Use new function for clarity
      	and to save some code.
      
      	* src/nautilus-view-frame.c: (destroy_view), (attach_view): Don't
      	bother holding a reference to the NautilusView since it's part of
      	the same object as the BonoboControl.
      
      	* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback):
      	Get rid of non-ASCII character in a msgid string.
      
      	* src/nautilus-window.c: (add_view_as_bonobo_menu_item): Fix tip
      	string to be easier to translate.
      1815bfbf
  8. 09 Apr, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Michael Engber <engber@eazel.com> · 68cc0f06
      Pavel Cisler authored
      2001-04-09  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Michael Engber  <engber@eazel.com>
      
      	Fix 6024 properties window and file copy dialog should ellipsize
      		 paths in middle, not at start
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(ellipsize_string_for_dialog):
      	Use ellipsize_middle now that we support it.
      
      	* src/file-manager/fm-list-view.c: (truncate_middle_callback),
      	(get_cell_text):
      	Use the new ellipsizing API.
      68cc0f06
  9. 04 Apr, 2001 2 commits
    • Ramiro Estrugo's avatar
      Move vfs extensions to eel. · 55bc3d9a
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	Move vfs extensions to eel.
      
      	* components/services/install-view/nautilus-service-install-view.c:
      	* components/services/install/server/main.c:
      	* components/services/inventory/eazel-inventory-collect-hardware.c:
      	(add_info):
      	* components/services/inventory/eazel-inventory-service.c:
      	(impl_Trilobite_Eazel_Inventory_upload):
      	* components/text/nautilus-text-view.c: (handle_service_menu_item):
      	* components/tree/nautilus-tree-view.c: (select_current_location),
      	(tree_load_location_callback), (got_activation_uri_callback):
      	* libnautilus-extensions/nautilus-bookmark.c:
      	(nautilus_bookmark_compare_with), (nautilus_bookmark_compare_uris),
      	(bookmark_file_changed_callback):
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(top_left_cancel), (activation_uri_cancel), (top_left_start),
      	(activation_uri_start):
      	* libnautilus-extensions/nautilus-directory-private.h:
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_make_uri_canonical), (nautilus_directory_new),
      	(nautilus_directory_notify_files_moved),
      	(nautilus_self_check_directory):
      	* libnautilus-extensions/nautilus-drag.c:
      	(nautilus_drag_items_in_trash),
      	(nautilus_drag_default_drop_action_for_icons):
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(format_and_ellipsize_uri_for_dialog),
      	(nautilus_file_operations_copy_move):
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_get_internal),
      	(nautilus_file_get_parent_uri_for_display),
      	(nautilus_file_can_rename), (nautilus_file_get_uri_scheme),
      	(nautilus_file_is_in_trash), (nautilus_self_check_file):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_selection_items_local):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_name_for_file),
      	(nautilus_icon_factory_get_emblem_icons_for_file):
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_local_get_image_uri):
      	* libnautilus-extensions/nautilus-metafile.c:
      	(construct_private_metafile_vfs_uri), (metafile_read_cancel),
      	(metafile_read_restart):
      	* libnautilus-extensions/nautilus-tabs.c:
      	* libnautilus-extensions/nautilus-theme.c:
      	* libnautilus-extensions/nautilus-thumbnails.c:
      	(make_thumbnail_uri):
      	* libnautilus-extensions/nautilus-trash-file.c:
      	(nautilus_trash_file_initialize):
      	* libnautilus-extensions/nautilus-trash-monitor.c:
      	(nautilus_trash_files_changed_callback),
      	(nautilus_trash_monitor_initialize):
      	* src/file-manager/fm-desktop-icon-view.c:
      	(update_trash_link_and_delete_copies):
      	* src/file-manager/fm-directory-view.c: (show_trash_callback),
      	(trash_or_delete_files_common),
      	(fm_directory_view_trash_or_delete_files),
      	(fm_directory_view_move_copy_items):
      	* src/file-manager/fm-properties-window.c:
      	(is_merged_trash_directory):
      	* src/nautilus-application.c:
      	(nautilus_make_uri_list_from_shell_strv):
      	* src/nautilus-first-time-druid.c: (read_file_handle_cancel_cover),
      	(initiate_file_download):
      	* src/nautilus-location-bar.c: (try_to_expand_path),
      	(nautilus_location_bar_set_location),
      	(nautilus_location_bar_get_location),
      	(nautilus_location_bar_update_label):
      	* src/nautilus-profiler.c:
      	(nautilus_profiler_bonobo_ui_report_callback):
      	* src/nautilus-property-browser.c: (add_pattern_to_browser),
      	(emblem_dialog_clicked):
      	* src/nautilus-sidebar.c: (receive_dropped_uri_list):
      	* src/nautilus-theme-selector.c: (add_theme_to_icons):
      	* src/nautilus-window-manage-views.c: (set_displayed_location),
      	(check_bookmark_location_matches), (handle_go_elsewhere),
      	(viewed_file_changed_callback), (determined_initial_view_callback),
      	(open_location_prefer_existing_window_callback),
      	(report_redirect_callback):
      	* src/nautilus-window-menus.c: (show_bogus_bookmark_window):
      	Update for vfs extensions move to eel.  Also cleanup the #include
      	state of some of these files.  Removed unused #includes.  Remove
      	some cut-n-paste code in services components and use the
      	extensions in eel directly.
      55bc3d9a
    • Ramiro Estrugo's avatar
      Remove librsvg. · fbbaf803
      Ramiro Estrugo authored
      	* Makefile.am:
      	Remove librsvg.
      
      	* librsvg/.cvsignore:
      	* librsvg/Makefile.am:
      	* librsvg/art_render.c:
      	* librsvg/art_render.h:
      	* librsvg/art_render_gradient.c:
      	* librsvg/art_render_gradient.h:
      	* librsvg/art_render_mask.c:
      	* librsvg/art_render_mask.h:
      	* librsvg/art_render_svp.c:
      	* librsvg/art_render_svp.h:
      	* librsvg/art_rgba.c:
      	* librsvg/art_rgba.h:
      	* librsvg/example-nested-transform.svg:
      	* librsvg/makefile-simple:
      	* librsvg/opacity.svg:
      	* librsvg/rsvg-bpath-util.c:
      	* librsvg/rsvg-bpath-util.h:
      	* librsvg/rsvg-css.c:
      	* librsvg/rsvg-css.h:
      	* librsvg/rsvg-defs.c:
      	* librsvg/rsvg-defs.h:
      	* librsvg/rsvg-ft.c:
      	* librsvg/rsvg-ft.h:
      	* librsvg/rsvg-paint-server.c:
      	* librsvg/rsvg-paint-server.h:
      	* librsvg/rsvg-path.c:
      	* librsvg/rsvg-path.h:
      	* librsvg/rsvg.c:
      	* librsvg/rsvg.h:
      	* librsvg/subpixel-text-test:
      	* librsvg/test-ft-gtk.c:
      	* librsvg/test-ft.c:
      	* librsvg/test-rsvg.c:
      	* librsvg/test.svg:
      	Move librsvg to its own top level GNOME CVS module.
      
      	* configure.in:
      	Add librsvg and eel dependencies.
      	Remove librsvg and font entries.
      
      	* nautilus.spec.in:
      	Remove font entries.  Add librsvg and eel requirements.
      
      	* data/Makefile.am:
      	* data/fonts/.cvsignore:
      	* data/fonts/Makefile.am:
      	* data/fonts/urw/.cvsignore:
      	* data/fonts/urw/Makefile.am:
      	* data/fonts/urw/README:
      	* data/fonts/urw/fonts.dir:
      	* data/fonts/urw/n019003l.afm:
      	* data/fonts/urw/n019003l.pfb:
      	* data/fonts/urw/n019003l.pfm:
      	* data/fonts/urw/n019004l.afm:
      	* data/fonts/urw/n019004l.pfb:
      	* data/fonts/urw/n019004l.pfm:
      	* data/fonts/urw/n019023l.afm:
      	* data/fonts/urw/n019023l.pfb:
      	* data/fonts/urw/n019023l.pfm:
      	* data/fonts/urw/n019024l.afm:
      	* data/fonts/urw/n019024l.pfb:
      	* data/fonts/urw/n019024l.pfm:
      	Retire default fonts.  These now live in eel.
      
      	* libnautilus/nautilus-undo-transaction.c:
      	(nautilus_undo_transaction_destroy):
      	* libnautilus/nautilus-view.c: (nautilus_view_destroy):
      	Update for eel changes.  Use eel-gtk-macros.
      
      	* nautilus-installer/src/nautilus-druid-page-eazel.c:
      	(nautilus_druid_page_eazel_destroy),
      	(nautilus_druid_page_eazel_finalize),
      	(nautilus_druid_page_eazel_size_allocate),
      	(nautilus_druid_page_eazel_size_request):
      	Update for eel changes.  Use eel-gtk-macros.
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-bonobo-extensions.c:
      	* libnautilus-extensions/nautilus-bonobo-extensions.h:
      	* libnautilus-extensions/nautilus-bookmark.c:
      	* libnautilus-extensions/nautilus-ctree.c:
      	* libnautilus-extensions/nautilus-customization-data.c:
      	* libnautilus-extensions/nautilus-dateedit-extensions.c:
      	* libnautilus-extensions/nautilus-dateedit-extensions.h:
      	* libnautilus-extensions/nautilus-directory-async.c:
      	* libnautilus-extensions/nautilus-directory-background.c:
      	* libnautilus-extensions/nautilus-directory-background.h:
      	* libnautilus-extensions/nautilus-directory-metafile-monitor.c:
      	* libnautilus-extensions/nautilus-directory-metafile.c:
      	* libnautilus-extensions/nautilus-directory.c:
      	* libnautilus-extensions/nautilus-drag-window.c:
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-druid-page-eazel.c:
      	* libnautilus-extensions/nautilus-druid.c:
      	* libnautilus-extensions/nautilus-entry.c:
      	* libnautilus-extensions/nautilus-file-changes-queue.c:
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	* libnautilus-extensions/nautilus-file-operations.c:
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	* libnautilus-extensions/nautilus-file.c:
      	* libnautilus-extensions/nautilus-font-factory.c:
      	* libnautilus-extensions/nautilus-gconf-extensions.c:
      	* libnautilus-extensions/nautilus-generous-bin.c:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-horizontal-splitter.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.h:
      	* libnautilus-extensions/nautilus-icon-container.c:
      	* libnautilus-extensions/nautilus-icon-container.h:
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	* libnautilus-extensions/nautilus-icon-factory.h:
      	* libnautilus-extensions/nautilus-icon-private.h:
      	* libnautilus-extensions/nautilus-icon-text-item.c:
      	* libnautilus-extensions/nautilus-keep-last-vertical-box.c:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.c:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	* libnautilus-extensions/nautilus-link-set.c:
      	* libnautilus-extensions/nautilus-link.c:
      	* libnautilus-extensions/nautilus-list-column-title.c:
      	* libnautilus-extensions/nautilus-list.c:
      	* libnautilus-extensions/nautilus-medusa-support.c:
      	* libnautilus-extensions/nautilus-merged-directory.c:
      	* libnautilus-extensions/nautilus-metafile-factory.c:
      	* libnautilus-extensions/nautilus-metafile.c:
      	* libnautilus-extensions/nautilus-mime-actions.c:
      	* libnautilus-extensions/nautilus-preferences-box.c:
      	* libnautilus-extensions/nautilus-preferences-dialog.c:
      	* libnautilus-extensions/nautilus-preferences-group.c:
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	* libnautilus-extensions/nautilus-preferences-pane.c:
      	* libnautilus-extensions/nautilus-preferences.c:
      	* libnautilus-extensions/nautilus-preferences.h:
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	* libnautilus-extensions/nautilus-program-choosing.h:
      	* libnautilus-extensions/nautilus-search-uri.c:
      	* libnautilus-extensions/nautilus-sidebar-functions.c:
      	* libnautilus-extensions/nautilus-tabs.c:
      	* libnautilus-extensions/nautilus-theme.c:
      	* libnautilus-extensions/nautilus-thumbnails.c:
      	* libnautilus-extensions/nautilus-trash-directory.c:
      	* libnautilus-extensions/nautilus-trash-file.c:
      	* libnautilus-extensions/nautilus-trash-monitor.c:
      	* libnautilus-extensions/nautilus-undo-context.c:
      	* libnautilus-extensions/nautilus-undo-manager.c:
      	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
      	* libnautilus-extensions/nautilus-vfs-directory.c:
      	* libnautilus-extensions/nautilus-vfs-file.c:
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	Use new eel library.
      
      	* libnautilus-extensions/nautilus-art-extensions.c:
      	* libnautilus-extensions/nautilus-art-extensions.h:
      	* libnautilus-extensions/nautilus-art-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-art-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-background-canvas-group.c:
      	* libnautilus-extensions/nautilus-background-canvas-group.h:
      	* libnautilus-extensions/nautilus-background.c:
      	* libnautilus-extensions/nautilus-background.h:
      	* libnautilus-extensions/nautilus-caption-table.c:
      	* libnautilus-extensions/nautilus-caption-table.h:
      	* libnautilus-extensions/nautilus-caption.c:
      	* libnautilus-extensions/nautilus-caption.h:
      	* libnautilus-extensions/nautilus-clickable-image.c:
      	* libnautilus-extensions/nautilus-clickable-image.h:
      	* libnautilus-extensions/nautilus-debug-drawing.c:
      	* libnautilus-extensions/nautilus-debug-drawing.h:
      	* libnautilus-extensions/nautilus-debug.c:
      	* libnautilus-extensions/nautilus-debug.h:
      	* libnautilus-extensions/nautilus-ellipsizing-label.c:
      	* libnautilus-extensions/nautilus-ellipsizing-label.h:
      	* libnautilus-extensions/nautilus-enumeration.c:
      	* libnautilus-extensions/nautilus-enumeration.h:
      	* libnautilus-extensions/nautilus-font-manager.c:
      	* libnautilus-extensions/nautilus-font-manager.h:
      	* libnautilus-extensions/nautilus-font-picker.c:
      	* libnautilus-extensions/nautilus-font-picker.h:
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-extensions.h:
      	* libnautilus-extensions/nautilus-gdk-font-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-font-extensions.h:
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
      	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
      	* libnautilus-extensions/nautilus-glib-extensions.c:
      	* libnautilus-extensions/nautilus-glib-extensions.h:
      	* libnautilus-extensions/nautilus-glyph.c:
      	* libnautilus-extensions/nautilus-glyph.h:
      	* libnautilus-extensions/nautilus-gnome-extensions.c:
      	* libnautilus-extensions/nautilus-gnome-extensions.h:
      	* libnautilus-extensions/nautilus-graphic-effects.c:
      	* libnautilus-extensions/nautilus-graphic-effects.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-macros.h:
      	* libnautilus-extensions/nautilus-image-table.c:
      	* libnautilus-extensions/nautilus-image-table.h:
      	* libnautilus-extensions/nautilus-image-with-background.c:
      	* libnautilus-extensions/nautilus-image-with-background.h:
      	* libnautilus-extensions/nautilus-image.c:
      	* libnautilus-extensions/nautilus-image.h:
      	* libnautilus-extensions/nautilus-label-with-background.c:
      	* libnautilus-extensions/nautilus-label-with-background.h:
      	* libnautilus-extensions/nautilus-label.c:
      	* libnautilus-extensions/nautilus-label.h:
      	* libnautilus-extensions/nautilus-labeled-image.c:
      	* libnautilus-extensions/nautilus-labeled-image.h:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.c:
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	* libnautilus-extensions/nautilus-password-dialog.c:
      	* libnautilus-extensions/nautilus-password-dialog.h:
      	* libnautilus-extensions/nautilus-radio-button-group.c:
      	* libnautilus-extensions/nautilus-radio-button-group.h:
      	* libnautilus-extensions/nautilus-region.c:
      	* libnautilus-extensions/nautilus-region.h:
      	* libnautilus-extensions/nautilus-scalable-font-private.h:
      	* libnautilus-extensions/nautilus-scalable-font.c:
      	* libnautilus-extensions/nautilus-scalable-font.h:
      	* libnautilus-extensions/nautilus-self-checks.c:
      	* libnautilus-extensions/nautilus-self-checks.h:
      	* libnautilus-extensions/nautilus-smooth-text-layout-cache.c:
      	* libnautilus-extensions/nautilus-smooth-text-layout-cache.h:
      	* libnautilus-extensions/nautilus-smooth-text-layout.c:
      	* libnautilus-extensions/nautilus-smooth-text-layout.h:
      	* libnautilus-extensions/nautilus-smooth-widget.c:
      	* libnautilus-extensions/nautilus-smooth-widget.h:
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	* libnautilus-extensions/nautilus-string-list.c:
      	* libnautilus-extensions/nautilus-string-list.h:
      	* libnautilus-extensions/nautilus-string-map.c:
      	* libnautilus-extensions/nautilus-string-map.h:
      	* libnautilus-extensions/nautilus-string-picker.c:
      	* libnautilus-extensions/nautilus-string-picker.h:
      	* libnautilus-extensions/nautilus-string.c:
      	* libnautilus-extensions/nautilus-string.h:
      	* libnautilus-extensions/nautilus-text-caption.c:
      	* libnautilus-extensions/nautilus-text-caption.h:
      	* libnautilus-extensions/nautilus-viewport.c:
      	* libnautilus-extensions/nautilus-viewport.h:
      	* libnautilus-extensions/nautilus-wrap-table.c:
      	* libnautilus-extensions/nautilus-wrap-table.h:
      	* libnautilus-extensions/nautilus-xml-extensions.c:
      	* libnautilus-extensions/nautilus-xml-extensions.h:
      	Remove these files.  These are all part of eel now.
      
      	* applets/launcher/nautilus-launcher-applet.c:
      	* applets/preferences-applet/nautilus-preferences-applet.c:
      	* components/adapter/Makefile.am:
      	* components/adapter/main.c:
      	* components/adapter/nautilus-adapter-control-embed-strategy.c:
      	* components/adapter/nautilus-adapter-embed-strategy.c:
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	* components/adapter/nautilus-adapter-factory-server.c:
      	* components/adapter/nautilus-adapter-file-load-strategy.c:
      	* components/adapter/nautilus-adapter-load-strategy.c:
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	* components/adapter/nautilus-adapter-stream-load-strategy.c:
      	* components/adapter/nautilus-adapter.c:
      	* components/hardware/Makefile.am:
      	* components/hardware/nautilus-hardware-view.c:
      	* components/help/Makefile.am:
      	* components/help/help-method.c:
      	* components/help/hyperbola-filefmt.c:
      	* components/help/hyperbola-nav-tree.c:
      	* components/history/Makefile.am:
      	* components/history/nautilus-history-view.c:
      	* components/image-viewer/Makefile.am:
      	* components/image-viewer/nautilus-image-view.c:
      	* components/loser/content/Makefile.am:
      	* components/loser/content/nautilus-content-loser.c:
      	* components/loser/sidebar/Makefile.am:
      	* components/loser/sidebar/nautilus-sidebar-loser.c:
      	* components/mozilla/Makefile.am:
      	* components/mozilla/bonobo-extensions.c:
      	* components/mozilla/nautilus-mozilla-content-view.c:
      	* components/music/Makefile.am:
      	* components/music/nautilus-music-view.c:
      	* components/notes/Makefile.am:
      	* components/notes/nautilus-notes.c:
      	* components/rpmview/Makefile.am:
      	* components/rpmview/nautilus-rpm-verify-window.c:
      	* components/rpmview/nautilus-rpm-view-install.c:
      	* components/rpmview/nautilus-rpm-view.c:
      	* components/sample/nautilus-sample-content-view.c:
      	* components/services/install-view/Makefile.am:
      	* components/services/install-view/callbacks.c:
      	* components/services/install-view/forms.c:
      	* components/services/install-view/nautilus-service-install-view.c:
      	* components/services/install/lib/eazel-install-logic2.c:
      	* components/services/install/server/main.c:
      	* components/services/inventory-view/Makefile.am:
      	* components/services/inventory-view/nautilus-inventory-config-page
      	.c:
      	* components/services/inventory-view/nautilus-inventory-disable-pag
      	* components/services/inventory-view/nautilus-inventory-enable-page
      	* components/services/inventory-view/nautilus-inventory-view.c:
      	* components/services/inventory/Makefile.am:
      	* components/services/inventory/eazel-inventory-upload-callback.c:
      	* components/services/inventory/eazel-inventory.c:
      	* components/services/inventory/main.c:
      	* components/services/login/nautilus-view/Makefile.am:
      	* components/services/login/nautilus-view/nautilus-change-password-
      	view.c:
      	* components/services/login/nautilus-view/password-box.c:
      	* components/services/nautilus-dependent-shared/Makefile.am:
      	* components/services/nautilus-dependent-shared/eazel-services-exte
      	nsions.c:
      	* components/services/nautilus-dependent-shared/eazel-services-exte
      	nsions.h:
      	* components/services/nautilus-dependent-shared/eazel-services-foot
      	er.c:
      	* components/services/nautilus-dependent-shared/eazel-services-head
      	er.c:
      	* components/services/nautilus-dependent-shared/test-footer-header.
      	c:
      	* components/services/summary/Makefile.am:
      	* components/services/summary/nautilus-summary-callbacks.c:
      	* components/services/summary/nautilus-summary-dialogs.c:
      	* components/services/summary/nautilus-summary-dialogs.h:
      	* components/services/summary/nautilus-summary-footer.c:
      	* components/services/summary/nautilus-summary-menu-items.c:
      	* components/services/summary/nautilus-summary-view-private.h:
      	* components/services/summary/nautilus-summary-view.c:
      	* components/services/time/nautilus-view/main.c:
      	* components/services/time/nautilus-view/trilobite-eazel-time-view.
      	c:
      	* components/services/trilobite/sample/nautilus-view/Makefile.am:
      	* components/text/Makefile.am:
      	* components/text/nautilus-text-view.c:
      	* components/throbber/Makefile.am:
      	* components/throbber/main.c:
      	* components/throbber/nautilus-throbber.c:
      	* components/tree/Makefile.am:
      	* components/tree/nautilus-tree-change-queue.c:
      	* components/tree/nautilus-tree-expansion-state.c:
      	* components/tree/nautilus-tree-model.c:
      	* components/tree/nautilus-tree-node.c:
      	* components/tree/nautilus-tree-view-dnd.c:
      	* components/tree/nautilus-tree-view.c:
      	* helper-utilities/authenticate/Makefile.am:
      	* helper-utilities/authenticate/nautilus-authenticate.c:
      	* nautilus-installer/src/nautilus-druid.c:
      	* src/Makefile.am:
      	* src/file-manager/fm-desktop-icon-view.c:
      	* src/file-manager/fm-directory-view.c:
      	* src/file-manager/fm-directory-view.h:
      	* src/file-manager/fm-error-reporting.c:
      	* src/file-manager/fm-icon-text-window.c:
      	* src/file-manager/fm-icon-view.c:
      	* src/file-manager/fm-list-view.c:
      	* src/file-manager/fm-properties-window.c:
      	* src/file-manager/fm-search-list-view.c:
      	* src/file-manager/nautilus-indexing-info.c:
      	* src/nautilus-about.c:
      	* src/nautilus-application.c:
      	* src/nautilus-bookmark-list.c:
      	* src/nautilus-bookmark-parsing.c:
      	* src/nautilus-bookmarks-window.c:
      	* src/nautilus-complex-search-bar.c:
      	* src/nautilus-component-adapter-factory.c:
      	* src/nautilus-desktop-window.c:
      	* src/nautilus-first-time-druid.c:
      	* src/nautilus-link-set-window.c:
      	* src/nautilus-location-bar.c:
      	* src/nautilus-main.c:
      	* src/nautilus-navigation-bar.c:
      	* src/nautilus-profiler.c:
      	* src/nautilus-property-browser.c:
      	* src/nautilus-search-bar-criterion.c:
      	* src/nautilus-search-bar.c:
      	* src/nautilus-shell.c:
      	* src/nautilus-sidebar-tabs.c:
      	* src/nautilus-sidebar-title.c:
      	* src/nautilus-sidebar.c:
      	* src/nautilus-signaller.c:
      	* src/nautilus-simple-search-bar.c:
      	* src/nautilus-switchable-navigation-bar.c:
      	* src/nautilus-switchable-search-bar.c:
      	* src/nautilus-theme-selector.c:
      	* src/nautilus-view-frame-corba.c:
      	* src/nautilus-view-frame.c:
      	* src/nautilus-window-manage-views.c:
      	* src/nautilus-window-menus.c:
      	* src/nautilus-window-toolbars.c:
      	* src/nautilus-window.c:
      	* src/nautilus-window.h:
      	* src/nautilus-zoom-control.c:
      	Update for new eel library usage.
      
      	* test/test-nautilus-background.c:
      	* test/test-nautilus-clickable-image.c:
      	* test/test-nautilus-font-manager.c:
      	* test/test-nautilus-font-picker.c:
      	* test/test-nautilus-font-simple.c:
      	* test/test-nautilus-font.c:
      	* test/test-nautilus-glyph-simple.c:
      	* test/test-nautilus-glyph.c:
      	* test/test-nautilus-image-background.c:
      	* test/test-nautilus-image-scrolled.c:
      	* test/test-nautilus-image-simple.c:
      	* test/test-nautilus-image-table.c:
      	* test/test-nautilus-image-tile.c:
      	* test/test-nautilus-image.c:
      	* test/test-nautilus-label-background.c:
      	* test/test-nautilus-label-flavorful.c:
      	* test/test-nautilus-label-offset.c:
      	* test/test-nautilus-label-scrolled.c:
      	* test/test-nautilus-label-simple.c:
      	* test/test-nautilus-label-wrapped.c:
      	* test/test-nautilus-label.c:
      	* test/test-nautilus-labeled-image.c:
      	* test/test-nautilus-password-dialog.c:
      	* test/test-nautilus-pixbuf-tile.c:
      	* test/test-nautilus-smooth-text-layout.c:
      	* test/test-nautilus-viewport-constraint.c:
      	* test/test-nautilus-widgets.c:
      	Remove these.  They live in eel now.
      
      	* test/vsignore:
      	* test/kefile.am:
      	* test/st-nautilus-preferences-change.c:
      	* test/st-nautilus-preferences-display.c:
      	* test/st-nautilus-wrap-table.c:
      	* test/st.c:
      	* test/st.h:
      	Update for new eel library usage.
      fbbaf803
  10. 03 Apr, 2001 1 commit
    • Darin Adler's avatar
      Make file operations progress dialog always stay up for at least 1 · 58b097ec
      Darin Adler authored
      	second total so it doesn't just appear and disappear.
      
      	Preparing for a fix to the nautilus-adapter process leaking when
      	Nautilus is terminated by Ctrl-C, I cleaned up some of the code
      	inside the adapter.
      
      	Improved the warning you get when neither /etc/mnttab nor
      	/proc/mounts can be opened.
      
      	Fix bug 6888 (when I view a large image, it appears first at 100%,
      	then zoomed to fit).
      
      	Re-added part of the code to make components go away when the main
      	program that is hosting them goes away. The X-window-based
      	solution is not working as well as I had hoped, so I'm re-adding
      	the 20-second-timeout-based solution.
      
      	* components/adapter/nautilus-adapter-embed-strategy.c:
      	(nautilus_adapter_embed_strategy_initialize_class),
      	(nautilus_adapter_embed_strategy_get),
      	(nautilus_adapter_embed_strategy_emit_open_location): Change the
      	strategy new functions to use more-normal reference rules. The
      	caller no longer expects them to "use up" a reference.
      
      	* components/adapter/nautilus-adapter-control-embed-strategy.c:
      	(nautilus_adapter_control_embed_strategy_destroy),
      	(nautilus_adapter_control_embed_strategy_new): Don't keep a
      	reference to the BonoboControl around after creating the frame.
      
      	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
      	(nautilus_adapter_embeddable_embed_strategy_destroy),
      	(nautilus_adapter_embeddable_embed_strategy_new): Don't keep a
      	reference to the BonoboEmeddable around after creating the frame.
      
      	* components/image-viewer/nautilus-image-view.c: (redraw_control),
      	(scrolled_window_size_allocate_callback),
      	(control_factory_common), (init_bonobo_image_generic_factory):
      	Some name changes, and a fix so that we don't show the image first
      	at 100%, and then shrink to fit. The downside is that this might
      	be too hard-coded to the current behavior of Nautilus, but it's
      	better than flashing every time you open an image.
      
      	* components/services/trilobite/utils/.cvsignore: Ignore some
      	files in this new directory.
      
      	* libnautilus-extensions/nautilus-file-operations-progress.h:
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(nautilus_file_operations_progress_update), (close_callback),
      	(nautilus_file_operations_progress_destroy), (map_callback),
      	(delete_event_callback),
      	(nautilus_file_operations_progress_initialize),
      	(nautilus_file_operations_progress_initialize_class),
      	(nautilus_file_operations_progress_new),
      	(nautilus_file_operations_progress_set_total),
      	(nautilus_file_operations_progress_set_operation_string),
      	(nautilus_file_operations_progress_new_file),
      	(nautilus_file_operations_progress_clear),
      	(nautilus_file_operations_progress_update_sizes),
      	(delayed_close_callback), (nautilus_file_operations_progress_done):
      	Did a lot of code cleanups throughout the file, and added a new
      	call nautilus_file_operations_progress_done. Use this instead of
      	gtk_object_destroy so that the window can linger long enough for
      	the user to see it, if a copy was really fast.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(transfer_info_destroy), (parent_for_error_dialog),
      	(create_transfer_dialog), (handle_transfer_ok),
      	(handle_transfer_vfs_error): Change to use the new
      	nautilus_file_operations_progress_done call instead of
      	gtk_object_destroy when done with the progress dialog.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(nautilus_icon_container_update_scroll_region): Fix indentation.
      
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(get_current_mount_list): Replace cryptic g_return_if_fail message
      	with better-worded g_warning.
      
      	* libnautilus/nautilus-view.c: (set_frame_callback),
      	(widget_destroyed_callback),
      	(nautilus_view_construct_from_bonobo_control): Re-added code to
      	monitor the lifetime of the frame and self-destruct when the frame
      	goes away. The X-window-based solution wasn't working 100%, and
      	this solution does.
      
      	* src/nautilus-sidebar.c: (toggle_sidebar_panel),
      	(sidebar_for_each_sidebar_panel): Change object data key to use a
      	prefix that includes the word "nautilus". Tweak code that builds
      	the menu so that it always includes any panel that's displayed,
      	even if the user level says it shouldn't be there.
      58b097ec
  11. 30 Mar, 2001 1 commit
    • Darin Adler's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 31128bf3
      Darin Adler authored
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(sync_transfer_callback): Don't send out notifications in the case
      	where we did a no-op move on top of self.
      	(nautilus_file_operations_copy_move): Get rid of code that
      	complains about move on top of self, since that's no longer
      	considered an error.
      
      	* configure.in: We require the new gnome-vfs now because we need
      	the code that handles move to self better.
      31128bf3
  12. 24 Mar, 2001 1 commit
    • Darin Adler's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 92312a5f
      Darin Adler authored
      	More loose ends of the file copy and paste feature.
      
      	* libnautilus-extensions/nautilus-directory-notify.h:
      	Rename NautilusFileChangesQueuePositionSetting to
      	NautilusFileChangesQueuePosition. Add a field so it can
      	be used to set or remove a position. Rename
      	nautilus_directory_schedule_position_setting to
      	nautilus_directory_schedule_position_set.
      
      	* libnautilus-extensions/nautilus-directory.c:
      	(nautilus_directory_schedule_position_set): Change name and also
      	make it handle the case where we want to remove a position rather
      	than setting it.
      
      	* libnautilus-extensions/nautilus-file-changes-queue.h:
      	* libnautilus-extensions/nautilus-file-changes-queue.c:
      	(nautilus_file_changes_queue_schedule_position_set): Name change.
      	(nautilus_file_changes_queue_schedule_position_remove): New
      	function used to remove a position.
      	(position_set_list_free): Name changes, added the new remove
      	flavor where needed.
      	(nautilus_file_changes_consume_changes): Updated SET case,
      	added case for REMOVE.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(icon_position_iterator_get_next): New function, used to extract
      	the next position out of the iterator.
      	(apply_one_position): Simplified by using
      	icon_position_iterator_get_next, and also changed so that the
      	position is always either removed or set.
      
      	* libnautilus-extensions/nautilus-file-operations.h: Fixed header.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(event_get_time), (nautilus_get_current_event_time): Add new
      	function to get the current event time. This is available in GTK
      	2.0, so we can remove it when we move up.
      
      	* libnautilus-extensions/nautilus-link.c:
      	(nautilus_link_local_create): Updated for change to notify API.
      
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(nautilus_launch_application_from_command): Added FIXME.
      
      	* src/file-manager/fm-directory-view.c: (copy_or_cut_files): Use
      	new nautilus_get_current_event_time function. Put up a status
      	string about the cut or copy. Since there's no other feedback this
      	is especially important.
      	(paste_files_callback): Use new nautilus_get_current_event_time
      	function.
      	(real_selection_clear_event): Erase the status string.
      	(real_selection_received): Put up a status string if the paste
      	does nothing. Since we can't desensitize the Paste Files command,
      	this is the next best thing.
      92312a5f
  13. 15 Mar, 2001 1 commit
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · 1c5c03bc
      Darin Adler authored
      	Fix bug 7783 (Makefile.am used to install xml data is wrong):
      
      	* data/Makefile.am: Integrate build fix from fcrozat. Don't use
      	the magic "info" name since it is used for special purposes on
      	Mandrake and other systems.
      
      	Other strings:
      
      	* THANKS: Added some people who made recent contributions.
      	* check-THANKS.pl: Add some more alternate names.
      
      	* components/help/hyperbola-filefmt.c: (locale_score): Fix legal
      	code that doesn't compile with some versions of gcc by adding a
      	cast.
      
      	* help/nautilus-user-manual/es/.cvsignore: Add
      	nautilus-user-manual.junk.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(metafile_read_check_for_directory_callback),
      	(metafile_read_done_callback),
      	(metafile_write_failure_close_callback),
      	(metafile_write_success_close_callback),
      	(metafile_write_create_callback), (directory_load_callback),
      	(directory_count_callback), (new_files_callback), (has_problem),
      	(deep_count_callback), (mime_list_callback),
      	(top_left_read_callback), (get_info_callback),
      	(activation_uri_nautilus_link_read_callback),
      	(activation_uri_gmc_link_read_callback),
      	(cancel_activation_uri_for_file): Add ref/unref pairs that we need
      	in callbacks that use NautilusDirectory objects but that also send
      	out signals which might end up unref'ing them.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_self_check_file_operations): Add tests to demonstrate
      	bug 7701.
      
      	* libnautilus-extensions/nautilus-smooth-text-layout-cache.c:
      	(nautilus_self_check_smooth_text_layout_cache): Fix some destroys
      	that should have been unrefs.
      
      	* libnautilus-extensions/nautilus-string.c:
      	(nautilus_self_check_string): Added tests for
      	nautilus_str_get_after_prefix.
      1c5c03bc
  14. 08 Mar, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Darin Adler <darin@eazel.com> · ec8713a0
      Pavel Cisler authored
      2001-03-08  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Darin Adler  <darin@eazel.com>
      
      	Fixed 7500 (Dragging WebDAV file to Trash has no effect.)
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	* libnautilus-extensions/nautilus-file-operations.h:
      	(nautilus_file_operations_move_to_trash):
      	Got rid of the call.
      
      	* src/file-manager/fm-directory-view.c: (trash_callback),
      	(fm_directory_view_can_move_uri_to_trash),
      	(trash_or_delete_files_common),
      	(fm_directory_view_trash_or_delete_files),
      	(report_broken_symbolic_link),
      	Got rid of callers to the eliminated nautilus_file_operations_move_to_trash,
      	Rework the trash and move calls to all operate on uri strings rather than
      	NautilusFile objects.
      
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_move_copy_items):
      	Detect a move to Trash, handle it with trash_or_delete_files_common.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move),
      	Added a FIXME.
      ec8713a0
  15. 06 Mar, 2001 1 commit
    • Jiri (George) Lebl's avatar
      Darin <darin@eazel.com> said that while this patch causes fungal growth · d0ad9778
      Jiri (George) Lebl authored
      Tue Mar 06 12:24:24 2001  George Lebl <jirka@5z.com>
      
      	Darin <darin@eazel.com> said that while this patch causes fungal
      	growth between the toes, it is ok to apply.
      
      	* components/tree/nautilus-tree-view-dnd.c (do_get_data)
      	  (nautilus_tree_view_drag_drop)
      	  (nautilus_tree_view_ensure_drag_data)
      	  libnautilus-extensions/nautilus-icon-dnd.c (do_get_data)
      	  (nautilus_icon_container_ensure_drag_data)
      	  (drag_drop_callback)
      	  libnautilus-extensions/nautilus-list.c (do_get_data)
      	  (nautilus_list_ensure_drag_data)
      	  (nautilus_list_drag_drop):
      	  When doing gtk_drag_get_data, first find a target we support rather
      	  then just grabbing the first one.  We need to make a target list
      	  and do some gtk voodoo.  At some later date, this should be more
      	  generalized and stuffed somewhere in libnautilus-extentions.
      	  Fixes #7312
      
      	* libnautilus-extensions/nautilus-file-operations.c
      	  (parse_previous_duplicate_name):  s/strdup/g_strdup/ as the
      	  string will be later g_free'd
      	  Fixes #7440
      d0ad9778
  16. 21 Feb, 2001 1 commit
    • John Sullivan's avatar
      Fixed bug 6785 ("Trash" should be capitalized) · 506f9f2a
      John Sullivan authored
      	I grepped Nautilus sources for "the trash" and replaced
      	it with "the Trash". Let me know if you can think of
      	any references to the Trash that don't start with "the".
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(build_error_string), (confirm_empty_trash):
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_confirm_deletion), (confirm_delete_from_trash),
      	(report_broken_symbolic_link):
      	* src/file-manager/nautilus-desktop-icon-view-ui.xml:
      	* src/file-manager/nautilus-directory-view-ui.xml:
      506f9f2a
  17. 15 Feb, 2001 1 commit
    • J Shane Culpepper's avatar
      reviewed by: Gene Z. Ragan <gzr@eazel.com> · 38c06e70
      J Shane Culpepper authored
      2001-02-15  J Shane Culpepper  <pepper@eazel.com>
      
      	reviewed by: Gene Z. Ragan  <gzr@eazel.com>
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_transfer_ok):
      
      	Fix for Bug #1505, Cancelled copy operations leave partial
      	files.  Nautilus now catches cancel and deletes the partial
      	file.
      38c06e70
  18. 08 Feb, 2001 1 commit
    • Pavel Cisler's avatar
      Fix 6401 (Create Link yields "You cannot link a file to itself" error) · 3e8345a8
      Pavel Cisler authored
      2001-02-08  Pavel Cisler  <pavel@eazel.com>
      
      	Fix 6401 (Create Link yields "You cannot link a file to itself"
      		  error)
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move):
      	Remove a confused link to self check.
      	Pass the GNOME_VFS_XFER_USE_UNIQUE_NAMES option to xfer.
      3e8345a8
  19. 06 Feb, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Seth Nickel <seth@eazel.com> · b8c2fe20
      Pavel Cisler authored
      2001-02-05  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Seth Nickel <seth@eazel.com>
      
      	Fix 5930 (Copy dialog often shows "1" as total number of
      		  fields in operation)
      
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(nautilus_file_operations_progress_update),
      	(nautilus_file_operations_progress_new_file):
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(create_transfer_dialog):
      	Special case the preparing to copy/move phase -- when the
      	bytes_total is 0, don't display the count.
      
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	(nautilus_file_operations_progress_thaw):
      	Formatting.
      
      	* HACKING:
      	Tiny tweak.
      b8c2fe20
  20. 01 Feb, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Gene Ragan <gzr@eazel.com> · 8e014624
      Pavel Cisler authored
      2001-02-01  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Gene Ragan <gzr@eazel.com>
      
      	Fix 6152 (Dragging a file to the trash will bring up a replace
      		  dialog)
      	Fix 5387 (Dragging a file within Trash gives "already exists"
      		 error)
      
      	* libnautilus-extensions/nautilus-drag.c:
      	* libnautilus-extensions/nautilus-drag.h:
      	(nautilus_drag_items_local), (nautilus_drag_items_in_trash):
      	Add more convenience calls for Trash handling.
      
      	* libnautilus-extensions/nautilus-file-utilities.h:
      	* libnautilus-extensions/nautilus-file-utilities.c:
      	(nautilus_uri_is_in_trash):
      	New convenience call for Trash handling.
      
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_is_in_trash):
      	Use the new nautilus_uri_is_in_trash call.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move):
      	Handle the case where a file is dragged into a Trash window or
      	onto a Trash icon as if the "Move to Trash" command was issued -
      	if there is a name conflict with a pre-existing file in the Trash,
      	use a new unique name for the new file.
      
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(nautilus_icon_container_selection_items_local):
      	Handle files in the Trash properly - doing a parent match with
      	the container URI fails for these, special case Trash handling.
      8e014624
  21. 31 Jan, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Gene Z. Ragan <gzr@eazel.com> · 17955b15
      Pavel Cisler authored
      2001-01-31  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Gene Z. Ragan <gzr@eazel.com>
      
      	Fix 5324 (Should get rid of stack-based GnomeVFSFileInfo)
      
      	* components/adapter/bonobo-stream-vfs.c: (vfs_get_info):
      	Nuked some unused code that contained gnome_vfs_file_info_init.
      
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	(nautilus_adapter_progressive_load_strategy_load_location):
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(path_represents_svg_image), (get_cache_time):
      	* libnautilus-extensions/nautilus-thumbnails.c:
      	(first_file_more_recent):
      	* src/nautilus-window-menus.c: (get_static_bookmarks_file_path):
      	Get rid of gnome_vfs_file_info_init.
      	Replace all instances of stack-based GnomeVFSFileInfo
      	structures, replace all calls to gnome_vfs_file_info_init
      	with gnome_vfs_file_info_new.
      	Replace most calls to gnome_vfs_file_info_clear with
      	gnome_vfs_file_info_unref.
      
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	(has_image_file):
      	Rework to use gnome_vfs_uri_exists instead of trying to get
      	file info.
      
      	* components/adapter/nautilus-adapter-progressive-load-strategy.c:
      	(nautilus_adapter_progressive_load_strategy_load_location):
      	Fixed a bug where file info fields were being used after a
      	gnome_vfs_file_info_clear call
      
      
      	Fix 6146 ("Duplicate File" reports "You cannot copy a file
      		   over itself")
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move):
      	Make copying iside the same directory while the
      	GNOME_VFS_XFER_USE_UNIQUE_NAMES move_option is set legal.
      17955b15
  22. 29 Jan, 2001 2 commits
    • Gene Z. Ragan's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 0919c257
      Gene Z. Ragan authored
      2001-01-29  Gene Z. Ragan  <gzr@eazel.com>
      
      	reviewed by: Pavel Cisler <pavel@eazel.com>
      
      	Fixed bug 5508, Nautilus crashes when pressing 'Esc' in
      	copy/duplicate progress dialog
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_close_callback), (create_transfer_dialog):
      	Set the cancel state to true if the user uses the Escape key
      	or close box to dismiss the dialog.  This will cancel the
      	transfer properly.
      0919c257
    • John Sullivan's avatar
      reviewed by: Darin Adler <darin@eazel.com> · 5e384e1b
      John Sullivan authored
      	Fixed bug 4427 (Should not execute text files by default).
      
      	Now it asks whether to run or display executable text files.
      	Advanced users can set a new preference.
      
      	* libnautilus-extensions/nautilus-stock-dialogs.h:
      	* libnautilus-extensions/nautilus-stock-dialogs.c:
      	(create_message_box): New bottleneck function, contains former
      	guts of show_message_box but doesn't call gtk_widget_show.
      	(show_message_box): Now just a simple wrapper for
      	calling create_message_box and showing the result.
      	(nautilus_show_info_dialog), (nautilus_show_warning_dialog),
      	(nautilus_show_error_dialog), (nautilus_show_yes_no_dialog),
      	(nautilus_show_error_dialog_with_details):
      	Renamed to add verb "show" to names.
      	(nautilus_run_simple_dialog): Renamed to add verb "run" to name.
      	(nautilus_create_question_dialog): New public function, does
      	not show the dialog yet so caller can add more buttons or
      	whatever before showing.
      
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(global_preferences_install_descriptions),
      	(global_preferences_install_defaults),
      	(global_preferences_install_visibility),
      	(global_preferences_create_dialog): Add new preference for
      	what to do when an executable text file is activated. It
      	defaults to "Ask" and is visible only at Advanced level.
      
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.h: Moved
      	nautilus_file_contains_text into public header.
      
      	* src/file-manager/fm-directory-view.c:
      	(get_executable_text_file_action): New function, uses preference
      	and dialog (if necessary) to determine how to handle activating
      	an executable text file.
      	(activate_callback): Now handles executable text files specially
      	by using get_executable_text_file_action. Restructured the control
      	flow a little.
      
      	* components/music/nautilus-music-view.c: (set_album_cover),
      	(play_current_file), (nautilus_music_view_update):
      	* components/rpmview/nautilus-rpm-view-install.c:
      	(nautilus_rpm_view_install_done):
      	* components/services/summary/nautilus-view/nautilus-summary-dialogs.c:
      	(nautilus_summary_login_failure_dialog),
      	(generate_error_dialog):
      	* components/text/nautilus-text-view.c: (file_read_callback):
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(confirm_empty_trash),
      	(handle_transfer_vfs_error), (handle_transfer_overwrite),
      	(nautilus_file_operations_copy_move),
      	(handle_new_folder_vfs_error),
      	(nautilus_file_operations_move_to_trash):
      	* libnautilus-extensions/nautilus-icon-dnd.c:
      	(confirm_switch_to_manual_layout):
      	* libnautilus-extensions/nautilus-program-chooser.c:
      	(nautilus_program_chooser_show_no_choices_message):
      	* libnautilus-extensions/nautilus-program-choosing.c:
      	(nautilus_launch_application):
      	* libnautilus-extensions/nautilus-volume-monitor.c:
      	(display_mount_status):
      	* src/file-manager/fm-desktop-icon-view.c:
      	(icon_view_create_nautilus_links):
      	* src/file-manager/fm-directory-view.c:
      	(fm_directory_view_confirm_multiple_windows),
      	(real_file_limit_reached), (fm_directory_view_confirm_deletion),
      	(confirm_delete_from_trash), (report_broken_symbolic_link),
      	* src/file-manager/fm-error-reporting.c:
      	(fm_report_error_renaming_file), (fm_report_error_setting_group),
      	(fm_report_error_setting_owner),
      	(fm_report_error_setting_permissions):
      	* src/file-manager/fm-properties-window.c: (set_custom_image):
      	* src/file-manager/fm-search-list-view.c: (load_location_callback),
      	(load_error_callback), (display_indexed_search_problems_dialog),
      	(real_file_limit_reached):
      	* src/file-manager/nautilus-indexing-info.c:
      	(update_file_index_callback),
      	(show_search_service_not_available_dialog):
      	* src/nautilus-application.c: (check_required_directories),
      	(nautilus_application_startup):
      	* src/nautilus-location-bar.c: (drag_data_received_callback):
      	* src/nautilus-property-browser.c: (remove_pattern),
      	(remove_emblem), (emblem_image_file_changed),
      	(add_pattern_to_browser), (add_color_to_browser),
      	(emblem_dialog_clicked):
      	* src/nautilus-sidebar.c: (receive_dropped_uri_list):
      	* src/nautilus-theme-selector.c: (add_theme_to_icons),
      	(theme_select_row_callback):
      	* src/nautilus-window-manage-views.c: (handle_unreadable_location),
      	(report_content_view_failure_to_user_internal),
      	(report_sidebar_panel_failure_to_user),
      	(nautilus_window_end_location_change_callback):
      	* src/nautilus-window-menus.c: (forget_history_if_confirmed),
      	(show_bogus_bookmark_window): Updated for dialog API name changes.
      
      	* libnautilus-extensions/nautilus-file.c: (get_description):
      	Lucky Aaron gets missing mime description complaints now.
      5e384e1b
  23. 27 Jan, 2001 1 commit
  24. 26 Jan, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Michael Engber <engber@eazel.com> · 7379412e
      Pavel Cisler authored
      2001-01-25  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Michael Engber  <engber@eazel.com>
      
      	Fix 5879 (Close copy source & destination windows -> crash at
      		  end of copy operation).
      
      	* libnautilus-extensions/nautilus-directory-metafile.c:
      	(nautilus_directory_remove_file_metadata):
      	Merge a fix from PR3 branch.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(null_the_reference), (nautilus_gtk_null_reference_if_destroyed),
      	(nautilus_gtk_stop_null_reference_if_destroyed):
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	Add new magic calls that set up a reference to get nulled out
      	when the object it points to is destroyed.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(transfer_info_new), (transfer_info_destroy),
      	(handle_transfer_ok), (nautilus_file_operations_copy_move),
      	(nautilus_file_operations_move_to_trash),
      	(nautilus_file_operations_delete), (do_empty_trash):
      	Null out a saved reference to the parent window so
      	that we don't try to use it after the window gets closed.
      	Clean up creation and destruction of TransferInfo.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_transfer_ok):
      	Fix a case where TransferInfo could get leaked.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(new_folder_transfer_callback),
      	(nautilus_file_operations_new_folder):
      	Rework to make deleting of NewFolderTransferState cleaner.
      	Set up parent_view to get nulled out when the view gets closed.
      
      	* libnautilus-extensions/nautilus-preferences-dialog.c:
      	(dialog_clicked), (dialog_show), (dialog_destroy),
      	Tweaks. Get rid of unneeded casts.
      
      	* src/nautilus-property-browser.c: (add_new_pattern),
      	(show_color_selection_window), (add_new_color), (add_new_emblem):
      	* src/nautilus-theme-selector.c: (add_new_theme_button_callback):
      	* src/nautilus-view-frame-corba.c:
      	(impl_Nautilus_ViewFrame__destroy),
      	(impl_Nautilus_ViewFrame__create):
      	Use new magic calls to null out references.
      
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_destroy):
      	Disconnect from the destroy-watching signal.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(set_pending_icon_to_reveal):
      	(nautilus_preferences_dialog_construct):
      	* src/file-manager/fm-directory-view.c: (copy_move_done_data_free),
      	(pre_copy_move), (copy_move_done_partition_func),
      	(copy_move_done_callback):
      	Use new magic calls to null out references.
      	Fix a memory trasher where CopyMoveDoneData was being destroyed too
      	early.
      7379412e
  25. 19 Jan, 2001 1 commit
    • Pavel Cisler's avatar
      reviewed by: Ramiro Estrugo <ramiro@eazel.com> · 8caa91c1
      Pavel Cisler authored
      2001-01-19  Pavel Cisler  <pavel@eazel.com>
      
      	reviewed by: Ramiro Estrugo <ramiro@eazel.com>
      
      	Fixed 4348: trying to trash a file already deleted outside Nautilus crashes.
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(nautilus_file_operations_copy_move):
      	The problem was that the "find trash near" operation was failing because
      	the trahsed file was non-existent.
      	Added code that deals with a NULL target_directory_uri handle.
      8caa91c1
  26. 18 Jan, 2001 4 commits
    • John Harper's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · 9d66b79c
      John Harper authored
      2001-01-18  John Harper  <jsh@eazel.com>
      
      	reviewed by: Pavel Cisler <pavel@eazel.com>
      
      	Fix bug 5666 (dragging to directory in the tree view always
      	crashes)
      
      	* libnautilus-extensions/nautilus-file-operations.c
      	(nautilus_file_operations_copy_move): check that
      	relative_item_points isn't null before dereferencing it (since
      	nautilus_tree_view_move_copy_files passes NULL as this
      	parameter)
      9d66b79c
    • Darin Adler's avatar
      reviewed by: John Sullivan <sullivan@eazel.com> · e82bab8c
      Darin Adler authored
      	Fixed bug 2147 (NautilusFile for trash needs non-empty values for
      	more properties), bug 5652 (MIME type field appears but shouldn't
      	in properties window for Trash), and bug 4620 (trash sidebar
      	should show number of items).
      
      	* libnautilus-extensions/nautilus-file.h:
      	* libnautilus-extensions/nautilus-file-private.h:
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_new_from_relative_uri): Create trash file subclass
      	when appropriate.
      	(nautilus_file_info_missing): Rename so it can be used in other
      	source files.
      	(nautilus_file_get_date): New method that returns numeric dates.
      	(nautilus_file_get_date_as_string): Change to call
      	nautilus_file_get_date to get the numeric date.
      	(nautilus_file_get_file_type): Turn into a method.
      
      	* libnautilus-extensions/nautilus-merged-directory.h:
      	* libnautilus-extensions/nautilus-merged-directory.c:
      	(merged_call_when_ready): Rolled in the old
      	merged_callback_connect_directory function.
      	(merged_contains_file): Moved down to a more appropriate part of
      	the source file.
      	(nautilus_merged_directory_get_real_directories): New public
      	function for use by trash.
      
      	* libnautilus-extensions/nautilus-trash-file.c:
      	(trash_callback_hash), (trash_callback_equal),
      	(trash_callback_destroy), (trash_callback_check_done),
      	(trash_callback_remove_file), (ready_callback),
      	(real_file_changed_callback), (monitor_add_file), (add_real_file),
      	(trash_callback_remove_file_cover), (monitor_remove_file),
      	(remove_real_file), (add_real_file_given_directory),
      	(add_directory_callback), (remove_directory_callback),
      	(trash_file_call_when_ready), (trash_file_cancel_call_when_ready),
      	(trash_file_check_if_ready), (trash_file_monitor_add),
      	(trash_file_monitor_remove), (trash_file_get_file_type),
      	(trash_file_get_item_count), (trash_file_get_deep_counts),
      	(trash_file_get_date), (remove_all_real_files),
      	(nautilus_trash_file_initialize), (trash_destroy),
      	(nautilus_trash_file_initialize_class):
      	New code. First implementation of getting some attributes for the
      	merged trash. Gets list of directories from the
      	NautilusTrashDirectory object. The code in here is similar to the
      	NautilusMergedDirectory class and at some point perhaps we can
      	make the two share more.
      
      	* libnautilus-extensions/nautilus-vfs-file.c:
      	(vfs_file_get_file_type), (vfs_file_get_date),
      	(nautilus_vfs_file_initialize_class): Implement the two new
      	methods for the standard vfs case.
      
      	Fixed various things that affect the properties window for the
      	trash that showed up while I was testing the above work:
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_name_for_regular_file),
      	(nautilus_icon_factory_get_icon_name_for_file): Move trash special
      	case out so it doesn't matter what type the trash seems to be. The
      	old code relied on trash not being a directory.
      
      	* src/file-manager/fm-properties-window.c:
      	(create_properties_window), (create_properties_window_callback),
      	(cancel_create_properties_window_callback),
      	(directory_view_destroyed_callback), (remove_pending_file): Rework
      	code to fix problems where the timed wait or the signal handler
      	wasn't properly cleaned up.
      
      	Fixed remaining bit of bug 5631 (Tear-offs of right-click menus
      	don't work.):
      
      	* src/file-manager/nautilus-desktop-icon-view-ui.xml: Mark Disks
      	right-click submenu so it won't get a tear-off item.
      
      	Fixed bug 5650 (nautilus --quit fails to return to prompt
      	sometimes):
      
      	* src/nautilus-application.c: (nautilus_application_startup): Add
      	special case so "nautilus --quit" doesn't hang waiting for a
      	response from the (now quit) "server" instance of Nautilus.
      	* src/nautilus-shell-interface.idl: Had to make the quit call no
      	longer be "oneway" to get it to work right, otherwise the quit
      	message could be lost when the sending application exited too
      	fast.
      
      	Fix bug 5675 (Nitpicks in new "could not be moved to new special
      	location" dialog):
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_transfer_overwrite): Updated message wording as Eli (and
      	Vera) suggest.
      
      	Other changes:
      
      	* libnautilus-extensions/nautilus-view-identifier.c:
      	(get_lang_list): Fix comment and a small storage leak in the case
      	where lang_with_locale is non-NULL but empty.
      
      	* po/POTFILES.ignore: Obsolete file, no longer used.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(update_home_link_and_delete_copies): Update comment to help
      	translators understand better.
      
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(directory_load_callback): Added a new assertion that could help
      	in future gnome-vfs debugging.
      
      	* libnautilus/nautilus-view-component.idl: Removed long-ago-fixed
      	FIXME comment.
      
      	* src/nautilus-window-manage-views.c: Tweak spacing.
      e82bab8c
    • Pavel Cisler's avatar
      Fix 4221 (Pressing Cancel button does not cancel) · a0464ac6
      Pavel Cisler authored
      2001-01-18  Pavel Cisler <pavel@eazel.com>
      
      	Fix 4221 (Pressing Cancel button does not cancel)
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(transfer_dialog_clicked_callback), (handle_transfer_ok):
      	Redo cancellation to use a flag in the Transfer state and
      	return a request to cancel during the next callback instead
      	of issuing a gnome_vfs_async_cancel and destroying the
      	dialog. The latter approach would now work too with my
      	latest change to gnome_vfs_xfer, this new way of cancelling
      	is cleaner and causes all the item that actually do get
      	copied to show up in their new locations.
      a0464ac6
    • Ramiro Estrugo's avatar
      reviewed by: Pavel Cisler <pavel@eazel.com> · d927dfd2
      Ramiro Estrugo authored
      	Lots of bug fixes:
      
      	2848 - User level agnostic config settings have nowhere to live.
      	2654 - Need default values even for non user level preferences.
      	3414 - Show more preferences at higher user levels.
      	3415 - Make preference the same for all levels at which it is not visible
      	3416 - Make preference changes affect all levels at which they are visible
      	4357 - Web search URL setting should be reset upon Nautilus update
      	5160 - Tree view doesnt exist when starting nautilus as a beginner
      	5234 - Sidebar panel preferences are not properly separated among user levels
      
      	* components/mozilla/mozilla-preferences.cpp:
      	Update for gnome vfs proxy changes.  Proxy host and port are now
      	stored in separate gconf settings.
      
      	* libnautilus-extensions/Makefile.am:
      	* libnautilus-extensions/nautilus-enumeration.h:
      	* libnautilus-extensions/nautilus-enumeration.c:
      	(nautilus_enumeration_new), (nautilus_enumeration_free),
      	(nautilus_enumeration_insert),
      	(nautilus_enumeration_get_nth_entry),
      	(nautilus_enumeration_get_nth_description),
      	(nautilus_enumeration_get_nth_value),
      	(nautilus_enumeration_get_num_entries),
      	(nautilus_self_check_enumeration):
      	New files.  An enumeration data structure.
      
      	* components/tree/nautilus-tree-expansion-state.c:
      	No longer need to give the full path to a gconf setting.
      
      	* components/tree/nautilus-tree-view.c:
      	(filtering_changed_callback), (nautilus_tree_view_initialize):
      	* libnautilus-extensions/nautilus-directory-async.c:
      	(can_use_public_metafile),
      	(get_filter_options_for_directory_count):
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(confirm_empty_trash):
      	* libnautilus-extensions/nautilus-file.c:
      	(nautilus_file_should_get_top_left_text):
      	* libnautilus-extensions/nautilus-font-factory.c:
      	(nautilus_font_factory_get_font_from_preferences):
      	Update for preferences api changes.
      
      	* libnautilus-extensions/nautilus-gconf-extensions.h:
      	* libnautilus-extensions/nautilus-gconf-extensions.c:
      	(global_client_free), (nautilus_gconf_client_get_global),
      	(nautilus_gconf_handle_error), (nautilus_gconf_set_boolean),
      	(nautilus_gconf_get_boolean), (nautilus_gconf_set_int),
      	(nautilus_gconf_get_int), (nautilus_gconf_set_string),
      	(nautilus_gconf_get_string), (nautilus_gconf_set_string_list),
      	(nautilus_gconf_get_string_list), (nautilus_gconf_is_default),
      	(nautilus_gconf_monitor_directory):
      	New files.  Useful gconf extensions; make peeking and poking
      	settings a little easier.
      
      	* libnautilus-extensions/nautilus-icon-container.c:
      	(button_press_event):
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	(in_single_click_mode):
      	Update for preferences api changes.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(icon_theme_changed_callback),
      	(should_display_image_file_as_itself):
      	Update for preferences api changes.  Also no longer need to define
      	a default theme.
      
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	Add entries for enumeration and preferences.  Remove preference
      	entry.  Note plural vs not.
      
      	* libnautilus-extensions/nautilus-preference.c:
      	* libnautilus-extensions/nautilus-preference.h:
      	Retire these 2.  No longer use a GtkObject to store each
      	preference.  We simply use the string name instead.
      
      	* libnautilus-extensions/nautilus-preferences-box.h:
      	* libnautilus-extensions/nautilus-preferences-box.c:
      	(nautilus_preferences_box_add_pane),
      	(nautilus_preferences_box_update):
      	New function.  Should be called when user level changes so that
      	the box updates its panes.
      
      	* libnautilus-extensions/nautilus-preferences-dialog.h:
      	* libnautilus-extensions/nautilus-preferences-dialog.c:
      	(nautilus_preferences_dialog_initialize),
      	(nautilus_preferences_dialog_destroy),
      	(nautilus_preferences_dialog_get_prefs_box),
      	(nautilus_preferences_dialog_update),
      	(user_level_changed_callback):
      	Keep track of user level changes.
      	New function to update the dialog when user level changes.
      
      	* libnautilus-extensions/nautilus-preferences-group.h:
      	* libnautilus-extensions/nautilus-preferences-group.c:
      	(nautilus_preferences_group_initialize),
      	(nautilus_preferences_group_destroy),
      	(nautilus_preferences_group_add_item): Collect the group's items
      	in a list.  Update to user a string to represent a preference
      	instead of a GtkObject.
      	(nautilus_preferences_group_update): New function.  Updates the
      	group's items to respect preferences visibility based on the user
      	level.
      	(nautilus_preferences_get_num_visible_items):  New function.
      	Return the number of currently visible items.
      
      	Collect the group's items in a list.   Update to user a string to
      	represent a preference instead of a GtkObject.
      
      	* libnautilus-extensions/nautilus-preferences-item.h:
      	* libnautilus-extensions/nautilus-preferences-item.c:
      	(preferences_item_construct), (preferences_item_create_enum),
      	(preferences_item_create_short_enum),
      	(preferences_item_create_boolean),
      	(preferences_item_create_editable_string),
      	(preferences_item_create_integer),
      	(preferences_item_create_font_family),
      	(preferences_item_create_theme),
      	(enum_radio_group_changed_callback),
      	(editable_string_changed_callback), (integer_changed_callback),
      	(nautilus_preferences_item_get_name):
      	New function to fetch the item's preference name.
      	Add a new kind of preference - INTEGER.  Update for string
      	vs. GtkObject preferences representation changes.
      
      	* libnautilus-extensions/nautilus-preferences-pane.h:
      	* libnautilus-extensions/nautilus-preferences-pane.c:
      	(nautilus_preferences_pane_update):
      	New function.  Updates the pane's groups to respect preferences
      	visibility based on the user level.
      
      	* libnautilus-extensions/nautilus-preferences.h:
      	* libnautilus-extensions/nautilus-preferences.c:
      	(preferences_get_path), (preferences_get_defaults_path),
      	(preferences_get_visibility_path),
      	(preferences_get_user_level_key),
      	(preferences_preference_is_internal),
      	(preferences_preference_is_user_level), (preferences_key_make),
      	(preferences_key_make_for_default),
      	(preferences_key_make_for_default_getter),
      	(preferences_key_make_for_visibility),
      	(preferences_global_client_remove_notification),
      	(preferences_global_client_get),
      	(preferences_preference_is_default),
      	(preferences_make_user_level_filtered_key),
      	(nautilus_preferences_get_visible_user_level),
      	(nautilus_preferences_set_visible_user_level),
      	(nautilus_preferences_set_boolean),
      	(preferences_key_make_for_getter),
      	(nautilus_preferences_get_boolean), (nautilus_preferences_set_int),
      	(nautilus_preferences_get_int), (nautilus_preferences_set),
      	(nautilus_preferences_get), (nautilus_preferences_set_string_list),
      	(nautilus_preferences_get_string_list),
      	(nautilus_preferences_get_user_level),
      	(nautilus_preferences_set_user_level),
      	(nautilus_preferences_default_set_int),
      	(nautilus_preferences_default_get_int),
      	(nautilus_preferences_default_set_boolean),
      	(nautilus_preferences_default_get_boolean),
      	(nautilus_preferences_default_set_string),
      	(nautilus_preferences_default_get_string),
      	(nautilus_preferences_default_set_string_list),
      	(nautilus_preferences_default_get_string_list),
      	(preferences_callback_entry_invoke_function),
      	(preferences_something_changed_notice),
      	(preferences_global_table_check_changes_function),
      	(preferences_user_level_changed_notice),
      	(preferences_entry_add_callback),
      	(preferences_entry_remove_callback),
      	(preferences_callback_entry_free),
      	(preferences_callback_entry_free_func), (preferences_entry_free),
      	(preferences_entry_free_func), (preferences_global_table_free),
      	(preferences_global_table_get_global),
      	(preferences_global_table_lookup),
      	(preferences_global_table_insert),
      	(preferences_global_table_lookup_or_insert),
      	(nautilus_preferences_add_callback),
      	(preferences_while_alive_disconnector),
      	(nautilus_preferences_add_callback_while_alive),
      	(nautilus_preferences_remove_callback),
      	(nautilus_preferences_enumeration_insert),
      	(nautilus_preferences_enumeration_get_nth_entry),
      	(nautilus_preferences_enumeration_get_nth_description),
      	(nautilus_preferences_enumeration_get_nth_value),
      	(nautilus_preferences_enumeration_get_num_entries),
      	(nautilus_preferences_set_description),
      	(nautilus_preferences_get_description),
      	(nautilus_preferences_get_user_level_name_for_display),
      	(nautilus_preferences_get_user_level_name_for_storage),
      	(preferences_user_level_check_range),
      	(nautilus_preferences_monitor_directory),
      	(nautilus_preferences_is_visible),
      	(nautilus_self_check_preferences):
      	Many changes.  Redid to support the preferences system described
      	in bugs 3414, 3415 and 3416.
      
      	* libnautilus-extensions/nautilus-smooth-widget.c:
      	(preferences_get_is_smooth):
      	* libnautilus-extensions/nautilus-sound.c:
      	(kill_sound_if_necessary), (nautilus_sound_initialize),
      	(nautilus_sound_kill_sound), (nautilus_sound_register_sound),
      	(nautilus_sound_can_play_sound):
      	* libnautilus-extensions/nautilus-theme.c:
      	(nautilus_theme_get_theme), (nautilus_theme_get_theme_data),
      	(nautilus_theme_get_image_path):
      	Update for preferences api changes.
      
      	* libnautilus-extensions/nautilus-user-level-manager.c:
      	* libnautilus-extensions/nautilus-user-level-manager.h:
      	Retire.  No longer needed.  User level things are handled in
      	nautilus-preferences.[ch] now.  The current user level design is
      	much simpler and does no require its own GtkObject.
      
      	* src/file-manager/fm-desktop-icon-view.c:
      	(update_home_link_and_delete_copies), (real_update_menus):
      	* src/file-manager/fm-directory-view.c: (open_location),
      	(confirm_delete_from_trash), (real_update_menus),
      	(fm_directory_view_activate_files), (filtering_changed_callback):
      	* src/file-manager/fm-icon-text-window.c:
      	(changed_attributes_option_menu_callback),
      	(fm_get_text_attribute_names_preference_or_default):
      	* src/file-manager/fm-icon-view.c: (should_preview_sound),
      	(fm_icon_view_update_click_mode),
      	(fm_icon_view_update_smooth_graphics_mode):
      	* src/file-manager/fm-list-view.c:
      	(fm_list_view_update_click_mode):
      	* src/file-manager/fm-properties-window.c:
      	(create_permissions_page):
      	* src/nautilus-application.c: (desktop_changed_callback):
      	* src/nautilus-complex-search-bar.c:
      	(nautilus_complex_search_bar_get_location):
      	* src/nautilus-first-time-druid.c: (user_level_selection_changed),
      	(make_hbox_user_level_radio_button), (set_up_user_level_page):
      	* src/nautilus-main.c: (main):
      	* src/nautilus-property-browser.c:
      	(nautilus_property_browser_update_contents):
      	* src/nautilus-sidebar.c: (nautilus_sidebar_sidebar_panel_enabled),
      	(toggle_sidebar_panel), (nautilus_sidebar_size_allocate):
      	* src/nautilus-switchable-search-bar.c:
      	(nautilus_switchable_search_bar_new),
      	(nautilus_search_uri_to_search_bar_mode):
      	Update for preferences api changes.
      
      	* src/nautilus-window-manage-views.c:
      	(position_and_show_window_callback),
      	(nautilus_window_end_location_change_callback):
      	Update for preferences api changes.  Also, no longer need to pass
      	in a default location to the preferences getter.
      
      	* src/nautilus-window-menus.c: (user_level_customize_callback),
      	(switch_to_user_level), (refresh_bookmarks_menu),
      	(user_level_changed_callback), (add_user_level_menu_item),
      	(nautilus_window_initialize_menus), (update_user_level_menu_items),
      	(convert_user_level_to_path):
      	A lot of simplification.  The "Edit Settings..." menu item no
      	longer changes it wording based on the user level.  We know allow
      	it to edit settings on all user levels, since we have the ability
      	to hide preferences at higher user levels.  No longer need to
      	update the preferences dialog or its title.
      
      	* src/nautilus-window.c: (nautilus_window_constructed),
      	(nautilus_window_close), (nautilus_window_go_web_search),
      	(nautilus_window_go_home), (nautilus_window_show):
      	Update for preferences api changes.
      
      	* libnautilus-extensions/nautilus-global-preferences.h:
      	Update all the preferences defines to not include a full gconf
      	path.  We dont need to do this anymore to get non user level
      	coupled prefernces.
      
      	* libnautilus-extensions/nautilus-global-preferences.c:
      	(compare_view_identifiers), (global_preferences_create_dialog),
      	(nautilus_global_preferences_get_enabled_sidebar_panel_view_identif
      	iers), (global_preferences_install_sidebar_panel_defaults),
      	(global_preferences_is_sidebar_panel_enabled),
      	(global_preferences_install_speed_tradeoff_descriptions),
      	(register_proxy_preferences), (global_preferences_register),
      	(global_preferences_install_defaults),
      	(nautilus_global_preferences_set_dialog_title):
      	Lots of changes to support new preferences design.
      
      	Set the WM_CLASS here once instead of everytime the dialog title
      	is changed.  This was causing criticals.
      
      	No longer need to create parallel proxy preferences and map them
      	to the gconf ones.  We can use the gconf ones directly now.
      
      	* test/.cvsignore:
      	* test/Makefile.am:
      	* test/test-nautilus-preferences-change.c:
      	(user_level_changed_callback), (fruits_changed_callback),
      	(int_picker_changed_callback),
      	(user_level_picker_changed_callback), (picker_new),
      	(user_level_picker_new), (main):
      	* test/test-nautilus-preferences-display.c: (text_caption_update),
      	(user_level_caption_update), (user_level_changed_callback),
      	(green_changed_callback), (yellow_changed_callback),
      	(red_changed_callback), (apple_changed_callback),
      	(orange_changed_callback), (pear_changed_callback), (entry_new),
      	(user_level_frame_new), (colors_frame_new), (fruits_frame_new),
      	(main):
      	* test/test.c: (test_pixbuf_draw_rectangle_tiled),
      	(test_text_caption_set_text_for_int_preferences),
      	(test_text_caption_set_text_for_string_preferences),
      	(test_text_caption_set_text_for_default_int_preferences),
      	(test_text_caption_set_text_for_default_string_preferences),
      	(test_text_caption_get_text_as_int),
      	(test_window_set_title_with_pid):
      	* test/test.h:
      	New tests for preferences changes.
      
      	* test/test-nautilus-preferences.c:
      	Retire old prefs test which didnt really work.
      
      	* test/test-nautilus-smooth-graphics.c:
      	(smooth_graphics_mode_changed_callback), (main):
      	Update for preferences api changes.
      d927dfd2
  27. 16 Jan, 2001 4 commits
    • Gene Z. Ragan's avatar
      Fixed mistake in asserting on a NULL value. Assert if the value is NULL, · b46971ba
      Gene Z. Ragan authored
      2001-01-16  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed mistake in asserting on a NULL value. Assert if the
      	value is NULL, not non-NULL.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(extract_and_ellipsize_file_name_for_dialog):
      b46971ba
    • Darin Adler's avatar
      reviewed by: Gene Ragan <gzr@eazel.com> · 075cd9bf
      Darin Adler authored
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(get_label_font): It's illegal to unref a new widget since you
      	don't own a ref to it. Sink it instead.
      	(ellipsize_string_for_dialog): New function.
      	(format_and_ellipsize_uri_for_dialog): Rename this function and
      	change it to use nautilus_format_uri_for_display. Also add FIXME
      	about where the ellipsis goes.
      	(extract_and_ellipsize_file_name_for_dialog): Added a seprate
      	function for the case where we want to extract the file name
      	part only. The old code mixed the URI and file name cases in a
      	way that would lead to anomalies with unusual names.
      	(handle_transfer_vfs_error): Fixed storage leak.
      	(is_special_link): Rewrote this function and also made it take
      	a URI in text form, not a GnomeVFSURI.
      	(handle_transfer_overwrite): Use is_special_link instead of
      	duplicate its test. Removed incorrect use of NautilusFile (without
      	waiting for results). Added quotes around file name in
      	message. Use extract_and_ellipsize_file_name_for_dialog instead of
      	our own ad-hoc functions.
      	(make_next_duplicate_name): Get rid of bizarre buffer/sprintf that
      	was used by someone who didn't know you can use printf formatting
      	with g_warning.
      	(vfs_uri_is_special_link): Created cover for one remaining caller
      	of is_special_link that needs to pass a GnomeVFSURI.
      	(nautilus_file_operations_copy_move): Use the new is_special_link
      	(nautilus_file_operations_move_to_trash): Use
      	extract_and_ellipsize_file_name_for_dialog instead of an old
      	strange combination of calls.
      
      	* libnautilus-extensions/nautilus-icon-factory.c:
      	(nautilus_icon_factory_get_icon_name_for_regular_file): Fix
      	obsolete comment and rearrange code now that plain text special
      	case is gone.
      075cd9bf
    • Gene Z. Ragan's avatar
      Fixed bug 5677, Drag files w/names of Specials to desktop -> malloc crash · 9bb45668
      Gene Z. Ragan authored
      2001-01-16  Gene Z. Ragan  <gzr@eazel.com>
      
      	Fixed bug 5677, Drag files w/names of Specials to desktop -> malloc crash
      	Fixed bug 5673, Spaces are escaped in new "replace special desktop icon"
      	dialog.
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_transfer_overwrite):
      9bb45668
    • Michael Fleming's avatar
      reviewed by: <pavel@eazel.com> · 669cb660
      Michael Fleming authored
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_transfer_vfs_error):
      
      	Fixed error message for the case where a file was moved to an unwritable
      	target where permissions were not known in advance (eg, Eazel vault).
      
      	Previously: "The file or its directory cannot be changed"
      	Now: "You do not have permissions to write to this folder"
      669cb660
  28. 15 Jan, 2001 1 commit
  29. 09 Jan, 2001 1 commit
    • Gene Z. Ragan's avatar
      reviewed by: Mike Engber <engber@eazel.com> · 654e4b82
      Gene Z. Ragan authored
      2001-01-09  Gene Z. Ragan  <gzr@eazel.com>
      
      	reviewed by: Mike Engber <engber@eazel.com>
      
      	Fixed bug 5220, Default desktop icon overwritten by dragging
      	same-named file to Desktop
      
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(handle_transfer_overwrite):
      	We now check for special link files being overwritten and notify the user
      	that such an action is not allowed.
      654e4b82
  30. 03 Jan, 2001 1 commit
    • Ramiro Estrugo's avatar
      reviewed by: Gene Ragan <gzr@eazel.com> · f86f649a
      Ramiro Estrugo authored
      	* libnautilus-extensions/nautilus-art-extensions.c:
      	(nautilus_art_irect_contains_point):
      	* libnautilus-extensions/nautilus-art-extensions.h:
      	New function to test whether a rectangle contains a point.
      
      	* libnautilus-extensions/nautilus-gdk-extensions.c:
      	(nautilus_self_check_gdk_extensions):
      	* libnautilus-extensions/nautilus-gdk-extensions.h:
      	* libnautilus-extensions/nautilus-gdk-font-extensions.c:
      	(nautilus_gdk_font_get_bold), (font_scalable_get_by_size),
      	(font_bitmap_get_by_size), (nautilus_gdk_font_get_larger),
      	(nautilus_gdk_font_get_smaller), (nautilus_gdk_font_equal),
      	(nautilus_get_largest_fitting_font),
      	(nautilus_string_ellipsize_start), (nautilus_gdk_font_list_fonts),
      	(nautilus_gdk_font_get_name), (xlfd_string_get_nth),
      	(xlfd_string_replace_nth), (xlfd_string_get_nth_as_int),
      	(xlfd_string_is_scalable_non_bitmap),
      	(xlfd_string_could_be_scalable_non_bitmap),
      	(font_entry_has_bold_weight_test),
      	(font_entry_is_scalable_non_bitmap_test),
      	(compare_xlfd_by_size_in_points), (compare_xlfd_by_size_in_pixels),
      	(nautilus_self_check_ellipsize_start),
      	(nautilus_self_check_gdk_font_extensions):
      	* libnautilus-extensions/nautilus-gdk-font-extensions.h:
      	Move GdkFont extensions to their own file.  Add new functions to
      	find a larger/smaller find given an existing font.  Change the
      	bold flavor font function to query the system for fonts, this
      	makes it work regardless of the user's selected font.  Before it
      	worked only for some fonts.
      
      	* libnautilus-extensions/nautilus-file-operations-progress.c:
      	* libnautilus-extensions/nautilus-file-operations.c:
      	* libnautilus-extensions/nautilus-icon-canvas-item.c:
      	* src/nautilus-sidebar-title.c:
      	Include nautilus-gdk-font-extensions.h.
      
      	* libnautilus-extensions/nautilus-gtk-extensions.c:
      	(nautilus_gtk_label_make_bold), (nautilus_gtk_label_make_larger),
      	(nautilus_gtk_label_make_smaller):
      	* libnautilus-extensions/nautilus-gtk-extensions.h:
      	New functions to make a GtkLabel larger/smaller.
      
      	* libnautilus-extensions/nautilus-lib-self-check-functions.h:
      	Add entry for nautilus-gdk-font-extensions.
      
      	* libnautilus-extensions/nautilus-string-list.c:
      	(nautilus_string_list_modify_nth),
      	(nautilus_string_list_remove_nth),
      	(nautilus_string_list_find_by_function),
      	(nautilus_string_list_sort),
      	(nautilus_string_list_sort_with_function):
      	* libnautilus-extensions/nautilus-string-list.h:
      	New functions to modify, remove and find specific string entries.
      	New function to sort the string list given a compare function.
      f86f649a
  31. 23 Dec, 2000 1 commit
    • Gene Z. Ragan's avatar
      reviewed by: Pavel Cisler<pavel@eazel.com> · c95712a8
      Gene Z. Ragan authored
      2000-12-22  Gene Z. Ragan  <gzr@eazel.com>
      
      	reviewed by: Pavel Cisler<pavel@eazel.com>
      
      	Fixed bug 4951, No error given selecting unmountable "Disks" volume.
      
      	I added a pipe to monitor the result of the mount/umount command.
      	If an error is in the pipe, a details error dialog is displayed.
      	A generic mount failed error is first and the details button reveals
      	the error message returned in the pipe.
      
      	* libnautilus-extensions/nautilus-volume-monitor.c: (find_command),
      	(open_error_pipe), (close_error_pipe),
      	(nautilus_volume_monitor_mount_unmount_removable):
      
      	Renamed xfer to transfer.
      	* libnautilus-extensions/nautilus-file-operations.c:
      	(parent_for_error_dialog), (transfer_dialog_clicked_callback),
      	(create_transfer_dialog), (handle_transfer_ok),
      	(build_error_string), (handle_transfer_vfs_error),
      	(handle_transfer_overwrite), (handle_transfer_duplicate),
      	(update_transfer_callback), (sync_transfer_callback),
      	(nautilus_file_operations_copy_move),
      	(handle_new_folder_vfs_error), (new_folder_transfer_callback),
      	(nautilus_file_operations_new_folder),
      	(nautilus_file_operations_move_to_trash),
      	(nautilus_file_operations_delete), (do_empty_trash):
      
      	Added compatibility call.
      	* libnautilus-extensions/nautilus-entry.c:
      	* libnautilus-extensions/nautilus-entry.h:
      	(nautilus_entry_new_with_max_length):
      c95712a8