Commit graph

3858 commits

Author SHA1 Message Date
Mathieu Lacage
72f2b6dd84 disable bug-buddy for nautilus.
2000-10-18  Mathieu Lacage  <mathieu@eazel.com>

	disable bug-buddy for nautilus.
	* src/nautilus-main.c: (main):
2000-10-19 00:28:42 +00:00
Kjartan Maraas
cfd436d48f Feeble attempt to hook up generation of .h files from the *-ui.xml files
2000-10-19  Kjartan Maraas  <kmaraas@gnome.org>

	* */Makefile.am: Feeble attempt to hook up generation
	of .h files from the *-ui.xml files to get them included
	in the translations. This will need to be done in a better
	way I guess.
	* configure.in: Added a check for bonobo-ui-extract.
2000-10-19 00:20:21 +00:00
Kjartan Maraas
dee6fc6d28 Update 2000-10-19 00:15:43 +00:00
Pavel Cisler
9e6781100f Clean up calls to gnome_vfs_extract_short_name, remove explicit unescaping
2000-10-18  Pavel Cisler  <pavel@eazel.com>

	* components/tree/nautilus-tree-view.c:
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_moved),
	(nautilus_directory_schedule_metadata_copy),
	(nautilus_directory_schedule_metadata_move),
	(nautilus_directory_schedule_metadata_remove):
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_uri_get_basename):
	* libnautilus-extensions/nautilus-file-utilities.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_internal):
	* src/nautilus-theme-selector.c: (add_theme_to_icons):
	Clean up calls to gnome_vfs_extract_short_name, remove explicit
	unescaping because gnome_vfs_extract_short_name now does it.
	Eliminate some copy-paste technology, creating a new call
	nautilus_uri_get_basename.
2000-10-18 23:07:08 +00:00
Robey Pointer
ee67d06ee5 Fill in the username automatically if you're already logged in. Make the
* components/services/login/nautilus-view/nautilus-change-password-
	view.c: (user_logged_in), (generate_change_password_form):
	* components/services/login/nautilus-view/nautilus-change-password-
	view.oafinfo:

	Fill in the username automatically if you're already logged in.
	Make the prompts more i18n'able.  Change title from "Log in" to
	"Change password".  Fix oafinfo typo that caused the change-pw
	view to never get displayed.
2000-10-18 22:56:55 +00:00
Darin Adler
551cf44854 Some Music View fixes. Andy asked me to work on this.
* components/music/main.c: (main): Make warnings drop into the
	debugger.

	* components/music/nautilus-music-view.c:
	(nautilus_music_view_destroy): Change to use a NautilusFile object
	instead of using a uri string.
	(set_album_cover): Use the file object.
	(metadata_callback): Get rid of the unref that was causing a lot
	of trouble.
	(nautilus_music_view_update): Get the uri from the file object
	instead of vice versa.
	(detach_file): Cancel the call when releasing the file.
	(nautilus_music_view_load_uri): Release the old file and get a new
	one when the URI changes.
2000-10-18 22:51:00 +00:00
Maciej Stachowiak
6179da4f6f Fixed bugzilla.eazel.com bugs 2222, 3177, 3468, 3650, 3788
(some vestiges of wait_until_ready remain in the farther reaches
	of the UI).

	* libnautilus-extensions/nautilus-mime-actions.h,
	libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_mime_actions_check_if_required_attributes_ready,
	nautilus_mime_actions_get_required_file_attributes,
	nautilus_mime_actions_wait_for_required_file_attributes): New
	functions to help with monitoring or waiting for required
	attributes for the nautilus mime API.
	(nautilus_mime_get_default_action_type_for_file,
	nautilus_mime_get_default_action_for_file,
	nautilus_mime_get_default_application_for_file_internal,
	nautilus_mime_get_default_application_for_file,
	nautilus_mime_is_default_application_for_file_user_chosen,
	nautilus_mime_get_default_component_for_file_internal,
	nautilus_mime_get_default_component_for_file,
	nautilus_mime_is_default_component_for_file_user_chosen,
	nautilus_mime_get_short_list_applications_for_file,
	nautilus_mime_get_short_list_components_for_file,
	nautilus_mime_get_short_list_methods_for_file,
	nautilus_mime_get_all_applications_for_file,
	nautilus_mime_has_any_applications_for_file,
	nautilus_mime_get_all_components_for_file,
	nautilus_mime_has_any_components_for_file,
	nautilus_mime_set_default_action_type_for_file,
	nautilus_mime_set_default_application_for_file,
	nautilus_mime_set_default_component_for_file,
	nautilus_mime_set_short_list_applications_for_file,
	nautilus_mime_set_short_list_components_for_file,
	nautilus_mime_add_application_to_short_list_for_file,
	nautilus_mime_remove_application_from_short_list_for_file,
	nautilus_mime_add_component_to_short_list_for_file,
	nautilus_mime_remove_component_from_short_list_for_file,
	nautilus_mime_extend_all_applications_for_file,
	nautilus_mime_remove_from_all_applications_for_file,
	mime_type_get_supertype): Don't `nautilus_file_wait_until_ready'
	for the required attributes; instead assert (Well, return_if_fail)
	that they are available using
	`nautilus_file_check_if_ready'. Also, use
	`nautilus_file_get_uri_scheme' where possible.

	* libnautilus-extensions/nautilus-directory-async.c
	(mime_list_callback): Correct some coding mistakes.

	* libnautilus-extensions/nautilus-wait-until-ready.h,
	libnautilus-extensions/nautilus-directory.c: Remove
	`nautilus_directory_wait_until_ready'.

	* libnautilus-extensions/nautilus-file.h,
	libnautilus-extensions/nautilus-file.c
	(nautilus_file_get_uri_scheme): new convenience function.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(repopulate_program_list, is_application_default_for_file,
	is_component_default_for_file,
	is_component_in_short_list_for_file,
	is_application_in_short_list_for_file,
	program_file_pair_is_default_for_file,
	program_file_pair_is_in_short_list_for_file,
	add_to_short_list_for_file, remove_from_short_list_for_file,
	remove_default_for_item, set_default_for_item): wait_until_ready
	for required file attributes.

	* libnautilus-extensions/nautilus-program-choosing.c:
	(any_programs_available_for_file): wait_until_ready for required
	file attributes.

	* src/file-manager/fm-directory-view.c: (switch_location_and_view,
	create_open_with_gtk_menu, reset_bonobo_open_with_menu,
	activate_callback): Wait for the right file attributes.

	* src/nautilus-applicable-views.c: (got_file_info_callback),
	(nautilus_navigation_info_new): Wait for the right file
	attributes. (no wait_until_ready).

	* src/nautilus-sidebar.c: (nautilus_sidebar_destroy,
	nautilus_sidebar_update_buttons, nautilus_sidebar_update_all),
	nautilus_sidebar_set_uri): Monitor the file the sidebar is
	displaying, and update when it's attributes change.

	* src/nautilus-window-manage-views.c
	(nautilus_window_set_content_view): Wait for the right file
	attributes. (no wait_until_ready).

	* src/nautilus-window.c: (nautilus_window_destroy,
	view_menu_choose_view_callback, view_menu_vfs_method_callback,
	nautilus_window_real_load_content_view_menu,
	nautilus_window_load_content_view_menu): Wait for the right
	attributes. (no wait_until_ready in this chain).

	* test/test-nautilus-mime-actions-set.c (main): Wait for the right attributes.
	* test/test-nautilus-mime-actions.c (main): Wait for the right attributes.
2000-10-18 21:57:19 +00:00
Darin Adler
e5483a3a3c Use calls by new names.
* components/notes/nautilus-notes.c: (make_notes_view):
	* src/nautilus-location-bar.c: (nautilus_location_bar_new):
	* src/nautilus-simple-search-bar.c:
	(nautilus_simple_search_bar_new):
	Use calls by new names.

	* libnautilus-extensions/nautilus-undo-signal-handlers.c:
	(editable_key_press_event), (nautilus_undo_editable_set_undo_key):
	Disabled the undo-key part of undo also. The old code was actually
	harmless because it got the name of the signal wrong, but it's
	better to have it disabled.
	* src/nautilus-shell-ui.xml: Added a comment that points out the
	2nd place where undo has been disabled.

	* libnautilus/nautilus-clipboard.h:
	* libnautilus/nautilus-clipboard.c: (cut_callback),
	(copy_callback), (paste_callback), (clear_callback),
	(set_paste_sensitive_if_clipboard_contains_data),
	(focus_changed_callback), (target_destroy_callback),
	(nautilus_clipboard_set_up_editable), (first_focus_callback),
	(control_destroyed_callback),
	(nautilus_clipboard_set_up_editable_in_control),
	(disconnect_set_up_in_control_handlers):
	Some minor cleanup of the clipboard code. Includes bug fixes for
	items that are already in focus when the clipboard is hooked up
	(should never happen), and a fix for code that was using
	gtk_signal_disconnect on something that was connected with
	gtk_signal_connect_while_alive (doesn't work). Also got rid of
	misguided code that was copying a Bonobo_UIContainer with memcpy
	(since Bonobo_UIContainer is just a pointer).

	* src/Makefile.am:
	* src/nautilus-window-private.h:
	Changed source file name from nautilus-service-menu to
	nautilus-service-ui, since it does a toolbar item, not just a
	menu.

	* src/nautilus-window-service-ui.c:
	* src/nautilus-window-service-ui.h:
	A second cut at the service UI code. It no longer leaks a UI
	component.

	* src/nautilus-window.c: (nautilus_window_constructed),
	(nautilus_window_get_ui_container): Use our own pointer to the UI
	container instead of asking the shell UI for its container.
2000-10-18 21:43:35 +00:00
John Sullivan
14dbbeaddf Fixed bug 3862 (Icon view reversed after looking at list view)
Fixed bug 916 (workaround for Bonobo radio item bug)
	Also fixed bug where the "tighter layout" and "reversed order"
	items in the context menu were doing nothing at all.

	* src/file-manager/fm-icon-view.c:
	Removed "updating_toggle_menu_item" from Details struct.
	(set_tighter_layout): New helper function, handles the code
	common to the Bonobo and GTK menu callbacks.
	(gtk_tighter_layout_callback), (gtk_sort_reversed_callback),
	New functions used for GTK context menu. Will go away when
	we use Bonobo for context menus.
	(tighter_layout_state_changed_callback),
	(sort_reversed_state_changed_callback): Use passed state value,
	including checking for empty state (empty state happens when
	component is removed from container). This lets us eliminate the
	checks for "updating_toggle_item".
	(handle_radio_item): Removed check for updating_toggle_menu_item.
	This already worked correctly without this check.
	(insert_one_context_menu_item),	(append_one_context_menu_item),
	(append_one_toggle_context_menu_item): Tweaked these to pass in
	an initial toggle state for toggle menu items, to avoid setting
	the toggle state after the callback has been attached. All this
	code will be removed when we switch to Bonobo for context menus.
	(fm_icon_view_create_selection_context_menu_items): Updated for
	API changes.
	(fm_icon_view_create_background_context_menu_items): Update for
	API changes; stop setting updating_toggle_menu_item; attach
	callbacks to context menu toggle items (formerly sadly callback-
	free, thus useless)
	(update_layout_menus): Stop setting updating_toggle_menu_item.
2000-10-18 19:43:59 +00:00
Ramiro Estrugo
00ccac1677 Remove the fixed font from the list of available fonts. Its a bad one to
* libnautilus-extensions/nautilus-preferences-item.c:
	(preferences_item_create_font_family):
	Remove the fixed font from the list of available fonts.  Its a bad
	one to use because it crashes the SideBar sometimes.  The problem
	is that the fixed font doesnt support the "find the largest
	fitting font" game that the SideBar plays for long strings.

	Its kinda lame to fix the bug by yanking the font, but we have
	many font improvements planned for after PR2 which will render
	this issue irrelevant.

	Fixes bug 2256.
2000-10-18 16:11:18 +00:00
Ramiro Estrugo
26212f0f3b Add new function to only measure a string without doing all the rendering
* librsvg/rsvg-ft.c: (rsvg_ft_measure_or_render_string),
	(rsvg_ft_render_string), (rsvg_ft_measure_string):
	* librsvg/rsvg-ft.h:
	Add new function to only measure a string without doing all the
	rendering work.

	* libnautilus-extensions/nautilus-scalable-font.c:
	(nautilus_scalable_font_measure_text):
	Use the new rsvg_ft string measuring api.

	Fixes bug 2544.
2000-10-18 16:03:28 +00:00
Ramiro Estrugo
df2f3b768a A dumb typo. 2000-10-18 13:47:05 +00:00
Ramiro Estrugo
7dfbaece52 Use gdk_fontset_load() instead of gdk_font_load() to make i18n work
* libnautilus-extensions/nautilus-font-factory.c:
	(font_hash_node_lookup_with_insertion),
	(nautilus_font_factory_get_fallback_font):
	* libnautilus-extensions/nautilus-gdk-extensions.c:
	(nautilus_get_largest_fitting_font), (nautilus_gdk_font_get_bold):
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_widget_set_font_by_name):
	* libnautilus-extensions/nautilus-icon-factory.c: (embed_text):
	* src/nautilus-zoom-control.c: (draw_number):
	Use gdk_fontset_load() instead of gdk_font_load() to make i18n
	work better.  Also marked some hard-coded fonts fot localization.
	There is still an open bug on writing useful comments about these
	for the localizers.  Fixes bugs 3143 and 3144.

	Thanks to Yukihiro Nakai <ynakai@redhat.com> for pointing these
	problems out providing patches to fix them.

	* src/nautilus-profiler.c: (window_print_button_callback),
	(window_save_button_callback), (dump_dialog_new),
	(dump_dialog_show):
	Same as above plus mark some strings for localization and add
	assertions to currently unimplemented functions.
2000-10-18 13:40:00 +00:00
Maciej Stachowiak
6fe9d6631d rolled over to ChangeLog-20001018.
* ChangeLog: rolled over to ChangeLog-20001018.
2000-10-18 08:44:34 +00:00
Andy Hertzfeld
c9ef6cbd7c added a Services menu, per Darin's advice, as a separate bonobo ui
added a Services menu, per Darin's advice, as a separate bonobo
	ui component.  Right now, it's leaking the UI handler, and the
	menu uris aren't correct; will finish this tomorrow.

	* src/Makefile.am:
	added new files: nautilus-service-ui.xml and
	nautilus_window_install_service_menu

	* src/nautilus-service-ui.xml:
	xml file defining service menu and toolbar button

	* src/nautilus-shell-ui.xml:
	added placeholder for services menu and toolbar button; removed
	definition of toolbar button

	* src/nautilus-window-private.h:
	added reference to install routine

	* src/nautilus-window-service-menu.c: (goto_services_summary),
	(goto_online_storage), (goto_software_catalog),
	(nautilus_window_install_service_menu):
	merge in the services menu and button and handle the commands

	* src/nautilus-window-toolbars.c: (set_up_toolbar_images),
	(nautilus_window_initialize_toolbars):
	change the service button image when the theme changes
	if EAZEL_SERVICES is defined

	* src/nautilus-window.c: (nautilus_window_constructed):
	call the install routine if EAZEL_SERVICES is defined
2000-10-18 08:13:52 +00:00
Robey Pointer
08311b179f Fix "id=" stuff to "rpm_id=" to match new softcat format, and use special
* components/services/install/lib/Makefile.am:
	* components/services/install/nautilus-view/nautilus-service-instal
	l-view.c: (create_package),
	(nautilus_service_install_view_update_from_uri):

	Fix "id=" stuff to "rpm_id=" to match new softcat format, and use
	special pack->eazel_id field now that libeazelinstall provides it.
2000-10-18 05:45:26 +00:00
Robey Pointer
56a2868a36 Change installer's "let's upgrade other packages" screen to be
* nautilus-installer/src/callbacks.c: (prep_retry):
	* nautilus-installer/src/callbacks.h:
	* nautilus-installer/src/installer.c: (start_over),
	(dont_start_over), (jump_to_retry_page):

	Change installer's "let's upgrade other packages" screen to be
	user-friendly and Arloified.
2000-10-18 01:30:03 +00:00
Ramiro Estrugo
7101dd6974 Make the "misc" part of the User-Agent "Nautilus/1.0" instead of
* components/mozilla/nautilus-mozilla-content-view.c:
	(mozilla_content_view_one_time_happenings):
	Make the "misc" part of the User-Agent "Nautilus/1.0" instead of
	"Nautilus"
2000-10-18 01:24:04 +00:00
John Sullivan
321cdebf68 Fixed NULL dereference bug Eli was running into in the
location bar.

	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_handle_trailing_slashes): added assert that
	parameter is not NULL
	(nautilus_make_uri_canonical): Handle NULL up front,
	to avoid dereferencing it later.
2000-10-18 00:37:45 +00:00
Darin Adler
2da5fbafdf Oops. Canvas items are not widgets, although they ref. count in a similar
* libnautilus-extensions/nautilus-icon-container.c: (icon_free),
	(stop_rubberbanding), (destroy): Oops. Canvas items are not
	widgets, although they ref. count in a similar way.
2000-10-18 00:19:24 +00:00
Darin Adler
bff45faaab Fix reentrancy problem.
* libnautilus-extensions/nautilus-directory-async.c:
	(async_job_wake_up): Fix reentrancy problem.
2000-10-18 00:15:18 +00:00
Darin Adler
cc63ee361d Fixed a bunch of FIXMEs now that I "get" widget ref. counting.
* libnautilus-extensions/nautilus-icon-container.c: (icon_free),
	(stop_rubberbanding), (destroy): Fixed a bunch of FIXMEs now that
	I "get" widget ref. counting.
	(icon_set_position): Clip code rearranging.
2000-10-18 00:07:34 +00:00
Andy Hertzfeld
93d4817edc made long device names wrap to multiple lines.
* components/hardware/nautilus-hardware-view.c:
	(setup_overview_form):
	made long device names wrap to multiple lines.
2000-10-17 23:55:46 +00:00
Darin Adler
4188a781e2 Fix assert introduced with my last check-in.
* libnautilus-extensions/nautilus-directory-async.c:
	(async_job_start), (async_job_end): Added a debugging feature to
	match up starts with ends.
	(directory_count_cancel), (deep_count_cancel), (mime_list_cancel),
	(top_left_cancel), (activation_uri_cancel), (file_info_cancel),
	(metafile_read_cancel), (file_list_cancel),
	(directory_count_callback), (start_monitoring_file_list),
	(directory_count_start), (deep_count_callback),
	(deep_count_start), (mime_list_callback), (mime_list_start),
	(top_left_read_done), (top_left_start), (get_info_callback),
	(file_info_start), (activation_uri_done), (activation_uri_start):
	Pass additional parameters to make debugging feature work.
	(metafile_read_mark_done), (metafile_read_done),
	(metafile_read_start): Broke out the read complete code to fix a
	case where we would end a thread that we didn't start.
2000-10-17 23:23:46 +00:00
John Sullivan
af05c65687 Fixed bug 3828 (switching views makes torn-off menus disappear)
Fixed bug 3822 (Edit menu flashes when you click in location field)
	Fixed bug 3529 (menu bar flashes when view switched)

	These were all caused by our Bonobo xml files redefining labels
	for submenus, causing Bonobo to think that it needed to destroy
	the widget holding the title of the old submenu.

	* libnautilus/nautilus-clipboard-ui.xml:
	* src/file-manager/nautilus-directory-view-ui.xml:
	* src/file-manager/nautilus-icon-view-ui.xml:
	* src/file-manager/nautilus-search-list-view-ui.xml:
	Removed all _label="Foo"s from submenus defined in
	nautilus-shell-ui.xml (e.g. File, Edit, View).

	Some bug fixes and cleanup in the summary view code. I noticed a
	couple of obvious problems when I was trying to use services
	earlier, and they led me to fix up a little of this code.

	* components/services/summary/nautilus-view/nautilus-summary-view.c:
	Removed "feedback_text" field from Details struct; now it's just a
	parameter to generate_error_dialog (it was being leaked with each
	use, also).
	(generate_summary_form): Use new error_dialog_shown boolean to avoid
	showing exactly the same dialog twice; removed a bunch of duplicate
	code by collapsing an if/else into only the part that's different;
	pass dialog text to generate_error_dialog directly
	(authn_cb_failed): Don't follow an exclamation point with a period.
	(generate_error_dialog): Set up a parent window so the dialog
	appears in a sensible place; use GNOME_STOCK_BUTTON_CANCEL instead
	of "CANCEL"; get message from parameter instead of Details field;
	change "Retry" to "Try Again" to be less nerdly.
2000-10-17 23:19:30 +00:00
Maciej Stachowiak
3a1df85362 Fix assorted bugs which made NautilusFile think the list was never
* libnautilus-extensions/nautilus-directory-async.c:
	(cancel_mime_list, set_up_request_by_file_attributes,
	lacks_mime_list, nautilus_directory_invalidate_counts,
	mime_list_callback, mime_list_start): Fix assorted bugs which made
	NautilusFile think the list was never complete.

	* libnautilus-extensions/nautilus-wait-until-ready.h: Include
	<libnautilus-extensions/nautilus-directory.h> and
	<libnautilus-extensions/nautilus-file.h>.

	* libnautilus-extensions/nautilus-file-attributes.h: Rename
	MIME_LIST attroibute to DIRECTORY_ITEM_MIME_TYPES.

	* libnautilus-extensions/nautilus-file.h,
	libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_directory_item_mime_types): Renamed from
	nautilus_file_get_mime_list.

	* libnautilus-extensions/nautilus-mime-actions.h,
	libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_file_wait_for_metadata,
	nautilus_file_wait_for_mime_action_attributes,
	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,
	mime_type_list_to_hash_table, nautilus_do_component_query): Use
	all the new NautilusFile APIs and stop using NautilusDirectory. No
	longer take NautilusDirectory as a parameter in addition to
	NautilusFile.

	* 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): Stop passing NautilusDirectory to
	nautilus-mime-actions functions.
	* libnautilus-extensions/nautilus-program-choosing.c:
	(any_programs_available_for_file): Likewise.
	* src/file-manager/fm-directory-view.c (switch_location_and_view,
	files_added_callback, files_changed_callback,
	create_open_with_gtk_menu, reset_bonobo_open_with_menu,
	activate_callback):  Likewise.
	* src/nautilus-applicable-views.c (got_file_info_callback): Likewise.
	* src/nautilus-sidebar.c (nautilus_sidebar_update_buttons): Likewise.
	* src/nautilus-window-manage-views.c
	(nautilus_window_set_content_view): Likewise.
	* src/nautilus-window.c (nautilus_window_load_content_view_menu):
	Likewise.
	* test/test-nautilus-mime-actions-set.c (main): Likewise.
	* test/test-nautilus-mime-actions.c (main): Likewise.
2000-10-17 23:06:47 +00:00
Christian Rose
c84664c3c3 Updated Swedish translation. 2000-10-17 22:41:37 +00:00
Robey Pointer
b968f4ff2b Apply Eskil's memory patch to make the bootstrap not crash on success
* components/services/install/lib/eazel-install-logic.c:
	(eazel_install_flatten_categories):

	Apply Eskil's memory patch to make the bootstrap not crash on
	success (yay!).
2000-10-17 22:35:30 +00:00
Darin Adler
5969517510 Skip the macros directory.
* check-FIXME.pl: Skip the macros directory.

	* libnautilus-extensions/nautilus-directory-async.c:
	(async_job_start), (async_job_end), (get_one_value_callback),
	(get_one_value), (async_job_wake_up): Add new calls that limit the
	number of async. jobs done at once.
	(directory_count_cancel), (deep_count_cancel), (mime_list_cancel),
	(top_left_cancel), (activation_uri_cancel), (file_info_cancel),
	(metafile_read_cancel), (metafile_read_done): End the async. job
	if it's cancelled.
	(metafile_read_try_public_metafile), (metafile_read_restart):
	Changed the old metafile_read_start function's name to
	metafile_read_restart since it's used on the second try.
	(is_anyone_waiting_for_metafile), (metafile_read_start): Move the
	logic about whether to start reading into this function to make it
	more like the other jobs. Also start the async. job.
	(file_list_cancel): Changed name for consistency and end the
	async. job.
	(directory_count_callback): End the async. job.
	(start_monitoring_file_list): Start the async job.
	(file_list_start): Moved logic about when to start loading the file
	list into this function to make it more like other jobs.
	(directory_count_start): Renamed to make it more like other jobs
	and start the async. job.
	(deep_count_callback): End the async. job.
	(deep_count_start): Start the async. job.
	(mime_list_callback): End the async. job.
	(mime_list_start): Start the async. job.
	(top_left_read_done): End the async. job.
	(top_left_start): Start the async. job.
	(get_info_callback): End the async. job.
	(file_info_start): Start the async. job.
	(activation_uri_done): End the async. job.
	(activation_uri_start): Start the async. job.
	(nautilus_directory_async_state_changed): Wake up directories that
	may have breathing from from all the cancellation.
	(nautilus_directory_cancel): Moved the cancelling code down here,
	remove a directory from the waiting list when it goes, and also
	wake up directories that may have breathing room from all the
	cancellation.

	* libnautilus-extensions/nautilus-directory-private.h: Remove
	request_read_metafile from the header.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_destroy): Eliminate the call to
	nautilus_directory_stop_monitoring_file_list since that's now
	handled by nautilus_directory_cancel.

	* libnautilus-extensions/nautilus-file-private.h: Removed the
	got_*_mime_type variables since they are the same as *_mime_type
	!= NULL.

	* libnautilus-extensions/nautilus-file.c: (destroy): Get rid of
	checks for NULL before calling g_free.
	(nautilus_file_update_info): Replace == FALSE with !. Simplified
	some tortuous logic by getting rid of checks for NULL that weren't
	needed and booleans that weren't needed.
	(get_either_mime_type): Add helper to make it easier to avoid
	confusion between default and slow MIME type.
	(nautilus_file_compare_by_type): Use get_either_mime_type so it
	works when default MIME type is NULL.
	(nautilus_file_get_type_as_string): Use get_either_mime_type so it
	works when default MIME type is NULL.
	(nautilus_file_get_slow_mime_type): Simplified logic. Also got rid
	of "application/nonono" which was left here by accident.
	(nautilus_file_get_mime_type): Simplified logic and use
	get_either_mime_type to share code.
	(nautilus_file_is_mime_type): Simplified logic and use
	get_either_mime_type to share code.

	* src/file-manager/fm-directory-view.c: Format tweaks.

	* user-guide/C/Makefile.am: Not so much echoing as we install.
2000-10-17 21:50:19 +00:00
Gene Z. Ragan
d086806335 Fixed bug 3716, Bonobo paths for applications and viewers must be unique.
2000-10-17  Gene Z. Ragan  <gzr@eazel.com>

	Fixed bug 3716, Bonobo paths for applications and
	viewers must be unique.

	Added unique index to bonobo path name.

	* src/file-manager/fm-directory-view.c:
	(add_open_with_app_bonobo_menu_item),
	(add_open_with_viewer_bonobo_menu_item),
	(add_application_to_bonobo_menu), (add_component_to_bonobo_menu),
	(reset_bonobo_open_with_menu):
2000-10-17 21:29:37 +00:00
John Sullivan
a0f70c0e1f Made "this application can only handle local files"
dialog be parented on the NautilusWindow from whence
	it came.

	* libnautilus-extensions/nautilus-program-choosing.h:
	* libnautilus-extensions/nautilus-program-choosing.c:
	(nautilus_launch_application_parented): Removed this function
	(nautilus_launch_application): Made this function take a
	parent (can be NULL, but better not to be).

	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_launch_application): Remove "_parented"

	* src/nautilus-sidebar.c:
	(nautilus_sidebar_get_window): New helper function to get
	enclosing window.
	(command_button_callback),
	(nautilus_sidebar_chose_application_callback): Pass parent
	window to nautilus_launch_application.
2000-10-17 19:28:14 +00:00
Andy Hertzfeld
c7ef4182f7 fixed bug 3411, the sidebar resizes itself when viewing the summary page,
* src/nautilus-window.c: (nautilus_window_constructed),
	(nautilus_window_set_content_view_widget):
	fixed bug 3411, the sidebar resizes itself when viewing the
	summary page, by setting the "shrink" boolean to true
	when adding the content view container to the splitter.
2000-10-17 19:22:34 +00:00
John Sullivan
57e8f99bc4 Fixed bug 3824 (Files in search list have unknown type)
* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_type_as_string): Made this check cached
	slow_mime_type as well as cached default_mime_type. I'm worried
	about this whole area -- why did we differentiate the two? I'll
	bet there are other lurking bugs around here.
2000-10-17 17:17:11 +00:00
John Sullivan
da304071be Fixed bug 3825 (Bonobo error messages viewing search results)
Fixed bug 3826 ("Reveal in New Window" misplaced in context menu)

	* src/file-manager/fm-directory-view.c:
	(append_selection_menu_subtree): take an identifier, store
	it in menu item for later identification, just like other menu
	items. This will all change when we switch to using Bonobo for
	context menus.
	(fm_directory_view_real_create_selection_context_menu_items):
	Pass the identifier that list view code was expecting to find.
	* src/file-manager/fm-search-list-view.c:
	fixed typo in COMMAND_REVEAL_IN_NEW_WINDOW #define. Those darn
	typos are deadly with new Bonobo.
2000-10-17 14:14:46 +00:00
Pavel Cisler
144b4519d3 Part of fix to but 2840 - URI parsing works wrong for URIs with #
2000-10-17  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-file-operations.c:
	(get_next_duplicate_name):
	Part of fix to but 2840 - URI parsing works wrong for URIs with
	# characters. I noticed duplicating and creating links to files
	with funny characters like # was broken and added proper escaping
	code to fix it.
2000-10-17 12:06:36 +00:00
Robey Pointer
24bf378a9b * nautilus-installer/src/callbacks.c: (begin_install):
* nautilus-installer/src/installer.c: (jump_to_error_page),
	(start_over), (dont_start_over), (create_finish_page_good),
	(get_required_name), (get_detailed_errors_foreach),
	(get_detailed_errors), (install_failed), (eazel_install_dep_check),
	(eazel_install_delete_files), (install_done), (toggle_button_lock),
	(eazel_installer_add_category), (check_system),
	(eazel_installer_do_install), (eazel_install_get_depends):
	* nautilus-installer/src/installer.h:
	* nautilus-installer/src/link.sh:
2000-10-17 09:00:53 +00:00
Robey Pointer
0234060a39 Fix missing param in prune_packages. Make categorydata_list_copy stop
* components/services/install/lib/eazel-install-logic.c:
	(eazel_install_do_transaction_all_files_check):
	* components/services/install/lib/eazel-install-types.c:
	(categorydata_list_copy), (categorydata_copy),
	(categorydata_destroy_foreach), (categorydata_list_destroy),
	(packagedata_fill_from_rpm_header):
	* components/services/install/lib/eazel-install-types.h:

	Fix missing param in prune_packages.  Make categorydata_list_copy
	stop iterating sometime in my life.  Add matching
	categorydata_list_destroy.
2000-10-17 08:59:44 +00:00
Andy Hertzfeld
ac3b113083 for bug 2261, added a "set cover image" button to the music view, which is
* components/music/nautilus-music-view.c:
	(nautilus_music_view_initialize), (ensure_uri_is_image),
	(set_album_cover), (dialog_destroy), (set_image_button_callback),
	(nautilus_music_view_set_album_image):
	for bug 2261, added a "set cover image" button to the music view,
	which is visible when there's no cover, which displays a file
	selector, and set the metadata when the user selects a valid image.
	This is almost complete, but it's not quite working yet.

	* src/nautilus-shell.c: (display_caveat):
	increased the font size of the caveat to 14pt, since it was
	a little too hard to read and there was plenty of space.
2000-10-17 08:42:08 +00:00
Andy Hertzfeld
fb64e137d4 fixed occasional segfaults from fm_icon_view_update_menus being called
* src/file-manager/fm-icon-view.c: (fm_icon_view_update_menus):
	fixed occasional segfaults from fm_icon_view_update_menus
	being called from idle after they've been destroyed; fixed by
	exiting if the menus_ready boolean is clear.

	* components/music/nautilus-music-view.c:
	(nautilus_music_view_set_album_image), (metadata_callback),
	(nautilus_music_view_update_from_uri):
	fixed bug 3720, music view asks for album cover metadata incorrectly.
	Fixed by doing it correctly, using nautilus_file_call_when_ready.
	This also partially fixes bug 2261, but it's still too hidden, so
	I won't close it out until we have an explicit way to do it.
2000-10-17 06:32:24 +00:00
Mathieu Lacage
25d25d8a0e fix "do nothing" part of bug 3640 move re-init of code from drag_leave to
2000-10-17  Mathieu Lacage  <mathieu@eazel.com>

	fix "do nothing" part of bug 3640
	* components/tree/nautilus-tree-view.c: move
	re-init of code from drag_leave to drag_begin.
2000-10-17 05:57:57 +00:00
Andy Hertzfeld
bd3e7e5674 fixed a problem where we generated a zillion bonobo criticals when the
* src/file-manager/fm-icon-view.c: (fm_icon_view_destroy):
	fixed a problem where we generated a zillion bonobo criticals
	when the view changed. The problem was that the fm-icon-view
	was trying to update the layout menus while it was being destroyed,
	after the menus were already gone.  The fix is clearing the
	"menus_ready" boolean at the start of the destroy method.
2000-10-17 05:11:33 +00:00
Eskil Heyn Olsen
8a9a446c5d Reverting change to check >= vs = issue.
* nautilus.spec.in:
	Reverting change to check >= vs = issue.
2000-10-17 04:57:42 +00:00
Eskil Heyn Olsen
9230fa617d Changed the dep of nautilus-maozilla to mozilla = M18 instead of
* nautilus.spec.in:
	Changed the dep of nautilus-maozilla to mozilla = M18 instead of
	mozilla-M18. I can't put in >= M18, because rpm's fucks up on
	alphachar versions.
2000-10-17 04:49:15 +00:00
Eskil Heyn Olsen
077b1ff8fb Debug output. Revamping the error tree for failures' reg. circular
* components/services/install/lib/eazel-install-logic.c:
	(eazel_install_fetch_dependencies), (dump_one_package),
	(dump_packages_foreach), (dump_packages),
	(eazel_install_ensure_deps):
	Debug output.
	Revamping the error tree for failures' reg. circular conflicts.

	* components/services/install/lib/eazel-install-types.c:
	(categorydata_list_copy), (categorydata_copy),
	(packagedata_list_copy), (eazel_install_requirement_dep_compare):
	Fixed a bug in the copy functions and the dep_compare.

	* nautilus-installer/src/Makefile:
	Yeah...

	* nautilus-installer/src/installer.c:
	(get_detailed_errors_foreach):
	Inserting code to make the circular conflict handling nice.
2000-10-17 04:26:21 +00:00
Ramiro Estrugo
d00705a84a Fix a typo in the required version of mozilla.
* nautilus.spec.in:
	Fix a typo in the required version of mozilla.
2000-10-17 04:07:15 +00:00
Ramiro Estrugo
62f7e9a3aa Remove extraneous debugging printf.
* configure.in:
	Remove extraneous debugging printf.
2000-10-17 02:03:49 +00:00
Rebecca Schulman
a7bae05f9e Fixed a problem with the clipboard caused by having many components in the
2000-10-16  Rebecca Schulman  <rebecka@eazel.com>

	* libnautilus/nautilus-clipboard.c: (add_menu_items_callback),
	(ui_component_remove_container_and_unref),
	(finish_setting_up_editable),

	Fixed a problem with the clipboard caused by having many components
	in the same container with the same name, and fixed a potential
	leak.
2000-10-17 01:10:19 +00:00
John Sullivan
20c76c719a Fixed bug 3789 (Zoom In/Zoom Out/Back/Forward have lost
their control-key equivalents)

	* src/nautilus-shell-ui.xml: Updated the specification
	of non-alphanumeric keyboard equivalents to the new
	required style ("*Control*equal", not "*Control*=").
2000-10-17 00:24:47 +00:00
John Sullivan
e4d03c64cb Added a (conditional) line of spam for when load_directory is called to
* libnautilus-extensions/nautilus-directory-async.c:
	(mime_list_load): Added a (conditional) line of spam for
	when load_directory is called to get the MIME list.
2000-10-17 00:15:44 +00:00
Eskil Heyn Olsen
4ed35703aa Removed these old evil files.
2000-10-16  Eskil Heyn Olsen  <eskil@eazel.com>

	* components/services/install/command-line/Makefile.am:
	* components/services/install/command-line/eazel-alt-install.c:
	* components/services/install/command-line/eazel-install.c:
	* components/services/install/command-line/eazel-package-query.c:
	* components/services/install/command-line/eazel-revert.c:
	* components/services/install/command-line/eazel-uninstall.c:
	Removed these old evil files.

	* components/services/install/lib/eazel-install-types.h:
	* components/services/install/lib/eazel-install-types.c:
	(categorydata_list_copy), (categorydata_copy),
	(packagedata_list_copy), (packagedata_copy):
	Implemented package & categorydata copy functions.

	* components/services/trilobite/libtrilobite/trilobite-core-distrib
	ution.h:
	* components/services/trilobite/libtrilobite/trilobite-core-distrib
	ution.c: (determine_mandrake_version), (determine_suse_version),
	(determine_debian_version):
	Removed g_assert_not_reached calls. Also added enum for YELLOWDOG.

	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/installer.c: (get_required_name),
	(get_detailed_errors_foreach), (get_detailed_errors),
	(eazel_install_dep_check), (check_system):
	Doing some funk to handle circular deps better.
2000-10-16 23:29:40 +00:00