Commit graph

3274 commits

Author SHA1 Message Date
Pablo Saratxaga
58a691c003 corrected syntax errors 2000-09-28 18:50:04 +00:00
Pablo Saratxaga
5b93634704 corrected some syntax errors 2000-09-28 18:49:17 +00:00
Pablo Saratxaga
caba9aa11e Added Catalan language file 2000-09-28 18:46:13 +00:00
John Sullivan
2431e7f957 Removed an unnecessary line that was setting a field of a struct that was
* src/nautilus-view-frame.c: (check_if_view_is_gone):
	Removed an unnecessary line that was setting a field
	of a struct that was just set to NULL. This crashed for
	terral (IRC name).
2000-09-28 18:20:06 +00:00
Josh Barrow
5a670c429a A few minor changes to reflect the current behavior of Nautilus.
* docs/smoketests.html:
        A few minor changes to reflect the current behavior of Nautilus.
2000-09-28 18:07:11 +00:00
Darin Adler
8797580933 Fix uninitialized variable.
* src/nautilus-theme-selector.c: (populate_list_with_themes):
	Fix uninitialized variable.
2000-09-28 17:22:40 +00:00
Darin Adler
b1943a3cb2 Bonobo objects own themselves, so we should not do a ref/sink on them.
* libnautilus-extensions/nautilus-undo-context.c:
	(nautilus_undo_context_new): Bonobo objects own themselves, so we
	should not do a ref/sink on them.
	* libnautilus-extensions/nautilus-undo-manager.c:
	(nautilus_undo_manager_new): Bonobo objects own themselves, so we
	should not do a ref/sink on them.
	* src/nautilus-application.c: (nautilus_application_initialize):
	Move global preferences initialization to main with other
	initialize calls.
	(nautilus_application_new): Bonobo objects own themselves, so we
	should not do a ref/sink on them.
	(nautilus_application_destroy): Unref the undo manager to fix a
	leak.
	* src/nautilus-main.c: (main): Move global preferences
	initialization to main with other initialize calls.

	* nautilus.spec.in: Added "-k" to build commands so we get more
	information about what failed when failing to build via
	RPM. Failures are still failures, we just see more of what's
	failing.

	* components/help/converters/gnome-db2html2/sect-elements.c:
	(sect_entry_end_element):
	* components/help/converters/gnome-db2html2/toc-elements.c:
	(toc_title_start_element):
	* components/image-viewer/nautilus-image-view.c:
	(init_server_factory):
	* components/rpmview/nautilus-rpm-view-install.c:
	(nautilus_rpm_view_install_package_callback),
	(nautilus_rpm_view_uninstall_package_callback):
	* components/services/install/command-line/eazel-alt-install-corba.
	c: (main):
	* components/services/install/command-line/eazel-alt-install.c:
	(main):
	* components/services/install/command-line/eazel-install.c:
	(generate_new_package_list), (fetch_remote_package_list), (main):
	* components/services/install/command-line/eazel-package-query.c:
	(main):
	* components/services/install/command-line/eazel-revert.c: (main):
	* components/services/install/command-line/eazel-uninstall.c:
	(main):
	* components/services/install/lib/eazel-install-object.c:
	(eazel_install_fetch_remote_package_list):
	* components/services/install/lib/eazel-install-protocols.c:
	(eazel_install_fetch_file), (eazel_install_fetch_package):
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(install_new_packages), (eazel_install_download_packages),
	(uninstall_packages), (eazel_install_start_transaction),
	(eazel_install_add_to_rpm_set),
	(eazel_install_check_if_related_package):
	* components/services/install/nautilus-view/nautilus-service-instal
	l-view.c: (nautilus_service_install_preflight_check):
	* components/services/install/nautilus-view/nautilus-service-instal
	l.c: (nautilus_service_install_view_install_package_callback),
	(nautilus_service_install_view_uninstall_package_callback):
	* components/services/install/server/main.c: (main):
	* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (generate_startup_form), (generate_summary_form),
	(generate_service_entry_row):
	* components/services/time/command-line/main.c: (main):
	* components/services/time/service/main.c: (main):
	* components/services/trilobite/libtrilobite/trilobite-core-utils.c
	: (trilobite_init):
	* components/services/trilobite/libtrilobite/trilobite-root-client.
	c: (trilobite_root_client_initialize):
	* components/services/trilobite/libtrilobite/trilobite-service-pass
	wordquery.c: (trilobite_passwordquery_initialize):
	* components/services/trilobite/libtrilobite/trilobite-service.c:
	(trilobite_service_initialize):
	* components/services/trilobite/sample/command-line/main.c: (main):
	* components/services/trilobite/sample/service/main.c: (main):
	* components/shell/shell.c:
	* components/tree/nautilus-tree-model.c:
	(nautilus_tree_model_monitor_add),
	(nautilus_tree_model_root_node_file_monitor):
	* components/tree/nautilus-tree-view.c:
	* libnautilus-extensions/nautilus-directory-async.c:
	(get_filter_options_for_directory_count):
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_uri_is_local_scheme), (nautilus_handle_trailing_slashes):
	* libnautilus-extensions/nautilus-icon-dnd.c:
	(drag_data_received_callback):
	* libnautilus-extensions/nautilus-icon-text-item.c: (iti_event):
	* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_ensure_drag_data), (nautilus_list_get_drop_action),
	(nautilus_list_drag_data_received):
	* libnautilus-extensions/nautilus-scalable-font.c:
	(initialize_global_stuff_if_needed):
	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
	(editable_register_edit_undo):
	* src/file-manager/fm-icon-view.c:
	(context_menu_layout_radio_item_callback):
	* src/file-manager/nautilus-indexing-info.c:
	(update_progress_display):
	* src/nautilus-switchable-search-bar.c:
	(nautilus_switchable_search_bar_set_mode):
	Got rid of all uses of == TRUE and != TRUE, since they are dangerous.
	Got rid of all uses of == FALSE and != FALSE, since they lead to use
	of == TRUE and != TRUE.
2000-09-28 17:18:12 +00:00
Kenneth Christiansen
0a11a08ace Translations from Keld
gnomeicu/po/da.po gphoto/po/da.po gtkhtml/po/da.po
nautilus/po/da.po
2000-09-28 17:15:00 +00:00
John Sullivan
464c6a5d70 Fixed (valid) unininitialized variable warning that Pretender ran into.
* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (who_is_logged_in): Fixed (valid) unininitialized variable
	warning that Pretender ran into.
2000-09-28 15:46:34 +00:00
Maciej Stachowiak
140bc7d324 Set the tree widget to GTK_SELECTION_SINGLE instead of
* components/tree/nautilus-tree-view.c
	(nautilus_tree_view_initialize): Set the tree widget to
	GTK_SELECTION_SINGLE instead of GTK_SELECTION_BROWSE, fixing bug
	3235.
2000-09-28 11:07:03 +00:00
Andy Hertzfeld
c0c8525dfe mostly fixed bug 3158, unacceptable memory usage when thumbnailing, by
mostly fixed bug 3158, unacceptable memory usage when thumbnailing,
	by implementing an upper bound on the file size, above which it
	won't try to thumbnail - it's currently set to 1 megabyte, but it
	needs to be tweaked. We still need to give the "too big to thumbnail"
	files a distinctive icon.
2000-09-28 08:50:49 +00:00
Andy Hertzfeld
01f3d55940 finished bug 3303, can't remove user-added themes, by finishing the theme
finished bug 3303, can't remove user-added themes, by finishing the
	theme removal implementation.
2000-09-28 06:46:39 +00:00
J Shane Culpepper
6c881698ac fixed who_is_logged_in to return correct username.
2000-09-27  J Shane Culpepper  <pepper@eazel.com>

	* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (generate_summary_form), (am_i_logged_in), (who_is_logged_in):
	fixed who_is_logged_in to return correct username.
2000-09-28 05:42:09 +00:00
Ramiro Estrugo
4336f4640e Fixed uninitialized variable.
* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (am_i_logged_in):
	Fixed uninitialized variable.
2000-09-28 03:04:47 +00:00
J Shane Culpepper
25a5388aaa Fixing the button enabled / disabled problem in services table. Fixing the
2000-09-27  J Shane Culpepper  <pepper@eazel.com>

	* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (generate_summary_form), (generate_service_entry_row),
	(who_is_logged_in):

	Fixing the button enabled / disabled problem in services table.
	Fixing the trashed username when login succeeds.
2000-09-28 02:31:30 +00:00
Arlo Rose
8efab72bcf Added a few more sizes to my folder icons. Document icons coming soon!
* icons/arlo/Makefile.am:
        * icons/arlo/i-directory-192-aa.png:
        * icons/arlo/i-directory-96-aa.png:
        * icons/arlo/i-directory-72-aa.png:
        Added a few more sizes to my folder icons.
        Document icons coming soon!
2000-09-28 02:08:31 +00:00
John Sullivan
ec0d3e34ba Fixed bug 1010 (delay between when an item gets selected
and revealed).

	The delay was there for two reasons, one of which was a mistaken
	accident of history. Reduced the delay from 300ms to 10ms in icon
	view, and to 0ms in list view. Couldn't reduce the icon view delay
	to 0ms due to problems with the scroll/redraw being unable to keep
	up with holding the arrow key down. The current settings seem to
	work well in both views, though it would be worthwhile to verify
	this on a maximally-slow target machine.

	* libnautilus-extensions/nautilus-icon-container.c:
	* libnautilus-extensions/nautilus-list.c:
2000-09-28 01:47:09 +00:00
Andy Hertzfeld
b3d7010d2a implemented removing user-added themes, which isn't quite finished yet.
implemented removing user-added themes, which isn't quite finished yet.
2000-09-28 01:37:16 +00:00
Ramiro Estrugo
ff0ace5afd Remove extraneous space after the \ continuation character because the rpm
* nautilus.spec.in:
	Remove extraneous space after the \ continuation character
	because the rpm demons barf otherwise.
2000-09-28 01:35:13 +00:00
Rebecca Schulman
1344b152b8 Fixed bug 2522, to display an index progress dialog, corresponding to
2000-09-27  Rebecca Schulman  <rebecka@eazel.com>
	Fixed bug 2522, to display an index progress dialog,
	corresponding to Arlo's screenshots.

	* src/file-manager/nautilus-indexing-info.c:
	(get_text_for_progress_label), (update_progress_display),
	(update_file_index_callback), (get_file_index_time),
	(show_index_progress_bar), (nautilus_indexing_info_show_dialog):
2000-09-28 00:26:24 +00:00
J Shane Culpepper
f13c332542 Adding custom uris to be parsed by mozilla.
2000-09-27  J Shane Culpepper  <pepper@eazel.com>

	* components/mozilla/nautilus-mozilla-content-view.c:

	Adding custom uris to be parsed by mozilla.
2000-09-28 00:03:19 +00:00
John Sullivan
2946ef7ab5 Debugging code to try to catch the evil
nautilus_tree_view_find_parent_node bug.

	* components/tree/nautilus-tree-model.h:
	* components/tree/nautilus-tree-model.c:
	(dump_one_file_node),
	(nautilus_tree_model_dump_files): New debugging functions
	that display what files are known to the tree view.
	* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_find_parent_node): Added a bunch of
	debugging output in the intermittent case where this
	function can't find a node.
2000-09-27 22:14:55 +00:00
Maciej Stachowiak
63abb313ef Rename NAUTILUS_FILE_ATTRIBUTE_FAST_MIME_TYPE to
* libnautilus-extensions/nautilus-file-attributes.h: Rename
	NAUTILUS_FILE_ATTRIBUTE_FAST_MIME_TYPE to
	NAUTILUS_FILE_ATTRIBUTE_MIME_TYPE; add
	NAUTILUS_FILE_ATTRIBUTE_SLOW_MIME_TYPE, for now just a synonym for
	NAUTILUS_FILE_ATTRIBUTE_MIME_TYPE.
	* libnautilus-extensions/nautilus-directory-async.c:
	(set_up_request_by_file_attributes): Handle the new file
	attributes.
	* libnautilus-extensions/nautilus-directory.h: move
	nautilus_directory_wait_until_ready call to
	nautilus-wait-until-ready.h

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_self_check_directory): Include
	nautilus-wait-until-ready.h, use new attributes.

	* libnautilus-extensions/nautilus-wait-until-ready.h: New header
	for the deprecated wait_until_ready calls.

	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_wait_until_ready): file equivalent of
	nautilus_directory_wait_until_ready; temporary to help me
	refactor.
	(file_wait_until_ready_callback): helper function.

	* libnautilus-extensions/Makefile.am: Add
	nautilus-wait-until-ready.h

	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_required_file_attributes): Use new
	attribute for mime type.

	* libnautilus-extensions/nautilus-mime-actions.h,
	libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_type_for_uri),
	(nautilus_mime_get_default_action_for_uri),
	(nautilus_mime_get_default_application_for_uri_internal),
	(nautilus_mime_get_default_application_for_uri),
	(nautilus_mime_is_default_application_for_uri_user_chosen),
	(nautilus_mime_get_default_component_for_uri_internal),
	(nautilus_mime_get_default_component_for_uri),
	(nautilus_mime_is_default_component_for_uri_user_chosen),
	(nautilus_mime_get_short_list_applications_for_uri),
	(nautilus_mime_get_short_list_components_for_uri),
	(nautilus_mime_get_short_list_methods_for_uri),
	(nautilus_mime_get_all_applications_for_uri),
	(nautilus_mime_has_any_applications_for_uri),
	(nautilus_mime_get_all_components_for_uri),
	(nautilus_mime_has_any_components_for_uri),
	(nautilus_mime_set_default_action_type_for_uri),
	(nautilus_mime_set_default_application_for_uri),
	(nautilus_mime_set_default_component_for_uri),
	(nautilus_mime_set_short_list_applications_for_uri),
	(nautilus_mime_set_short_list_components_for_uri),
	(nautilus_mime_add_application_to_short_list_for_uri),
	(nautilus_mime_remove_application_from_short_list_for_uri),
	(nautilus_mime_add_component_to_short_list_for_uri),
	(nautilus_mime_remove_component_from_short_list_for_uri),
	(nautilus_mime_extend_all_applications_for_uri),
	(nautilus_mime_remove_from_all_applications_for_uri): All these
	functions now take a NautilusDirectory and a NautilusFile, rather
	than a URI.

	(gnome_vfs_mime_application_has_id),
	(gnome_vfs_mime_id_matches_application),
	(gnome_vfs_mime_application_has_id_not_in_list),
	(string_not_in_list), (extract_prefix_add_suffix),
	(make_oaf_query_with_known_mime_type),
	(make_oaf_query_with_uri_scheme_only), (free_key),
	(server_matches_content_requirements),
	(nautilus_do_component_query), (str_list_difference),
	(strv_concat): Reformatted.

	(get_mime_type_from_file): Changed from get_mime_type_from_uri;
	uses nautilus_file_wait_until_ready instead of synchronous I/O.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(repopulate_program_list), (is_application_default_for_uri),
	(is_component_default_for_uri),
	(is_component_in_short_list_for_uri),
	(is_application_in_short_list_for_uri),
	(program_file_pair_is_default_for_file),
	(add_to_short_list_for_file), (remove_from_short_list_for_file),
	(remove_default_for_item), (set_default_for_item):
	* libnautilus-extensions/nautilus-program-choosing.c:
	(any_programs_available_for_file):
	* libnautilus-extensions/nautilus-wait-until-ready.h:
	* src/file-manager/fm-directory-view.c: (switch_location_and_view),
	(create_open_with_gtk_menu), (reset_bonobo_open_with_menu),
	(activate_callback):
	* src/nautilus-applicable-views.c: (got_file_info_callback),
	(nautilus_navigation_info_new), (nautilus_navigation_info_free):
	* src/nautilus-applicable-views.h:
	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
	* src/nautilus-theme-selector.c: (add_theme_to_icons):
	* src/nautilus-window.c: (nautilus_window_switch_views),
	(nautilus_window_load_content_view_menu):
	* test/test-nautilus-mime-actions-set.c: (main):
	* test/test-nautilus-mime-actions.c: (main): Deal with above API changes.
2000-09-27 22:00:49 +00:00
Josh Barrow
7c137cffa9 Whitespace, whitespace, whitespace...
Whitespace, whitespace, whitespace...
2000-09-27 21:40:14 +00:00
Ramiro Estrugo
0c93d07e1e Dont install the test programs.
* librsvg/Makefile.am:
	Dont install the test programs.

	* nautilus.spec.in:
	Make sure the fallback font is part of the package.
	Dont include the rsvg test programs.
2000-09-27 21:32:29 +00:00
Ramiro Estrugo
bfb5c6996e Add support for using a debuggable version of the beast.
* components/mozilla/Makefile.am:
        * configure.in:
        Add support for using a debuggable version of the beast.
2000-09-27 21:27:31 +00:00
Rebecca Schulman
0af5148ab4 Fixed bug 1275, that sidebar panels don't have defaults per user level.
2000-09-27  Rebecca Schulman  <rebecka@eazel.com>
	Fixed bug 1275, that sidebar panels don't have defaults
	per user level.

	* libnautilus-extensions/nautilus-global-preferences.c:
	(get_default_sidebar_iids_for_user_level),
	(sidebar_panel_iid_is_in_default_list),
	(global_preferences_register_sidebar_panels),
	(global_preferences_is_sidebar_panel_enabled):
	Added default sets (hard coded, as before) for each
	user level, and used them to get the defaults, instead of
	 the single set for all levels

	* libnautilus/nautilus-clipboard.c:
	(set_paste_sensitive_if_clipboard_contains_data):
	simplified check whether paste should be available.

	* src/nautilus-window-menus.c: (nautilus_window_initialize_menus):
	Fixed a typo in the clipboard menu text.
2000-09-27 19:19:33 +00:00
John Sullivan
bd41bdc370 Fixed bug 3294 ("Find them" button remains insensitive when search
type is changed to non-text one)

	* src/nautilus-complex-search-bar.c:
	(search_bar_criterion_type_changed_callback):
	Added a missing "update_dynamic_button_states". This used to
	work, so I think it probably got accidentally deleted somewhere
	along the way.
2000-09-27 19:04:46 +00:00
Andy Hertzfeld
82eddb8f75 tweaked selection highlighting to Arlo's taste.
tweaked selection highlighting to Arlo's taste.
2000-09-27 01:36:44 +00:00
Darin Adler
5dbf7e57ce Added a missing g_free.
* src/nautilus-window-manage-views.c:
	(nautilus_window_update_title): Added a missing g_free.
2000-09-27 00:34:38 +00:00
Arlo Rose
c8a7295548 Fixed dumb typo.
* data/browser.xml:
        Fixed dumb typo.
2000-09-27 00:15:56 +00:00
Darin Adler
e8af12ac65 Fix more storage leaks.
* components/tree/nautilus-tree-node.c: (nautilus_tree_node_new):
	Get rid of extra allocation of node->details that caused a storage
	leak.
	* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_insert_model_node): Add a g_free.
	(free_uri_to_node_map_entry), (free_uri_to_hack_node_map_entry),
	(nautilus_tree_view_destroy): Free the keys of the hash table.
	(tree_expand_callback), (tree_collapse_callback),
	(tree_select_row_callback): Added missing g_free.
	(nautilus_tree_view_item_at): Removed an excess g_strdup.
	* libnautilus-extensions/nautilus-preference.c:
	(preference_initialize_if_needed): Destroy the global preference
	table on exit.
	(preference_hash_node_free_func): Free the hash key as well as
	the node value.
	(preference_register): Use strdup on keys as then are entered
	into the hash table.
	(preference_hash_node_lookup_with_registration): Remove the strdup
	in here since preference_register now handles it.
	(destroy_global_preference_table): Renamed and simplified the
	existing unused function.
	* libnautilus-extensions/nautilus-volume-monitor.c:
	(nautilus_volume_monitor_destroy), (free_volume): Free the volume
	itself, not just the fields within it.
	* src/nautilus-complex-search-bar.c:
	(nautilus_complex_search_bar_get_location): Added a missing
	g_free.
	* src/nautilus-sidebar-tabs.c: (tab_item_destroy_cover),
	(nautilus_sidebar_tabs_destroy): Free the tab items too, not just
	the list they are stored in.
	* src/nautilus-switchable-search-bar.c:
	(search_bar_preference_changed_callback): Added a missing g_free.

	* libnautilus-extensions/nautilus-theme.c: (free_default_theme),
	(nautilus_theme_get_theme_data): Add code to free the default
	theme on program exit to make leak detection easier.
	* src/nautilus-main.c: (main): Clean up the memory used by the XML
	parser on exit to make leak detection easier.

	* libnautilus/Makefile.am:
	* libnautilus/nautilus-bonobo-workarounds.c:
	* libnautilus/nautilus-bonobo-workarounds.h:
	Added version of bonobo_object_get_epv that shares a single global
	instance instead of allocating a new one each time it's called.

	* components/adapter/nautilus-adapter-factory-server.c:
	(impl_Nautilus_ComponentAdapterFactory__create):
	* libnautilus-extensions/bonobo-stream-vfs.c:
	(bonobo_stream_vfs_class_init):
	* libnautilus-extensions/nautilus-undo-context.c:
	(impl_Nautilus_Undo_Context__create):
	* libnautilus-extensions/nautilus-undo-manager.c:
	(nautilus_undo_manager_initialize_class):
	* libnautilus/nautilus-undo-transaction.c:
	(impl_Nautilus_Undo_Transaction__create):
	* libnautilus/nautilus-view.c: (impl_Nautilus_View__create):
	* src/nautilus-history-frame.c:
	(impl_Nautilus_HistoryFrame__create):
	* src/nautilus-shell.c: (nautilus_shell_get_vepv):
	* src/nautilus-view-frame-corba.c:
	(impl_Nautilus_ViewFrame__create):
	* src/nautilus-zoomable-frame-corba.c:
	(impl_Nautilus_ZoomableFrame__create):
	Use the new cover for bonobo_object_get_epv to avoid
	making lots of copies of it.

	* src/nautilus-window-menus.c: (get_user_level_image): Formatting
	tweak.

	* tools/leak-checker/nautilus-leak-checker.c: Added more "known to
	allocate and not free on exit" functions.
2000-09-27 00:07:33 +00:00
John Sullivan
d6f51369b5 Fixed bug 3244 (already-computed folder counts don't update
when filtering preferences change)

	* libnautilus-extensions/nautilus-directory.c:
	(invalidate_one_count): hash table foreach function that
	invalidates the count of a NautilusDirectory.
	(filtering_changed_callback): preference callback function
	that calls invalidate_one_count on all extant directories.
	(add_filtering_callbacks): add preference callbacks for each
	file-filtering preference.
	(remove_filtering_callbacks): remove those preference callbacks.
	(nautilus_directory_get_internal): When directories hash table
	is created, call add_filtering_callbacks and schedule
	remove_filtering_callbacks for exit time.
2000-09-26 23:58:50 +00:00
Arlo Rose
9f7e18eadf Added new colors, and names to match. These are less jarring, and make for
* data/browser.xml:
        Added new colors, and names to match. These are less jarring, and
        make for good backgrounds.
        Fixes Bug 3204.
2000-09-26 23:42:57 +00:00
John Sullivan
c4875f4faa Fixed bug 437 (Deleting files doesn't affect count in sidebar)
Fixed bug 2001 (adding/removing files doesn't update directory counts)

	* libnautilus-extensions/nautilus-directory-async.c:
	(get_corresponding_file): Removed from here, replaced by
	nautilus_directory_get_existing_corresponding_file, now
	in nautilus-directory.c
	(nautilus_directory_invalidate_counts): New function, split out
	from nautilus_directory_force_reload.
	(nautilus_directory_force_reload): Now calls _invalidate_counts.

	* libnautilus-extensions/nautilus-directory-private.h:
	Added prototypes for nautilus_directory_get_existing_corresponding_file
	and nautilus_directory_invalidate_counts.

	* libnautilus-extensions/nautilus-directory.h:
	Added prototype for nautilus_directory_get_corresponding_file.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_get_corresponding_file): New public function,
	returns	NautilusFile object for this NautilusDirectory (whether or
	not one already existed).
	(nautilus_directory_get_existing_corresponding_file): Moved and
	renamed private function, returns NautilusFile object for this
	NautilusDirectory but only if one already exists.
	(invalidate_count_and_unref): New helper hash table foreach function,
	invalidates count & unrefs a NautilusDirectory.
	(collect_parent_directories): New helper function, adds directory
	to hash table & refs if not already present.
	(nautilus_directory_notify_files_added),
	(nautilus_directory_notify_files_removed),
	(nautilus_directory_notify_files_moved): Use these two new functions
	to invalidate directory counts when files added/removed.

	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_internal): Initialize a variable to NULL
	to make compiler happy.


	Reimplemented "select all should be insensitive when there
	are no files to select" a better way after Darin hinted.

	* src/file-manager/fm-directory-view.h: Added is_empty function
	pointer and prototype for fm_directory_view_is_empty.

	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_initialize_class): made is_empty a MUST_OVERRIDE
	function.
	(get_directory_as_file): Simplified implementation by calling new
	nautilus_directory_get_corresponding_file.
	(no_items_showing): Removed this function.
	(compute_menu_item_info): Use fm_directory_view_is_empty instead of
	no_items_showing.
	(fm_directory_view_is_empty): New function, calls virtual function.

	(fm_directory_view_real_create_background_context_menu_items): Fixed
	bug where "New Folder" item in context menu was sensitive when it
	shouldn't have been.

	* src/file-manager/fm-list-view.c: (fm_list_view_initialize_class),
	(real_is_empty): Overrode is_empty function pointer to check whether
	row count of list is 0.

	* libnautilus-extensions/nautilus-icon-container.h:
	* libnautilus-extensions/nautilus-icon-container.c:
	(nautilus_icon_container_is_empty): New function, checks whether
	list of icons is NULL.

	* src/file-manager/fm-icon-view.c: (fm_icon_view_is_empty),
	(fm_icon_view_initialize_class): Overrode is_empty function pointer
	to ask icon container.
2000-09-26 23:19:54 +00:00
Mathieu Lacage
1c783695d7 oops forgot this g_print. sorry again. 2000-09-26 22:20:09 +00:00
J Shane Culpepper
cc5de7b898 Adding scroll bar capabilities to various sections and cleaning up the box
2000-09-26  J Shane Culpepper  <pepper@eazel.com>

	* components/services/summary/nautilus-view/nautilus-summary-view.c
	: (generate_startup_form), (generate_summary_form):
	* nautilus-installer/src/Makefile:

	Adding scroll bar capabilities to various sections and cleaning up
	the box packing so that things look slightly better than with frames.
2000-09-26 22:15:45 +00:00
Josh Barrow
b3acb7f9af Added a new line in the ChangeLog eeek!
Added a new line in the ChangeLog  eeek!
2000-09-26 22:12:31 +00:00
Christian Rose
29096b2843 Updated Swedish translation. 2000-09-26 22:10:20 +00:00
Mathieu Lacage
2c357c78a0 disable debugging by default 2000-09-26 22:03:34 +00:00
Mike Engber
41ef379d67 Yet another pass at optimizing background drawing.
Yet another pass at optimizing background drawing.
	* libnautilus-extensions/nautilus-background.c:
	(nautilus_background_get_image_placement),
	(ensure_gradient_buffered), (fill_canvas_from_gradient_buffer),
	(canvas_buf_from_pixmap), (ensure_image_scaled),
	(nautilus_background_draw), (nautilus_background_draw_aa):
	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
	(nautilus_gdk_pixbuf_scale_to_fit_factor),
	(nautilus_gdk_pixbuf_is_scaled_to_fit),
	(nautilus_gdk_pixbuf_scale_to_fit),
	(nautilus_gdk_pixbuf_scale_down_to_fit):
	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
2000-09-26 21:52:46 +00:00
Rebecca Schulman
0e8843e052 Fixed bugs 691, 689, and 733. Hopeully this also fixes 690, but I can't
2000-09-26  Rebecca Schulman  <rebecka@eazel.com>
	Fixed bugs 691, 689, and 733.  Hopeully this also
	fixes 690, but I can't test it, because rename in
	place is confused on my system

	* components/notes/nautilus-notes.c: (make_notes_view):
	Change clipboard initialization to new signature
	* libnautilus/nautilus-clipboard.c:
	* libnautilus/nautilus-clipboard.h:
	(set_paste_sensitive_if_clipboard_contains_data),
	(add_menu_items_callback), (remove_menu_items_callback),
	(set_clipboard_menu_items_sensitive),
	(set_clipboard_menu_items_insensitive), (menu_activated_callback),
	(menu_deactivated_callback),
	(nautilus_clipboard_set_up_editable_from_bonobo_control),
	(nautilus_clipboard_setup_local):
	Add calls to sensitize and desensitize.  Change signatures
	around to get the data necessary to find out whether cut
	and paste should be active or not
	* src/nautilus-location-bar.c: (nautilus_location_bar_initialize):
	* src/nautilus-window-menus.c: (nautilus_window_initialize_menus):
	Change clipboard menu signatures to fit above changes
	* src/nautilus-window.c: (nautilus_window_constructed):
	add clipoard initialization, after the local ui handler is created
2000-09-26 21:30:26 +00:00
Darin Adler
cfe2dc48fd Got leaks in "nautilus --check" down to 0.
Fixed bug 2488 (path name for link set determined incorrectly) by
	using only paths for link sets, never URIs.

	* tools/leak-checker/nautilus-leak-checker.c: Added more "known to
	leak" symbols.

	* libnautilus-extensions/nautilus-link-set.c: (create_new_link),
	(nautilus_link_set_is_installed), (nautilus_link_set_remove):
	Changed functions to always expect paths, so they can now use
	nautilus_make_path instead of link_set_path_name.
	* src/nautilus-sidebar.c: (metadata_button_callback): Changed to
	turn the URI into a path before calling the link-set functions.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_moved): Use
	nautilus_file_list_free instead of
	nautilus_g_list_free_deep_custom.
	* libnautilus-extensions/nautilus-string-list.c:
	(nautilus_string_list_clear): Use nautilus_g_list_free_deep
	instead of nautilus_g_list_free_deep_custom.
	* libnautilus-extensions/nautilus-view-identifier.c:
	(nautilus_view_identifier_free_callback),
	(nautilus_view_identifier_list_free): Fixed call to
	nautilus_g_list_free_deep_custom so it doesn't need a function
	pointer type cast any more.
2000-09-26 19:07:45 +00:00
Josh Barrow
ec54fa8b4d Changed "directory" to "folder" in two cases.
* src/nautilus-theme-selector.c: (add_theme_to_icons),
        (add_new_theme_button_callback):
        Changed "directory" to "folder" in two cases.
2000-09-26 18:51:11 +00:00
Mathieu Lacage
96a067583d try to debug some mozilla-related pbs. add debugging output. NULL freed'
2000-09-26  Mathieu Lacage  <mathieu@eazel.com>

	try to debug some mozilla-related pbs.
	* src/nautilus-view-frame-corba.c:
	(impl_Nautilus_ViewFrame_open_location),
	(impl_Nautilus_ViewFrame_open_location_in_new_window),
	(impl_Nautilus_ViewFrame_open_in_new_window_and_select),
	(impl_Nautilus_ViewFrame_report_location_change),
	(impl_Nautilus_ViewFrame_report_selection_change),
	(impl_Nautilus_ViewFrame_report_status),
	(impl_Nautilus_ViewFrame_report_load_underway),
	(impl_Nautilus_ViewFrame_report_load_progress),
	(impl_Nautilus_ViewFrame_report_load_complete),
	(impl_Nautilus_ViewFrame_report_load_failed),
	(impl_Nautilus_ViewFrame_set_title):
	add debugging output.
	* src/nautilus-view-frame.c: (nautilus_view_frame_destroy_client),
	(nautilus_view_frame_destroy), (nautilus_view_frame_load_client):
	NULL freed' fields.
	* src/nautilus-window.c: (nautilus_window_real_set_content_view):
	idem.
2000-09-26 18:43:22 +00:00
John Sullivan
8ae60adc4f Fixed bug 382 (Deleting file viewed in other window leaves
other window in bad state)

	Also ran into some tree view problems that I did not fix
	but made less deadly so I could continue.

	* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_model_done_loading_callback),
	(reload_node_for_uri):
	Added g_return_if_fails checking the model and node parameters,
	so it won't segfault with a NULL node. I did not attempt to
	debug why the nodes were NULL.

	* src/nautilus-window-private.h: Added viewed_file field to
	details struct.

	* src/nautilus-window-manage-views.c:
	(viewed_file_changed_callback): New function, closes window if
	viewed_file is gone.
	(nautilus_window_update_internals): Set viewed_file to
	NautilusFile for this location (after unreffing old one), and
	connect to its "changed" signal	with viewed_file_changed_callback.
	(nautilus_window_end_location_change_callback): Truncate the
	"for display" version of the URI in error messages.

	* src/nautilus-window.c: (nautilus_window_destroy):
	unref viewed_file.
2000-09-26 17:51:20 +00:00
Victor Lecha
e5e990f0b9 make it compile. make it include correct libtrilobite path. small tweak.
2000-09-26  Victor Lecha  <victor@eazel.com>

	make it compile.
	* components/services/summary/nautilus-view/Makefile.am:
	make it include correct libtrilobite path.
	* components/services/summary/nautilus-view/nautilus-summary-view.c:
	small tweak.
2000-09-26 17:28:07 +00:00
Gene Z. Ragan
7ebc507200 Work in progress on allowing the user to set a HTTP proxy.
2000-09-26  Gene Z. Ragan  <gzr@eazel.com>

	Work in progress on allowing the user to set a HTTP proxy.

	* components/mozilla/nautilus-mozilla-content-view.c:
	(nautilus_mozilla_content_view_initialize):
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog), (global_preferences_register):
	* libnautilus-extensions/nautilus-global-preferences.h:
2000-09-26 17:11:51 +00:00
Christian Rose
360ca60603 Updated Swedish translation. 2000-09-26 10:49:48 +00:00
Pavel Cisler
eb823a6e55 Experimental replacement for the nautilus_read_file_async as a potential
2000-09-26  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-file-utilities.c:
	(pthread_nautilus_read_file_callback_idle_binder),
	(pthread_nautilus_read_file_callback_common),
	(pthread_nautilus_read_file_synchronous_callback),
	(pthread_nautilus_read_file_asynchronous_callback),
	(pthread_nautilus_read_file_thread_entry),
	(pthread_nautilus_read_file_async),
	(pthread_nautilus_read_file_async_cancel),
	(nautilus_read_file_async), (nautilus_read_file_cancel):
	Experimental replacement for the nautilus_read_file_async
	as a potential speed improvement. Need to do some more profiling
	to see if we are getting any gain.
2000-09-26 08:10:24 +00:00