Commit graph

27 commits

Author SHA1 Message Date
Daniel Mustieles
e314fbcc99 Updated FSF's address 2014-01-31 14:13:48 +01:00
Cosimo Cecchi
0594aa1636 all: don't use deprecated GMutex/GThread API
Also, threads area always enabled, so we can remove the
G_THREADS_ENABLED conditionals.
Require GLib 2.31 for this.
2011-10-18 11:28:08 -04:00
Cosimo Cecchi
5e669515fd general: use g_list_free_full() instead of eel functions 2010-10-31 15:31:46 +01:00
Alexander Larsson
65425491f9 Forgot to remove some references to removed symbols 2009-06-26 20:39:04 +02:00
Alexander Larsson
37be3809bc Remove all traces of former nautilus metadata code 2009-06-23 21:43:52 +02:00
Alexander Larsson
469047a2a5 Merge gio-branch
svn path=/trunk/; revision=13464
2007-11-30 14:51:10 +00:00
James Willcox
c3639de2cc Make the desktop icon view store the screen number with the icon
2002-12-19  James Willcox  <jwillcox@gnome.org>

	* libnautilus-private/nautilus-directory-notify.h:
	* libnautilus-private/nautilus-directory.c:
	(nautilus_directory_schedule_position_set):
	* libnautilus-private/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_schedule_position_set),
	(nautilus_file_changes_consume_changes):
	* libnautilus-private/nautilus-file-changes-queue.h:
	* libnautilus-private/nautilus-file-operations.c:
	(icon_position_iterator_new), (apply_one_position),
	(nautilus_file_operations_copy_move):
	* libnautilus-private/nautilus-icon-dnd.c: (handle_local_move),
	(handle_nonlocal_move):
	* libnautilus-private/nautilus-metadata.h:
	* src/file-manager/fm-desktop-icon-view.c:
	(fm_desktop_icon_view_init):
	* src/file-manager/fm-directory-view.c: (new_folder_done),
	(file_changed_callback):
	* src/file-manager/fm-icon-view.c: (should_show_file_on_screen),
	(fm_icon_view_remove_file), (fm_icon_view_add_file),
	(fm_icon_view_file_changed), (fm_icon_view_filter_by_screen),
	(fm_icon_view_instance_init):
	* src/file-manager/fm-icon-view.h:

	Make the desktop icon view store the screen number with the icon
	positions.  Now, a given icon appears on one screen only, and you
	can drag them between screens, etc.
2002-12-19 19:56:38 +00:00
Anders Carlsson
bafee4405a Remove CONTROL_CENTER_REQUIRED since nautilus doesn't require
2001-08-23  Anders Carlsson  <andersca@gnu.org>

	* nautilus.spec.in: Remove CONTROL_CENTER_REQUIRED since nautilus
	doesn't require control-center anymore.

 	* configure.in: Remove CONTROL_CENTER_REQUIRED since nautilus
 	doesn't require control-center anymore.

 	* src/nautilus-window.c (nautilus_window_constructed):
 	Set shrink to TRUE when adding the sidebar since it'll look
 	better when the splitter is collapsed.
 	(nautilus_window_destroy): Free the window title.

 	* src/nautilus-window-manage-views.c (begin_location_change):
 	Unref the directory when we're done using it.

 	* src/nautilus-sidebar.c (nautilus_sidebar_destroy): Sink
 	the title tab so it'll destroyed even if it hasn't got a parent.

 	* libnautilus-private/nautilus-vfs-file.c (vfs_destroy):
 	Free details struct.

 	* libnautilus-private/nautilus-vfs-directory.c (vfs_destroy):
 	Free details struct.

 	* libnautilus-private/nautilus-mime-actions.c
 	(nautilus_mime_get_short_list_applications_for_file):
 	Free uri_scheme.
 	(make_oaf_query_with_uri_scheme_only): Free explicit_iid_query.

 	* libnautilus-private/nautilus-metafile.c (destroy):
 	Unref the private vfs uri, and free the directory uri.

 	* libnautilus-private/nautilus-file.c (nautilus_file_get_internal):
 	Free the string returned by nautilus_directory_get_name_for_self_as_new_file.

 	* libnautilus-private/nautilus-file-changes-queue.c
 	(nautilus_file_changes_consume_changes):
 	Free the change struct.

 	* libnautilus-private/nautilus-directory-async.c
 	(nautilus_directory_invalidate_count_and_mime_list):
 	Unref the file after using it.

 	* libnautilus/nautilus-idle-queue.c (execute_queued_functions):
 	Free each list node.
 	(nautilus_idle_queue_destroy): Likewise.
2001-08-23 16:48:19 +00:00
Darin Adler
0067b89956 Changed code that uses g_list_append to use g_list_prepend in all the
* 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.
2001-05-11 01:30:33 +00:00
Darin Adler
e202771069 Some work on FAM.
* libnautilus-extensions/nautilus-monitor.h:
	* libnautilus-extensions/nautilus-monitor.c: (get_fam_connection),
	(get_request_hash_table), (get_event_uri),
	(process_fam_notifications), (nautilus_monitor_file),
	(nautilus_monitor_directory), (nautilus_monitor_cancel): Improved
	API, fixed some storage leaks, simplified some code, made it
	handle URI escaping properly, use the file changes queue. Almost
	ready for prime time!

	* libnautilus-extensions/nautilus-file-changes-queue.h:
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_file_changed),
	(nautilus_file_changes_consume_changes):
	* libnautilus-extensions/nautilus-directory-notify.h:
	* libnautilus-extensions/nautilus-directory.c:
	(call_files_changed_unref_free_list),
	(nautilus_directory_notify_files_changed):
	Added a new kind of notification for the file changed case.
2001-04-16 22:07:01 +00:00
Ramiro Estrugo
fbbaf80362 Remove librsvg.
* 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.
2001-04-04 00:07:15 +00:00
Darin Adler
92312a5f28 reviewed by: Pavel Cisler <pavel@eazel.com>
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.
2001-03-24 00:36:45 +00:00
Pavel Cisler
f9641febb2 Fixed bug 4952 (Move or copy or large number of items fails). Final part
2000-12-28  Pavel Cisler  <pavel@eazel.com>

	Fixed bug 4952 (Move or copy or large number of items fails).
	Final part of fix for bug 956 (UI takes time to become operational
	after drag&drop)

	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_consume_changes): Fixed a bug in
	the logic that chunked up file change notifications into groups
	that could be all handled at once - before the fix each change
	was processed individually. Grouped move, metadata move, position
	setting and copy, metadata copy, position setting respectively
	into groups that would get all processed in a single chunk.
	Tweaked the maximum size of a changes chunk.

	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_schedule_metadata_copy),
	(nautilus_file_changes_queue_schedule_metadata_move),
	(nautilus_file_changes_queue_schedule_metadata_remove),
	(nautilus_file_changes_queue_schedule_position_setting):
	Some renamings.

	* libnautilus-extensions/nautilus-directory-async.c:
	Small tweak to make turning on debugging diagnostics easier.
2000-12-29 07:37:19 +00:00
Pavel Cisler
b7c2daf955 reviewed by: Darin Adler <darin@eazel.com>
2000-11-13  Pavel Cisler  <pavel@eazel.com>

	reviewed by: Darin Adler <darin@eazel.com>

	* configure.in:
	Enable the sign-compare and cast-align warnings.

	* components/help/converters/gnome-db2html2/gdb3html.c:
	(find_first_element):
	* components/help/hyperbola-filefmt.c: (fmt_free_tree_info):
	* components/help/hyperbola-nav-index.c:
	(hyperbola_navigation_index_update_clist), (despace),
	(end_element):
	* components/history/nautilus-history-view.c:
	(history_load_location):
	* components/mozilla/nautilus-mozilla-content-view.c:
	(string_list_get_index_of_string):
	* components/services/install/lib/eazel-install-corba-types.c:
	(corba_string_sequence_to_glist),
	(corba_packagedatastructlist_from_packagedata_list),
	(packagedata_list_from_corba_packagedatastructlist),
	(categorydata_list_from_corba_categorystructlist):
	* components/services/install/lib/eazel-install-query.c:
	(eazel_install_simple_rpm_query):
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(eazel_install_monitor_rpm_process_pipe):
	* components/services/install/lib/eazel-install-rpm-signature.c:
	(read_rpm_lead), (read_rpm_signature):
	* components/services/trilobite/libtrilobite/trilobite-root-helper.
	c: (trilobite_root_helper_run_program),
	(trilobite_root_helper_set_time):
	* cut-n-paste-code/widgets/nautilusclist/nautilusclist.c:
	(nautilus_clist_get_arg), (nautilus_clist_construct):
	* helper-utilities/authenticate/nautilus-authenticate.c: (main):
	* libnautilus-extensions/nautilus-background.c:
	(set_image_and_color_image_loading_done_callback):
	* libnautilus-extensions/nautilus-buffered-widget.c:
	(nautilus_gdk_pixbuf_tile_alpha):
	* libnautilus-extensions/nautilus-caption-table.c:
	(entry_activate):
	* libnautilus-extensions/nautilus-caption-table.h:
	* libnautilus-extensions/nautilus-ctree.c:
	(nautilus_ctree_node_nth), (nautilus_ctree_drag_motion):
	* libnautilus-extensions/nautilus-ctree.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(metafile_write):
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_consume_changes):
	* libnautilus-extensions/nautilus-file-operations-progress.c:
	(truncate_string_from_start):
	* libnautilus-extensions/nautilus-file-operations.c:
	(extract_string_until):
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_read_entire_file):
	* libnautilus-extensions/nautilus-gdk-extensions.c:
	(nautilus_get_largest_fitting_font):
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_get_sidebar_panel_view_identifiers):
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_window_set_initial_geometry_from_string),
	(nautilus_gtk_menu_set_item_visibility):
	* libnautilus-extensions/nautilus-icon-canvas-item.c:
	(draw_or_measure_label_text), (draw_or_measure_label_text_aa):
	* libnautilus-extensions/nautilus-icon-container.c:
	(rubberband_timeout_callback), (destroy), (compute_stretch):
	* libnautilus-extensions/nautilus-icon-container.h:
	(nautilus_icon_container_find_drop_target):
	* libnautilus-extensions/nautilus-icon-factory.c:
	(check_recently_used_list), (get_themed_icon_file_path),
	(revise_scale_factors_if_too_big):
	* libnautilus-extensions/nautilus-icon-text-item.c:
	(recompute_bounding_box), (iti_draw), (iti_selection_motion):
	* libnautilus-extensions/nautilus-label.c:
	(nautilus_label_size_allocate), (label_recompute_line_geometries):
	* libnautilus-extensions/nautilus-list.c: (draw_cell),
	(nautilus_list_drag_data_received):
	* libnautilus-extensions/nautilus-mime-actions.c:
	(server_matches_content_requirements),
	(nautilus_do_component_query):
	* libnautilus-extensions/nautilus-password-dialog.c:
	(caption_table_activate_callback):
	* libnautilus-extensions/nautilus-preferences-item.c:
	(has_image_file):
	* libnautilus-extensions/nautilus-scalable-font.c:
	(file_as_string), (parse_font_description_file),
	(nautilus_text_layout_new):
	* libnautilus-extensions/nautilus-scalable-font.h:
	* libnautilus-extensions/nautilus-volume-monitor.c:
	(check_permissions):
	* libnautilus/nautilus-view.c:
	(nautilus_shallow_g_list_from_uri_list):
	* libnautilus/nautilus-zoomable.c:
	(nautilus_g_list_from_ZoomLevelList):
	* librsvg/rsvg-ft.c: (rsvg_ft_measure_or_render_string):
	* librsvg/rsvg.c: (rsvg_parse_transform):
	* src/file-manager/fm-icon-view.c:
	(fm_icon_view_create_background_context_menu_items),
	(get_sort_criterion_by_metadata_text), (get_sort_criterion_by_id):
	* src/file-manager/fm-list-view.c: (select_row_common),
	(select_matching_name_callback), (select_previous_next_common),
	(fm_list_view_bump_zoom_level):
	* src/nautilus-search-bar-criterion.c:
	(nautilus_search_bar_criterion_update_valid_criteria_choices):
	* src/nautilus-shell.c: (corba_open_windows),
	(corba_open_default_window):
	* src/nautilus-sidebar.c: (nautilus_sidebar_add_panel_items):
	* src/nautilus-window-menus.c:
	(nautilus_window_disable_keyboard_navigation_for_menus):
	* src/nautilus-window.c: (nautilus_window_size_request):
	Fix all sign-compare violations.
2000-11-14 02:46:02 +00:00
Darin Adler
cbf7c584a4 Storage leak fixes. Today I concentrated on leaks that happen
when you change views from Icon to List View and back.

	* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_insert_model_node): Unref a pixmap and bitmap,
	free a string.
	(nautilus_tree_view_update_model_node): Unref a pixmap and bitmap,
	free a string.
	(notify_node_seen): Free a string.
	(nautilus_tree_view_uri_to_name): Removed extra g_strdup.
	* libnautilus-extensions/nautilus-glib-extensions.c:
	(free_hash_tables_at_exit): Free a list.
	* libnautilus-extensions/nautilus-list.c: (draw_cell): Skip the
	excess work of re-getting the pixmap and bitmap, not using them,
	and leaking them.
	* libnautilus-extensions/nautilus-preferences.c:
	(preferences_hash_node_remove_callback): Free a list.
	* src/file-manager/fm-directory-view.c: (queue_pending_files):
	Free a list.
	* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
	Free a string in all code paths (was freed in some before).
	* src/file-manager/fm-list-view.c: (add_to_list): Free the column
	text in a way that works even though some columns have NULL.
	(install_row_images): Unref a pixmap and bitmap.

	* libnautilus-extensions/nautilus-scalable-font.c:
	(destroy_global_rsvg_ft_context),
	(initialize_global_stuff_if_needed): Free the rsvg_ft font cache
	at exit.
	* libnautilus-extensions/nautilus-theme.c: (free_last_theme),
	(nautilus_theme_get_theme_data): Free the cached theme XML
	document at exit.

	* components/help/converters/gnome-db2html2/gdb3html.c:
	(remove_head), (start_element), (end_element), (cdata_block):
	* components/tree/nautilus-tree-model.c:
	(nautilus_tree_model_for_each_postorder),
	(nautilus_tree_model_monitor_add):
	* libnautilus-extensions/nautilus-directory-async.c:
	(remove_monitor_link), (dequeue_pending_idle_callback),
	(remove_callback_link_keep_data), (remove_callback_link):
	* libnautilus-extensions/nautilus-drag.c:
	(nautilus_drag_file_receive_dropped_keyword):
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_get_change):
	* libnautilus-extensions/nautilus-thumbnails.c:
	(check_for_thumbnails):
	* src/file-manager/fm-properties-window.c:
	(property_button_toggled):
	* src/nautilus-window-manage-views.c: (handle_go_back),
	(handle_go_forward):
	* src/nautilus-window.c: (nautilus_add_to_history_list):
	Fixed a bunch of callers of g_list_remove_link to also free the
	removed link. This seems to be an error-prone API from glib.
	About half of the callers had it wrong.

	* src/nautilus-bookmark-list.c:
	(nautilus_bookmark_list_delete_item_at),
	(nautilus_bookmark_list_delete_items_with_uri):
	* src/nautilus-sidebar.c: (receive_dropped_keyword):
	Changed to use g_list_free_1 for clarity.

	* src/nautilus-location-bar.c: Coding style tweaks.

	* src/nautilus-main.c: (main): Run the self-checks a second time
	if they succeed the first time. More thorough check this way (make
	sure the test works even after it's been run once), and better to
	notice one-time vs. per-test leaks.

	* tools/leak-checker/nautilus-leak-checker.c: (g_slist_alloc),
	(g_slist_free), (g_slist_free_1), (g_mem_chunk_new),
	(g_mem_chunk_destroy), (g_mem_chunk_alloc), (g_mem_chunk_alloc0),
	(g_mem_chunk_free), (g_mem_chunk_clean), (g_mem_chunk_reset),
	(g_mem_chunk_print): Made the GSList and GMemChunk code dumb down
	when using the leak checker.

	* tools/leak-checker/nautilus-leak-checker.c: Added more symbols
	of "known to leak" functions so we can see the real leakers.
2000-09-23 01:21:29 +00:00
Pavel Cisler
e8d3b45903 Work in progress on saving drop locations during a copy/move operation.
2000-09-11  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-directory-notify.h:
	* libnautilus-extensions/nautilus-directory.c:
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	* libnautilus-extensions/nautilus-file-changes-queue.h:
	* libnautilus-extensions/nautilus-file-operations.c:
	(icon_position_iterator_new), (icon_position_iterator_free),
	(create_xfer_dialog), (handle_xfer_vfs_error),
	(apply_one_position), (sync_xfer_callback),
	(nautilus_file_operations_copy_move),
	(nautilus_file_changes_queue_schedule_position_setting),
	(position_setting_list_free),
	(nautilus_directory_set_icon_position),
	(nautilus_directory_schedule_metadata_copy),
	(nautilus_directory_schedule_metadata_move),
	(nautilus_file_changes_consume_changes),
	(nautilus_directory_schedule_position_setting):

	Work in progress on saving drop locations during a copy/move operation.
	Add a new NautilusFileChangesQueue element type to handle scheduling
	of the position saving operation. Hook it up to a call that saves the
	icon position into the metadata.
	Add icon position handling to the synchronous copy engine callback.

	* libnautilus-extensions/nautilus-icon-container.h:
	* libnautilus-extensions/nautilus-icon-dnd.c:
	(handle_nonlocal_move):
	Pass relative icon positions (FIXME 626).

	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_move_copy_items):
	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.c: (icon_view_move_copy_items):
	Add drop location to relative icon positions to get correct icon drop
	placement.

	* libnautilus-extensions/nautilus-file-operations.c:
	(get_link_name), (get_duplicate_name), (handle_xfer_duplicate):
	Rework a bit, fix a leak (FIXME 2556).

	* libnautilus-extensions/nautilus-file-operations.c:
	(nautilus_file_operations_copy_move),
	Fix a leak.

	* libnautilus-extensions/nautilus-file-operations.c:
	(create_xfer_dialog):
	Fix a bug in dialog result handling code.

	* libnautilus-extensions/nautilus-drag.h:
	Some minor tweaks
2000-09-12 09:25:48 +00:00
Pavel Cisler
49708b8ade Add hooks for metadata removal.
2000-09-05  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-directory-notify.h:
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_direcotry_copy_move_metadata_key),
	(nautilus_directory_move_metadata),
	(nautilus_directory_copy_metadata),
	(nautilus_directory_schedule_metadata_copy),
	(nautilus_directory_schedule_metadata_move),
	(nautilus_directory_schedule_metadata_remove):
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_schedule_metadata_remove),
	(nautilus_file_changes_consume_changes):
	* libnautilus-extensions/nautilus-file-changes-queue.h:
	* libnautilus-extensions/nautilus-file-operations.c:
	(sync_xfer_callback):
	Add hooks for metadata removal.
2000-09-06 02:35:58 +00:00
Pavel Cisler
1cc73129e8 Work on task bugzilla task 330. Add notification hooks for metadata
2000-09-03  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-directory-notify.h:
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_schedule_metadata_copy),
	(nautilus_directory_schedule_metadata_move):
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_schedule_metadata_copy),
	(nautilus_file_changes_queue_schedule_metadata_move),
	(nautilus_file_changes_consume_changes):
	* libnautilus-extensions/nautilus-file-changes-queue.h:
	* libnautilus-extensions/nautilus-file-operations.c:
	(progress_dialog_set_files_remaining_text),
	(handle_xfer_vfs_error), (handle_xfer_duplicate),
	(sync_xfer_callback):
	Work on task bugzilla task 330.
	Add notification hooks for metadata copying to NautilusFileChangesQueue.
	Using the new top_level_item, call the hooks from the copy engine
	synchronous callback.
2000-09-03 08:57:57 +00:00
Darin Adler
7bb5ecd941 Moved the notify calls to a separate header, since people were using them
* libnautilus-extensions/Makefile.am:
	* libnautilus-extensions/nautilus-directory-notify.h:
	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	* libnautilus-extensions/nautilus-link.c:
	* libnautilus-extensions/nautilus-volume-monitor.c:
	Moved the notify calls to a separate header, since people were
	using them as an excuse to peek at NautilusDirectory's privates.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_get_internal), (nautilus_directory_get),
	(nautilus_directory_get_existing): Cleaned up API so that
	internal code can get a directory without creating one.
	(get_parent_directory_if_exists): Used new API to cut down
	code a bit.
	(nautilus_directory_notify_files_removed),
	(nautilus_directory_notify_files_moved): Always create a
	NautilusFile object. This results in a bit more work, but is
	more compatible with the 1/2 done symbolic link change notify
	work.

	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_internal): Don't create a new directory if
	being called in the mode where we don't create a new file.
	(update_link), (get_link_files),
	(update_links_if_target), (nautilus_file_update_info),
	(nautilus_file_mark_gone), (nautilus_file_emit_changed):
	More work on notifying links about changes to the target file.
	This isn't quite working and isn't required so I'll get back to it
	later. At the moment it is not doing any harm.
2000-08-10 17:03:06 +00:00
Darin Adler
58b235f006 Need to unencode the name here because it's used to compare with file
* libnautilus-extensions/nautilus-directory.c: (uri_get_basename):
	Need to unencode the name here because it's used to compare with
	file names that come from get_file_info.

	* src/file-manager/dfos-xfer.c: (get_parent_make_name_list):
	Unescape the result of get_basename to convert it to a plain old
	file name, since that's why gnome_vfs_xfer wants in its file name
	lists (for now, see bug 1107).

	* libnautilus-extensions/Makefile.am:
	* libnautilus-extensions/nautilus-file-changes-queue-private.h:
	Removed the private header since it's so private it can be in the
	.c file :-)

	* libnautilus-extensions/nautilus-file-changes-queue.h:
	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_queue_new),
	(nautilus_file_changes_queue_get), (nautilus_file_change_free),
	(nautilus_file_changes_queue_free),
	(nautilus_file_changes_queue_add_common),
	(nautilus_file_changes_queue_get_change):
	A little simplification and reformatting. Got rid of the details
	indirection since the entire data structure is private.
2000-06-02 23:33:02 +00:00
Pavel Cisler
83ce94c51b Temporary workaround for an apparent codegen bug Carbamide was running
2000-04-29  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(nautilus_file_changes_consume_changes):
	Temporary workaround for an apparent codegen bug Carbamide
	was running into. (I'll need to track this down some more,
	this change makes the crash go away.)

	* src/file-manager/dfos-xfer-progress-dialog.c:
	* src/file-manager/dfos-xfer-progress-dialog.h:
	* src/file-manager/dfos-xfer.c:
	(dfos_xfer_progress_dialog_get_type),
	(dfos_xfer_progress_dialog_new),
	(dfos_xfer_progress_dialog_new_file),
	(create_xfer_dialog),
	(fs_xfer), (handle_xfer_ok):
	Fix up the progress dialog so that it displays meaningfull
	information while emptying the trash and moving files to
	trash.
2000-05-02 03:44:08 +00:00
Darin Adler
8f13a9f638 This little check-in fixes the last April bug and maybe one or
two leaks in Nautilus.

	* src/ntl-view.c (nautilus_view_destroy_client): To work around
	the circular reference problem in Bonobo, change a call to
	bonobo_object_unref to bonobo_object_destroy. This fixes the leak
	of the entire viewer each time.

	* src/file-manager/fm-directory-view.c (fm_directory_view_destroy):
	The FMDirectoryView does not own its view_frame. This is confusing
	and needs some reorganization, but it should not unref. It's actually
	the view_frame that owns the directory view despite the fact that
	it's created by the directory view and the directory view holds a
	reference to it! This bug prevented Maciej from doing the workaround
	the last time he tried it.

	* libnautilus-extensions/nautilus-file-changes-queue.c
	(nautilus_file_changes_queue_get),
	(nautilus_file_changes_consume_changes):
	A small cleanup. The global variable was getting in the way.
2000-04-28 18:52:18 +00:00
Pavel Cisler
c6a934bed7 src/file-manager/fm-directory-view.c Added "Move to Trash" and "Empty
2000-04-26  Pavel Cisler  <pavel@eazel.com>

	* src/file-manager/fm-directory-view.c
	* src/file-manager/fm-directory-view.h:
	(bonobo_menu_open_in_new_window_cb), (bonobo_menu_delete_cb),
	(bonobo_menu_duplicate_cb), (fm_directory_view_get_model),
	(fm_directory_view_delete_with_confirm), (append_uri_one),
	(fm_directory_duplicate_selection), (compute_menu_item_info),
	(fm_directory_view_real_append_selection_),
	(fm_directory_view_real_merge_menus),
	(fm_directory_view_real_update_menus), (free_file_by_uri_map),
	(fm_directory_view_get_context_menu_index):
	Added "Move to Trash" and "Empty Trash" menu items.
	Disabled the existing Delete code (I'll scavenge it later to implement
	Delete as a fallback.)

	* src/file-manager/dfos-xfer.h:
	* src/file-manager/dfos-xfer.c (file_operation_alert), (fs_xfer),
	(get_parent_make_name_list), (fs_move_to_trash):
	Add move to trash and empty trash calls.


	* libnautilus-extensions/nautilus-file-changes-queue.c
	(nautilus_file_changes_queue_get_change),
	(nautilus_file_changes_consume_changes):
	Fix a problem with nautilus_file_changes_consume_changes getting called
	when there is no change allocated yet.

	* libnautilus-extensions/nautilus-directory.c
	(nautilus_directory_notify_files_added),
	(nautilus_directory_notify_files_removed),
	(nautilus_directory_notify_files_moved):
	Got rid of old debugging code.
2000-04-26 09:01:01 +00:00
Pavel Cisler
2898174f33 Darin helped me finish implementing the missing parts of the call,
2000-04-20  Pavel Cisler <pavel@eazel.com>

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_moved):
	Darin helped me finish implementing the missing parts of the call, including
	updating the reference to the new directory object, updating the
	file info structure to match the file's new location.
	Fixed a silly bug in an if statement.

	* libnautilus-extensions/nautilus-file-changes-queue.c:
	Fixed another silly bug where 'file moved' notifications were
	misinterpreted as file-removed ones.
2000-04-21 00:59:01 +00:00
Pavel Cisler
aaac2c8342 Work on making new files show up during copy. This is a simple version
2000-04-19  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_added):
	Work on making new files show up during copy. This is a simple version
	using sync gnome_vfs_get_file_info calls, we'll need a version that
	uses a new async get_file_info call that takes a list of URIs and
	produces a list of file info structs.

	* libnautilus-extensions/nautilus-directory.c:
	* libnautilus-extensions/nautilus-file.c:
	* libnautilus-extensions/nautilus-file.h:
	(update_file_info_in_list_if_needed), (dequeue_pending_idle_callback),
	(nautilus_file_update):
	Made dequeue_pending_idle_callback deal with getting duplicate
	file info structures or file info structures for files we already
	know about. This also fixes 395.

	* libnautilus-extensions/nautilus-file-changes-queue.c
	Added some better comments and removed a fixme that didn't really need
	fixing.
2000-04-20 03:07:37 +00:00
Darin Adler
a57de9d70d Fixed bug where you'd see the name twice under each icon.
Did some work for the new notify hooks that Pavel made.
	I'll finish those hooks soon.

	* src/file-manager/fm-icon-view.h:
	* src/file-manager/fm-icon-text-window.h:
	* src/file-manager/fm-icon-text-window.c:
	(set_preference_string), (synch_menus_with_preference),
	(icon_view_text_attribute_changed_callback),
	(fm_get_text_attribute_names_preference_or_default):
	* src/file-manager/fm-icon-view.c: (fm_icon_view_initialize),
	(fm_icon_view_get_icon_text_attribute_names),
	(text_attribute_names_changed_callback):
	Moved attribute names default into FMIconTextWindow and made
	the callers use a new call that gets either the preference or
	the default if the preference is invalid. Also simplified the
	code since we don't need to cache the preference in either the
	FMIconTextWindow or the FMIconView.

	* libnautilus-extensions/nautilus-directory.c:
	(is_canonical_uri): Added a function for use in asserts.
	(nautilus_directory_get): Assert that we successfully
	made the URI canonical.
	(parent_directory_if_exists), (file_if_exists): Helper
	functions for implementing the notify calls.
	(nautilus_directory_notify_files_added),
	(nautilus_directory_notify_files_removed),
	(nautilus_directory_notify_files_moved):
	Fleshed out the bones of these routines a bit more.
	They are still not done. Also changed their interfaces
	so they are not responsible for freeing their parameters.

	* libnautilus-extensions/nautilus-directory.h:
	* libnautilus-extensions/nautilus-directory.c:
	* libnautilus-extensions/nautilus-file.h:
	(nautilus_directory_contains_file):
	New call to be used instead of nautilus_file_is_gone
	for callers that are monitoring a directory.

	* libnautilus-extensions/nautilus-file-changes-queue.c:
	(pairs_list_free), (nautilus_file_changes_consume_changes):
	Make the caller free the list instead of the called function
	Also reordered the changes so deletions come before additions.

	* src/file-manager/fm-directory-view.c: (display_pending_files):
	* src/file-manager/fm-list-view.c: (fm_list_view_file_changed):
	* src/file-manager/fm-icon-view.c: (fm_icon_view_file_changed):
	Changed to use nautilus_directory_contains_file instead of
	nautilus_file_is_gone.
2000-04-18 18:22:43 +00:00
Pavel Cisler
a49e9119f8 This checkin requires new gnome-vfs.
2000-04-17  Pavel Cisler  <pavel@eazel.com>

	This checkin requires new gnome-vfs.

	Plumbing for making copied/moved/deleted files show up update
	in their respective new locations.

	* libnautilus-extensions/nautilus-file-changes-queue.h
	* libnautilus-extensions/nautilus-file-changes-queue.c
	* libnautilus-extensions/Makefile.am
	Shared queue used by the copy engine to send update notification
	requests to NautilusDirectory during file copy/move/delete operations.

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_added),
	(nautilus_directory_notify_files_removed),
	(nautilus_directory_notify_files_moved):
	Stub calls that will be hooked up to the NautilusDirectory
	notification calls to dispatch the notification updates.

	* src/file-manager/dfos-xfer.c:
	(sync_xfer_callback):
	New callback that gets called in the async copy engine context
	and produces change entries stuffing them into the file changes
	queue.

	* src/file-manager/dfos-xfer.c:
	(handle_xfer_ok):
	Added calls to the new nautilus_file_changes_consume_changes
	from the progress update callback. This callback is called in
	the user interface context and consumes the change entries
	from the file changes queue, sending them in chunks to be
	dispatched by to the individual Nautilus directory objects.

	* src/file-manager/dfos-xfer.c:
	(handle_xfer_ok):
	Updated to use new progress enum values.

	* src/file-manager/dfos-xfer.c:
	(update_xfer_callback):
	Renamed from sync_xfer_callback.

	* src/file-manager/dfos-xfer.c:
	(gnome_vfs_async_xfer):
	Pass in new sync_xfer_callback parameters.
2000-04-18 03:13:56 +00:00