Commit graph

847 commits

Author SHA1 Message Date
Gene Ragan
822c600fae New file and functions to handle undo in NautilusEntry and GtkEditables.
* libnautilus-extensions/nautilus-undo-signal-handlers.c:
	* libnautilus-extensions/nautilus-undo-signal-handlers.h:
	(nautilus_entry_user_changed_callback),
	(nautilus_undo_setup_nautilus_entry_for_undo),
	(nautilus_undo_teardown_nautilus_entry_for_undo),
	(free_editable_undo_data), (free_editable_object_data),
	(editable_insert_text_callback), (editable_delete_text_callback),
	(editable_register_edit_undo),
	(nautilus_undo_setup_editable_for_undo),
	(nautilus_undo_teardown_editable_for_undo),
	(restore_editable_from_undo_snapshot_callback),
	(editable_key_press_event), (nautilus_undo_editable_set_undo_key):
	New file and functions to handle undo in NautilusEntry and
	GtkEditables.  This file is intended to contain signal handlers
	that enable undo for a variety of GTK widgets. Calling a
	setup_for_undo function will prepare the widget to handle
	undo functionality.

	* libnautilus-extensions/Makefile.am:
	Added entries for new files nautilus-undo-signal-handlers.c
	and nautilus-undo-signal-handlers.h

	* components/notes/nautilus-notes.c: (make_notes_view):
	Fixed bug #973.  Add undo to notes component.

	* components/websearch/ntl-web-search.c: (make_obj):
	Changed to use new undo signal handlers.

	* libnautilus-extensions/nautilus-entry.c:
	(nautilus_entry_initialize), (nautilus_entry_key_press),
	(nautilus_entry_set_text), (nautilus_entry_delete_text):
	Removed old undo code that had been rendered obsolete by the
	new signal handlers mentioned above.

	* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
	Changed to use new undo signal handlers.

----------------------------------
2000-06-12 20:29:32 +00:00
John Sullivan
820f06eb6d Fixed bug 692 (Bookmarks for deleted files don't do
sensible things)

	* libnautilus-extensions/nautilus-gnome-extensions.h,
	* libnautilus-extensions/nautilus-gnome-extensions.c:
	(nautilus_info_dialog),
	(nautilus_info_dialog_parented): New functions for showing
	a one-button informational dialog.
	(nautilus_yes_no_dialog),
	(nautilus_yes_no_dialog_parented): New functions for
	showing a two-button question dialog.
	(show_yes_no_box): Helper function used to implement
	yes_no_dialog routines.

	* src/nautilus-bookmark-list.h,
	* src/nautilus-bookmark-list.c:
	(nautilus_bookmark_list_delete_items_with_uri):
	New function for deleting all bookmarks with a given uri.

	* src/nautilus-window-menus.c:
	(bookmark_holder_new), (bookmark_holder_free): New helper
	functions for dealing with BookmarkHolder structs.
	(remove_bookmarks_for_uri),
	(show_bogus_bookmark_window),
	(uri_known_not_to_exist): New helper functions for dealing
	with bookmarks for missing (local) files. In the Go menu
	case, the user is just told that the location doesn't exist;
	in the Bookmarks menu case, the user has the option of
	removing bookmarks with this URI from their list.
	(activate_bookmark_in_menu_item): Added a parameter to
	distinguish Go menu case from Bookmarks menu case.
	(append_bookmark_to_menu): Added this parameter here also,
	where it's stored in a BookmarkHolder; deploy
	bookmark_holder_new and	_free.
	(refresh_bookmarks_in_bookmarks_menu),
	(refresh_bookmarks_in_go_menu): Pass the new parameter to
	append_bookmark_to_menu.
2000-06-12 19:49:28 +00:00
Andy Hertzfeld
0e3e6589d8 made link set install and remove really work, and added a link set
made link set install and remove really work, and added a link set
       configuration window for adding and removing link sets
2000-06-12 07:34:26 +00:00
Andy Hertzfeld
d00fe18ab8 corrected scale factor used for vector icons, and updated the icons in the
corrected scale factor used for vector icons, and updated the
	icons in the vector them to be the proper size.  Also, some work
	on link set configurations that isn't completed yet, and allowed
	the sidebar to be reduced to a very small width to get started with
	the upcoming rework.
2000-06-11 03:59:41 +00:00
J Shane Culpepper
8766247488 Fixed ghttp test 2000-06-10 23:08:13 +00:00
J Shane Culpepper
8e15b6c48d Minor build fixes. 2000-06-10 20:26:11 +00:00
J Shane Culpepper
4a9889b115 A few minor fixes to get the builds running again. 2000-06-10 19:44:26 +00:00
J Shane Culpepper
af1175f712 Working on latest build breakage 2000-06-10 19:17:34 +00:00
Andy Hertzfeld
f0e522785c fixed a bug I introduced earlier today where custom icons wouldn't scale
fixed a bug I introduced earlier today where custom icons wouldn't
	scale properly by using a different test for the vector icon
	case
2000-06-10 07:35:10 +00:00
Eskil Heyn Olsen
8954f5931c As bug 908 said, the helixcode installers way of indentifying distro
* components/services/trilobite/libtrilobite/Makefile.am:
	* components/services/trilobite/libtrilobite/helixcode-utils.c:
	* components/services/trilobite/libtrilobite/helixcode-utils.h:
	*
	components/services/trilobite/libtrilobite/trilobite-core-distribut
	ion.c: (determine_turbolinux_version),
	(determine_mandrake_version), (determine_suse_version),
	(determine_debian_version), (determine_redhat_version),
	(trilobite_get_distribution), (trilobite_get_distribution_name):
	*
	components/services/trilobite/libtrilobite/trilobite-core-distribut
	ion.h:
	As bug 908 said, the helixcode installers way of indentifying
	distro sucked (Red Hat 6.099999 ?!), so I revamped it and moved
	the code into trilobite-core-distribution. Only wrote the redhat
	version check, not the other ones (see bug 908). Instead of only
	using a enum for the distro, it's now a struct, containing an enum
	identifying the distroname and two ints for the version.

	* components/services/install/command-line/eazel-alt-install.c:
	(create_package):
	* components/services/install/lib/eazel-install-protocols.c:
	(http_fetch_remote_file), (eazel_install_fetch_package),
	(add_to_url), (get_url_for_package), (get_search_url_for_package):
	* components/services/install/lib/eazel-install-protocols.h:
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(download_all_packages), (install_all_packages):
	* components/services/install/lib/eazel-install-types.c:
	(packagedata_new):
	* components/services/install/lib/eazel-install-types.h:
	* components/services/install/lib/eazel-install-xml-package-list.c:
	(parse_package):

	Updated to use the new get_distribution call. Also worked on the
	rpmsearch stuff. It generates url's like
	http://vorlon.eazel.com/rpmsearch.cgi?name=jade&arch=i386&version>=1.2.1&protocol=http&distro="Red Hat Linux 6.1"
	Hat Linux 6.1" and should get a url pointing to an appropriate rpm
	returned, which should then be fetched.

	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.am:
	Updated so it still links.
2000-06-10 06:50:03 +00:00
Maciej Stachowiak
a35dbb9377 Support new bonobo:additional_uri_schemes attribute needed for Rebecca's
* libnautilus-extensions/nautilus-mime-actions.c
	(make_oaf_query_with_known_mime_type,
	make_oaf_query_with_uri_scheme_only): Support new
	bonobo:additional_uri_schemes attribute needed for Rebecca's
	stuff.
2000-06-10 01:53:05 +00:00
John Sullivan
101f77e842 %$#$@! state machine. I discovered that my last attempt to fix the
* src/nautilus-window.c: (nautilus_window_connect_view):
	%$#$@! state machine. I discovered that my last attempt
	to fix the "set_sensitive called on bad GTK_WIDGET" bug
	introduced a harmless but annoying warning when switching
	locations in the same window. This change (taking the
	"while_alive" off a signal handler) gets rid of that
	warning, but reintroduces the set_sensitive bug in certain
	cases. The good news is that I know how to reproduce the
	set_sensitive bug every time. I don't know the best fix
	for it though, so I'll just write a bug report.
2000-06-10 01:09:29 +00:00
Andy Hertzfeld
2ae2a236b3 fixed problem where vector icons were only being rendered at the nominal
fixed problem where vector icons were only being rendered at the
	nominal size and were pixmap scaled from there; now they are
	rendered at the appropriate size.
2000-06-10 00:53:29 +00:00
Ramiro Estrugo
2b631110b6 Move the nautilus-widgets classes to libnautilus-extensions.
* Makefile.am:
* components/hardware/Makefile.am:
* components/help/Makefile.am:
* components/history/Makefile.am:
* components/html/Makefile.am:
* components/loser/content/Makefile.am:
* components/loser/sidebar/Makefile.am:
* components/music/Makefile.am:
* components/notes/Makefile.am:
* components/rpmview/Makefile.am:
* components/sample/Makefile.am:
* components/services/startup/nautilus-view/Makefile.am:
* components/services/time/nautilus-view/Makefile.am:
* components/services/trilobite/sample/nautilus-view/Makefile.am:
* components/websearch/Makefile.am:
* configure.in:
* helper-utilities/authenticate/Makefile.am:
* helper-utilities/authenticate/nautilus-authenticate.c:
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-caption-table.c:
* libnautilus-extensions/nautilus-caption.c:
* libnautilus-extensions/nautilus-file-utilities.c:
* libnautilus-extensions/nautilus-global-preferences.c:
* libnautilus-extensions/nautilus-global-preferences.h:
* libnautilus-extensions/nautilus-lib-self-check-functions.h:
* libnautilus-extensions/nautilus-link-set.c:
* libnautilus-extensions/nautilus-link.c:
* libnautilus-extensions/nautilus-password-dialog.c:
* libnautilus-extensions/nautilus-preference.c:
(nautilus_self_check_preference):
* libnautilus-extensions/nautilus-preferences-box.c:
* libnautilus-extensions/nautilus-preferences-box.h:
* libnautilus-extensions/nautilus-preferences-dialog.c:
* libnautilus-extensions/nautilus-preferences-dialog.h:
* libnautilus-extensions/nautilus-preferences-group.c:
* libnautilus-extensions/nautilus-preferences-group.h:
* libnautilus-extensions/nautilus-preferences-item.c:
* libnautilus-extensions/nautilus-preferences-item.h:
* libnautilus-extensions/nautilus-preferences-pane.c:
* libnautilus-extensions/nautilus-preferences-pane.h:
* libnautilus-extensions/nautilus-preferences.c:
* libnautilus-extensions/nautilus-preferences.h:
* libnautilus-extensions/nautilus-radio-button-group.c:
* libnautilus-extensions/nautilus-string-picker.c:
* libnautilus-extensions/nautilus-string-picker.h:
* libnautilus-extensions/nautilus-text-caption.c:
* libnautilus-extensions/nautilus-text-caption.h:
* libnautilus-extensions/nautilus-undo-manager.c:
* libnautilus-extensions/nautilus-user-level-manager.c:
* libnautilus-extensions/nautilus-user-level-manager.h:
* libnautilus-extensions/nautilus-widgets-self-check-functions.c:
* libnautilus-extensions/nautilus-widgets-self-check-functions.h:
* libnautilus-extensions/test-nautilus-preferences.c:
* libnautilus-extensions/test-preferences.c:
* nautilus-widgets/Makefile.am:
* nautilus-widgets/nautilus-caption-table.c:
* nautilus-widgets/nautilus-caption-table.h:
* nautilus-widgets/nautilus-caption.c:
* nautilus-widgets/nautilus-caption.h:
* nautilus-widgets/nautilus-password-dialog.c:
* nautilus-widgets/nautilus-password-dialog.h:
* nautilus-widgets/nautilus-preference.c:
* nautilus-widgets/nautilus-preference.h:
* nautilus-widgets/nautilus-preferences-box.c:
* nautilus-widgets/nautilus-preferences-box.h:
* nautilus-widgets/nautilus-preferences-dialog.c:
* nautilus-widgets/nautilus-preferences-dialog.h:
* nautilus-widgets/nautilus-preferences-group.c:
* nautilus-widgets/nautilus-preferences-group.h:
* nautilus-widgets/nautilus-preferences-item.c:
* nautilus-widgets/nautilus-preferences-item.h:
* nautilus-widgets/nautilus-preferences-pane.c:
* nautilus-widgets/nautilus-preferences-pane.h:
* nautilus-widgets/nautilus-preferences.c:
* nautilus-widgets/nautilus-preferences.h:
* nautilus-widgets/nautilus-radio-button-group.c:
* nautilus-widgets/nautilus-radio-button-group.h:
* nautilus-widgets/nautilus-string-picker.c:
* nautilus-widgets/nautilus-string-picker.h:
* nautilus-widgets/nautilus-text-caption.c:
* nautilus-widgets/nautilus-text-caption.h:
* nautilus-widgets/nautilus-user-level-manager.c:
* nautilus-widgets/nautilus-user-level-manager.h:
* nautilus-widgets/nautilus-widgets-self-check-functions.c:
* nautilus-widgets/nautilus-widgets-self-check-functions.h:
* nautilus-widgets/test-nautilus-preferences.c:
* nautilus-widgets/test-nautilus-widgets.c:
* nautilus-widgets/test-preferences.c:
* src/Makefile.am:
* src/nautilus-main.c: (main):
* src/nautilus-sidebar.c:
* src/nautilus-window-menus.c:
* test/Makefile.am:
Move the nautilus-widgets classes to libnautilus-extensions.
2000-06-10 00:38:05 +00:00
Maciej Stachowiak
d8c9d3333e Do not add default to short list; instead, make sure we don't fail if
* src/nautilus-applicable-views.c (got_file_info_callback): Do not
	add default to short list; instead, make sure we don't fail if
	there is a default but not short list.
2000-06-10 00:13:52 +00:00
Ramiro Estrugo
fe3355d783 Made all headers in this library private. That means they dont
get installed.
2000-06-10 00:02:59 +00:00
Ramiro Estrugo
09b704671a Fix some #include with directory prefix dumbness. 2000-06-09 23:58:28 +00:00
Michael Fleming
b74d9ad508 Eskil should stop putting ":"'s at the end of
*
        components/services/install/lib/trilobite-eazel-install-service.oaf
        info:

        Eskil should stop putting ":"'s at the end of
        "bonobo:supported-uri-schemes" entries
2000-06-09 23:32:08 +00:00
John Sullivan
bc69bd33ab OK, this time I REALLY fixed the bug where you get
occasional "set_sensitive called on bad GTK_WIDGET"
	errors. I think.

	* src/nautilus-window-private.h: Swapped parameters
	of nautilus_window_view_destroyed so the window is first.
	* src/nautilus-window-manage-views.c:
	(nautilus_window_free_load_info): Remove pending
	action_id function before setting field to 0.
	(nautilus_window_view_destroyed): Swapped the parameters
	to match prototype.
	* src/nautilus-window.c: (nautilus_window_connect_view): Use
	gtk_signal_connect_object_while_alive instead of just
	gtk_signal_connect so the window won't be notified of its
	view's demise after the window's own demise.
2000-06-09 22:20:30 +00:00
John Sullivan
b2e8241f95 Changed the way the window->action_tag is destroyed. I think this actually
* src/nautilus-window.c: (nautilus_window_destroy):
	Changed the way the window->action_tag is destroyed.
	I think this actually fixes the occasional "set_sensitive
	called on bad GTK_WIDGET" errors that Darin tried to
	fix yesterday.
2000-06-09 21:05:54 +00:00
John Sullivan
4090e13b51 Fixed bugs related to selection and activation in directory
views, including 881 (right-click on selected item in list
	view shouldn't change selection), 918 (mouse activation
	in list view shouldn't affect only clicked item), and some
	others I found while in this code. Redefined the behavior
	of activation and multiple selection to some extent. Now
	double-clicking on a selected item always opens all selected
	items, and always opens them in new windows. If in single-click
	mode, single-clicking in list view when there's a multiple
	selection still opens only the clicked-on item, since the UI
	makes it pretty clear that you're clicking on a link for this
	one item. In icon view, single-clicking on a selected item in
	a multiple selection opens all selected items in new windows,
	since this feels to me more like "activate selected items"
	than "follow link", but I'm not really sure which is better.

	I changed the old behavior where single-clicking in icon view
	with a multiple selection would open the clicked item in the
	same window (if your preference was for "open in same window")
	and all others in new windows. In practice this seemed wrong,
	and opening all of the items in new windows is equivalent to
	the "Open in n New Windows" menu item. Please argue with me
	if you disagree.

	* libnautilus-extensions/nautilus-icon-container.c:
	(remember_selected_files), (forget_selected_files): Removed these
	functions, which were part of an earlier incomplete selection
	behavior fix.
	(destroy): Removed call to forget_selected_files.
	(nautilus_icon_container_almost_drag): Changed name to
	somewhat less misleading "nautilus_icon_container_did_not_drag";
	fixed bug where clicking on selected item (in double-click mode)
	would deselect other selected items; replaced remember/forget
	pair with call to activate_selected_items.
	(handle_icon_button_press): replaced remember/forget pair with
	call to activate_selected_items.
	(activate_selected_items): Reimplemented to use nautilus_icon_
	container_get_selection instead of remember/forget.

	* libnautilus-extensions/nautilus-icon-private.h: Removed
	last_selected_files field, formerly used by remember_ and
	forget_selected_files.

	* libnautilus-extensions/nautilus-list.h: Changed "activate"
	signal to pass a list of items to activate instead of just one.

	* libnautilus-extensions/nautilus-list.c:
	(event_state_modifies_selection): New helper function, checks
	for control or shift key mask.
	(activate_row_data_list): New function, emits activate signal
	on a list of row_data elements.
	(activate_selected_rows): New function.
	(activate_row): Reimplemented to use activate_row_data_list.
	(nautilus_list_button_press): Deployed
	event_state_modifies_selection; fixed 881 by not deselecting
	other items when right-clicking on a selected item; fixed 918
	by making double-click activate all selected rows.
	(nautilus_list_button_release): Deployed
	event_state_modifies_selection; fixed bug where (left-)
	clicking on a selected item would unselect others

	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_activate_file): Renamed from
	fm_directory_view_activate_files; now takes a list
	of files to activate and opens them all in new windows
	if there are more than one (otherwise respects preference).
	(fm_directory_view_activate_file_internal): Renamed to
	fm_directory_view_activate_file now that this name was
	available.

	* src/file-manager/fm-icon-view.c:
	(icon_container_activate_callback): Now calls
	fm_directory_view_activate_files instead of iterating here.
	* src/file-manager/fm-list-view.c:
	(list_activate_callback): Changed to take list parameter and
	call fm_directory_view_activate_files.
2000-06-09 20:59:55 +00:00
Andy Hertzfeld
e5c0e331f2 made rename work on the anti-aliased canvas by implementing a render
made rename work on the anti-aliased canvas by implementing a
	render method for the icon-text-item class.
2000-06-09 20:44:30 +00:00
Mike Engber
000b2a8ac3 Add missing changelog 2000-06-09 19:27:09 +00:00
Martin Baulig
4fbf8ff9b6 New function. Returns a local path for a file:// URI.
2000-06-09  Martin Baulig  <martin@home-of-linux.org>

	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_get_local_path_from_uri): New function.  Returns
	a local path for a file:// URI.
2000-06-09 17:57:16 +00:00
Martin Baulig
c8d89a1a6b Added PersistFile support.
2000-06-09  Martin Baulig  <baulig@suse.de>

	* src/nautilus-view-frame-bonobo-embeddable.c:
	(bonobo_subdoc_notify_location_change): Added
	PersistFile support.
2000-06-09 16:47:47 +00:00
Andy Hertzfeld
74be303393 Darin left an unused variable in his wake, which broke the build, so I
Darin left an unused variable in his wake, which broke the build,
	so I fixed it.
2000-06-09 05:49:14 +00:00
Darin Adler
f9d22365cf Added NAUTILUS_PREFIX so we can locate our installed files correctly
* acconfig.h:
	* configure.in:
	Added NAUTILUS_PREFIX so we can locate our installed files
	correctly instead of assuming they are in the gnome-libs prefix.

	* components/help/hyperbola-filefmt.c: (fmt_map_entry):
	* components/websearch/ntl-web-search.c:
	(web_search_populate_engines):
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_get_user_main_directory):
	* libnautilus-extensions/nautilus-link-set.c:
	(get_link_set_document):
	* src/file-manager/fm-properties-window.c: (get_property_names):
	* src/nautilus-property-browser.c:
	(nautilus_property_browser_drag_data_get), (make_drag_image),
	(get_xml_path), (make_properties_from_directory):
	Use NAUTILUS_PREFIX instead of gnome_datadir_file so we get the
	files from the right directory. Since gnome_datadir_file does a
	check to see if the file exists, had to add some explicit checks
	in various places.

	* components/html/glib-www-callbacks.c:
	Got rid of some warnings.

	* components/services/time/command-line/.cvsignore:
	* components/services/time/nautilus-view/.cvsignore:
	* components/services/time/service/.cvsignore:
	Ignore the new time stamp files.

	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.h:
	Fixed formatting.

	* RENAMING:
	* src/nautilus-sidebar-tabs.c:
	* src/nautilus-sidebar-tabs.h:
	* src/nautilus-sidebar-title.c:
	* src/nautilus-sidebar-title.h:
	* src/nautilus-sidebar.c:
	Renamed IndexTabs and IndexTitle to SidebarTabs
	and SidebarTitle as planned.
2000-06-09 02:05:35 +00:00
Maciej Stachowiak
2b5c47669a New function to use when searching view identifier lists.
* libnautilus-extensions/nautilus-view-identifier.h,
	libnautilus-extensions/nautilus-view-identifier.c
	(nautilus_view_identifier_compare): New function to use when
	searching view identifier lists.

	* src/nautilus-applicable-views.c (got_file_info_callback): Merge
	the default view into the menu.
2000-06-09 01:59:43 +00:00
Andy Hertzfeld
0784d73f10 added a "go to selected file" button to the rpm view, that navigates to
added a "go to selected file" button to the rpm view, that
	navigates to the selected file in the package file list
2000-06-09 01:25:42 +00:00
Eskil Heyn Olsen
2d2d94040e Forgot to save changelog before previous commit 2000-06-09 00:53:06 +00:00
Eskil Heyn Olsen
8dbc1bad6d Too much to list it all. Basically it now tries to do what apt-get has
* components/services/docs/installer-dep-check:
	(set_parameters_from_command_line), (eazel_progress_signal),
	(download_failed), (install_failed), (dep_check), (create_package),
	(main):
	* components/services/install/lib/Makefile.am:
	* components/services/install/lib/eazel-install-object.c:
	(eazel_install_set_arg), (eazel_install_class_initialize),
	(eazel_install_initialize),
	(eazel_install_fetch_remote_package_list),
	(eazel_install_emit_install_failed),
	(eazel_install_emit_dependency_check),
	(eazel_install_install_packages), (eazel_install_uninstall):
	* components/services/install/lib/eazel-install-private.h:
	* components/services/install/lib/eazel-install-protocols.c:
	(http_fetch_remote_file), (ftp_fetch_remote_file),
	(local_fetch_remote_file), (eazel_install_fetch_file),
	(eazel_install_fetch_package):
	* components/services/install/lib/eazel-install-protocols.h:
	* components/services/install/lib/eazel-install-public.h:
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(install_new_packages), (download_all_packages),
	(install_all_packages), (uninstall_packages),
	(uninstall_a_package), (build_packagedata_list_from_deps),
	(do_rpm_install), (do_rpm_uninstall),
	(eazel_install_prune_packages_helper),
	(eazel_install_prune_packages), (eazel_install_load_rpm_headers),
	(eazel_install_load_headers), (eazel_install_free_rpm_system),
	(eazel_install_prepare_rpm_system),
	(eazel_install_prepare_package_system),
	(eazel_install_free_package_system),
	(eazel_install_add_headers_to_rpm_set),
	(eazel_install_add_headers_to_set),
	(eazel_install_package_name_compare),
	(eazel_install_package_conflict_compare),
	(eazel_install_add_to_extras_foreach),
	(eazel_install_fetch_rpm_dependencies),
	(eazel_install_fetch_dependencies), (print_package_list),
	(eazel_install_ensure_deps), (rpm_install):
	* components/services/install/lib/eazel-install-rpm-glue.h:
	* components/services/install/lib/eazel-install-types.c:
	(protocol_as_string), (packagedata_new),
	(packagedata_new_from_rpm_conflict),
	(packagedata_new_from_rpm_conflict_reversed),
	(packagedata_new_from_rpm_header),
	(packagedata_fill_from_rpm_header), (packagedata_destroy_foreach),
	(packagedata_destroy), (rpmfilename_from_packagedata),
	(packagedata_hash), (packagedata_equal):
	* components/services/install/lib/eazel-install-types.h:
	* components/services/install/lib/eazel-install-xml-package-list.c:
	(parse_package), (parse_local_xml_package_list):
	* components/services/trilobite/libtrilobite/helixcode-utils.c:
	(xml_get_value):
	Too much to list it all. Basically it now tries to do what apt-get
	has done for ages. Given a list of packages to install, it
	recursively traverses the packagelist, fetches missing
	dependencies (no remote fetch yet, requires a search script on the
	server side) untill all deps are satisfies. If deps failed, it
	prunes the tree and emit signals.
	I've tried to do it modular enough to add support for other
	package systems then rpm, but rpm calls are still strewm about.

	* components/services/install/command-line/Makefile.am:
	* components/services/install/command-line/eazel-alt-install.c:
	Now takes random package names at commandline and should
	ideally try to download them from the server.

	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.am:
	* nautilus-installer/src/installer.c: (eazel_download_progress),
	(install_failed_helper), (install_failed), (installer):
	Fixed to work the new stuff in libinstall. Also generates
	prettier (but still ugly) error reports.
2000-06-09 00:52:29 +00:00
John Sullivan
b5734b371d Fixed bug 542 (context menus in directory view sometimes
partially offscreen)

	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_popup_menu_position_func): Made the menu-positioning
	function take screen size into account.

	Fixed bug 541 (unusably wide dialog when trying to
	rename a file to a gigantically long name)

	* src/file-manager/fm-error-reporting.c:
	(fm_report_error_renaming_file),
	(fm_report_error_setting_permissions):
	Used nautilus_error_dialog (which does word wrapping)
	instead of GnomeMessageBox directly.

	Fixed bug 1242 (Possibly unnecessary widget resizing when
	content view swapped)

	* src/nautilus-window.c: (nautilus_window_real_set_content_view):
	Scientists proved that it was unnecessary. Removed it.
2000-06-09 00:20:00 +00:00
Andy Hertzfeld
d81fe8458f improved the layout of the rpm view and cleaned up the code a bit
improved the layout of the rpm view and cleaned up the code a bit
2000-06-08 23:59:58 +00:00
Gene Z. Ragan
f50da8f018 Fixed bug 983. Added user_changed signal.
2000-06-08  Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus-extensions/nautilus-entry.c:
	(nautilus_entry_initialize_class),
	(nautilus_entry_initialize):
	Fixed bug 983.  Added user_changed signal.

	(nautilus_entry_destroy), (nautilus_entry_set_text),
	(nautilus_entry_insert_text), (nautilus_entry_delete_text),
	(free_undo_data), (register_edit_undo),
	(restore_from_undo_snapshot_callback),
	(nautilus_entry_set_undo_key):
	Cleanups in the way undo was being registered.  Created
	local undo data structure and removed cached undo text
	from class.  Localized checking of undo registered
	boolean to a single location.

	(user_changed_callback):
	Added callback coonected to user changed signal.
	Undo registering is handled here.

	* src/nautilus-bookmarks-window.c: (create_bookmarks_window),
	(on_select_row), (on_text_field_focus_in_event),
	(on_text_field_focus_out_event), (repopulate):
	Updated code to properly handle undo.

	* src/nautilus-location-bar.c:
	(nautilus_location_bar_set_location):
	Updated code to properly handle undo.
2000-06-08 22:58:07 +00:00
John Sullivan
c81500ec6c Fixed bug 1097 (double-click in list should activate
"Choose" button in View as Other dialog)

	* libnautilus-extensions/nautilus-gnome-extensions.h:
	* libnautilus-extensions/nautilus-gnome-extensions.c:
	(nautilus_gnome_dialog_get_button_by_index): New
	function, returns one of the bottom-of-the-dialog buttons
	specified by index.

	* libnautilus-extensions/nautilus-gtk-extensions.h,
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_button_auto_click): New function,
	acts as if invisible finger had clicked the specified
	button.
	(finish_button_activation): New idle function used by
	auto_click.

	(nautilus_gtk_clist_set_double_click_button):
	New function, specifies a button to be auto-clicked
	when a clist gets a double-click.
	(activate_button_on_double_click): New signal handler
	function used by set_double_click_button.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(nautilus_program_chooser_new): Wire up the "Choose"
	button with nautilus_gtk_clist_set_double_click_button.
2000-06-08 20:39:49 +00:00
J Shane Culpepper
66a3dbd917 Minor twaek to Makefile to get clean tree building. 2000-06-08 20:12:26 +00:00
Darin Adler
dcbade4c56 Fixed the bug where bogus URIs would cause a seg fault. Unfortunately
* src/nautilus-window-manage-views.c:
	(nautilus_window_end_location_change_callback),
	(nautilus_window_begin_location_change):
	* src/nautilus-window.h:
	Fixed the bug where bogus URIs would cause a seg fault.
	Unfortunately doing this in a simple clean way required
	adding a field to the already-packed NautilusWindow.
2000-06-08 19:35:18 +00:00
Pavel
8d38bd9b63 Ooops, my previous makefile fixes, weren't right -- they caused trilobite
2000-06-08  Pavel  <pavel@eazel.com>

	* components/services/time/command-line/Makefile.am:
	* components/services/time/nautilus-view/Makefile.am:
	* components/services/time/service/Makefile.am:
	Ooops, my previous makefile fixes, weren't right -- they
	caused trilobite to get rebuild again each time.
	Replaced a phony rule with a timestamp file to fix
	the problem.
2000-06-08 19:19:27 +00:00
Darin Adler
801f815d35 Moved a state changed call in for the case where we discover new items in
* libnautilus-extensions/nautilus-directory-async.c:
	(dequeue_pending_idle_callback), (directory_load_done):
	Moved a state changed call in for the case where we discover
	new items in a directory. This fixes bugs 1066 and 1068.

	* src/nautilus-window.c: (nautilus_window_destroy):
	Fixed problem where we get occasional stray calls to
	"set_sensitive". The problem is that we must remove the
	idle call used by the window state machine when the window
	in question is destroyed.
2000-06-08 18:32:31 +00:00
Maciej Stachowiak
518179e94a Fix 1265 (OAF_ServerInfo__copy): Fine-tuning to avoid crashing.
* libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_mime_get_default_component_for_uri_internal): Fix 1265
	(OAF_ServerInfo__copy): Fine-tuning to avoid crashing.
	(nautilus_do_component_query): Fix 1270
	(strv_length, strv_concat): New utility functions.


	* RENAMING: Added more renaming ideas.
	* libnautilus-extensions/nautilus-mime-actions.c:
	(get_mime_type_from_uri): Adjusted a FIXME comment.
2000-06-08 11:35:38 +00:00
Maciej Stachowiak
ccf95fb85e Added more renaming ideas. Adjusted a FIXME comment.
* RENAMING: Added more renaming ideas.
	* libnautilus-extensions/nautilus-mime-actions.c:
	(get_mime_type_from_uri): Adjusted a FIXME comment.
2000-06-08 10:45:03 +00:00
Pavel Cisler
ecd17c906f Fix dependencies to make parallel make on MP machines work.
2000-06-08  Pavel Cisler <pavel@eazel.com>

	* nautilus-widgets/Makefile.am:
	Fix dependencies to make parallel make on MP machines work.

	* components/services/time/command-line/Makefile.am:
	* components/services/time/nautilus-view/Makefile.am:
	* components/services/time/service/Makefile.am:
	Fix dependencies to make parallel make work.
	Fix clean target to delete all the autogenerated files.
2000-06-08 09:10:43 +00:00
Andy Hertzfeld
de5a989b9c fixed problem with the gradient backgrounds on the aa canvas at small
fixed problem with the gradient backgrounds on the aa canvas at
	small scale factors by pinning the interpolation ratio between
	0.0 and 1.0
2000-06-08 05:44:24 +00:00
Darin Adler
5f76b1ecfe Fixed another storage leak, we forgot to call through to the parent
* libnautilus-extensions/nautilus-file.c: (destroy):
	Fixed another storage leak, we forgot to call through
	to the parent destroy.
	(nautilus_self_check_file): Fixed a leak in the test.

	* libnautilus-extensions/nautilus-string-list.c:
	(nautilus_string_list_new_from_tokens): Fixed a leak
	by calling g_strfreev instead of g_free.
2000-06-08 02:05:52 +00:00
John Sullivan
db67541e50 libnautilus-extensions/nautilus-mime-actions.h, New functions, return a
* libnautilus-extensions/nautilus-mime-actions.h,
	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_has_any_applications_for_uri),
	(nautilus_mime_has_any_components_for_uri): New functions,
	return a gboolean. Currently they just get the whole list
	and check if it's non-NULL, but perhaps this can be
	optimized later.

	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
	Deploy nautilus_mime_has_any_applications_for_uri where it
	was already doing this kind of check.

	* src/nautilus-applicable-views.c:
	(set_initial_content_id): removed an obsolete assert.
	(got_file_info_callback): Don't report no handler just because
	preferred list is empty; if any component is available use it.

	* src/nautilus-window.c: (nautilus_window_load_content_view_menu):
	Leave out the divider below the preferred list if the preferred
	list is empty.
2000-06-08 01:41:33 +00:00
Michael Fleming
58906d5fd6 Added libtrilobite to include path 2000-06-08 01:28:45 +00:00
Darin Adler
f94c3b495e Leak-checking-related fixes.
* libnautilus-extensions/nautilus-file.c: (destroy):
	Fixed a storage leak (we weren't freeing file->details).
	* libnautilus-extensions/nautilus-self-checks.c:
	(nautilus_check_string_result): Fixed a storage leak.

	* libnautilus-extensions/nautilus-directory-async.c:
	(metafile_read_done), (metafile_read_failed),
	(metafile_read_complete): Added some asserts.
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_self_check_directory): Added one more "assert".

	* libnautilus-extensions/nautilus-lib-self-check-functions.c:
	(nautilus_run_lib_self_checks): Formatting tweaks.
	* nautilus-widgets/nautilus-widgets-self-check-functions.c:
	(nautilus_widgets_run_self_checks): Formatting tweaks.

	* nautilus-widgets/nautilus-preference.c:
	(nautilus_widgets_self_check_preference): Made the test
	not repeat things so many times. It doesn't help find the
	leaks, it actually hurts :-)

	* src/nautilus-application.c: (nautilus_app_quit):
	* src/nautilus-main.c: (main):
	Moved the gnome_vfs_shutdown out to the main loop instead of
	putting it inside nautilus-application.c since that matches
	how we do the initializing.
2000-06-08 01:25:16 +00:00
Andy Hertzfeld
4a0b478733 implemented first cut at auto-completion for the location bar text entry.
implemented first cut at auto-completion for the location bar
	text entry.  For now, it only handles file uris.
2000-06-08 01:07:49 +00:00
Pavel Cisler
a86fc7449b Fix a memory thrasher Darin and John were running into.
2000-06-07  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-list.c: (nautilus_list_destroy):
	Fix a memory thrasher Darin and John were running into.

	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_component_for_uri_internal),
	(nautilus_mime_get_short_list_components_for_uri),
	(nautilus_mime_get_all_components_for_uri):
	Fix more leaks.
2000-06-08 00:48:32 +00:00
John Sullivan
462a1e17c6 Made switching location with a specified view work.
There's still a bug outstanding (1053) about doing this a more
	reliable way.

	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_switch_location): New helper function to
	switch location, specifying whether or not a new window
	should be used.
	(switch_location_and_view): Set the default component for this
	uri and then switch location.
	(fm_directory_view_activate_file_internal): Use
	fm_directory_view_switch_location to consolidate code.
2000-06-07 22:44:17 +00:00
John Sullivan
161d7b7d0b Did task 1058 (Activating an item in directory view needs
to use application when appropriate)

	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_activate_file_internal):
	Check default_action_type_for_uri and launch default application
	or switch location depending on result.
2000-06-07 22:12:41 +00:00
Andy Hertzfeld
f765a1466e made gradient backgrounds work for the anti-aliased canvas
made gradient backgrounds work for the anti-aliased canvas
2000-06-07 21:17:03 +00:00
John Sullivan
bc240a5990 Moved a g_return_if_fail so that it doesn't trigger erroneously when the
* src/nautilus-window.c: (chose_component_callback):
	Moved a g_return_if_fail so that it doesn't trigger erroneously
	when the window is closing.
2000-06-07 21:04:57 +00:00
Gene Z. Ragan
5e9bae57aa Fixed bug #1154. The Enter key was getting checking for improperly. A
2000-06-07  Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus-extensions/nautilus-icon-container.c:
	(key_press_event):
	Fixed bug #1154.  The Enter key was getting checking
	for improperly.  A check was being performed for
	being in editing mode after a check for not being in editing mode
	had occured.  Moved the check to the proper code block.
2000-06-07 20:29:42 +00:00
Darin Adler
032a094843 Updated code affected by destroy-notify addition to bonobo. Requires new
Updated code affected by destroy-notify addition to bonobo.
	Requires new bonobo.

	* libnautilus-extensions/nautilus-bonobo-extensions.c:
	(nautilus_bonobo_ui_handler_menu_set_toggle_appearance):
	Save and restore the destroy notify function as well as the
	callback. This requires using the new function
	bonobo_ui_handler_menu_remove_callback_no_notify to do right.

	* src/file-manager/fm-directory-view.c:
	(application_launch_parameters_new),
	(application_launch_parameters_free): Ref and unref the directory
	view object now that we correctly free this as needed.
	(viewer_launch_parameters_new), (viewer_launch_parameters_free):
	Ref and unref the directory view object now that we correctly free
	this as needed.
	(add_open_with_bonobo_menu_item): Add a destroy-notify function
	parameters and apply it using bonobo_ui_handler_menu_set_callback.
	(add_application_to_bonobo_menu): Free the launch parmaeters using
	a destroy-notify function.
	(add_component_to_bonobo_menu): Free the launch parmaeters using
	a destroy-notify function.

	* src/nautilus-window-menus.c: (append_bookmark_to_menu): Use a
	destroy-notify function to destroy the bookmark holder.
	(clear_appended_bookmark_items): Get rid of the code that gets
	the callback data and destroys it explicitly.

	* libnautilus/nautilus-clipboard.c: (add_menu_item):
	* src/file-manager/fm-directory-view.c: (insert_bonobo_menu_item),
	(fm_directory_view_real_merge_menus):
	* src/file-manager/fm-icon-view.c: (append_bonobo_menu_item),
	(fm_icon_view_merge_menus):
	Rename BonoboUIHandlerCallbackFunc -> BonoboUIHandlerCallback.

	* HACKING: Some reformatting.
2000-06-07 19:29:23 +00:00
John Sullivan
34ae785192 libnautilus-extensions/nautilus-gtk-extensions.h, New function, puts some
* libnautilus-extensions/nautilus-gtk-extensions.h,
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_button_set_padding): New function, puts some
	padding around the label (or other contained widget) in a
	button.
	* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
	Use this new function where it was doing this the long way.
	* libnautilus-extensions/nautilus-program-chooser.c:
	(nautilus_program_chooser_new): Use this new function to make
	the "Modify..." button not so squashed.
2000-06-07 19:04:19 +00:00
Ramiro Estrugo
95fadd13f0 Expose the fact that this component can grok text/html.
* components/mozilla/nautilus-mozilla-content-view.oafinfo:
Expose the fact that this component can grok text/html.
2000-06-07 17:27:55 +00:00
John Sullivan
e1f3efdc2c Final batch (for now) of adding bug numbers to FIXMEs.
* components/music/nautilus-music-view.c:
	(nautilus_music_view_update_from_uri):
	* components/services/install/lib/eazel-install-object.c:
	(eazel_install_destroy):
	* components/services/install/lib/eazel-install-xml-package-list.c:
	(generate_xml_package_list):
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_get_user_main_directory):
	* libnautilus-extensions/nautilus-gdk-extensions.c:
	(nautilus_fill_rectangle_with_color):
	* libnautilus-extensions/nautilus-icon-container.c:
	(nautilus_icon_container_add), (nautilus_icon_container_remove):
	* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_drag_data_received):
	* libnautilus-extensions/nautilus-undo-manager.c:
	(nautilus_undo_manager_undo):
	* libnautilus-extensions/nautilus-view-identifier.h:
	* libnautilus/nautilus-distributed-undo.idl:
	* nautilus-widgets/nautilus-user-level-manager.c:
	(nautilus_user_level_manager_get_user_level):
	Final batch (for now) of adding bug numbers to FIXMEs.
2000-06-07 17:19:15 +00:00
Pavel
a61761c901 Added missing unrefs to three exit places.
2000-06-07  Pavel  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-file.c: (nautilus_file_get):
	Added missing unrefs to three exit places.

	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_type_for_uri),
	(nautilus_mime_get_default_application_for_uri),
	(nautilus_mime_get_default_component_for_uri_internal),
	(nautilus_mime_get_short_list_applications_for_uri),
	(nautilus_mime_set_short_list_applications_for_uri),
	(nautilus_mime_set_short_list_components_for_uri),
	(nautilus_do_component_query):
	Fixed a ton of leaked mime type strings.
2000-06-07 10:45:48 +00:00
Andy Hertzfeld
89a131c938 more work on gradient background on the anti-aliased canvas; vertical
more work on gradient background on the anti-aliased canvas; vertical
	 gradients are working now, but horizontal ones still aren't
2000-06-07 08:40:51 +00:00
Raph Levien
37b2867525 Workaround to compile with older versions of Libart that didn't define
art_u16.
2000-06-07 08:18:00 +00:00
Pavel Cisler
7efb3c35cd Fixed leaked uris in each of the above.
2000-06-06  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_short_list_applications_for_uri),
	(nautilus_mime_get_short_list_components_for_uri),
	(nautilus_mime_get_all_applications_for_uri),
	(nautilus_mime_get_all_components_for_uri):
	Fixed leaked uris in each of the above.

	* nautilus-widgets/nautilus-preferences-item.c:
	(preferences_item_create_editable_string):
	Fix a leaked string.

	* nautilus-widgets/nautilus-preferences-item.c:
	(has_image_file):
	Add a missing gnome_vfs_file_info_init that will make
	gnome_vfs_get_file_info not leak.

	* src/nautilus-window-menus.c:
	(update_user_level_menu_items):
	Fix a leaked string.

	* src/nautilus-window-menus.c:
	(update_preferences_dialog_title):
	Fix a leaked title string.
2000-06-07 04:05:26 +00:00
Darin Adler
62ae037752 The main change here is revamping the undo manager.
To get a complete check-out you might have to delete
	the file named libnautilus/nautilus-undo.h that used
	to be a generated file and is now checked-in.

	* components/help/help-method.c: (vfs_module_transform):
	Removed a bogus extraneous FIXME.

	* libnautilus-extensions/Makefile.am:
	Moved the undo manager into libnautilus-extensions
	since it's not needed by Nautilus components.

	* libnautilus-extensions/nautilus-entry.c:
	* libnautilus-extensions/nautilus-icon-text-item.c:
	* libnautilus/nautilus-view.c:
	* src/nautilus-application.c:
	* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
	* src/nautilus-view-frame.c:
	* src/nautilus-window-private.h:
	* src/nautilus-window.c:
	Updated includes and a few small function name changes.

	* libnautilus-extensions/nautilus-gtk-extensions.h:
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(alive_disconnecter),
	(nautilus_gtk_signal_connect_full_while_alive):
	Added a new function that combines the features of
	gtk_signal_connect_full with gtk_signal_connect_while_alive.

	* libnautilus/nautilus-undo-context.h: [removed]
	* libnautilus/nautilus-undo-context.c: [removed]
	* libnautilus-extensions/nautilus-undo-context.h:
	* libnautilus-extensions/nautilus-undo-context.c:
	(impl_Nautilus_Undo_Context__destroy),
	(impl_Nautilus_Undo_Context__create),
	(impl_Nautilus_Undo_Context__get_undo_manager),
	(nautilus_undo_context_new), (destroy),
	(nautilus_undo_context_initialize_class):
	Rewrote this class to simplify it (after moving it here).

	* libnautilus/nautilus-undo-manager.h: [removed]
	* libnautilus/nautilus-undo-manager.c: [removed]
	* libnautilus/nautilus-undo-manager-private.h: [removed]
	* libnautilus-extensions/nautilus-undo-manager.h:
	* libnautilus-extensions/nautilus-undo-manager.c:
	(impl_Nautilus_Undo_Manager__destroy),
	(impl_Nautilus_Undo_Manager__create),
	(impl_Nautilus_Undo_Manager__append),
	(impl_Nautilus_Undo_Manager__forget),
	(nautilus_undo_manager_initialize),
	(nautilus_undo_manager_initialize_class),
	(nautilus_undo_manager_undo),
	(nautilus_undo_manager_add_transaction),
	(nautilus_undo_manager_forget_transaction),
	(nautilus_undo_manager_set_queue_depth),
	(nautilus_undo_manager_attach),
	(nautilus_undo_manager_add_interface), (update_undo_menu_item),
	(undo_menu_handler_connection_free),
	(undo_menu_handler_connection_free_cover),
	(nautilus_undo_manager_set_up_bonobo_ui_handler_undo_item):
	Rewrote this class to simplify it. Got rid of many old
	interfaces and added some new ones.

	* libnautilus/.cvsignore:
	* libnautilus/Makefile.am:
	Renamed the old nautilus-undo.idl to
	nautilus-distributed-undo.idl.  The IDL is only about the internal
	part of the undo framework.  Clients use calls that are in
	nautilus-undo.h. The part that's public needs the prettier name.

	* libnautilus/nautilus-undo.idl: [removed]
	* libnautilus/nautilus-distributed-undo.idl:
	Updated the names of menu-item-related things to better match the
	standard terminology.

	* libnautilus/nautilus-undo-private.h:
	Added this new header for things needed by the undo manager that
	are in libnautilus. Maybe we can eliminate this later.

	* libnautilus/nautilus-undo-transaction.h:
	* libnautilus/nautilus-undo-transaction.c:
	(impl_Nautilus_Undo_Transaction__destroy),
	(impl_Nautilus_Undo_Transaction__create),
	(impl_Nautilus_Undo_Transaction__get_undo_menu_item),
	(impl_Nautilus_Undo_Transaction__get_redo_menu_item),
	(impl_Nautilus_Undo_Transaction__get_operation_name),
	(impl_Nautilus_Undo_Transaction__undo),
	(nautilus_undo_transaction_new),
	(nautilus_undo_transaction_initialize),
	(remove_transaction_from_object),
	(nautilus_undo_transaction_destroy),
	(nautilus_undo_transaction_initialize_class),
	(nautilus_undo_transaction_add_atom),
	(nautilus_undo_transaction_undo),
	(nautilus_undo_transaction_add_to_undo_manager), (remove_atoms),
	(remove_atoms_cover),
	(nautilus_undo_transaction_unregister_object), (undo_atom_free),
	(undo_atom_undo_and_free), (undo_atom_free_cover),
	(undo_atom_undo_and_free_cover), (undo_atom_list_free),
	(undo_atom_list_undo_and_free):
	Rewrote and simplified this class and got rid of all uses of
	NautilusUndoable.

	* libnautilus/nautilus-undoable.h: [removed]
	* libnautilus/nautilus-undoable.c: [removed]
	* libnautilus/nautilus-undo.h:
	* libnautilus/nautilus-undo.c: (nautilus_undo_register),
	(nautilus_undo_register_full), (nautilus_undo_unregister),
	(nautilus_undo), (nautilus_undo_get_undo_manager),
	(undo_manager_ref), (undo_manager_unref),
	(undo_manager_unref_cover), (nautilus_undo_attach_undo_manager),
	(nautilus_undo_share_undo_manager), (set_up_bonobo_control),
	(nautilus_undo_set_up_bonobo_control):
	Added this new file with the public interface of the undo code and
	most of the basic implementation. Most of this was previously in
	nautilus-undoable.c.

	* nautilus-widgets/nautilus-preferences.c:
	(preferences_hash_node_free), (preferences_hash_node_add_callback),
	(preferences_hash_node_remove_callback),
	(preferences_hash_node_check_changes_func),
	(preferences_callback_node_alloc),
	(preferences_callback_node_free),
	(preferences_callback_node_free_func),
	(preferences_callback_node_invoke_func),
	(preferences_gconf_callback):
	Fixed a repeated spelling error in this file.

	* src/nautilus-application.c: (nautilus_app_init):
	* src/nautilus-view-frame.c: (nautilus_view_frame_load_client):
	* src/nautilus-window-menus.c: (edit_menu_undo_callback),
	(nautilus_window_initialize_menus):
	* src/nautilus-window.c: (nautilus_window_constructed):
	Changed to use public parts of the undo API instead of the old
	stuff that used private secret stuff. Many places use nice new
	convenient calls that do a lot of the work for you.
2000-06-07 02:47:10 +00:00
Pavel Cisler
aac364ac6b Fix leaks.
2000-06-06  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-icon-factory.c:
	(get_themed_icon_file_path),
	(nautilus_icon_factory_get_icon_for_file):
	Fix leaks.

	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_component_for_uri_internal):
	Add an assert to augument a funny if statement and trap
	a potential leak case.

	* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
	Fix a leak
2000-06-07 02:20:40 +00:00
Andy Hertzfeld
116d27f9f1 implemented gradient backgrounds for the anti-aliased canvas. This isn't
implemented gradient backgrounds for the anti-aliased canvas.  This
	isn't finished yet, so don't try to play around with it yet
2000-06-07 02:16:13 +00:00
Ramiro Estrugo
e5140a5a9f Use "/apps/nautilus" instead of "/nautilus" to conform to the
gconf "standard"

Thanks to andersca@gnu.org for pointing this out.
2000-06-07 01:09:58 +00:00
Maciej Stachowiak
a178b63859 Removed FIXME comments for 1277.
* libnautilus-extensions/nautilus-glib-extensions.c: Removed FIXME
	comments for 1277.
2000-06-07 00:46:38 +00:00
Maciej Stachowiak
bfe3d851ac Un #if-0'd out, and replaced the free that was killing things with a
* libnautilus-extensions/nautilus-glib-extensions.c:
	(nautilus_test_predicate), (nautilus_self_check_glib_extensions):
	Un #if-0'd out, and replaced the free that was killing things with
	a comment explaining why it is not necessary.
2000-06-07 00:38:09 +00:00
Ramiro Estrugo
1b1159ad69 Add missing g_free.
* nautilus-widgets/nautilus-preferences.c:
(nautilus_preferences_get_enum):
Add missing g_free.
2000-06-07 00:24:21 +00:00
Ramiro Estrugo
36582d3a08 Comment out broken nautilus_g_list_paritition tests and adeed FIXME blurb
* libnautilus-extensions/nautilus-glib-extensions.c:
(nautilus_self_check_glib_extensions):
Comment out broken nautilus_g_list_paritition tests and adeed
FIXME blurb with bug number.
2000-06-07 00:23:47 +00:00
John Sullivan
9012c14f7d Added bug numbers to FIXMEs.
* components/services/install/lib/eazel-install-object.c:
	(eazel_install_new_with_config):
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(do_rpm_install):
	* components/services/time/service/trilobite-eazel-time-service.c:
	(impl_Trilobite_Eazel_Time_Service_update_time):
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_get_sidebar_panel_view_identifiers),
	(global_preferences_register_sidebar_panels_preferences_for_ui):
	* libnautilus/nautilus-clipboard.c: (add_menu_items_callback):
	* nautilus-widgets/nautilus-preferences-item.c:
	(preferences_item_create_font_family):
	* nautilus-widgets/nautilus-preferences.c:
	(preferences_hash_node_check_changes_func),
	(preferences_gconf_callback):
	Added bug numbers to FIXMEs.
2000-06-06 23:55:09 +00:00
John Sullivan
21065d5155 Added bug numbers to FIXMEs.
* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_type_for_uri),
	(nautilus_mime_get_default_application_for_uri),
	(nautilus_mime_get_default_component_for_uri_internal),
	(nautilus_mime_get_short_list_applications_for_uri),
	(nautilus_mime_get_short_list_components_for_uri),
	(nautilus_mime_get_all_applications_for_uri),
	(nautilus_mime_set_short_list_applications_for_uri),
	(nautilus_mime_set_short_list_components_for_uri),
	(nautilus_do_component_query), (get_mime_type_from_uri):
	Added bug numbers to FIXMEs.
2000-06-06 23:36:29 +00:00
John Sullivan
4d83a5d8de Added bug numbers to FIXMEs.
* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_type_as_string):
	* src/file-manager/fm-directory-view.c:
	(bonobo_control_activate_callback), (new_folder_done),
	(fm_directory_view_real_create_background_context_menu_items):
	* src/file-manager/fm-icon-view.c:
	* src/file-manager/fm-list-view.c: (fm_list_handle_dropped_icons):
	* src/nautilus-application.c: (nautilus_app_startup):
	* src/nautilus-desktop-window.c:
	(nautilus_desktop_window_initialize),
	(nautilus_desktop_window_new), (realize):
	* src/nautilus-property-browser.c: (remove_background),
	(remove_emblem), (add_background_to_browser):
	* src/nautilus-sidebar.c:
	* src/nautilus-view-frame-bonobo-embeddable.c:
	(bonobo_subdoc_notify_location_change):
	* src/nautilus-window-manage-views.c:
	(nautilus_window_request_location_change):
	Added bug numbers to FIXMEs.
2000-06-06 23:11:30 +00:00
John Sullivan
2901a55b50 Added bug numbers to FIXMEs, and removed a few stale ones.
* components/music/nautilus-music-view.c:
	* components/services/trilobite/libtrilobite/trilobite-service.c:
	* src/nautilus-window-menus.c: (update_user_level_menu_items):
	* src/nautilus-window.c: (nautilus_window_constructed),
	(nautilus_window_real_set_content_view):
	Added bug numbers to FIXMEs, and removed a few stale ones.
2000-06-06 22:28:19 +00:00
John Sullivan
b123f29882 Made all the metadata keys in this file be #defines instead of in-line
* libnautilus-extensions/nautilus-metadata.h:
	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_type_for_uri),
	(nautilus_mime_get_default_application_for_uri),
	(nautilus_mime_get_default_component_for_uri_internal),
	(nautilus_mime_get_short_list_applications_for_uri),
	(nautilus_mime_get_short_list_components_for_uri),
	(nautilus_mime_get_all_applications_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_extend_all_applications_for_uri),
	(nautilus_mime_remove_from_all_applications_for_uri),
	(get_explicit_content_view_iids_from_metafile):
	Made all the metadata keys in this file be #defines
	instead of in-line strings.
2000-06-06 21:23:30 +00:00
John Sullivan
0b49bb86eb Fixed bug 1219 (saved viewer not used if not in preferred list)
* libnautilus-extensions/nautilus-metadata.h:
	Removed NAUTILUS_METADATA_KEY_INITIAL_VIEW 'cuz it's not needed
	anymore.

	* libnautilus-extensions/nautilus-mime-actions.h:
	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_component_for_uri_internal):
	New private function, returns both the default component
	and whether it was user-chosen (as opposed to just inherited
	from the value for this MIME type).
	(nautilus_mime_get_default_component_for_uri): Now calls
	this new function. Also fixed a bug where it was using a
	different metadata string than _set_default_, and thus
	never retrieving the stored value.
	(nautilus_mime_is_default_component_for_uri_user_chosen):
	New public function, reports whether the default component
	was chosen by the user or just inherited.

	* src/nautilus-window.c: (nautilus_window_switch_views):
	Call nautilus_mime_set_default_component_for_uri when the
	user explicitly chooses a view, rather than setting the
	now-obsolete "INITIAL_VIEW" metadata.

	* src/nautilus-applicable-views.c:
	(got_file_info_callback): Rename "fallback_id" to "default_id"
	and eliminate code that adds default component to menu here.
	The current view is always added to the menu in a special way
	if required later.
	(set_initial_content_id): Don't get remembered value, instead
	use nautilus_mime_is_default_component_for_uri_user_chosen to
	choose priority between default component and referring component.
	And don't require that the initial component is in the preferred
	list.
2000-06-06 20:49:07 +00:00
Andy Hertzfeld
78132c9146 made tiled image backgrounds draw properly on the anti-aliased canvas
made tiled image backgrounds draw properly on the anti-aliased
       canvas
2000-06-06 18:07:46 +00:00
Mathieu Lacage
1741ee4c48 ok, now, nautilus compiles here. However, there are some issues in the code: gnome_datadir_file is not used with the right semantics which results in breackage. Will correct this later. 2000-06-06 10:16:12 +00:00
Mathieu Lacage
3fef6a603c a bunch of small fixes to make it compile when prefix strange. Far from finished. Note there is a hack in libnautilus/Makefile.am but no one should suffer from it. Only me so... I will remov it when I get the right solution which is hacking gnome-config. 2000-06-06 09:18:00 +00:00
Ramiro Estrugo
a52bf479f5 New type of preference, EDITABLE_STRING.
* nautilus-widgets/nautilus-preferences-item.c:
(preferences_item_construct),
(preferences_item_create_editable_string),
(preferences_item_create_font_family),
(preferences_item_create_icon_theme),
(preferences_item_create_toolbar_icon_theme),
(text_item_changed_callback), (editable_string_changed_callback):
* nautilus-widgets/nautilus-preferences-item.h:
New type of preference, EDITABLE_STRING.

* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog):
Add a new pane, navigation pane.

Add support for manually keying in a home page.  Needs some more
work to work better.

* nautilus-widgets/Makefile.am:
* nautilus-widgets/nautilus-caption.c:
(nautilus_caption_initialize_class), (nautilus_caption_initialize),
(nautilus_caption_destroy), (nautilus_caption_new),
(nautilus_caption_set_title_label),
(nautilus_caption_get_title_label), (nautilus_caption_set_child):
* nautilus-widgets/nautilus-caption.h:
New class.  Common stuff for caption widgets.

* nautilus-widgets/nautilus-string-picker.c:
(nautilus_string_picker_initialize_class),
(nautilus_string_picker_initialize), (entry_changed_callback),
(nautilus_string_picker_set_string_list):
* nautilus-widgets/nautilus-string-picker.h:
Subclass from caption class.

* nautilus-widgets/nautilus-text-caption.h:
* nautilus-widgets/nautilus-text-caption.c:
(nautilus_text_caption_initialize_class),
(nautilus_text_caption_initialize),
(nautilus_text_caption_destroy), (entry_changed_callback),
(nautilus_text_caption_new), (nautilus_text_caption_get_text),
(nautilus_text_caption_set_text):
New caption sublcass that manages an text widget.

* nautilus-widgets/test-nautilus-widgets.c: (main),
(test_string_picker), (test_text_caption),
(string_picker_changed_callback), (text_caption_changed_callback):
Update for new class and caption changes.
2000-06-06 01:23:08 +00:00
Ramiro Estrugo
a3a7ab42f1 Update FIXME blurbs to reflect new bugs filed for these issue. 2000-06-06 01:18:25 +00:00
John Sullivan
642653350c Used newly-publicized functions from gnome-vfs-mime-handlers.c
to avoid replicating a bunch of code.

	* libnautilus-extensions/nautilus-mime-actions.c:
	(gnome_vfs_mime_application_matches_id),
	(gnome_vfs_mime_component_matches_id),
	(gnome_vfs_mime_id_in_application_list),
	(gnome_vfs_mime_id_in_component_list),
	(id_list_from_application_list),
	(id_list_from_component_list):
	Removed these functions.

	(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):
	Rewrote to call newly-publicized gnome-vfs-mime functions.
2000-06-05 22:21:26 +00:00
John Sullivan
715b2e7186 Cleaned up the directory view code that launches applications
or switches to viewers so that when bugs 1053 and 1072 are
	fixed it will be trivial to finish this code.

	* libnautilus-extensions/nautilus-gtk-extensions.h,
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_signal_connect_free_data_custom): New function
	to specify a GtkDestroyNotify function when connecting to a
	signal, without having to specify everything else in
	gtk_signal_connect_full.
	(nautilus_gtk_signal_connect_free_data): Changed to call
	nautilus_gtk_signal_connect_free_data_custom.

	* libnautilus-extensions/nautilus-view-identifier.c:
	(nautilus_view_identifier_copy): Made it handle NULL parameter.

	* src/file-manager/fm-directory-view.c:
	(application_launch_parameters_new),
	(application_launch_parameters_free),
	(viewer_launch_parameters_new),
	(viewer_launch_parameters_free): New helper functions for
	dealing with the structs needed to launch an app or viewer.

	(fm_directory_view_launch_application): New wrapper for
	nautilus_launch_application that will let us handle
	errors in a single place.

	(switch_location_and_view): New bottleneck function or going
	to a particular location with a particular viewer. This
	doesn't work yet (bug 1053) and it currently puts up a
	message box telling the user so.

	(fm_directory_view_chose_application_callback),
	(fm_directory_view_chose_component_callback), (choose_program),
	(choose_application), (choose_component),
	(launch_application_from_menu_item), (view_uri_from_menu_item),
	(add_application_to_gtk_menu), (add_component_to_gtk_menu),
	(create_open_with_gtk_menu), (bonobo_launch_application_callback),
	(add_application_to_bonobo_menu),
	(bonobo_open_location_with_viewer_callback),
	(add_component_to_bonobo_menu):
	Reworked to pass around launch_parameters structs instead of other
	bits and pieces of info. Darin will be happy to know that info
	needed for menu item callbacks is now bundled up and passed as
	the callback data instead of sneaking in as gtk_object_data.
2000-06-05 20:49:11 +00:00
John Sullivan
c3c4ef55af Fixed bug 1118: Generic error message for bogus ftp location
* src/nautilus-applicable-views.h:
	Added NAUTILUS_NAVIGATION_RESULT_UNDEFINED to enum.
	* src/nautilus-applicable-views.c: (got_file_info_callback):
	Used this new value to fix bug where early goto was not
	setting result code. Goto considered evil.
	* src/nautilus-window-manage-views.c:
	(nautilus_window_end_location_change_callback):
	Added "complain to sullivan@eazel.com" message when an
	unhandled result code is stumbled across.
2000-06-05 16:30:19 +00:00
Ramiro Estrugo
5aef445a0b Bug 647. Should report missing special directories to user.
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_get_user_directory), (nautilus_get_desktop_directory),
(nautilus_get_user_main_directory):
Fixed uninitialized static pointers.  Remove FIXME blurbs are
error checking happens "above" in nautilus-application now.

* src/nautilus-application.c:
(nautilus_app_check_user_directories), (nautilus_app_startup):
Add error checking for missing user directories with appropiate
FIXME for current bad names for these dirs.
2000-06-05 15:49:29 +00:00
Ramiro Estrugo
56f04f296c Added FIXME note for bug 1117.
* libnautilus-extensions/nautilus-file-utilities.c:
Added FIXME note for bug 1117.
2000-06-05 15:42:28 +00:00
Ramiro Estrugo
c64e1a2871 New function. Return the string list items concatenated into a single
* libnautilus-extensions/nautilus-string-list.c:
(nautilus_string_list_as_concatenated_string),
(nautilus_self_check_string_list):
* libnautilus-extensions/nautilus-string-list.h:
New function.  Return the string list items concatenated into a
single string delimited by a given delimeter.
2000-06-05 15:18:40 +00:00
Andy Hertzfeld
012025c7c1 dont install any web-based linksets by default
dont install any web-based linksets by default
2000-06-05 08:51:19 +00:00
Andy Hertzfeld
e7d660625e added some web linksets and made nautilus-link support remote images by
added some web linksets and made nautilus-link support remote images by
       fetching them through http and caching them locally.
2000-06-05 08:21:16 +00:00
Andy Hertzfeld
68eeed5cdd generalized toolbar icon themes to support any number, and reorganized
generalized toolbar icon themes to support any number, and
	reorganized appearance preference panel to group the icon theme
	selectors together.  Also, added a cleaner version of the zoom icon.
2000-06-05 04:33:56 +00:00
Ian McKellar
7c067c5360 Fix for simple typo in nautilus-widgets/nautilus-preferences.c 2000-06-03 19:25:22 +00:00
Darin Adler
7cc83c942b Fixed a component/application typo.
* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_remove_component_from_short_list_for_uri):
	Fixed a component/application typo.
2000-06-03 01:29:11 +00:00
Darin Adler
ebb487efba Tiny tweak. (nautilus_mime_get_short_list_components_for_uri): Fixed a
* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_type_for_uri):
	Tiny tweak.
	(nautilus_mime_get_short_list_components_for_uri):
	Fixed a double destroy and a storage leak.
2000-06-03 00:41:27 +00:00
Andy Hertzfeld
8b3bbb7b27 here's a scaled up version of the services hand, to compensate for the
here's a scaled up version of the services hand, to compensate for
       the change in scale factor introduced in my previous check-in.
2000-06-03 00:31:19 +00:00
Darin Adler
b583918e4c [removed] Changed to use the new trash icon Arlo checked in and removed
* data/linksets/desktop.xml:
	* icons/Makefile.am:
	* icons/trash.png: [removed]
	Changed to use the new trash icon Arlo checked in and removed
	the old one.
2000-06-03 00:08:59 +00:00
John Sullivan
fd6f85b6d7 Provided implementations for these functions (formerly empty).
* libnautilus-extensions/nautilus-mime-actions.c:
	(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):
	Provided implementations for these functions (formerly empty).
	Unfortunately bad things happen when I invoke them. Will
	debug now.
	(id_list_from_application_list), (id_list_from_component_list),
	(gnome_vfs_mime_application_matches_id),
	(gnome_vfs_mime_component_matches_id), (component_has_id_in_list),
	(gnome_vfs_mime_id_in_application_list),
	(gnome_vfs_mime_id_in_component_list): New helper functions all
	used to implement the add/remove functions.
2000-06-03 00:05:49 +00:00
Ramiro Estrugo
6eedbb72c4 Add a boolean preference for toggling the display of hidden files.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog):
Add a boolean preference for toggling the display of hidden files.

In order to make space for this one, i moved the remote views one
to a new tradeoffs pane, which was commandeered by sullivan.
2000-06-03 00:04:06 +00:00
Andy Hertzfeld
fe8d6ede95 added a new theme for vector based icons, and a generalized theme selector
added a new theme for vector based icons, and a generalized
	  theme selector to the preferences dialog
2000-06-02 23:49:16 +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
John Sullivan
c846f98258 libnautilus-extensions/nautilus-mime-actions.h, New prototypes and empty
* libnautilus-extensions/nautilus-mime-actions.h,
	* libnautilus-extensions/nautilus-mime-actions.c:
	(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):
	New prototypes and empty function bodies, convenience
	covers for modifying the short lists. Not yet implemented,
	but callable.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(add_to_short_list_for_file), (remove_from_short_list_for_file),
	(add_to_short_list_for_type), (remove_from_short_list_for_type),
	(run_program_configurator_callback): Wired up things so if
	the user switches radio buttons in the "Modify details" dialog,
	the right code is called when they hit OK. But this right code
	doesn't yet do anything.
2000-06-02 22:38:38 +00:00
Arlo Rose
2a8d3e9b89 Added the new trash icons
2000-06-02  Arlo Rose  <arlo@eazel.com>

        * icons/Makefile.am:
        * icons/trash-empty.png:
        * icons/trash-full.png:
        Added the new trash icons
2000-06-02 22:15:43 +00:00
Anders Carlsson
52c63f19c5 Reduce flicker by setting the back pixmap to NULL on realize.
2000-06-02  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-extensions/nautilus-icon-container.c (realize):
	Reduce flicker by setting the back pixmap to NULL on realize.
2000-06-02 21:35:10 +00:00
John Sullivan
aa407de891 Finished task 968 (Add one-time viewer choice to "View as"
menu temporarily)

	* libnautilus-extensions/nautilus-view-identifier.h,
	* libnautilus-extensions/nautilus-view-identifier.c:
	(nautilus_view_identifier_copy): New function, does the obvious.

	* src/nautilus-applicable-views.h: Made NautilusNavigationInfo
	store a NautilusViewIdentifier instead of just the iid part
	in initial_content_iid (now initial_content_id).

	* src/nautilus-applicable-views.c: (set_initial_content_id),
	(got_file_info_callback), (nautilus_navigation_info_free):
	Reworked code to handle change from char *iid to NautilusViewIdentifier.

	* src/nautilus-window.h: New field for content_view_id,
	a NautilusViewIdentifier for the current view.

	* src/nautilus-window-private.h,
	* src/nautilus-window-manage-views.c:
	(nautilus_window_load_content_view): Now takes a
	NautilusViewIdentifier * instead of just a char *,
	and resets content_view_id field.
	(nautilus_window_update_state): Reworked code to handle
	initial_content_iid change.

	* src/nautilus-window.c:
	(nautilus_window_destroy): Destroy content_view_id.
	(nautilus_window_switch_views), (view_menu_switch_views_callback):
	Reworked to take NautilusViewIdentifier * instead of just char *.
	(create_content_view_menu_item): New helper function, extracted
	from nautilus_window_load_content_view_menu.
	(replace_special_current_view_in_content_view_menu): New
	function, does the work of putting the current content view
	as the initial item in the menu, followed by a separator.
	(nautilus_window_synch_content_view_menu): Calls
	replace_special_current_view_in_content_menu if the current view
	is not found in the menu.
	(chose_component_callback): Took out fixed FIXMEs.
	(nautilus_window_load_content_view_menu): Now calls function
	that was extracted from it.
2000-06-02 20:57:37 +00:00
Ramiro Estrugo
bbb7d78b40 Task 667. Unhardcode font strings.
* libnautilus-extensions/nautilus-font-factory.c:
(nautilus_get_current_font_factory), (nautilus_font_factory_get),
(nautilus_font_factory_new), (nautilus_font_factory_initialize),
(nautilus_font_factory_initialize_class), (font_hash_node_alloc),
(font_hash_node_free), (font_hash_node_lookup),
(font_hash_node_lookup_with_insertion),
(nautilus_font_factory_get_font_by_family),
(nautilus_font_factory_get_font_from_preferences),
(nautilus_font_factory_get_fallback_font), (make_font_name_string):
* libnautilus-extensions/nautilus-font-factory.h:
New class to obtain fonts either by family or from preferences.  A
specific size can be requested.

Right now its a pretty dumb class, but it can be enhanced to do
smart things like looking at gtkstyles and/or smarted choosing of
fonts if the specifically requested size is not avialable.

* components/hardware/nautilus-hardware-view.c: (setup_form_title):
* components/music/nautilus-music-view.c:
(nautilus_music_view_initialize):
* components/rpmview/nautilus-rpm-view.c:
(nautilus_rpm_view_initialize):
* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
(setup_form_title):
* libnautilus-extensions/Makefile.am:
* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_initialize):
* src/nautilus-property-browser.c:
(nautilus_property_browser_initialize):
* src/nautilus-sidebar-title.c: (nautilus_index_title_update_info):
Unhardcode xlfd font strings in all of these and use the font
factory instead.
2000-06-02 20:34:43 +00:00
Pavel Cisler
9adeb1955d Fix a bug that caused a crash when dropping dragged items back in their
2000-06-02  Pavel Cisler  <pavel@eazel.com>

	* src/file-manager/fm-list-view.c: (fm_list_handle_dropped_icons):
	Fix a bug that caused a crash when dropping dragged items back
	in their original location.

	* libnautilus-extensions/nautilus-drag.c:
	(nautilus_drag_drag_data_get):
	Tweak whitespace.
2000-06-02 20:30:49 +00:00
Darin Adler
abf488d692 Fix typo that caused us to unref a NULL GdkBitmap.
* libnautilus-extensions/nautilus-drag.c:
	(nautilus_drag_finalize): Fix typo that caused us to unref a NULL
	GdkBitmap.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	(nautilus_icon_dnd_fini): Fix double-free that caused everything
	to go haywire.

	* src/file-manager/fm-directory-view.c:
	(add_component_to_gtk_menu), (add_component_to_bonobo_menu):
	Marked a couple of strings for localization that were missed.
2000-06-02 18:52:59 +00:00
Darin Adler
a51a8ee58c Ignore some Makefile and Makefile.in files.
* components/services/install/idl/.cvsignore:
	* components/services/time/idl/.cvsignore:
	Ignore some Makefile and Makefile.in files.

	* data/linksets/Makefile.am:
	* data/linksets/desktop.xml:
	Added a link set for the trash on the desktop.

	* icons/Makefile.am:
	Added a trash icon (actually a copy of the Nautilus icon right
	now :-).

	* libnautilus-extensions/nautilus-link-set.h:
	* libnautilus-extensions/nautilus-link-set.c: (create_new_link),
	(nautilus_link_set_install), (nautilus_link_set_remove):
	Fixed some URI-related issues and added a special case for the ~
	character so we can have link sets that are for the home directory.

	* libnautilus-extensions/nautilus-string.c:
	(nautilus_str_capitalize): Got rid of the unneeded call to strlen.
	strlen == 0 is the slowest way I know to check for an empty string.
	Also check islower before calling toupper for paranoia like the
	calls in glib do (internally).

	* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
	Install the desktop link set when we are created. For now this
	installs the trash (in a fairly lame way).

	* src/nautilus-property-browser.c: (remove_color),
	(add_color_to_file), (make_properties_from_xml_node),
	(nautilus_property_browser_update_contents):
	Changed code to not reference "childs" directly so it's easy to
	switch to a new version of gnome-xml.

	* test/.cvsignore: Ignore test-nautilus-mime-actions-set.
2000-06-02 17:25:00 +00:00
Ramiro Estrugo
8e29ec7faf Task 518. Support for changing preferecens individually
within each confgurable user level.

* libnautilus-extensions/nautilus-global-preferences.h:
Change all preferences strings to not include the "/nautilus"
prefix.  The prefix is not automatically computed by the prefences
api taking into account the user level.

Add (nautilus_global_preferences_dialog_update) to rebuild the
preferences dialog when the user level changes.

* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_get_dialog),
(global_preferences_register_sidebar_panels_preferences_for_ui),
(global_preferences_register_with_defaults),
(global_preferences_register_boolean_with_defaults),
(global_preferences_register_string_with_defaults),
(global_preferences_register_enum_with_defaults),
(global_preferences_register_for_ui),
(global_preferences_initialize_if_needed),
(nautilus_global_preferences_show_dialog),
(nautilus_global_preferences_hide_dialog),
(nautilus_global_preferences_set_dialog_title),
(nautilus_global_preferences_dialog_update),
(nautilus_global_preferences_shutdown):
remove the user level tracking hack.  We now set default values
for each of the user levels.

* libnautilus-extensions/nautilus-icon-container.c:
(nautilus_icon_container_initialize):
Simplified preference callback api by having a single add_callback
function.  Use it here.

* libnautilus-extensions/nautilus-list.c:
(nautilus_list_initialize):
Simplified preference callback api by having a single add_callback
function.  Use it here.

* src/file-manager/fm-directory-view.c:
(fm_directory_view_initialize):
Simplified preference callback api by having a single add_callback
function.  Use it here.

* nautilus-widgets/nautilus-preference.c:
(preference_initialize_if_needed), (preference_hash_node_alloc),
(preference_hash_node_free_func), (preference_hash_node_free),
(preference_register), (preference_hash_node_lookup),
(preference_hash_node_lookup_with_registration),
(nautilus_preference_shutdown), (nautilus_preference_find_by_name),
(nautilus_preference_set_info_by_name),
(nautilus_preference_enum_add_entry_by_name):
* nautilus-widgets/nautilus-preference.h:
Move the preference description hash table here from
nautilus-preferences.  These are preferences that are expected to
have nice defaults as well as descriptions and possibly extra data
for the preferences widgets to use (like enumeration values)

I moved the tabulation and hashing stuff intactly even though it
contains many turds.  I plan to fix these soon.

* nautilus-widgets/nautilus-preferences-group.c:
(nautilus_preferences_group_add_item):
* nautilus-widgets/nautilus-preferences-item.c:
(preferences_item_construct), (enum_radio_group_changed_callback):
Update for the above.

* nautilus-widgets/nautilus-preferences.c:
(preferences_hash_node_alloc), (preferences_hash_node_free),
(preferences_hash_node_add_callback),
(preferences_hash_node_remove_callback),
(preferences_hash_node_check_changes_func),
(preferneces_callback_node_invoke_func), (preferences_register),
(preferences_hash_node_lookup_with_registration),
(preferences_gconf_callback), (user_level_changed_callback),
(preferences_initialize_if_needed),
(nautilus_preferences_add_callback),
(nautilus_preferences_set_boolean),
(nautilus_preferences_get_boolean),
(nautilus_preferences_set_enum), (nautilus_preferences_get_enum),
(nautilus_preferences_set), (nautilus_preferences_get),
(nautilus_preferences_shutdown):
* nautilus-widgets/nautilus-preferences.h:
Move the tabulation of nice preferences to nautilus-preference.

Install one gconf notification for each user level.  Remove all
the extra unused registration parameters.

Use generated keys that take into account the current user level
to communicato with GConf.

Keep track of user level changes so that we can compare
preferences between user levels and fire callbacks accordingly.
This simplifies the lifes of preferences callers as they can
continue to install one simple callback as before.  They will get
notified when a preference changes for whatever reason.  That
could be the user manaually tweaking it, or a sweeping user level
change.

Again, i tried to keep as much of the original hashing logic
intact.  It needs cleaning up as well.

* nautilus-widgets/nautilus-user-level-manager.c:
(nautilus_user_level_manager_set_default_value_if_needed),
(nautilus_user_level_manager_compare_preference_between_user_levels
):
* nautilus-widgets/nautilus-user-level-manager.h:
Add a public function to determine whether a preference is the
same between 2 user levels.

* nautilus-widgets/test-nautilus-preferences.c:
(register_global_preferences):
Update to reflect api changes.

* src/nautilus-window-menus.c: (nautilus_window_initialize_menus),
(user_level_changed_callback),
(get_customize_user_level_setttings_menu_string),
(update_preferences_dialog_title):
Update the preferences dialog whenever the user level changes.
This is an easy way to have the dialog reflect reallity.

It would be a lot nicer it the contents updated on the fly instead
of rebuilding the whole thing.  I can do that later.
2000-06-02 16:41:42 +00:00
Pavel Cisler
92d5f261e6 Fixed a problem where gtk_drag_begin was being called repetitively. Made
2000-06-02  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_button_press), (nautilus_list_button_release),
	(nautilus_list_motion):
	Fixed a problem where gtk_drag_begin was being called repetitively.
	Made it so that more than one item can be grabbed and dragged in
	list view.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_moved):
	Removed a forgotten g_message.
2000-06-02 16:29:26 +00:00
Pavel Cisler
38d84fb3c9 Move more code from nautilus-icon-dnd.c to the common nautilus-drag.c. Add
2000-06-02  Pavel Cisler <pavel@eazel.com>

	* libnautilus-extensions/nautilus-drag.c:
	* libnautilus-extensions/nautilus-drag.h:
	(add_one_gnome_icon_list), (add_one_uri_list),
	(nautilus_drag_drag_data_get):
	Move more code from nautilus-icon-dnd.c to the common
	nautilus-drag.c. Add a common nautilus_drag_drag_data_get
	function that gets passed iterators and assembles selection
	data.

	* libnautilus-extensions/nautilus-gtk-extensions.c:
	* libnautilus-extensions/nautilus-gtk-extensions.h:
	(nautilus_gtk_marshal_NONE__POINTER_INT_INT_INT):
	Added more marshalling glue. One day there will be enough
	for everyone.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	(nautilus_icon_container_each_selected_icon):
	(icon_get_data_binder), (each_icon_get_data_binder),
	(drag_data_get_callback):
	Iterators and binders to support the NautilusIconContainer
	flavor of nautilus_drag_drag_data_get.

	* libnautilus-extensions/nautilus-list.c:
	* libnautilus-extensions/nautilus-list.h:
	* src/file-manager/fm-list-view.c:
	(nautilus_list_initialize_class), (nautilus_list_initialize),
	(nautilus_list_drag_begin), (nautilus_list_drag_end),
	(nautilus_list_drag_leave), (nautilus_list_drag_motion),
	(nautilus_list_drag_data_received), (nautilus_list_set_selection),
	(nautilus_list_each_selected_row),
	(row_get_data_binder), (each_icon_get_data_binder),
	(fm_list_drag_data_get), (create_list):
	Hookup fm_list_drag_data_get to support drags originating from the
	list view. Connect the drag_data_get to fm_list_view and
	handle it there.

	* libnautilus-extensions/nautilus-list.c:
	* src/file-manager/fm-list-view.c:
	(nautilus_list_initialize_class), (fm_list_handle_dropped_icons):
	Fix an improperly marshalled signal.
2000-06-02 13:51:23 +00:00
Ramiro Estrugo
8cef10fda0 Once again, back to implicit initialization of preferences stuff. It makes
* components/history/nautilus-history-view.c: (main):
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_get_dialog),
(global_preferences_register_for_ui),
(global_preferences_initialize_if_needed),
(nautilus_global_preferences_shutdown):
* libnautilus-extensions/nautilus-global-preferences.h:
* nautilus-widgets/nautilus-preferences-group.c:
(nautilus_preferences_group_add_item):
* nautilus-widgets/nautilus-preferences-item.c:
(preferences_item_construct), (nautilus_preferences_item_new):
* nautilus-widgets/nautilus-preferences-pane.c:
(nautilus_preferences_pane_add_item_to_nth_group):
* nautilus-widgets/nautilus-preferences.c: (preferences_register),
(set_default_value_if_needed), (preferences_hash_node_lookup),
(preferences_hash_node_lookup_with_registration),
(preferences_gconf_callback), (preferences_initialize_if_needed),
(nautilus_preferences_find_preference),
(nautilus_preferences_set_info),
(nautilus_preferences_enum_add_entry),
(nautilus_preferences_add_boolean_callback),
(nautilus_preferences_add_enum_callback),
(nautilus_preferences_add_callback),
(nautilus_preferences_set_boolean),
(nautilus_preferences_get_boolean),
(nautilus_preferences_set_enum), (nautilus_preferences_get_enum),
(nautilus_preferences_set), (nautilus_preferences_get),
(nautilus_preferences_shutdown):
* nautilus-widgets/nautilus-preferences.h:
* nautilus-widgets/test-nautilus-preferences.c: (main),
(register_global_preferences):
* src/nautilus-main.c: (main):
Once again, back to implicit initialization of preferences stuff.
It makes things simpler.
2000-06-02 11:46:54 +00:00
Ramiro Estrugo
6c112717e7 Some dumb fixes. Use proper guint type for user_level arguments. Fix some
* nautilus-widgets/nautilus-user-level-manager.c:
(nautilus_user_level_manager_get_user_level),
(nautilus_user_level_manager_make_gconf_key),
(nautilus_user_level_manager_make_current_gconf_key),
(nautilus_user_level_manager_get_user_level_as_string):
* nautilus-widgets/nautilus-user-level-manager.h:
* src/nautilus-window-menus.c: (get_customize_user_level_string):
Some dumb fixes.  Use proper guint type for user_level arguments.
Fix some cut-n-pasted code.  Rename "get_user_level_string" to
"get_user_level_as_string"
2000-06-02 11:08:40 +00:00
Eskil Heyn Olsen
8bbdacb135 Ensured that the current stuff in cvs builds a working installer. (closing
* components/services/install/lib/eazel-install-rpm-glue.c:
	(do_rpm_install):
	* components/services/install/lib/eazel-install-types.c:
	(packagedata_new_from_rpm_header):
	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/prescript:
	Ensured that the current stuff in cvs builds a working installer.
	(closing bug#969)
2000-06-02 10:58:13 +00:00
Ramiro Estrugo
ba852fa33a No longer need to retrieve the gconf_client from the user level manager.
* nautilus-widgets/nautilus-preferences.c:
(nautilus_preferences_initialize):
* nautilus-widgets/nautilus-user-level-manager.c:
* nautilus-widgets/nautilus-user-level-manager.h:
No longer need to retrieve the gconf_client from the user level
manager.  The bug preventing multiple clients has been fixed in gconf.
2000-06-02 10:52:24 +00:00
Ramiro Estrugo
98bf8d776b Add functions for hiding the preferences dialog and changing its title.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_close_dialog_callback),
(nautilus_global_preferences_show_dialog),
(nautilus_global_preferences_hide_dialog),
(nautilus_global_preferences_set_dialog_title):
* libnautilus-extensions/nautilus-global-preferences.h:
Add functions for hiding the preferences dialog and changing its
title.  Also, connect a "closed" signal to prevent the dialog from
killing itself since its singleton and lives for the entire life
of the application.

* nautilus-widgets/nautilus-user-level-manager.c:
(nautilus_user_level_manager_get_user_level),
(nautilus_user_level_manager_make_current_gconf_key),
(nautilus_user_level_manager_get_user_level_string):
* nautilus-widgets/nautilus-user-level-manager.h:
Make nautilus_user_level_manager_get_user_level_string () public.

* src/nautilus-window-menus.c: (settings_menu_customize_callback),
(nautilus_window_initialize_menus), (user_level_changed_callback),
(update_user_level_menu_items), (get_customize_user_level_string),
(get_customize_user_level_setttings_menu_string):
Change the customize menu item's label based on the user level.
Make it insensitive for the novice user level.  Close the
preferences dialog when the user level changes to novice.
2000-06-02 10:47:35 +00:00
Ramiro Estrugo
42cabf1bf3 Add a function to capitalize strings along with check tests.
* libnautilus-extensions/nautilus-string.c:
(nautilus_str_capitalize), (nautilus_self_check_string):
* libnautilus-extensions/nautilus-string.h:
Add a function to capitalize strings along with check tests.
2000-06-02 10:46:38 +00:00
Ramiro Estrugo
c8b9819108 Add hook to check which uris are passed back to nautilus.
* components/mozilla/nautilus-mozilla-content-view.c:
(mozilla_open_uri_callback), (mozilla_is_uri_handled_by_nautilus):
Add hook to check which uris are passed back to nautilus.
2000-06-02 10:44:30 +00:00
Eskil Heyn Olsen
11ea07b342 Docs with my scetches on how to redo the rpm-glue to make
* components/services/docs/installer-dep-check:
	Docs with my scetches on how to redo the rpm-glue to make
	eazel-install-lib autofetch deps.

	* components/services/install/command-line/eazel-alt-install.c:
	(eazel_download_progress):
	Borked, but compiles again. Will update when libinstall stabilizes.

	* components/services/install/lib/eazel-install-object.c:
	(gtk_marshal_NONE__POINTER_ENUM_POINTER),
	(eazel_install_class_initialize),
	(eazel_install_emit_download_failed),
	(eazel_install_emit_install_failed),
	(eazel_install_emit_uninstall_failed):
	Revamped the install_failed signal to take a PackageData object
	instead of char * name.

	* components/services/install/lib/eazel-install-protocols.c:
	(http_fetch_remote_file):
	* components/services/install/lib/eazel-install-public.h:
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(install_new_packages), (download_a_package),
	(download_all_packages), (install_all_packages),
	(uninstall_packages), (uninstall_a_package),
	(build_packagedata_list_from_deps), (do_rpm_install),
	(do_rpm_uninstall), (ensure_deps_are_fetched):
	* components/services/install/lib/eazel-install-types.c:
	(categorydata_destroy_foreach), (categorydata_destroy),
	(packagedata_new_from_rpm_header), (packagedata_destroy_foreach),
	(packagedata_destroy):
	* components/services/install/lib/eazel-install-types.h:
	Doing a lot of hacking to prepare for the autofetch stuff.

	* nautilus-installer/src/prescript:
	* nautilus-installer/src/HACKING:
	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.am:
	* nautilus-installer/src/callbacks.c: (druid_cancel),
	(begin_install), (druid_finish), (prep_install), (set_images):
	* nautilus-installer/src/installer.c:
	(append_string_to_window_list), (download_failed),
	(install_failed_foreach), (requeue), (install_failed),
	(gen_report), (installer):
	* nautilus-installer/src/link.sh:
	* nautilus-installer/src/main.c:
	Hacking in the installer. This one is borked sine I'm trying to
	figure out the right scheme of reported dep fails. Actually, I
	want the lib to autofetch deps by option, instead of failing them
	Also added stuff to link.sh, so it builds static from scratch,
	strips gzips and adds prescript to the gzexe file. So if you build
	using link.sh, you get a 644 binary which when executed using
	sh ./nautilus-installer prompts for root password and does the
	magic. Easier for newbies.

	* components/services/time/idl/Makefile.am:
	* components/services/install/idl//Makefile.am:
	* components/services/time/Makefile.am:
	* components/services/install/Makefile.am:
	* components/services/install/lib/Makefile.am:
	* components/services/time/service/Makefile.am:
	* components/services/trilobite/idl/Makefile.am:
	* components/services/trilobite/libtrilobite/Makefile.am:
	* components/services/trilobite/sample/service/Makefile.am:
	* configure.in:
	* nautilus.spec.in:
	* po/POTFILES.in:
	* src/Makefile.am:
	Loads of makefile fixing to make make dist and rpm -ta work.
2000-06-02 10:10:12 +00:00
Maciej Stachowiak
5bcb019f4b Moved static functions to bottom of file and prototyped them at the top.
* libnautilus-extensions/nautilus-mime-actions.c: Moved static
	functions to bottom of file and prototyped them at the top.
2000-06-02 09:02:24 +00:00
Maciej Stachowiak
6a4de846aa Final portion of task 370 (mime write API)
* libnautilus-extensions/nautilus-mime-actions.h: *
	libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_short_list_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_extend_all_applications_for_uri,
	nautilus_mime_remove_from_all_applications_for_uri): Implemented
	(they write the metadata and everything - happy fun).
	(str_list_difference): Helper function compied from gnome-vfs.

	* test/test-nautilus-mime-actions-set.c: Tests for these
	functions.
	* test/Makefile.am: Build it.
2000-06-02 08:42:36 +00:00
Andy Hertzfeld
f30271afae made linksets actually work. fixed audio previewing for filename with
made linksets actually work.
	fixed audio previewing for filename with special characters
	made links work for filenames with special characters
	added some icons for the default link set
2000-06-02 07:06:54 +00:00
Gene Z. Ragan
f1cc9405bd New call to be used internally to get the current undo transaction. An
2000-06-01  Gene Z. Ragan  <gzr@eazel.com>

	* libnautilus/nautilus-undo-manager.c:
	* libnautilus/nautilus-undo-manager.h:
	(nautilus_undo_manager_get_current_undo_transaction):
	New call to be used internally to get the current undo transaction.
	An example of this call being used is in the menu code that displays
	the current undo operation name.

	* libnautilus/nautilus-undo-transaction.c:
	(impl_Nautilus_Undo_Transaction__get_undo_description),
	(impl_Nautilus_Undo_Transaction__get_redo_description),
	(impl_Nautilus_Undo_Transaction__get_operation_name),
	(impl_Nautilus_Undo_Transaction__undo),
	Added actual functionlality to these calls.  They now
	work as advertised.

	(nautilus_undo_transaction_new),
	Made changed needed to actually use the operation
	name and description that is passed in.

	(nautilus_undo_transaction_destroy),
	Clean up stored operation name and description strings.

	* src/nautilus-window-menus.c:
	(update_undo_menu_item):
	The undo operation name is now displayed in the menu item.
2000-06-02 05:51:35 +00:00
Pavel Cisler
2dcd63aca7 More list view drag&drop work. Move more code from nautilus-icon-dnd.c to
2000-06-01  Pavel Cisler  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-drag.h:
	* libnautilus-extensions/nautilus-icon-dnd.c:
	* libnautilus-extensions/nautilus-drag.c:
	* libnautilus-extensions/nautilus-list.h:
	* libnautilus-extensions/nautilus-icon-dnd.h:
	* libnautilus-extensions/nautilus-list.c:
	(nautilus_drag_init), (nautilus_drag_finalize),
	(create_selection_shadow), (set_gnome_icon_list_selection),
	(nautilus_icon_container_dropped_icon_feedback),
	(drag_data_received_callback),
	(nautilus_icon_container_ensure_drag_data), (drag_end_callback),
	(confirm_switch_to_manual_layout), (handle_local_move),
	(handle_nonlocal_move),
	(nautilus_icon_container_receive_dropped_icons),
	(nautilus_icon_dnd_update_drop_target),
	(nautilus_icon_container_free_drag_data), (nautilus_icon_dnd_init),
	(nautilus_icon_dnd_fini), (nautilus_icon_dnd_begin_drag),
	(drag_drop_callback), (nautilus_list_initialize),
	(nautilus_list_destroy),
	(nautilus_list_drag_begin), (nautilus_list_drag_data_get),:
	More list view drag&drop work. Move more code from nautilus-icon-dnd.c
	to the shared nautlus-drag.c file. Split common drag&drop state from
	NautilusIconDndInfo into NautilusDragInfo.

	* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_drag_motion), (nautilus_list_motion):
	Start hooking up drag-related signals.

	* libnautilus-extensions/nautilus-list.c:
	* libnautilus-extensions/nautilus-list.h:
	(nautilus_list_initialize_class):
	Get rid of the unused START_DRAG signal.
2000-06-02 04:04:47 +00:00
Pavel Cisler
3fb948eec4 Fix call to gnome_vfs_unescape_string to match new prototype.
2000-06-01  Pavel Cisler  <pavel@eazel.com>

	* src/file-manager/fm-icon-view.c: (play_file):
	Fix call to gnome_vfs_unescape_string to match new prototype.
2000-06-02 02:55:29 +00:00
Andy Hertzfeld
a8cb20a8b6 fixed problem where sounds with special characters in their filename
fixed problem where sounds with special characters in their filename
	wouldn't preview properly; also, replace the computer link icon with
	a more generic, vector-based one and upgraded the open folder to
	one with gradients
2000-06-02 01:51:28 +00:00
Darin Adler
9b12eaef88 Fixed callers that were using the escape and unescape calls from
* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
	(gather_config_button_cb), (register_button_cb):
	Fixed callers that were using the escape and unescape calls from
	gnome-vfs. My guess is that these callers don't want exactly what
	they are getting, but at least this makes it compile.

	* src/nautilus-window-manage-views.c:
	(nautilus_window_request_location_change):
	There was code here to just unescape. This is not a good idea,
	since it will turn good URIs into bad URIs. On the other hand, we
	may need to do something for basic characters like %20 for better
	readability.

	* nautilus-widgets/nautilus-user-level-manager.c:
	(user_level_manager_new),
	(nautilus_user_level_manager_get_user_level):
	Added some FIXMEs.
2000-06-02 01:08:59 +00:00
John Sullivan
ba139d51a2 Provided real implementation for checking whether a program is in the
* libnautilus-extensions/nautilus-program-chooser.c:
	(nautilus_program_chooser_get_type), (compare_mime_applications),
	(compare_component_with_view), (is_component_in_short_list),
	(is_component_in_short_list_for_uri),
	(is_application_in_short_list),
	(is_application_in_short_list_for_uri),
	(is_in_short_list_for_file_type), (is_in_short_list_for_file),
	(update_selected_item_details),
	(run_program_configurator_callback),
	(nautilus_program_chooser_new),
	(nautilus_program_chooser_get_application),
	(nautilus_program_chooser_get_component): Provided real
	implementation for checking whether a program is in the
	file-specific list, just short list, or just full list,
	as used in "View as Other" dialog. These values were
	formerly all hardwired. Still need to add code to
	react to user's changes. Also renamed "Change" button to
	"Modify" when Josh rightly pointed out that "Change" is
	a little ambiguous.
2000-06-02 00:26:06 +00:00
Maciej Stachowiak
5aae10836d Completed task 772: Make "View as" menu use short list, not all
available components

	* src/nautilus-applicable-views.c (got_file_info_callback):
	Changed to use the mime APIs to determine the preferred list and
	default for view components.

	(view_identifier_has_iid, view_identifier_iids_compare): Some
	utility functions.

	Also removed many of the other functions in here that are no
	longer necessary and have effectively moved to
	nautilus-mime-actions.c
2000-06-01 22:01:04 +00:00
John Sullivan
f4cbb90c12 Fixed bug where choosing viewer from "View as Other..."
dialog from "View as" menu wouldn't update the menu
	title.

	* src/nautilus-window.c: (nautilus_window_synch_content_view_menu),
	(view_menu_choose_view_callback),
	(nautilus_window_load_content_view_menu): Renamed
	"synch_view_as_menu" to "nautilus_window_synch_content_view_menu".
	* src/nautilus-window-private.h: Put this function here so it
	can be used in -manage-views.c.
	* src/nautilus-window-manage-views.c:
	(nautilus_window_has_really_changed): Call this function to
	fix "View as" menu title when the view but not the location changes.
2000-06-01 21:41:07 +00:00
Andy Hertzfeld
24bbecbb5c added Susan's versions of reload and stop button images to the eazel
added Susan's versions of reload and stop button images to the
	eazel toolbar icon theme.
2000-06-01 20:54:34 +00:00
John Sullivan
c2d7e50018 Call viewers "xxx Viewer" in "Open With" submenu.
* src/file-manager/fm-directory-view.c:
	(add_component_to_gtk_menu),
	(add_component_to_bonobo_menu): Call viewers "xxx Viewer"
	in "Open With" submenu.
	(add_open_with_bonobo_menu_item): Use the double-underscore
	trick to avoid getting underlined characters in program names.
	* src/nautilus-window.c: (chose_component_callback):
	Don't destroy identifier here; caller handles that. Now the
	View as Other choice in the option menu works, with one bug:
	the option menu label isn't updated properly.
2000-06-01 19:30:56 +00:00
Maciej Stachowiak
2a5fe26c62 Copy correctly. (get_mime_type_from_uri): Handle NULL URIs
* libnautilus-extensions/nautilus-mime-actions.c:
	(OAF_ServerInfo__copy): Copy correctly.
	(get_mime_type_from_uri): Handle NULL URIs
2000-06-01 18:36:43 +00:00
Darin Adler
995b13fd67 Added this function. The guts was already there.
* libnautilus-extensions/nautilus-directory-metafile.c:
	(nautilus_directory_set_metadata_list): Added this function.
	The guts was already there.

	* test/.cvsignore: Ignore some newly generated files.
2000-06-01 15:38:19 +00:00
Maciej Stachowiak
043aa0112d Completed bugizlla task 601, Need API for getting "short list" of
programs associated with file.

	* libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_mime_get_short_list_applications_for_uri,
	nautilus_mime_get_short_list_components_for_uri): Implemented
	properly with metadata checking, etc.
	(gnome_vfs_mime_application_has_id,
	gnome_vfs_mime_id_matches_application,
	gnome_vfs_mime_id_matches_component,
	gnome_vfs_mime_application_has_id_not_in_list,
	component_has_id_in_list, string_not_in_list): Helper functions
	for g_list_find_custom and g_list_partition calls.
2000-06-01 15:14:32 +00:00
Maciej Stachowiak
4118653079 Properly implemented w/ appropriate metadata checking, etc.
* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_all_applications_for_uri,
	nautilus_mime_get_all_components_for_uri): Properly implemented w/
	appropriate metadata checking, etc.
	(gnome_vfs_mime_application_has_id): Utility function for
	comparison purposes.
2000-06-01 13:55:52 +00:00
Maciej Stachowiak
c54cbed15e Non-asynchronous equivalent of `nautilus_directory_call_when_ready'.
* libnautilus-extensions/nautilus-directory.h,
	libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_wait_until_ready): Non-asynchronous equivalent
	of `nautilus_directory_call_when_ready'. However, it doesn't block
	the UI while waiting.
	(nautilus_directory_wait_until_ready_callback): Helper function
	for implementing the above.

	* 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,
	nautilus_mime_get_default_component_for_uri): Implemented with
	fully with proper metadata checking and interface querying, etc.

	(nautilus_mime_get_short_list_applications_for_uri,
	nautilus_mime_get_short_list_components_for_uri,
	nautilus_mime_get_all_applications_for_uri,
	nautilus_mime_get_all_components_for_uri): Adjusted to deal with
	the mime type checking function changing names.

	(OAF_ServerInfo__copy, extract_prefix_add_suffix,
	mime_type_get_supertype, uri_string_get_scheme),
	get_explicit_content_view_iids_from_metafile,
	make_oaf_query_for_explicit_content_view_iids,
	make_oaf_query_with_known_mime_type,
	make_oaf_query_with_uri_scheme_only,
	file_list_to_mime_type_hash_table, free_key,
	mime_type_hash_table_destroy, server_matches_content_requirements,
	nautilus_do_component_query): Oodles of helper functions, many cut
	& pasted from elswhere and only slightly modified.
	get_mime_type_from_uri: Removed `_hack' from the name.

	* libnautilus-extensions/nautilus-mime-actions.h: Added prototype
	for nautilus_mime_get_default_action_type_for_uri.

	* test/test-nautilus-mime-actions.c (main): Call gnome_init.

	* src/nautilus-applicable-views.c: Removed a stray comment that no
	longer applies.
2000-06-01 12:11:54 +00:00
Maciej Stachowiak
d1eef70941 Simple test program to check _for_uri nautilus metadata calls in nautilus.
* test/test-nautilus-mime-actions.c: Simple test program to check
	_for_uri nautilus metadata calls in nautilus.
	* test/Makefile.am: Build test-nautilus-mime-actions
	* Makefile.am, configure.in: add test directory to the build.

	* libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_mime_get_default_action_for_uri,
	nautilus_mime_get_default_application_for_uri,
	nautilus_mime_get_default_component_for_uri): Implemented in the
	same temporary stub way as the other calls.
2000-06-01 06:00:19 +00:00
Maciej Stachowiak
cbb3a96d1a Implemented in the same temporary stub way as the other calls.
* libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_mime_get_default_action_for_uri,
	nautilus_mime_get_default_application_for_uri,
	nautilus_mime_get_default_component_for_uri): Implemented in the
	same temporary stub way as the other calls.
2000-06-01 05:38:03 +00:00
Andy Hertzfeld
45b25758d5 fixed bug 991, image files that are less than 16K are displayed full-size,
fixed bug 991, image files that are less than 16K are displayed
	full-size, even if they're huge.  Fixed by using a reasonable
	max size based on the scale factor.
2000-06-01 05:17:50 +00:00
Maciej Stachowiak
96c8ade307 Moved from gnome-vfs-handlers.[ch] and renamed from gnome_vfs_mime... to
* libnautilus-extensions/nautilus-mime-actions.h,
	libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_for_uri,
	nautilus_mime_get_default_application_for_uri,
	nautilus_mime_get_default_component_for_uri,
	nautilus_mime_get_short_list_applications_for_uri,
	nautilus_mime_get_short_list_components_for_uri,
	nautilus_mime_get_all_applications_for_uri,
	nautilus_mime_get_all_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_extend_all_applications_for_uri,
	nautilus_mime_remove_from_all_applications_for_uri): Moved from
	gnome-vfs-handlers.[ch] and renamed from gnome_vfs_mime... to
	nautilus_mime...
	(get_mime_type_from_uri_hack): Internal helper fucntion moved from
	gnome-vfs-handlers.c
	* libnautilus-extensions/Makefile.am: Build and install
	nautilus-mime-actions.c and nautilus-mime-actions.h repsectively.
	* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list):
	* src/file-manager/fm-directory-view.c:
	(create_open_with_gtk_menu), (reset_bonobo_open_with_menu):
	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
2000-06-01 05:08:22 +00:00
John Sullivan
b10fd5f3f9 More incremental work to use the new mime-handling API.
* src/file-manager/fm-directory-view.c:
	(add_open_with_bonobo_menu_item): Now takes callback
	and callback data and uses them for menu item construction.
	(bonobo_launch_application_callback),
	(add_application_to_bonobo_menu),
	(bonobo_open_location_with_viewer_callback),
	(add_component_to_bonobo_menu): Pass along structs containing
	info necessary to launch app or switch viewers. Tragically
	these are leaked due to the lack of DestroyNotify mechanism
	in Bonobo (bug written).
	(reset_bonobo_open_with_menu): Uncomment out list-freeing
	lines now that API is in place.
	(fm_directory_view_chose_component_callback),
	(choose_component): Pass NautilusFile instead of view so we
	can get at the uri in the future when we have API for
	switching locations with specified viewer.
2000-06-01 02:07:02 +00:00
Andy Hertzfeld
c0f797d9dc first checkin for link sets, which are incomplete and not hooked up yet.
first checkin for link sets, which are incomplete and not hooked
	 up yet.  Also, added a title to the property browser and improved
	 the default color choices to one's specified by Susan.
2000-06-01 01:24:21 +00:00
Seth Nickell
68359c8c5f Changed calls to gnome_vfs_append_path to use the similar but more
2000-05-31  Seth Nickell  <snickell@stanford.edu>

	* libnautilus-extensions/nautilus-directory.c:
	(construct_alternate_metafile_uri), (nautilus_directory_new):
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_matches_uri), (nautilus_file_get_uri):
	Changed calls to gnome_vfs_append_path to use the similar
	but more specific gnome_vfs_append_file_name instead.
2000-06-01 01:08:13 +00:00
Darin Adler
d90f8124e6 Fixed a bug where I accidentally treated root as "unable to access
* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_denies_access_permission): Fixed a bug where I
	accidentally treated root as "unable to access anything" instead
	of "able to access everything".

	* src/nautilus-sidebar-tabs.h: Fixed file name in include guard.
	I'll probably need to write a script to find the broken ones.

	* src/nautilus-window-manage-views.c: (handle_unreadable_location):
	Fixed a bug where we unref's a file object before using it.

	* src/nautilus-window-private.h: Got rid of a straggler prototype
	for a nonexistent function.

	* RENAMING: Some are done.
2000-05-31 23:27:26 +00:00
Ramiro Estrugo
3ec2e7fab7 Honor the gtkstyle font instead of hacking in our own. Part of bug 667.
* src/nautilus-sidebar-tabs.c:
(nautilus_index_tabs_initialize_class), (draw_one_tab),
(draw_or_hit_test_all_tabs):

Honor the gtkstyle font instead of hacking in our own.  Part of
bug 667.
2000-05-31 23:08:15 +00:00
John Sullivan
bf1ebf3946 Got rid of enum NautilusProgramChooserType, replaced with equivalent but
* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list), (nautilus_program_chooser_new),
	(nautilus_program_chooser_get_application),
	(nautilus_program_chooser_get_component):
	* libnautilus-extensions/nautilus-program-chooser.h:
	* libnautilus-extensions/nautilus-program-choosing.c:
	(set_up_program_chooser), (nautilus_choose_component_for_file),
	(nautilus_choose_application_for_file): Got rid of enum
	NautilusProgramChooserType, replaced with equivalent but
	more general enum GnomeVFSMimeActionType.
2000-05-31 23:00:32 +00:00
Darin Adler
400bff8ed9 *** empty log message *** 2000-05-31 22:34:40 +00:00
John Sullivan
92d3ad35fb libnautilus-extensions/nautilus-mime-type.c, Removed these files, which
* libnautilus-extensions/nautilus-mime-type.c,
	* libnautilus-extensions/nautilus-mime-type.h:
	Removed these files, which had contained the old stopgap
	mime-type-to-application table.
	* libnautilus-extensions/Makefile.am: Take removed files out
	of build.
	* src/nautilus-property-browser.c,
	* src/nautilus-sidebar.c: Remove #includes for removed files.
2000-05-31 22:32:27 +00:00
John Sullivan
13ffa5fe55 Change the way data from program lists is freed; this clarifies the code
* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list): Change the way data from program lists
	is freed; this clarifies the code and fixes a double-destroy.
	* src/nautilus-sidebar.c: (nautilus_sidebar_update_buttons):
	Don't display "Open With..." button if there are no available
	choices. This fixes part of bug 1044 (need to do the same
	kind of thing for menus).
2000-05-31 21:39:22 +00:00
Andy Hertzfeld
b0af9ffe0c added -q option to mpg123 invocation for sound previewing; at Susan's
added -q option to mpg123 invocation for sound previewing; at Susan's
	suggestion made the selection box 25% opaque instead of 50%
2000-05-31 21:10:44 +00:00
John Sullivan
d46e4c266c Initialize *return_sensitivity to TRUE; it was uninitialized in some
* src/file-manager/fm-directory-view.c:
	(compute_menu_item_info): Initialize *return_sensitivity to
	TRUE; it was uninitialized in some cases.
	(add_application_to_gtk_menu), (create_open_with_gtk_menu):
	Cleaned up list-handling using new gnome-vfs API.

	* src/nautilus-sidebar.c: Removed placeholder local implementation
	of gnome_vfs_mime_application_list_free now that there's a real
	one in gnome-vfs.
2000-05-31 19:36:24 +00:00
Darin Adler
91fc8d2178 Another cut on the desktop. Way closer.
* libnautilus-extensions/Makefile.am:
	* libnautilus-extensions/nautilus-generous-bin.h:
	* libnautilus-extensions/nautilus-generous-bin.c:
	Added a new class NautilusGenerousBin. This is a GtkBin
	subclass that gives its entire allocation to its child.
	Used both in the widgetry for desktop windows and as a
	base class for NautilusViewFrame for now.

	* libnautilus-extensions/nautilus-gnome-extensions.c:
	(turn_on_line_wrap_flag), (turn_on_line_wrap_flag_callback):
	Changed to use gtk_container_foreach instead of the old
	gtk_container_children, since I now understand that the
	latter is just a convenience cover for the former.

	* src/Makefile.am:
	* src/nautilus-window-state.c: [removed]
	* src/nautilus-window-state.h: [removed]
	The only function in here was a wonky one that did goto_uri
	of go_home depending on the parameter. Changed the callers
	and things got clearer anyway.

	* src/nautilus-application.h:
	* src/nautilus-application.c: (display_caveat),
	(nautilus_app_startup):
	* src/nautilus-main.c: (main):
	Changed rules about which windows are created on startup. This
	puts us into a slightly bad state because it's now easy to
	create a desktop window with no way to get rid of it.

	* src/nautilus-desktop-window.h:
	* src/nautilus-desktop-window.c:
	(nautilus_desktop_window_initialize_class),
	(nautilus_desktop_window_initialize), (destroy), (realize):
	A better cut at the desktop window creation that now mostly works.

	* src/nautilus-main.c: (main):
	Changed the "--desktop" option's name to "--manage-desktop".

	* src/nautilus-view-frame.h:
	* src/nautilus-view-frame.c:
	(nautilus_view_frame_initialize_class),
	(nautilus_view_frame_initialize),
	(nautilus_view_frame_destroy_client),
	(nautilus_view_frame_destroy),
	(nautilus_view_frame_construct_arg_set):
	Changed to use NautilusGenerousBin as base class. Also use the
	Nautilus boilerplate macros.

	* src/nautilus-window-manage-views.c:
	(nautilus_window_request_location_change):
	Use goto_uri instead of set_initial_state.

	* src/nautilus-window-private.h:
	* src/nautilus-window.h:
	* src/nautilus-window.c: (nautilus_window_go_home):
	Make go_home public and move the actual code needed to go to the
	home package into the function.

	* src/nautilus-window.c: (nautilus_window_constructed):
	Reduced the amount of hackery on behalf of the desktop window and
	used the NautilusGenerousBin class.
2000-05-31 19:21:04 +00:00
Ramiro Estrugo
0cc9cbd2ba Exorcist the moz:// hack.
* components/mozilla/nautilus-mozilla-content-view.c:
(nautilus_mozilla_content_view_load_uri),
(mozilla_content_view_request_location_change):
Exorcist the moz:// hack.

* components/mozilla/nautilus-mozilla-content-view.oafinfo:
Change the protocol from moz to http.

* src/nautilus-applicable-views.c:
Prefer the mozilla component over the ntl-web-browser.
2000-05-31 17:18:22 +00:00
Ramiro Estrugo
18a80c694b "fix" bug 725 by changing the supported uri types of the rpm view
* components/rpmview/nautilus-rpm-view.oafinfo:

"fix" bug 725 by changing the supported uri types of the rpm view
component to be only "file" since it doesnt grok remote uris.

Having the rpm view grok remote uris would be a cool, feature.  I
have resummarized bug 725 to reflect this.
2000-05-31 16:43:27 +00:00
Darin Adler
a0095deb3e Small updates.
* RENAMING: Small updates.

	* components/help/converters/gnome-info2html2/main.c: (main):
	* components/html/glibwww-init.c: (glibwww_parse_proxy_env):
	* components/html/ntl-web-browser.c: (main):
	* components/loser/content/nautilus-content-loser.c:
	(ensure_fail_env):
	* components/loser/sidebar/nautilus-sidebar-loser.c:
	(ensure_fail_env):
	* components/notes/nautilus-notes.c: (main):
	* libnautilus-extensions/nautilus-view-identifier.c:
	(get_lang_list):
	* src/nautilus-application.c: (nautilus_app_startup):
	* src/nautilus-main.c: (main):
	Changed from getenv to g_getenv, even though it makes no
	difference right now, because it's "the right thing to do (tm)".

	* components/services/time/nautilus-view/trilobite-eazel-time-view.h:
	Fixed include (the build was broken for me or anyone who doesn't
	have old .h files sitting around in their install directory).

	* libnautilus-extensions/nautilus-directory.c:
	(construct_alternate_metafile_uri):
	Use nautilus_get_user_directory instead of hard-coding the name
	of the user directory.

	* libnautilus-extensions/nautilus-file-utilities.h:
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_get_user_directory), (nautilus_get_user_main_directory):
	Use #defines instead of global constants since these are things
	that do not change and this is not C++ :-) Added "get_" to the
	names of these functions so they would be verbs instead of nouns.
	(nautilus_get_desktop_directory): Added this new function for use
	by the desktop code.

	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog),
	(nautilus_global_preferences_get_enabled_sidebar_panel_view_identifiers),
	(nautilus_global_preferences_get_disabled_sidebar_panel_view_identifiers),
	(global_preferences_register_sidebar_panels_preferences_for_ui):
	* libnautilus-extensions/nautilus-view-identifier.h:
	* libnautilus-extensions/nautilus-view-identifier.c:
	(nautilus_view_identifier_list_free):
	* src/nautilus-applicable-views.c: (nautilus_navigation_info_free):
	Changed nautilus_view_identifier_free_list to *_list_free to match
	other calls with similar names.

	* libnautilus-extensions/nautilus-global-preferences.c:
	(user_level_changed_callback):
	* libnautilus-extensions/nautilus-icon-factory.c:
	(get_themed_icon_file_path):
	* src/file-manager/fm-properties-window.c: (get_property_names):
	* src/nautilus-bookmark-list.c:
	(nautilus_bookmark_list_get_file_path):
	* src/nautilus-property-browser.c:
	(nautilus_property_browser_drag_data_get), (make_drag_image),
	(remove_color), (remove_background), (remove_emblem),
	(get_xml_path), (add_background_to_browser), (add_color_to_file),
	(emblem_dialog_clicked), (make_properties_from_directory):
	Change to use directory calls by new "get_" names.

	* src/Makefile.am: Removed nautilus.h since it is long gone,
	and fixed spelling of nautlus-window-state.h.

	* src/file-manager/.cvsignore: Stop ignoring things that we
	no longer generated.

	* src/file-manager/desktop-item.c: [removed]
	* src/file-manager/desktop-item.h: [removed]
	* src/file-manager/desktop-layout.c: [removed]
	* src/file-manager/desktop-layout.h: [removed]
	* src/file-manager/desktop-window.c: [removed]
	* src/file-manager/desktop-window.h: [removed]
	The rest of the code has been harvested from the desktop
	implementation. As I said before we can always recover it if we
	decide we want to reuse it.

	* src/file-manager/fm-main.c: [removed]
	This was no longer used and was getting out of date. The file manager
	is now compiled in rather than being a separate process.

	* src/nautilus-desktop-window.c:
	(nautilus_desktop_window_initialize_class),
	(nautilus_desktop_window_initialize),
	(nautilus_desktop_window_new), (realize):
	Another cut at the desktop code. Still not working too well,
	but way further along.

	* src/nautilus-sidebar.h:
	* src/nautilus-sidebar.c:
	* src/nautilus-view-frame.c:
	(nautilus_view_frame_handle_client_destroy_2):
	* src/nautilus-window-manage-views.c:
	* src/nautilus-window.h:
	* src/nautilus-window.c:
	* src/nautilus-window-private.h:
	Changed the names to use Sidebar instead of IndexPanel.
	Also changed to say sidebar panel instead of meta view in many
	places.
2000-05-31 15:53:21 +00:00
Ramiro Estrugo
21faf543a1 New functions to generate keys for the current user level as well as any
* nautilus-widgets/nautilus-user-level-manager.c:
(nautilus_user_level_manager_make_gconf_key),
(nautilus_user_level_manager_make_current_gconf_key):
* nautilus-widgets/nautilus-user-level-manager.h:

New functions to generate keys for the current user level as well
as any other user level.
2000-05-31 15:47:22 +00:00
Ramiro Estrugo
0b4251a025 Fix bug 993. Some frames in the preferences dialog were too big cause the
* nautilus-widgets/nautilus-preferences-pane.c:
(nautilus_preferences_pane_destroy), (prefs_pane_construct):

Fix bug 993.  Some frames in the preferences dialog were too big
cause the parent vbox was erroneously marked homogenous.
2000-05-31 13:17:25 +00:00
Ramiro Estrugo
93e47686fd Remove the user level pane from the preferences dialog. Place the
user level choices directly in the settings menu.

Also uncouple user level from preferences.  User level is no
longer a preference itself.

* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_for_ui),
(user_level_changed_callback),
(nautilus_global_preferences_shutdown),
(nautilus_global_preferences_startup):
Remove all of the user level ui stuff.

* nautilus-widgets/nautilus-user-level-manager.c:
(user_level_manager_new), (nautilus_user_level_manager_initialize),
(nautilus_user_level_manager_initialize_class),
(user_level_manager_destroy), (gconf_get_user_level_string),
(user_level_set_default_if_needed),
(gconf_user_level_changed_callback),
(nautilus_user_level_manager_get),
(nautilus_user_level_manager_set_user_level),
(nautilus_user_level_manager_get_user_level):
Emit the the "user_level_changed" signal from a gconf callback
instead of "by hand".  Otherwise we are out of whack because of
gconf asyncness.

* src/nautilus-window-menus.c:
(settings_menu_user_level_radio_group_callback),
(settings_menu_user_level_customize_callback),
(settings_menu_customize_callback),
(nautilus_window_initialize_menus),
(user_level_menu_path_to_user_level),
(user_level_user_level_to_menu_path):
* src/nautilus-window.h:
Remove the "General Settings" menu item.  Replace it with a
user level chooser as well as current user level customizer.
2000-05-31 13:07:05 +00:00
Fatih Demir
f5ddfbf3b2 Added the Turkish desktop entries 2000-05-31 12:01:08 +00:00
Ramiro Estrugo
e3e0dee28a Ignore generated files.
* components/services/time/nautilus-view/.cvsignore:
Ignore generated files.
2000-05-31 11:36:30 +00:00
Pavel Cisler
e89095d64a More work on fallback deletion when move to Trash is not available.
2000-05-31  Pavel Cisler <pavel@eazel.com>

	* src/file-manager/dfos-xfer.c: (fs_move_to_trash):
	* src/file-manager/fm-directory-view.c: (fm_directory_is_trash),
	(fm_directory_view_confirm_deletion),
	(fm_directory_view_trash_or_delete_selection),
	(duplicate_callback):
	More work on fallback deletion when move to Trash is not available.
	Display a warning dialog.
	Get rid of commented out code that I'll no longer need.
	Removed FIXMEs that are no longer true.
2000-05-31 07:38:49 +00:00
Michael Fleming
88612f86f4 Added eazel-time NautilusView to the build
Added eazel-time NautilusView to the build
2000-05-31 07:00:50 +00:00
Michael Fleming
a72b988fec Added simplistic nautilus view for "eazel-time" service 2000-05-31 06:47:50 +00:00
Andy Hertzfeld
f77a4a0ca3 finished sound preview task by superimposing an icon to indicate
finished sound preview task by superimposing an icon to indicate
	previewing, and terminating the preview better by killing the
	entire process group.
2000-05-31 05:28:31 +00:00
John Sullivan
b3fecee345 * src/file-manager/fm-directory-view.c:
(launch_application_from_menu_item), (add_application_to_gtk_menu),
	(add_component_to_gtk_menu), (create_open_with_gtk_menu),
	(add_open_with_bonobo_menu_item), (add_application_to_bonobo_menu),
	(add_component_to_bonobo_menu), (reset_bonobo_open_with_menu),
	(fm_directory_view_real_update_menus):
2000-05-31 05:18:27 +00:00
Eskil Heyn Olsen
c116005d37 Added the support files
* components/services/install/lib/eazel-install-public.h:
	* components/services/install/lib/eazel-install-types.h:
	* nautilus-installer/src/callbacks.h:
	* nautilus-installer/src/support.c: (lookup_widget),
	(create_dummy_pixmap), (create_pixmap), (create_image):
	* nautilus-installer/src/support.h:
	Added the support files
2000-05-31 05:13:50 +00:00
Eskil Heyn Olsen
6d52e1b57c Removed the Makefile.in's and added the .am instead.
* nautilus-installer/Makefile.in:
	* nautilus-installer/src/Makefile.am:
	* nautilus-installer/src/Makefile.in:
	Removed the Makefile.in's and added the .am instead.
2000-05-31 03:56:26 +00:00
Pavel Cisler
4412765d7f Added delete calls that set up a gnome-vfs delete operation.
2000-05-30  Pavel Cisler  <pavel@eazel.com>

	* src/file-manager/dfos-xfer.h:
	* src/file-manager/dfos-xfer.c: (handle_xfer_ok),
	(fs_delete):
	Added delete calls that set up a gnome-vfs delete operation.

	* src/file-manager/dfos-xfer.c:
	(fs_xfer), (fs_move_to_trash), (fs_empty_trash):
	Changed to use new xfer options making it a little
	clearer which copy engine operation gets to run.

	* src/file-manager/dfos-xfer.c:
	(fs_xfer), (fs_move_to_trash):
	Fixed a leak of the item_names list.

	* src/file-manager/dfos-xfer.c:
	(fs_new_folder):
	Changed to use "untitled folder".

	* src/file-manager/fm-directory-view.c:
	(bonobo_menu_move_to_trash_callback),
	(fm_directory_can_move_to_trash),
	(fm_directory_view_trash_or_delete_selection), (trash_callback),
	(compute_menu_item_info), (reset_bonobo_trash_delete_menu),
	(fm_directory_view_real_merge_menus),
	(fm_directory_view_real_update_menus),
	(fm_directory_view_get_context_menu_index):
	Add logic that picks the Delete/Move To Trash menu items depending
	on whether selected items can be moved to Trash or not. Added code
	that decides if items can be moved to Trash from a given folder.

	* src/file-manager/dfos-corba.c: (convert_options):
	Disabled some dead code.
2000-05-31 03:49:34 +00:00
Eskil Heyn Olsen
f17cf9f477 Fixed a horribly cut'n'paste bug in the signal bindings. Also doing some
* components/services/install/command-line/eazel-alt-install.c:
	(main):
	* components/services/install/lib/Makefile.am:
	* components/services/install/lib/eazel-install-object.c:
	(eazel_install_class_initialize), (fetch_remote_package_list),
	(eazel_install_emit_download_progress),
	(eazel_install_emit_download_failed),
	(eazel_install_emit_install_failed),
	(eazel_install_emit_uninstall_failed), (eazel_install_log),
	(eazel_install_open_log):
	Fixed a horribly cut'n'paste bug in the signal bindings. Also
	doing some stuff on making the lib log properly

	* components/services/install/lib/eazel-install-private.h:
	* components/services/install/lib/eazel-install-protocols.c:
	(http_fetch_remote_file):
	* components/services/install/lib/eazel-install-public.h:
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(download_all_packages), (install_all_packages),
	(uninstall_packages):
	More cleaning out of g_errors, g_asserts and such.

	* components/services/trilobite/libtrilobite/Makefile.am:
	* nautilus-installer/src/Banner_Left.xpm:
	* nautilus-installer/src/Final_Inside.xpm:
	* nautilus-installer/src/Final_Top.xpm:
	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.in:
	* nautilus-installer/src/Step_3a_Inside.xpm:
	* nautilus-installer/src/Step_3b_Inside.xpm:
	* nautilus-installer/src/Step_One_Inside.xpm:
	* nautilus-installer/src/Step_One_Top.xpm:
	* nautilus-installer/src/Step_Three_Top.xpm:
	* nautilus-installer/src/Step_Two_Inside.xpm:
	* nautilus-installer/src/Step_Two_Top.xpm:
	* nautilus-installer/src/callbacks.c: (set_images):
	* nautilus-installer/src/installer.c: (append_name_to),
	(download_failed), (install_failed), (gen_report),
	(dump_failure_info), (installer):
	* nautilus-installer/src/interface.c: (create_window):
	* nautilus-installer/src/main.c: (main):
	More work on the installer, especially making it
	use Arlo's graphics and still be a static binary.
2000-05-31 03:36:46 +00:00
Andy Hertzfeld
050fd74110 fixed bug where we'd crash when drawing at the lowest zoom level in
fixed bug where we'd crash when drawing at the lowest zoom level
	in anti-aliased mode; fixed by checking for the text drawing
	conditions.
2000-05-31 03:31:12 +00:00
John Sullivan
29279c2e93 Adapted much of the open-with and view-as code to use
the new API, whose implementation awaits. This causes
	us to temporarily lose the command-buttons-in-sidebar
	feature until the new API's implementation happens.

	Some of these changes are only partially done; I've
	got a list of things to finish still. But feel free
	to bug me about anything in particular that seems bad.

	* libnautilus-extensions/nautilus-program-chooser.h:
	* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list): Use real API to add programs
	to list in dialog.
	(nautilus_program_chooser_new): Remember whether this
	is an application-choosing or component-choosing dialog.
	(nautilus_program_chooser_get_application),
	(nautilus_program_chooser_get_component): New functions,
	get the item in the list that the user selected.
	* libnautilus-extensions/nautilus-program-choosing.h:
	Change parameter in NautilusApplicationChoiceCallback
	from char * to GnomeVFSMimeApplication.
	* libnautilus-extensions/nautilus-program-choosing.c:
	(nautilus_choose_application_for_file),
	(nautilus_choose_component_for_file): Get the chosen
	item from the dialog instead of returning a hardwired
	value.
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_chose_application_callback): Take
	GnomeVFSMimeApplication instead of char *.
	(add_open_with_gtk_menu_item): Enable menu items now
	that they work.
	(launch_application_from_menu_item): New function, callback
	used when user picks an app from context menu.
	(view_uri_from_menu_item): New function, callback used
	when user picks a viewer from context menu.
	(add_application_to_gtk_menu),
	(add_component_to_gtk_menu): New functions, set up menu items.
	(create_open_with_gtk_menu): Use real API to populate
	open_with context menu items.
	(bonobo_menu_select_all_callback), (select_all_callback),
	(fm_directory_view_real_merge_menus):
	Fixed bug where context menu "Select All" didn't work by
	separating bonobo and gtk callbacks.
	* src/nautilus-sidebar.c:
	(nautilus_index_panel_chose_application_callback),
	(add_command_buttons), (gnome_vfs_mime_application_list_free),
	(nautilus_index_panel_update_buttons): Use real API instead
	of hardwired set of buttons for different MIME types. This
	currently means you always get only the "Open with ..." button,
	but the real buttons will reappear once we have our new
	application-choosing scheme in place.
2000-05-31 01:38:43 +00:00
Andy Hertzfeld
f665e65e4f preview a broader range of sounds using "play", and (completely unrelated)
preview a broader range of sounds using "play", and (completely
	 unrelated) draw the icon stretch handles in anti-aliased mode.
2000-05-30 21:59:07 +00:00
Pavel Cisler
161115bb70 New copy engine entry calls supporting New Folder creation. Pass NULL to
2000-05-30  Pavel Cisler  <pavel@eazel.com>

	* src/file-manager/dfos-xfer.h:
	* src/file-manager/dfos-xfer.c: (sync_xfer_callback), (fs_xfer),
	(new_folder_xfer_callback), (fs_new_folder), (fs_move_to_trash),
	(fs_empty_trash):
	New copy engine entry calls supporting New Folder creation.
	Pass NULL to sync_xfer_callback because it doesn't use any pass-thru
	state.

	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.c:
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_initialize_class),
	(bonobo_menu_new_folder_callback), (start_renaming_item),
	(new_folder_rename_later), (new_folder_done),
	(fm_directory_view_new_folder), (compute_menu_item_info),
	(fm_directory_view_real_create_selection_context_menu_items),
	(reset_bonobo_open_with_menu),
	(fm_directory_view_real_merge_menus),
	(fm_icon_view_start_renaming_item),
	(fm_icon_view_initialize_class):
	Add the "New Folder" command. Add a menu item that invokes it.
	Add code to allow me to select the new folder once it was
	created and start a rename on it.
2000-05-30 20:18:40 +00:00
Raph Levien
65f27bf0fc Bumped version number in version test. 2000-05-30 18:27:28 +00:00
Ramiro Estrugo
3058e232dc Instead of creating our own gconf client, share one with the user level
* nautilus-widgets/nautilus-preferences.c:
(nautilus_preferences_initialize):
Instead of creating our own gconf client, share one with the user
level manager.  Otherwise i get weird gconf connection errors.

* nautilus-widgets/nautilus-user-level-manager.c:
(user_level_manager_new),
(nautilus_user_level_manager_initialize_class),
(user_level_manager_ensure_global_manager),
(user_level_set_default_if_needed),
(nautilus_user_level_manager_get),
(nautilus_user_level_manager_get_user_level),
(nautilus_user_level_manager_get_user_level_names),
(nautilus_user_level_manager_get_gconf_client):
* nautilus-widgets/nautilus-user-level-manager.h:
Add method to expose a refed gconf client.
Change the global manager initialization code to prevent stoopid
infinite loop.  Let gconf know about the ~/.gconf/nautilus
directory.
2000-05-30 16:13:13 +00:00
Ramiro Estrugo
b78f346574 Fix bug 724 by adding a slightly better, but still lame mozilla detection
* configure.in:
Fix bug 724 by adding a slightly better, but still lame mozilla
detection artificial intelligence.
2000-05-30 13:56:03 +00:00
Ramiro Estrugo
6cb850158a New class to manager user level stuff.
* nautilus-widgets/nautilus-user-level-manager.c:
(user_level_manager_new), (nautilus_user_level_manager_initialize),
(nautilus_user_level_manager_initialize_class),
(user_level_manager_destroy),
(user_level_manager_get_global_manager),
(user_level_manager_is_initialized), (get_gconf_user_level_string),
(user_level_set_default_if_needed),
(nautilus_user_level_manager_get),
(nautilus_user_level_manager_set_user_level),
(nautilus_user_level_manager_get_user_level),
(nautilus_user_level_manager_get_num_user_levels),
(nautilus_user_level_manager_get_user_level_names):
* nautilus-widgets/nautilus-user-level-manager.h:
New class to manager user level stuff.

* libnautilus-extensions/nautilus-global-preferences.c:
(nautilus_global_preferences_startup):
* nautilus-widgets/Makefile.am:
* nautilus-widgets/nautilus-preferences.c:
(nautilus_preferences_initialize):
* nautilus-widgets/nautilus-preferences.h:
* nautilus-widgets/test-nautilus-preferences.c: (main):
Undo the last stoopid change cuz the user level stuff is now
hidden in the NautilusUserLevelManager class.
2000-05-30 12:57:16 +00:00
Pavel Cisler
ed231e9a40 More drag&drop support calls shared between list and icon view.
2000-05-30  Pavel Cisler <pavel@eazel.com>

	* libnautilus-extensions/nautilus-drag.c:
	* libnautilus-extensions/nautilus-drag.h:
	(nautilus_drag_items_local), (nautilus_drag_can_accept_item),
	(nautilus_drag_can_accept_items):
	More drag&drop support calls shared between list and icon view.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	(nautilus_icon_container_selection_items_local),
	(receive_dropped_keyword),
	(nautilus_icon_container_receive_dropped_icons),
	(nautilus_icon_dnd_update_drop_target):
	Remove calls that are replaced by nautilus-drag.c equivalents.
	Tweak some whitespace.

	* libnautilus-extensions/nautilus-gtk-extensions.c:
	* libnautilus-extensions/nautilus-gtk-extensions.h:
	(nautilus_gtk_marshal_NONE__INT_INT_INT):
	Add some more signal glue.

	* libnautilus-extensions/nautilus-list.h:
	* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_initialize_class), (nautilus_list_drag_drop),
	(nautilus_list_row_at):
	Add more drop handling. Add signal that sends of dropped data
	and context to fm-list-view.c. Added nautilus_list_row_at
	that fm-list-view.c needs to handle the drop.

	* src/file-manager/fm-directory-view.c:
	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.c: (icon_view_can_accept_item),
	(icon_view_get_container_uri), (icon_view_move_copy_items),
	(create_icon_container), (fm_directory_view_get_uri),
	(fm_directory_view_move_copy_items),
	(fm_directory_view_can_accept_item):
	Rework public calls to not take a container view as an argument
	and can be used by both list and icon view classes.
	Add new private signal handler callbacks that replace the
	public calls.

	* src/file-manager/fm-list-view.c: (fm_list_nautilus_file_at),
	(fm_list_handle_dropped_icons), (create_list):
	Drop handling code.
2000-05-30 12:40:56 +00:00
Ramiro Estrugo
009a53f0e6 Rename (nautilus_preferences_find_preference) to
* nautilus-widgets/nautilus-preferences-group.c:
(nautilus_preferences_group_add_item):
* nautilus-widgets/nautilus-preferences-item.c:
(preferences_item_construct), (enum_radio_group_changed_callback):
* nautilus-widgets/nautilus-preferences.c:
(nautilus_preferences_find_preference):
* nautilus-widgets/nautilus-preferences.h:

Rename (nautilus_preferences_find_preference) to
(nautilus_preferences_find_preference) to avoid confusion with a
function ill add next.
2000-05-30 10:37:09 +00:00
Ramiro Estrugo
4a563ae076 Cleanup preferences to make the code easier to modify. Name things more
* libnautilus-extensions/nautilus-global-preferences.c:
(nautilus_global_preferences_startup):
* nautilus-widgets/nautilus-preferences.c:
(preferences_hash_node_alloc), (preferences_hash_node_free),
(preferences_hash_node_add_callback),
(preferences_hash_node_remove_callback),
(preferences_hash_node_free_func),
(preferneces_callback_node_alloc),
(preferneces_callback_node_free),
(preferneces_callback_node_free_func),
(preferneces_callback_node_invoke_func), (preferences_register),
(nautilus_preferences_get_preference),
(nautilus_preferences_set_info), (set_default_value_if_needed),
(nautilus_preferences_enum_add_entry),
(preferences_hash_node_lookup),
(preferences_hash_node_lookup_with_registration),
(preferences_gconf_callback),
(nautilus_preferences_add_boolean_callback),
(nautilus_preferences_add_enum_callback),
(nautilus_preferences_add_callback),
(nautilus_preferences_remove_callback),
(nautilus_preferences_set_boolean),
(nautilus_preferences_get_boolean),
(nautilus_preferences_set_enum), (nautilus_preferences_get_enum),
(nautilus_preferences_set), (nautilus_preferences_get),
(nautilus_preferences_initialize),
(nautilus_preferences_is_initialized),
(nautilus_preferences_shutdown):
* nautilus-widgets/nautilus-preferences.h:
* nautilus-widgets/test-nautilus-preferences.c: (main):

Cleanup preferences to make the code easier to modify.  Name
things more consistently.  Put global variables in a struct to
make then clearly distiguishable from local ones.

Also, add change the initialize api to be fed the number of user
levels and their names.  More on this later.
2000-05-30 10:04:33 +00:00
Ramiro Estrugo
9a05e06f9f Change preferences startup code to occur in only one place.
* components/history/nautilus-history-view.c: (main):
* libnautilus-extensions/nautilus-global-preferences.c:
(nautilus_global_preferences_startup):
* libnautilus-extensions/nautilus-global-preferences.h:
* src/nautilus-application.c: (nautilus_app_class_init):
* src/nautilus-main.c: (main):

Change preferences startup code to occur in only one place.
2000-05-30 09:32:02 +00:00
Raph Levien
1f720bb2be Fixed stupid off-by-one error. 2000-05-30 07:05:17 +00:00
Andy Hertzfeld
d11a03fb8d implemented task 259, simple UI for previewing sounds, by making the icon
implemented task 259, simple UI for previewing sounds, by making the
	icon container emit a preview signal when an icon is moused-over.
	Connect the signal in fm-icon-view, where we inspect the type.
	For now we just support mp3s, but more sound types are coming soon,
	and the door's open for other types of previewing.  Use a timeout
	task to provide an adjustable delay before playing.
2000-05-30 06:51:37 +00:00
John Sullivan
17b8049c94 Removed unused variable.
* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_drag_drop): Removed unused variable.
2000-05-29 21:18:30 +00:00
Pavel Cisler
1356a6786b Start splitting out drag&drop code common between icon view and list view
2000-05-29  Pavel Cisler <pavel@eazel.com>

	* libnautilus-extensions/Makefile.am:
	* libnautilus-extensions/nautilus-drag.c:
	* libnautilus-extensions/nautilus-drag.h:
	* libnautilus-extensions/nautilus-icon-dnd.c:
	* libnautilus-extensions/nautilus-icon-dnd.h:
	* libnautilus-extensions/nautilus-list.c:
	(nautilus_drag_selection_item_new), (drag_selection_item_destroy),
	(nautilus_drag_destroy_selection_list),
	(nautilus_drag_build_selection_list),
	(create_selection_shadow),
	(nautilus_icon_container_dropped_icon_feedback),
	(drag_data_received_callback),
	(nautilus_icon_container_ensure_drag_data), (drag_end_callback),
	(nautilus_icon_container_selection_items_local),
	(nautilus_icon_canvas_item_can_accept_items), (handle_local_move),
	(handle_nonlocal_move),
	(nautilus_icon_container_receive_dropped_icons),
	(nautilus_icon_container_free_drag_data), (nautilus_icon_dnd_fini),
	(drag_drop_callback), (nautilus_list_initialize), (nautilus_list_drag_end),
	(nautilus_list_drag_leave), (nautilus_list_drag_drop),
	(nautilus_list_drag_data_received):
	Start splitting out drag&drop code common between icon view and list view
	into a new file.
	Start adding drag&drop calls to list view.
	Bunch of renamings.
2000-05-29 20:54:01 +00:00
Ramiro Estrugo
2923a7881f New function to access the index for a given string.
* libnautilus-extensions/nautilus-string-list.c:
(nautilus_string_list_get_index_for_string),
(nautilus_self_check_string_list):
* libnautilus-extensions/nautilus-string-list.h:
New function to access the index for a given string.
2000-05-29 16:16:33 +00:00
Ramiro Estrugo
fe2558582d Update for latest ntl-* -> nautilus-* renaming. Keeo the old ntl- names as
* nautilus-clean.sh:
Update for latest ntl-* -> nautilus-* renaming.  Keeo the old ntl-
names as well to prevent stale component braindamage.
2000-05-29 13:43:32 +00:00
Ramiro Estrugo
721890cac1 Ignore generated files. 2000-05-29 12:08:19 +00:00
Ramiro Estrugo
7b4e5be3e6 nautilus-widgets/nautilus-string-picker.c, New widget to pick a string
* nautilus-widgets/nautilus-string-picker.c,
* nautilus-widgets/nautilus-string-picker.h:
New widget to pick a string from a list.

* nautilus-widgets/test-nautilus-preferences.c:
New test program.  Test prefrences things.

* nautilus-widgets/test-nautilus-widgets.c:
Remove preference tests.  Test only non preference widgetry.

* nautilus-widgets/Makefile.am,
* nautilus-widgets/.cvsignore:
Add test-nautilus-preferences.
2000-05-29 10:29:01 +00:00
Ramiro Estrugo
b6046f5e0f libnautilus-extensions/nautilus-string-list.h, New function to return the
* libnautilus-extensions/nautilus-string-list.h,
* libnautilus-extensions/nautilus-string-list.c:
(nautilus_string_list_as_g_list): New function to return the
string list as a GList.
2000-05-29 09:57:21 +00:00
Ramiro Estrugo
7de61352a6 Remove unneeded inclusion of nautilus-string-list.h
* libnautilus-extensions/nautilus-global-preferences.h:

Remove unneeded inclusion of nautilus-string-list.h

* libnautilus-extensions/nautilus-global-preferences.c:

Fix a user visible typo in appearance/graphics.
Add a better description for the sidebar panels pane (bug 304)
2000-05-29 09:45:03 +00:00
Andy Hertzfeld
e57c061e97 fixed bug 604, handle dropped files in sidebar by setting location
fixed bug 604, handle dropped files in sidebar by setting location
2000-05-29 06:47:31 +00:00
Andy Hertzfeld
60f644a4d2 added preference for Susan's alternative toolbar icons, which still
added preference for Susan's alternative toolbar icons, which still
	default to the standard Gnome ones.
2000-05-29 05:53:54 +00:00
Ramiro Estrugo
72ae16521f g_warning with trailing \n == EVIL! - fix. 2000-05-29 00:43:38 +00:00
Ramiro Estrugo
69748988fd Make sure the preference values are indeed different than the
currently stored ones.  Otherwise, bogus callbacks get emitted
causing innefecient (and unneeded!) things such as directories
reloading.
2000-05-29 00:40:44 +00:00
Pavel Cisler
fc04ff6d6e Fix an accent.
2000-05-28  Pavel Cisler  <pavel@eazel.com>

	* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback):
	Fix an accent.
2000-05-28 08:34:03 +00:00
Pavel Cisler
3bc14c4473 Used the fixed-up gnome_vfs_shutdown to properly synchronize with GnomeVFS
2000-05-27  Pavel Cisler  <pavel@eazel.com>

	* src/nautilus-application.c: (nautilus_app_quit):
	Used the fixed-up gnome_vfs_shutdown to properly synchronize
	with GnomeVFS threads that are still finishing up. Got rid of
	nautilus_app_real_quit and the other hacky code that I used
	to do this before gnome_vfs_shutdown was working properly.
	Got rid of a bunch of FIXMEs that are now take care of.

	* libnautilus-extensions/nautilus-directory-async.c:
	(cancel_directory_counts), (top_left_read_close),
	(cancel_top_left_read), (nautilus_metafile_read_cancel),
	(start_getting_directory_counts), (start_getting_top_lefts):
	Added cancel calls to the different GnomeVFS async tasks that
	can be running when opening a Nautilus window, called them
	from the NautilusDirectory destroy call.

	Nautilus now shuts down GnomeVFS jobs cleanly during a quit.
	There is still a problem where in some cases it will take a
	while before the async jobs go away. This seems to be because
	the corresponding NautilusDirectory doesn't get destroyed right
	away when a window is closed. I need to get Darin to help me fix
	this.
2000-05-28 05:05:28 +00:00
Eskil Heyn Olsen
57c6a44af2 Added eazel_install_uninstall call to the gtk+ object. This opened a can
* components/services/install/lib/eazel-install-object.c:
	(eazel_install_uninstall):
	* components/services/install/lib/eazel-install-public.h:
	Added eazel_install_uninstall call to the gtk+ object. This
	opened a can of worms reg. error during uninstall, which is
	also relevant to install. See bug#1024.

	* components/services/install/lib/eazel-install-rpm-glue.c:
	(install_new_packages), (download_a_package),
	(download_all_packages), (install_all_packages),
	(uninstall_packages), (uninstall_a_package), (do_rpm_uninstall),
	(rpm_uninstall):
	More passing around of a EazelService object. And more sane
	errorhandling to avoid the lib causing an exit.

	* nautilus-installer/src/installer.c: (installer):
	Partial uninstall support.
2000-05-28 04:26:35 +00:00
Eskil Heyn Olsen
0e92e4c083 The eazel-time service cli binary is now called eazel-time. Default
* components/services/time/command-line/Makefile.am:
	* components/services/time/service/trilobite-eazel-time-service.c:
	(trilobite_eazel_time_service_initialize):
	The eazel-time service cli binary is now called eazel-time.
	Default maxdiff is now set to 180 secs.
2000-05-28 01:33:13 +00:00
Maciej Stachowiak
6b25b6726d Removed these unused files. Remove them from the build.
* libnautilus-extensions/nautilus-scroll-frame.c,
	libnautilus-extensions/nautilus-scroll-frame.h: Removed these
	unused files.
	* libnautilus-extensions/Makefile.am: Remove them from the build.
2000-05-27 12:21:31 +00:00
Maciej Stachowiak
a15fd9f881 components/history/ntl-history-view.c ->
* Renamed files as follows, as per RENAMING:
	components/history/ntl-history-view.c -> components/history/nautilus-history-view.c
	components/history/ntl-history-view.oafinfo -> components/history/nautilus-history-view.oafinfo
	components/notes/ntl-notes.c -> components/notes/nautilus-notes.c
	components/notes/ntl-notes.oafinfo -> components/notes/nautilus-notes.oafinfo
	libnautilus-extensions/gtkscrollframe.c -> libnautilus-extensions/nautilus-scroll-frame.c
	libnautilus-extensions/gtkscrollframe.h -> libnautilus-extensions/nautilus-scroll-frame.h
	libnautilus/nautilus-view-frame.c -> libnautilus/nautilus-view.c
	libnautilus/nautilus-view-frame.h -> libnautilus/nautilus-view.h
	src/nautilus-index-tabs.c -> src/nautilus-sidebar-tabs.c
	src/nautilus-index-tabs.h -> src/nautilus-sidebar-tabs.h
	src/nautilus-index-title.c -> src/nautilus-sidebar-title.c
	src/nautilus-index-title.h -> src/nautilus-sidebar-title.h
	src/nautilus-zoomable-frame-svr.c -> src/nautilus-zoomable-frame-corba.c
	src/ntl-app.c -> src/nautilus-application.c
	src/ntl-app.h -> src/nautilus-application.h
	src/ntl-index-panel.c -> src/nautilus-sidebar.c
	src/ntl-index-panel.h -> src/nautilus-sidebar.h
	src/ntl-main.c -> src/nautilus-main.c
	src/ntl-miniicon.c -> libnautilus-extensions/nautilus-mini-icon.c
	src/ntl-miniicon.h -> libnautilus-extensions/nautilus-mini-icon.h
	src/ntl-uri-map.c -> src/nautilus-applicable-views.c
	src/ntl-uri-map.h -> src/nautilus-applicable-views.h
	src/ntl-view-bonobo-control.c -> src/nautilus-view-frame-bonobo-control.c
	src/ntl-view-bonobo-subdoc.c -> src/nautilus-view-frame-bonobo-embeddable.c
	src/ntl-view-frame-svr.c -> src/nautilus-view-frame-corba.c
	src/ntl-view-nautilus.c -> src/nautilus-view-frame-nautilus-view.c
	src/ntl-view-private.h -> src/nautilus-view-frame-private.h
	src/ntl-view.c -> src/nautilus-view-frame.c
	src/ntl-view.h -> src/nautilus-view-frame.h
	src/ntl-window-msgs.c -> src/nautilus-window-manage-views.c
	src/ntl-window-msgs.h -> src/nautilus-window-manage-views.h
	src/ntl-window-private.h -> src/nautilus-window-private.h
	src/ntl-window-state.c -> src/nautilus-window-state.c
	src/ntl-window-state.h -> src/nautilus-window-state.h
	src/ntl-window.c -> src/nautilus-window.c
	src/ntl-window.h -> src/nautilus-window.h

	* components/history/Makefile.am, components/notes/Makefile.am,
	libnautilus-extensions/Makefile.am, libnautilus/Makefile.am,
	po/POTFILES.in, src/Makefile.am,
	components/hardware/nautilus-hardware-view.h,
	components/loser/content/nautilus-content-loser.h,
	components/loser/sidebar/nautilus-sidebar-loser.h,
	components/mozilla/nautilus-mozilla-content-view.h,
	components/music/nautilus-music-view.h,
	components/rpmview/nautilus-rpm-view.h,
	components/sample/nautilus-sample-content-view.h,
	components/services/startup/nautilus-view/nautilus-service-startup-view.h,
	libnautilus/libnautilus.h, src/nautilus-desktop-window.h,
	src/nautilus-window-menus.c, src/nautilus-window-toolbars.c,
	src/file-manager/fm-directory-view.h : Updated for renamings.

	* RENAMING: removed old renamings
2000-05-27 12:17:20 +00:00
Eskil Heyn Olsen
97fabc0a47 Added the first pieces if the GUI installer. Since we don't want it to be
* nautilus-installer/Makefile:
	* nautilus-installer/Makefile.am:
	* nautilus-installer/Makefile.in:
	* nautilus-installer/nautilus-installer.c:
	* nautilus-installer/nautilus-installer.glade:
	* nautilus-installer/src/HACKING:
	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.in:
	* nautilus-installer/src/callbacks.c: (druid_cancel),
	(begin_install), (druid_finish), (prep_install):
	* nautilus-installer/src/installer.c: (eazel_install_progress),
	(eazel_download_progress), (installer):
	* nautilus-installer/src/installer.h:
	* nautilus-installer/src/interface.c: (create_window):
	* nautilus-installer/src/interface.h:
	* nautilus-installer/src/main.c: (main):
	Added the first pieces if the GUI installer. Since we don't want
	it to be part of the built, I've committed the generated makefiles
	as well. This also means you should be able to build it straigt
	from cvs. It already has base functionality, and is almost 70% done.
2000-05-27 03:53:05 +00:00
Eskil Heyn Olsen
e8297d1c5f Don't build eazel-install, only eazel-alt-install, which uses the
* components/services/install/command-line/Makefile.am:
	* components/services/install/command-line/eazel-alt-install.c:
	(set_parameters_from_command_line), (eazel_install_progress),
	(eazel_download_progress), (main):
	Don't build eazel-install, only eazel-alt-install, which
	uses the EazelInstall object.

	* components/services/install/lib/eazel-install-object.c:
	(impl_Eazel_Install_new_packages), (eazel_install_get_epv),
	(eazel_install_destroy), (eazel_install_set_arg),
	(eazel_install_class_initialize),
	(eazel_install_create_corba_object), (eazel_install_initialize),
	(eazel_install_get_type), (eazel_install_new),
	(eazel_install_new_with_config), (create_temporary_directory),
	(fetch_remote_package_list), (eazel_install_emit_install_progress),
	(eazel_install_emit_download_progress),
	(eazel_install_new_packages):
	Implemented a GTK+ object for libinstall. It has the basic
	functionality needed for the May 31st gui installer. This means it
	can be instantiated, the install and transferoptions be set and it
	can do the download of the packagelist, and download and install
	the files mentioned there. Needs upgrade & uninstall, plus a lot
	of errorchecking and memleaks (bug#982). This halfway completed bug#980.

	* components/services/install/lib/eazel-install-private.h:
	* components/services/install/lib/eazel-install-protocols.c:
	(http_fetch_remote_file):
	* components/services/install/lib/eazel-install-protocols.h:
	* components/services/install/lib/eazel-install-public.h:
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(install_new_packages), (download_a_package),
	(download_all_packages), (install_all_packages),
	(uninstall_packages), (rpm_show_progress), (do_rpm_install),
	(rpm_install):
	* components/services/install/lib/eazel-install-rpm-glue.h:
	Did a lot of hacking and slashing to pass the EazelInstall object
	downwards so progress signals can be emitted. Also a lot of
	errorhandling was fixed so it doesn't just g_assert or such.
	But a lot more of that is needed (bug#1014) and some major
	slashing so the EazelInstall passing isn't so ugly (bug#980).
2000-05-27 03:04:19 +00:00
Darin Adler
63d4a318cb A little more desktop window work.
* src/nautilus-desktop-window.c:
	(nautilus_desktop_window_initialize_class),
	(nautilus_desktop_window_initialize),
	(nautilus_desktop_window_new):
	* src/nautilus-desktop-window.h:
	* src/ntl-app.c: (nautilus_app_startup), (nautilus_app_quit),
	(nautilus_app_create_window):
	* src/ntl-app.h:
	* src/ntl-main.c: (main):
	Made a desktop window that's created when you start the program
	if you pass the --desktop option. At the moment it's a normal
	window and not set up to take over the desktop.

	* libnautilus-extensions/nautilus-glib-extensions.c:
	(nautilus_self_check_glib_extensions): Fixed some broken self-
	checks. Now we have one really broken self-check in the
	nautilus-directory.c file. I might turn that one off soon so we
	can at least run the others.

	* libnautilus-extensions/nautilus-gtk-macros.h:
	Changed how some of the macros work. Few of these macros were used
	in Nautilus. I hope they aren't used in the Mozilla component,
	because then I broke it.

	* libnautilus-extensions/nautilus-list-column-title.c:
	(nautilus_list_column_title_motion),
	(nautilus_list_column_title_button_press),
	(nautilus_list_column_title_button_release):
	Updated to use NAUTILUS_INVOKE_METHOD instead of NAUTILUS_KLASS,
	because I renamed it to NAUTILUS_CLASS and had to change these
	anyway.

	A little sweep for code that should be using
	CORBA_Object_is_nil instead of direct compares with
	CORBA_OBJECT_NIL.

	* components/html/main.c: (url_requested_cb):
	* libnautilus-extensions/bonobo-stream-vfs.c:
	(bonobo_stream_create):
	* libnautilus/nautilus-undo-manager.c:
	(set_up_bonobo_control):
	* libnautilus/nautilus-undoable.c: (nautilus_undo_register_full),
	(nautilus_undo_unregister), (nautilus_undo):
	* src/file-manager/dfos.c: (dfos_new):
	Switch to use CORBA_Object_is_nil.

	* libnautilus/nautilus-undo-manager.c: (undo_manager_unref),
	(nautilus_attach_undo_manager), (nautilus_share_undo_manager),
	(set_up_bonobo_control):
	Do some missing duplicate and release calls.

	* libnautilus/nautilus-undoable.c: (nautilus_undo_unregister):
	Fix a place where we'd keep a reference to a freed list.
	Change O(n^2) walk of list by index to O(n) walk by pointer.

	* src/ntl-index-panel.c: (nautilus_index_panel_remove_meta_view):
	Changed g_warning to a g_return_if_fail, which was designed for
	cases just like this one.

	* src/ntl-view-bonobo-subdoc.c:
	(bonobo_subdoc_notify_location_change):
	Put in a better version of the FIXME.

	* RENAMING: More updates.
2000-05-27 02:17:41 +00:00
Ramiro Estrugo
7f5aef6432 Add support for toggling sidebar panels on the fly via the
preferences dialog.

Also moved function prototypes and macro definitions to top of
file.

* src/ntl-window.c: (impl_Nautilus_ViewWindow__create),
(nautilus_window_remove_meta_view):
Removed the *_real cruft.  Cleaned this a tiny bit.

(window_find_sidebar_panel_by_identifier):
New function for finding panels given an identifiers.

(window_update_sidebar_panels_from_preferences):
New function to update the current list of sidebar panels from
preferences.
Disabled panels are removed if they are already in the list.
Enabled panels are added if they are not already in the list.

NOTE: It would be 'nice' if in the future all updates of the
sidebar panel occur in just one place - the above function for
example.  This is in contrast to the current mess where both
ntl-window.c and ntl-window-msgs.c abuse the meta_views list at
random places.  Ill look into this later.

(sidebar_panels_changed_callback):
Now actually responds to changes.

* src/ntl-window.h:
Style dumbness.
2000-05-27 00:22:18 +00:00
Ramiro Estrugo
3e1a1af275 Add a function that returns the disabled sidebar panels. Needed so that
* libnautilus-extensions/nautilus-global-preferences.c:
(nautilus_global_preferences_get_enabled_sidebar_panel_view_identifiers),
(nautilus_global_preferences_get_disabled_sidebar_panel_view_identifiers):
* libnautilus-extensions/nautilus-global-preferences.h:

Add a function that returns the disabled sidebar panels.  Needed
so that on-the-fly sidebar panel toggling can be smart about
adding and removing views.

Also rename some variabled to make it obvious which are the enabled
and disabled lists.
2000-05-27 00:11:03 +00:00
Ramiro Estrugo
de44485366 Remove the tab associated with meta view as well. Add a warning for the
* src/ntl-index-panel.c: (nautilus_index_panel_remove_meta_view):

Remove the tab associated with meta view as well.  Add a warning
for the case when the page_num is bogus.  Perhaps this should be
an assertion.  But at least this way it wont fail silently.
2000-05-26 20:48:04 +00:00
John Sullivan
56afae5d48 Added a FIXME to the line that Dan Winship says should be passing a MIME
* src/ntl-view-bonobo-subdoc.c:
	(bonobo_subdoc_notify_location_change):
	Added a FIXME to the line that Dan Winship says should
	be passing a MIME type but is currently passing "".
2000-05-26 20:43:59 +00:00
John Sullivan
cbf780ad2b Fixed bug 992 ("Fully Decorate Remote Views" is not a
sensible preference). Note that before making the
	quick wording fix Darin, Ian, and I came up with a
	longer-term plan for handling this general kind of
	thing well (bug 995).

	* libnautilus-extensions/nautilus-global-preferences.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(state_changed):
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog),
	(global_preferences_register_for_ui):
	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_icon_for_file):
	Changed "Fully Decorate Remote Views" to "Display text in
	icons even for remote text files"
	Changed NAUTILUS_PREFERENCES_REMOTE_VIEWS to
	NAUTILUS_PREFERENCES_SHOW_TEXT_IN_REMOTE_ICONS
2000-05-26 18:55:25 +00:00
John Sullivan
6de7cc861b Changed the NULL to a "", now text files work. I think it's back to normal
* src/ntl-view-bonobo-subdoc.c:
	(bonobo_subdoc_notify_location_change):
	Changed the NULL to a "", now text files work. I think
	it's back to normal now.
2000-05-26 16:11:55 +00:00
John Sullivan
2e1e4e804f Added a NULL parameter to a Bonobo_PersistStream_load call to get the
* src/ntl-view-bonobo-subdoc.c:
	(bonobo_subdoc_notify_location_change):
	Added a NULL parameter to a Bonobo_PersistStream_load call
	to get the build to finish. The API for this call changed.
	I have no idea whether this is the correct change, but with it
	I can build and run Nautilus. I noticed clicking on a text file
	crashes, which might be related (maybe no Bonobo components will
	work until we fix this properly)?
2000-05-26 16:07:06 +00:00
Ramiro Estrugo
22f00eef61 Keep track of sidebar panel enabled/disabled toggling. Currently the
* src/ntl-window.c: (nautilus_window_init),
(nautilus_window_destroy), (nautilus_window_real_set_content_view),
(sidebar_panels_changed_callback):

Keep track of sidebar panel enabled/disabled toggling.  Currently
the callback doesnt do nothing.  Soon it will.
2000-05-26 16:01:48 +00:00
Ramiro Estrugo
f456979555 Ignore generated files.
* components/services/install/command-line/.cvsignore:
* components/services/install/lib/.cvsignore:
Ignore generated files.
2000-05-26 15:54:28 +00:00
Ramiro Estrugo
371919a9c0 Expose only a single function to deal with sidebar panels. Return a list
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_get_sidebar_panel_view_identifiers),
(nautilus_global_preferences_get_enabled_sidebar_panel_view_identifiers),
(global_preferences_register_sidebar_panels_preferences_for_ui),
(global_preferences_is_sidebar_panel_enabled),
(nautilus_global_preferences_shutdown):
* libnautilus-extensions/nautilus-global-preferences.h:

Expose only a single function to deal with sidebar panels.  Return
a list of enabled view indentifiers, saving callers the work and
complication of figuring out which panels are on.

Make NAUTILUS_PREFERENCES_SIDEBAR_PANELS_NAMESPACE cause i need it
to later keep track of sidebar panel changes in NautilusWindow.

* src/ntl-uri-map.c: (got_file_info_callback),
(nautilus_navigation_info_free):
* src/ntl-uri-map.h:
* src/ntl-window-msgs.c: (nautilus_window_update_state):
Exorcise the 'sidebar_panel_identifiers' member.  Instead of
complicating life by managing this list, simply obtain it when
needed from global preferences.
2000-05-26 15:51:43 +00:00
Ramiro Estrugo
88a49b8336 Some cleanup of index tabs.
* src/nautilus-index-tabs.c: (nautilus_index_tabs_initialize),
(nautilus_index_tabs_size_request), (draw_one_tab),
(draw_or_hit_test_all_tabs), (tab_item_find_by_name),
(nautilus_index_tabs_add_view),
(nautilus_index_tabs_get_title_from_index),
(nautilus_index_tabs_remove_view),
(nautilus_index_tabs_prelight_tab),
(nautilus_index_tabs_select_tab), (nautilus_index_tabs_set_color),
(nautilus_index_tabs_receive_dropped_color),
(nautilus_index_tabs_set_title),
(nautilus_index_tabs_set_title_mode),
(nautilus_index_tabs_set_visible):

Some cleanup of index tabs.

Changed find_tab() to tab_item_find_by_name() which returns the
actual tab item instead of a list node.

Changed the GList append and remove operations to be more sane and
actually work in the latter case.

Print warnings on attempts to operate on non-existing tab items as
these indicate programming errors upstream.

Also add bulletproofing g_return_* macros.
2000-05-26 15:28:33 +00:00
Ramiro Estrugo
f4bb921043 Install only ONE gconf notification for each preference or namespace that
* nautilus-widgets/nautilus-preferences.c: (pref_hash_node_alloc),
(pref_hash_node_free), (pref_hash_node_add_callback),
(pref_hash_node_remove_callback), (pref_callback_info_alloc),
(preferences_gconf_callback):

Install only ONE gconf notification for each preference or
namespace that we care about.  Otherwise we get an exponential
number of notifications.  Move the gconf_connection from the
callback list info to the preference hash node.

Remove lingering gconf notifications on destruction of hash
nodes.
2000-05-26 11:28:17 +00:00
Ramiro Estrugo
0885d254ca Fix the annoying as hell assertions coming from these components. Dont
* components/help/hyperbola-nav-index.c:
(hyperbola_navigation_index_new):
* components/help/hyperbola-nav-search.c:
(hyperbola_navigation_search_new):

Fix the annoying as hell assertions coming from these components.
Dont install the entry widgets as the titles for the clist.  You
cant do this cause they have already be added to the vbox
container and thus the barfing in gtk_container_add() about the
widget already having a parent.  There doesnt seem to be any
noticeable ui change because of this.  The help search/index
continue to work as "good" as before.
2000-05-26 11:22:30 +00:00
Ramiro Estrugo
c774ab9774 Add support for keeping track of changes within a whole preference
* nautilus-widgets/nautilus-preferences.c:
(pref_hash_node_add_callback), (pref_hash_node_remove_callback),
(preferences_gconf_callback):

Add support for keeping track of changes within a whole preference
namespace.

Pass in the expected preference to the gconf callback.  Do this so
that we can compare the expected prefrence name with the one that
gconf reports.  If they dont match, then we have something that
changed within a namespace and not an individual key.

Also fix some memory leaks.  Was forgetting to free a couple of
returned preference names.
2000-05-26 09:33:20 +00:00
Eskil Heyn Olsen
20215a30d1 oops 2000-05-26 08:32:43 +00:00
Eskil Heyn Olsen
28490b7589 Missed a file...
*
	components/services/install/lib/trilobite-eazel-install-service.oaf
	info:
	Missed a file...
2000-05-26 08:30:45 +00:00
Gene Z. Ragan
7c045c92c7 More work on undo. Note that undo in text entry fields still misbehaves.
2000-05-25  Gene Z. Ragan  <gzr@eazel.com>

	More work on undo.  Note that undo in text entry fields still
	misbehaves.  More improvements are on the way.

	* components/websearch/ntl-web-search.c:
	(make_obj):
	Removed obsolete enable undo code.

	* libnautilus-extensions/nautilus-entry.c:
	* libnautilus-extensions/nautilus-entry.h:
	(nautilus_entry_initialize_class), (nautilus_entry_key_press),
	(nautilus_entry_insert_text), (nautilus_entry_delete_text),
	(register_edit_undo), (nautilus_entry_set_undo_key):
	Removed the enable_undo function and made undo functionality
	a default feature of NautilusEntry.

	* libnautilus/nautilus-undo-transaction.c:
	(nautilus_undo_transaction_add_undoable),
	(nautilus_undo_transaction_undo):

	* libnautilus/nautilus-undoable.c:
	* libnautilus/nautilus-undoable.h:
	(nautilus_undoable_save_undo_snapshot), (nautilus_undo_unregister):

	* src/file-manager/fm-properties-window.c: (create_basic_page):
	Removed obsolete enable undo code.

	* src/nautilus-bookmarks-window.c: (on_text_field_focus_in_event),
	(on_text_field_focus_out_event), (on_window_delete_event):
	Removed obsolete enable undo code.

	* src/nautilus-location-bar.c:
	* src/nautilus-location-bar.h:
	(nautilus_location_bar_set_location):
	Removed obsolete enable undo code.

	* src/ntl-window.c: (nautilus_window_constructed):
	Removed obsolete enable undo code.
2000-05-26 07:08:11 +00:00
Eskil Heyn Olsen
cb170d00f1 Small program to test the gtk+ version of the installer.
* components/services/install/command-line/Makefile.am:
	* components/services/install/command-line/eazel-alt-install.c:
	Small program to test the gtk+ version of the installer.

	(set_parameters_from_command_line), (main):
	* components/services/install/idl/trilobite-eazel-install.idl:
	* components/services/install/lib/Makefile.am:
	* components/services/install/lib/eazel-install-object.c:
	(impl_Trilobite_Eazel_Install_new_packages),
	(trilobite_eazel_install_get_epv),
	(trilobite_eazel_install_destroy),
	(trilobite_eazel_install_set_arg),
	(trilobite_eazel_install_class_initialize),
	(trilobite_eazel_install_create_corba_object),
	(trilobite_eazel_install_initialize),
	(trilobite_eazel_install_get_type), (trilobite_eazel_install_new),
	(trilobite_eazel_install_new_with_config),
	(create_temporary_directory), (fetch_remote_package_list),
	(trilobite_eazel_install_new_packages):
	* components/services/install/lib/eazel-install-private.h:
	* components/services/install/lib/eazel-install-public.h:
	Created a gtk+ object for the installer. Will be needed for the ui
	object to do callbacks for the progress bars

	* components/services/install/lib/eazel-install-metadata.c:
	(xml_doc_sanity_checks), (init_default_install_configuration),
	(init_default_transfer_configuration):
	* components/services/install/lib/eazel-install-xml-package-list.c:
	(parse_local_xml_package_list):
	Removed various g_errors and g_asserts and replaced them
	with some sort of return code (boolean or NULL)
2000-05-26 06:57:54 +00:00
John Sullivan
e52cc9902e Added a missing space.
2000-05-25  John Sullivan  <sullivan@eazel.com>

	* src/ntl-app.c: (display_caveat): Added a missing space.


	More work on the "Open with Other" dialogs. Most of
	the UI features are present now, but they don't do
	anything since there's no API to call yet.

	* libnautilus-extensions/nautilus-gtk-extensions.h,
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_clist_get_first_selected_row),
	(nautilus_gtk_clist_get_last_selected_row):
	Moved these functions to here from NautilusList, since
	they only require a GtkCList and I needed to use one
	of them outside of NautilusList.

	* libnautilus-extensions/nautilus-list.c:
	(nautilus_list_get_first_selected_row),
	(nautilus_list_get_last_selected_row),
	(nautilus_list_keyboard_navigation_key_press),
	(nautilus_list_new_with_titles):
	Removed get_first and get_last_selected_row, and updated
	callers to call new nautilus_gtk_clist versions.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list), (nautilus_program_chooser_get_file),
	(nautilus_program_chooser_get_clist),
	(nautilus_program_chooser_get_frame),
	(nautilus_program_chooser_get_status_label),
	(nautilus_program_chooser_set_file),
	(nautilus_program_chooser_set_clist),
	(nautilus_program_chooser_set_frame),
	(nautilus_program_chooser_set_status_label), (is_in_short_list),
	(is_in_metadata_list), (update_selected_item_details),
	(program_list_selection_changed_callback), (pack_radio_button),
	(run_program_configurator_callback),
	(nautilus_program_chooser_new):
	Whole bunch of changes to push the "Open with Other" dialogs
	closer to reality.

	* src/ntl-window.c:
	(view_menu_choose_view_callback): Comment changes only.
	(nautilus_window_load_content_view_menu): Changed menu item
	text from "View as ..." to "View as Other..."
2000-05-26 00:50:32 +00:00
Darin Adler
082b0a23f0 I am getting a little careless. This must end.
* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_denies_access_permission): Fixed some checks
	that I had reversed.

	* src/ntl-app.c: (display_caveat): Took out some test code I
	checked in.
2000-05-26 00:35:37 +00:00
Darin Adler
88d96d502f Checked it in without finishing it. Bad Darin. 2000-05-26 00:19:48 +00:00
Darin Adler
0e9ba92d75 Made the permission check match the Unix access model. Maciej points out
* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_denies_access_permission),
	(nautilus_file_can_set_permissions): Made the permission check
	match the Unix access model. Maciej points out that this is
	still not good enough, and Pavel points out that bug 458 is
	about just this problem.

	* libnautilus-extensions/nautilus-gnome-extensions.c:
	(turn_on_line_wrap_flag): Got rid of a bad g_free that was
	trashing memory when locating the label for line wrapping.

	* src/ntl-app.c: (display_caveat): Used line wrapping, now that
	I know wrapping wasn't the cause of the bug before.
2000-05-26 00:02:22 +00:00
Ramiro Estrugo
8cbb5d30b4 Cleanup cut-n-paste code for dealing the sidebar panels.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog),
(global_preferences_register_sidebar_panels_preferences_for_ui),
(global_preferences_get_sidebar_panel_key),
(nautilus_global_preferences_is_sidebar_panel_enabled),
(global_preferences_register_for_ui),
(user_level_changed_callback),
(nautilus_global_preferences_startup):
Added define for sidebar panels namespace.

Rename preference defines to make it clear whether they are keys
or namespaces.

Add function to obtain a sidebar panel key from an iid.

Use "sidebar panels" consistently in both code and preferences
dialog.

* libnautilus-extensions/nautilus-global-preferences.h:
New public function
nautilus_global_preferences_is_sidebar_panel_enabled () that
returns whether a sidebar panel is enabled.

* src/ntl-uri-map.c: (sidebar_panel_preference_is_on):
Use nautilus_global_preferences_is_sidebar_panel_enabled() instead
of hard-coding the namespace string.
2000-05-25 23:56:42 +00:00
Robin Slomkowski
cdb759bd89 Added French Language support as done by
Jean-Michel Ardantz <jmardantz@ifrance.com>
Added fr as a language in configure.in, and added po/fr.po
2000-05-25 23:12:14 +00:00
Darin Adler
da3975518f Instead of ref'ing the control we want to do a "while_alive". The old way
* libnautilus/nautilus-clipboard.c:
	(nautilus_clipboard_set_up_editable): Instead of ref'ing the
	control we want to do a "while_alive". The old way could be
	dangerous, so I'm glad I caught this.
2000-05-25 22:49:06 +00:00
Darin Adler
bcd654be84 Took out an extra bonobo_object_ref that was wreaking havoc. If we want to
* libnautilus/nautilus-view-frame.c:
	(nautilus_view_get_bonobo_control):
	Took out an extra bonobo_object_ref that was wreaking havoc.
	If we want to make this ref the thing before returning it,
	we'll have to get it right.
2000-05-25 22:31:12 +00:00
Darin Adler
78899d3907 Updated to reflect completed tasks.
* RENAMING: Updated to reflect completed tasks.

	* components/notes/ntl-notes.c: (make_notes_view):
	* components/websearch/ntl-web-search.c: (make_obj):
	Changed to use simplified clipboard API.

	* components/services/trilobite/libtrilobite/.cvsignore:
	Ignore generated files.

	* libnautilus-extensions/gtkscrollframe.c:
	* libnautilus-extensions/gtkscrollframe.h:
	Renamed GtkScrollFrame to NautilusScrollFrame so we won't conflict
	if a GtkScrollFrame actually gets added to gtk some day. The file
	still needs renaming (mentioned in RENAMING).

	* libnautilus/nautilus-clipboard.h:
	* libnautilus/nautilus-clipboard.c: (cut_callback),
	(copy_callback), (paste_callback), (clear_callback),
	(add_menu_item), (add_menu_items_callback),
	(remove_menu_items_callback), (nautilus_clipboard_set_up_editable):
	Simplified clipboard implementation. Does the same thing the old
	code did without needing a class and with a simpler API.

	* nautilus-widgets/nautilus-preferences-item.c:
	* src/file-manager/fm-icon-text-window.c:
	* src/nautilus-zoom-control.c:
	* src/ntl-window.c:
	Renamed _cb to _callback. Some other (minor) cleanup.

	* src/file-manager/Makefile.am:
	* src/file-manager/desktop-canvas.c: [removed]
	* src/file-manager/desktop-canvas.h: [removed]
	* src/file-manager/desktop-menu.c: [removed]
	* src/file-manager/desktop-menu.h: [removed]
	* src/file-manager/gnome-desktop.c: [removed]
	Now that I'm doing the desktop work, I know we don't need these.
	I'll be deleting the desktop source files that Havoc added as I
	harvest the useful code from them.

	* src/file-manager/fm-directory-view.c:
	(bonobo_control_activate_callback): Add comments.

	* src/nautilus-zoom-control.h: Fixed problem where the zoom
	control didn't know if it was an event box or a pixmap.

	* src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view):
	Fixed bug that was trashing the sidebar panel names. I put
	the g_free call in the wrong place.

	* src/ntl-uri-map.c: (sidebar_panel_preference_is_on):
	Fixed bug where the sidebar preference wasn't saved. I found
	another place with another copy of the preference path. This
	sort of thing really needs to go in a header file, I think.
2000-05-25 21:32:33 +00:00
J Shane Culpepper
967aace7a9 Fixed nautilus-installer so that it uses so that it uses async ghttp fetch of
the package-list.
2000-05-25 19:43:11 +00:00
Ali Abdin
2c4122ebf2 2000-05-25 Ali Abdin <aliabdin@aucegypt.edu
* components/help/help-methods.c:
        (transform_absolute_file): Fixed a bug to get it to really treat
        URI's as 'absolute'. Also fixed another bug with trailing spaces.
        Necessary because the URI holds the '\n' (when the user presses
        enter.

        Also added debugging statements in the functions (#define ALI_DEBUG
        to turn them on). I will take them out once help actually starts
        working
2000-05-25 12:44:16 +00:00
J Shane Culpepper
b5f746e014 Big time clean up of the overall flow of installs. Now, all packages
are downloaded before install.  Tried to setup as many of the print
        functions as possible to support internationalization.  Removed old
        gnet http groks of the package list and now grab the package list with
        the async ghttp fetch functionality.  Did alot of cleanups in the
        rpm glue functions to make them more managable.  Removed the prune_xml
        function i swipped from helixcode since it is no longer needed.
2000-05-25 08:14:20 +00:00
Ramiro Estrugo
be62a451fd Update status flags to latest and gratest gtkmozembed api.
* components/mozilla/nautilus-mozilla-content-view.c:
(mozilla_net_status_callback):

Update status flags to latest and gratest gtkmozembed api.
2000-05-25 02:33:15 +00:00
Gene Ragan
31890627ca *** empty log message *** 2000-05-25 02:14:50 +00:00
Darin Adler
346de1525e [removed] [removed]
* components/hardware/nautilus-hardware-view.c:
	(nautilus_hardware_view_initialize),
	(hardware_view_notify_location_change_callback):
	* components/hardware/nautilus-hardware-view.h:
	* components/help/hyperbola-nav-index.c:
	(hyperbola_navigation_index_select_row):
	* components/help/hyperbola-nav-search.c:
	(hyperbola_navigation_search_select_row),
	(hyperbola_navigation_search_new):
	* components/html/ntl-web-browser.c: (browser_url_load_done),
	(browser_vfs_callback), (browser_goto_url_real),
	(browser_goto_url), (browser_select_url), (browser_title_changed),
	(browser_notify_location_change), (make_obj):
	* components/loser/content/main.c: (loser_make_object):
	* components/loser/content/nautilus-content-loser.c:
	(nautilus_content_loser_initialize),
	(loser_notify_location_change_callback):
	* components/loser/content/nautilus-content-loser.h:
	* components/loser/sidebar/main.c: (loser_make_object):
	* components/loser/sidebar/nautilus-sidebar-loser.c:
	(nautilus_sidebar_loser_initialize),
	(loser_notify_location_change_callback):
	* components/mozilla/main.c: (mozilla_make_object):
	* components/mozilla/nautilus-mozilla-content-view.c:
	(nautilus_mozilla_content_view_initialize),
	(mozilla_content_view_request_progress_change),
	(mozilla_content_view_request_location_change),
	(mozilla_notify_location_change_callback),
	(mozilla_title_changed_callback), (mozilla_link_message_callback):
	* components/mozilla/nautilus-mozilla-content-view.h:
	* components/music/main.c: (music_view_make_object):
	* components/music/nautilus-music-view.c:
	(nautilus_music_view_initialize), (click_column_callback),
	(music_view_notify_location_change_callback),
	(nautilus_music_view_drag_data_received):
	* components/music/nautilus-music-view.h:
	* components/rpmview/main.c: (rpm_view_make_object):
	* components/rpmview/nautilus-rpm-view.c:
	(nautilus_rpm_view_initialize),
	(rpm_view_notify_location_change_callback):
	* components/rpmview/nautilus-rpm-view.h:
	* components/sample/main.c: (sample_make_object):
	* components/sample/nautilus-sample-content-view.c:
	(nautilus_sample_content_view_initialize),
	(sample_notify_location_change_callback):
	* components/sample/nautilus-sample-content-view.h:
	* components/services/startup/nautilus-view/main.c:
	(services_make_object):
	* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
	(go_to_uri), (nautilus_service_startup_view_initialize),
	(service_main_notify_location_change_cb):
	* components/services/startup/nautilus-view/nautilus-service-startup-view.h:
	* libnautilus/Makefile.am:
	* libnautilus/libnautilus.h:
	* libnautilus/nautilus-content-view-frame.c: [removed]
	* libnautilus/nautilus-content-view-frame.h: [removed]
	* libnautilus/nautilus-view-component.idl:
	* libnautilus/nautilus-view-frame-private.h:
	* libnautilus/nautilus-view-frame.c:
	(impl_Nautilus_View_save_state), (impl_Nautilus_View_load_state),
	(impl_Nautilus_View_notify_location_change),
	(impl_Nautilus_View_show_properties),
	(impl_Nautilus_View_notify_selection_change),
	(impl_Nautilus_View_stop_location_change),
	(impl_Nautilus_View__destroy), (impl_Nautilus_View__create),
	(nautilus_view_initialize_class), (nautilus_view_initialize),
	(nautilus_view_new), (nautilus_view_new_from_bonobo_control),
	(get_view_frame), (nautilus_view_request_location_change),
	(nautilus_view_request_selection_change),
	(nautilus_view_request_status_change),
	(nautilus_view_request_progress_change),
	(nautilus_view_request_title_change),
	(nautilus_view_get_bonobo_control),
	(nautilus_view_get_main_window):
	* libnautilus/nautilus-view-frame.h:
	* src/Makefile.am:
	* src/file-manager/fm-directory-view.c: (get_bonobo_control),
	(fm_directory_view_initialize), (display_selection_info),
	(fm_directory_view_send_selection_change),
	(notify_location_change_callback), (stop_location_change_callback),
	(done_loading), (fm_directory_view_activate_file_internal),
	(finish_loading_uri):
	* src/file-manager/fm-directory-view.h:
	* src/ntl-app.c: (impl_Nautilus_Application_create_object):
	* src/ntl-content-view.c: [removed]
	* src/ntl-content-view.h: [removed]
	* src/ntl-uri-map.c: (make_oaf_query_with_known_mime_type),
	(make_oaf_query_with_uri_scheme_only):
	* src/ntl-view-frame-svr.c: (impl_Nautilus_ViewFrame__destroy),
	(impl_Nautilus_ViewFrame__create),
	(impl_Nautilus_ViewFrame__get_main_window),
	(impl_Nautilus_ViewFrame_request_location_change),
	(impl_Nautilus_ViewFrame_request_selection_change),
	(impl_Nautilus_ViewFrame_request_status_change),
	(impl_Nautilus_ViewFrame_request_progress_change),
	(impl_Nautilus_ViewFrame_request_title_change):
	* src/ntl-view-private.h:
	* src/ntl-view.c: (nautilus_view_frame_class_init),
	(nautilus_view_frame_set_arg), (nautilus_view_frame_get_arg),
	(nautilus_view_frame_request_location_change),
	(nautilus_view_frame_request_selection_change),
	(nautilus_view_frame_request_status_change),
	(nautilus_view_frame_request_progress_change),
	(nautilus_view_frame_request_title_change),
	(nautilus_view_frame_set_label), (nautilus_view_frame_activate):
	* src/ntl-view.h:
	* src/ntl-window-msgs.c: (nautilus_window_request_title_change),
	(nautilus_window_load_meta_view),
	(nautilus_window_request_location_change),
	(nautilus_window_load_content_view):
	* src/ntl-window-msgs.h:
	* src/ntl-window-private.h:
	* src/ntl-window.c:
	(nautilus_window_request_title_change_callback),
	(nautilus_window_connect_content_view),
	(nautilus_window_real_set_content_view):
	Got rid of ContentView and ContentViewFrame.
2000-05-25 01:49:32 +00:00
John Sullivan
8bea55d841 Made the startup caveat window look cool. Everyone who set an environment
* src/ntl-app.c: (display_caveat): Made the startup caveat
	window look cool. Everyone who set an environment variable
	to avoid it will now be sad.
2000-05-25 00:55:40 +00:00
Darin Adler
fef5f32181 Oops. Missed one case of "metaview" -> "sidebar-view".
* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog): Oops. Missed one case of
	"metaview" -> "sidebar-view".

	* libnautilus-extensions/nautilus-icon-canvas-item.c:
	(draw_pixbuf_aa), (draw_label_text_aa),
	(nautilus_icon_canvas_item_render): Some minor code tweaks.
2000-05-25 00:05:47 +00:00
Darin Adler
f6a5f321b9 [deleted] [deleted]
* libnautilus/nautilus-view-component.idl:
	* src/Makefile.am:
	* src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view):
	* src/ntl-meta-view.c: [deleted]
	* src/ntl-meta-view.h: [deleted]
	* src/ntl-view.c: (nautilus_view_frame_handle_client_destroy_2),
	(nautilus_view_frame_set_active_errors),
	(nautilus_view_frame_get_label), (nautilus_view_frame_set_label):
	* src/ntl-view.h:
	* src/ntl-window-msgs.c: (nautilus_window_load_meta_view),
	(nautilus_window_update_state):
	* src/ntl-window.c:
	Removed Nautilus::MetaViewFrame and all the related classes.
2000-05-24 22:51:49 +00:00
Gene Ragan
1aedbe5892 *** empty log message *** 2000-05-24 22:49:39 +00:00
Gene Ragan
ca8660c9bc *** empty log message *** 2000-05-24 22:48:16 +00:00
John Sullivan
e241de15a1 Round one of caveat dialog improvement. I managed to get it to be modeless
* src/ntl-app.c: (display_caveat), (nautilus_app_startup):
	Round one of caveat dialog improvement. I managed to get it
	to be modeless and come up in front of the Nautilus window.
	The word-wrapping had to be done by hand to work around
	unsolved bug (963). The next round will involve using Arlo's
	cool picture.
2000-05-24 22:34:20 +00:00
Darin Adler
70659f5565 [deleted] [deleted]
* libnautilus/Makefile.am:
	* libnautilus/libnautilus.h:
	* libnautilus/nautilus-meta-view-frame.c: [deleted]
	* libnautilus/nautilus-meta-view-frame.h: [deleted]
	* libnautilus/nautilus-view-component.idl:
	* po/POTFILES.in:
	* src/ntl-index-panel.c: (nautilus_index_panel_add_meta_view):
	* src/ntl-window.c: (nautilus_window_add_meta_view):
	Removed Nautilus::MetaView and all the related classes.
	We still have Nautilus::MetaViewFrame (will go soon).

	* components/help/hyperbola-nav-index.c:
	(hyperbola_navigation_index_new):
	* components/help/hyperbola-nav-search.c:
	(hyperbola_navigation_search_new):
	* components/help/hyperbola-nav-tree.c:
	(hyperbola_navigation_tree_new):
	* components/history/ntl-history-view.c: (make_obj):
	* components/loser/sidebar/nautilus-sidebar-loser.c:
	(nautilus_sidebar_loser_initialize),
	(loser_notify_location_change_callback):
	* components/loser/sidebar/nautilus-sidebar-loser.h:
	* components/notes/ntl-notes.c: (make_notes_view):
	* components/websearch/ntl-web-search.c: (make_obj):
	Changed to use just plain view insetad of meta_view.

	* libnautilus-extensions/nautilus-global-preferences.h:
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog),
	(nautilus_global_preferences_get_sidebar_panel_view_identifiers),
	(nautilus_global_preferences_get_sidebar_view_iids),
	(nautilus_preferences_register_sidebar_view_preferences_for_ui),
	(global_preferences_register_for_ui):
	Changed naming to call them sidebar views instead of meta views,
	and got rid of code that depends on MetaView interface. We now
	use the sidebar_panel_name to determine if a view should show
	up in the sidebar.

	* src/ntl-view.h: Fixed a comment to reflect the future
	instead of the past.
2000-05-24 22:16:01 +00:00
John Sullivan
f68147a3ba Some work on the innards of the program-choosing dialogs. Still not wired
* libnautilus-extensions/nautilus-program-chooser.c:
	(populate_program_list), (nautilus_program_chooser_new):
	Some work on the innards of the program-choosing dialogs.
	Still not wired up to any actual data.
2000-05-24 22:10:28 +00:00
Darin Adler
3f2b83b1a0 Moved to make clear that popt must build first.
* HACKING: Moved to make clear that popt must build first.

	* RENAMING: Added some new file renamings.

	* src/nautilus-zoomable-frame-svr.c:
	* src/nautilus.h: [removed]
	* src/ntl-app.c:
	* src/ntl-main.c:
	* src/ntl-meta-view.c:
	* src/ntl-types.h: [removed]
	* src/ntl-uri-map.c:
	* src/ntl-view-bonobo-control.c:
	* src/ntl-view-bonobo-subdoc.c:
	* src/ntl-view-frame-svr.c:
	* src/ntl-view-nautilus.c:
	* src/ntl-view-private.h:
	* src/ntl-view.c:
	* src/ntl-window-msgs.c:
	* src/ntl-window-state.c:
	* src/ntl-window.c:
	Got rid of "nautilus.h" and "ntl-types.h".

	* libnautilus/nautilus-undo-context.c:
	(impl_Nautilus_Undo_Context__destroy),
	(impl_Nautilus_Undo_Context__create),
	(impl_Nautilus_Undo_Context__get_undo_manager),
	(nautilus_undo_context_new), (nautilus_undo_context_initialize),
	(destroy):
	* libnautilus/nautilus-undo-manager.c:
	(impl_Nautilus_Undo_Manager__destroy),
	(impl_Nautilus_Undo_Manager__create),
	(impl_Nautilus_Undo_Manager__append),
	(impl_Nautilus_Undo_Manager__forget),
	(impl_Nautilus_Undo_Manager__undo), (nautilus_undo_manager_new),
	(nautilus_undo_manager_initialize),
	(nautilus_undo_manager_initialize_class),
	(nautilus_undo_manager_undo), (nautilus_undo_manager_redo),
	(nautilus_undo_manager_add_transaction),
	(nautilus_undo_manager_unregister_object),
	(nautilus_undo_manager_can_undo), (nautilus_undo_manager_can_redo),
	(destroy), (nautilus_undo_manager_enable_redo),
	(nautilus_undo_manager_set_queue_depth), (free_undo_manager_list):
	Various code cleanups. Specifically, get rid of unused
	bonobo_object and rename gtk_object to bonobo_object.
	Get rid of some yucky function pointer casts.

	* src/ntl-app.c: (nautilus_app_init):
	Got rid of bogus extra ref.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(nautilus_program_chooser_new): Reindent part just to annoy John.
	* libnautilus-extensions/nautilus-program-choosing.c:
	(nautilus_launch_application): Newline at end of file (ugh).

	* src/ntl-index-panel.c: (add_command_buttons): Format tweaking.
2000-05-24 21:12:50 +00:00
Eskil Heyn Olsen
0409c2620c Major cvs gymnastics to move trilobite/lib into trilobite/libtrilobite.
* configure.in:
	* components/services/install/command-line/Makefile.am:
	* components/services/install/lib/Makefile.am:
	* components/services/startup/lib/Makefile.am:
	* components/services/startup/nautilus-view/Makefile.am:
	* components/services/time/command-line/Makefile.am:
	* components/services/time/command-line/main.c:
	* components/services/time/service/Makefile.am:
	* components/services/time/service/main.c:
	* components/services/time/service/trilobite-eazel-time-service.c:
	* components/services/trilobite/Makefile.am (SUBDIRS):
	* components/services/trilobite/sample/command-line/Makefile.am:
	* components/services/trilobite/sample/command-line/main.c:
	* components/services/trilobite/sample/nautilus-view/Makefile.am (SUBDIR):
	* components/services/trilobite/sample/service/Makefile.am:
	* components/services/trilobite/sample/service/main.c:
	* components/services/trilobite/sample/service/sample-service-impl.c:
	Major cvs gymnastics to move trilobite/lib into
	trilobite/libtrilobite.

	All files in components/services/trilobite/src and lib have been
	deleted and are now in components/services/trilobite/libtrilobite.
2000-05-24 20:33:53 +00:00
J Shane Culpepper
461cb38771 Minor cleanups of the bootstrap installer. Temproariy added 4 functions to the
core installer until I get libtrilobite statically linked.
2000-05-24 20:20:50 +00:00
Maciej Stachowiak
2d46559a46 Make content loser component have lower priority than anything else.
* src/ntl-uri-map.c: Make content loser component have lower
	priority than anything else.
2000-05-24 19:56:58 +00:00
Eskil Heyn Olsen
79e0d82e2d Accidently removed the wrong subdir, reinserted lib and removed src.
* components/services/trilobite/Makefile.am:
	Accidently removed the wrong subdir, reinserted lib and removed src.

	* components/services/trilobite/sample/service/Makefile.am
	* components/services/trilobite/sample/command-line/Makefile.am
	* components/services/time/service/Makefile.am:
	updated to use libtrilobite instead of libtrilobited

	* components/services/time/command-line/Makefile.am:
	Updated to only use libtrilobite
2000-05-24 19:12:31 +00:00