Commit graph

847 commits

Author SHA1 Message Date
Darin Adler
a93b99aba5 Removed a bunch of incorrect calls to bonobo_object_unref. An error in the
* components/hardware/nautilus-hardware-view.c:
	(nautilus_hardware_view_destroy):
	* components/loser/content/nautilus-content-loser.c:
	(nautilus_content_loser_destroy):
	* components/loser/sidebar/nautilus-sidebar-loser.c:
	(nautilus_sidebar_loser_destroy):
	* components/mozilla/nautilus-mozilla-content-view.c:
	(nautilus_mozilla_content_view_destroy):
	* components/music/nautilus-music-view.c:
	(nautilus_music_view_destroy):
	* components/rpmview/nautilus-rpm-view.c:
	(nautilus_rpm_view_destroy):
	* components/sample/nautilus-sample-content-view.c:
	(nautilus_sample_content_view_destroy):
	* components/services/time/nautilus-view/trilobite-eazel-time-view.c:
	(trilobite_eazel_time_view_destroy):
	* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_destroy):
	Removed a bunch of incorrect calls to bonobo_object_unref.
	An error in the sample can be an insidious thing.

	* components/tree/main.c: (tree_object_destroyed),
	(tree_make_object), (main): Removed some stray debugging stuff.

	* libnautilus-extensions/Makefile.am: Got rid of the grid
	* libnautilus-extensions/nautilus-icon-private.h: Got rid of the
	grid.
	* libnautilus-extensions/nautilus-icon-container.c:
	(keyboard_icon_reveal_timeout_callback): Took out unneeded use of
	thread locking macros. Maybe someday I'll regret this, but we can
	add them back then.
	(get_all_icon_bounds): Added shared function.
	(update_scroll_region): Renamed set_scroll_region and made it use
	the shared function. Also got rid of grid code.
	(resort): Got rid of grid code.
	(lay_down_icons): Got rid of grid code.
	(relayout): Made it lay down new icons before doing any layout
	work. Also made sure it doesn't do the resort while stretching.
	(reload_icon_positions): Got rid of grid code.
	(rubberband_select): Got rid of grid code. This was the one place
	that it might have made things a little faster but probably not
	due to the complexity of what it was doing.
	(rubberband_timeout_callback): Took out unneeded use of thread
	locking macros. Maybe someday I'll regret this, but we can add
	them back then.
	(destroy): Got rid of grid code.
	(world_width_changed): Got rid of grid code.
	(nautilus_icon_container_initialize): Got rid of grid code and
	an extra idle cycle that wasn't needed.
	(nautilus_icon_container_clear): Got rid of grid code and added
	code to update the scroll region on clear.
	(icon_destroy): Got rid of grid code.
	(assign_icon_position), (finish_adding_icon),
	(finish_adding_new_icons), (finish_adding_new_icons_callback),
	(nautilus_icon_container_add): Replaced old idle code with
	something specific to adding new icons. This does the proper
	layout for manual as well as automatic layout cases.

	* libnautilus-extensions/nautilus-background.h:
	* libnautilus-extensions/nautilus-background.c:
	(nautilus_background_initialize_class): Made two signals instead
	of one. One for when the background's settings change and another
	for when the appearance changes.
	(nautilus_background_set_color): Emit both signals.
	(load_image_callback): Emit only the appearance change signal.
	(nautilus_background_set_tile_image_uri): Emit both signals.
	(nautilus_get_widget_background): Connect to the
	appearance_changed signal.
	* libnautilus-extensions/nautilus-directory-background.c:
	(nautilus_connect_background_to_directory_metadata):
	Connect to the settings_changed signal.
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_real_merge_menus): Connect to the
	settings_changed signal.
	* src/nautilus-sidebar.c: (nautilus_sidebar_update_info): Connect
	to the appearance_changed signal.
	* components/music/nautilus-music-view.c:
	(nautilus_music_view_set_up_background): Connect to the
	settings_changed signal.

	* HACKING: Gratuitious reformatting.
	* RENAMING: Added notes about how we do renaming, at the request
	of one of the hackers.

	* nautilus-clean.sh: Added nautilus-tree-view to the things that
	are killed, and made gratuitous changes to the script.
2000-06-27 00:52:50 +00:00
George Lebl
2fb0ca4d8c Add $(VFS_CFLAGS) to the includes as it is neccessary for gnome-vfs
Mon Jun 26 15:50:57 2000  George Lebl <jirka@5z.com>

	* components/hardware/Makefile.am, components/help/Makefile.am,
	  components/history/Makefile.am, components/html/Makefile.am,
	  components/music/Makefile.am, components/notes/Makefile.am,
	  components/rpmview/Makefile.am, src/file-manager/Makefile.am:
	  Add $(VFS_CFLAGS) to the includes as it is neccessary for
	  gnome-vfs
2000-06-26 22:54:54 +00:00
Andy Hertzfeld
c8717847e4 newer icons from Susan
newer icons from Susan
2000-06-26 21:23:04 +00:00
Andy Hertzfeld
df80a95d59 integrate Erik's patches for variable bit rate files and removal of
integrate Erik's patches for variable bit rate files and removal
	of trailing blanks into the music view, and fixed bug 1281 by
	making it use the mime-type instead of extensions for determining
	the file type.
2000-06-26 19:25:33 +00:00
Kjartan Maraas
52307f0fc7 Forgot this 2000-06-26 18:29:37 +00:00
Darin Adler
f5309aedf6 Fixed use of hash table in here. The old code would destroy the wrong key.
* libnautilus-extensions/nautilus-directory-metafile.c:
	(set_metadata_eat_value): Fixed use of hash table in here. The
	old code would destroy the wrong key. (Thanks to Ian for pointing
	that when you insert a value into GHashTable it keeps the old key
	instead of overwriting with the new one.)

	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_signal_connect_free_data):
	* src/file-manager/fm-properties-window.c: (attach_value_field),
	(create_emblems_page), (add_permissions_row_label):
	* src/nautilus-link-set-window.c: (make_link_set_check_box):
	* src/nautilus-property-browser.c:
	(make_properties_from_directory_path),
	(make_properties_from_xml_node), (make_category_link):
	* src/nautilus-sidebar.c: (nautilus_sidebar_add_panel_items):
	Got rid of unnecessary casts to (GtkDestroyNotify).
2000-06-26 18:11:47 +00:00
Darin Adler
63bc589bc9 Ignore some additional generated files.
* components/services/install/command-line/.cvsignore:
	* components/services/install/lib/.cvsignore:
	Ignore some additional generated files.

	* libnautilus-extensions/nautilus-gnome-extensions.h:
	* libnautilus-extensions/nautilus-gnome-extensions.c:
	Moved stock dialog functions to nautilus-stock-dialogs.[ch].
	(nautilus_gnome_canvas_item_request_update_deep),
	(nautilus_gnome_canvas_request_update_all),
	(nautilus_gnome_canvas_set_scroll_region),
	(nautilus_gnome_canvas_set_scroll_region_left_justify):
	Added a bunch of functions that were previously private inside
	NautilusIconContainer.

	* libnautilus-extensions/nautilus-gtk-extensions.h:
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_adjustment_set_value),
	(nautilus_gtk_adjustment_clamp_value):
	Added functions that treat the value range in a GtkAdjustment the
	same way scroll bars do, taking the page size into account.

	* libnautilus-extensions/nautilus-horizontal-splitter.h:
	* libnautilus-extensions/nautilus-horizontal-splitter.c:
	(nautilus_horizontal_splitter_initialize),
	(toggle_splitter_position),
	(nautilus_horizontal_splitter_button_press),
	(nautilus_horizontal_splitter_button_release):
	Fixed logic so that splitter will only open or close if you both
	click and release within the splitter itself.

	* libnautilus-extensions/nautilus-icon-private.h:
	* libnautilus-extensions/nautilus-icon-container.c:
	(icon_toggle_selected): Move icons to front when they are selected.
	(set_scroll_region): Moved workaround that sets scroll region to
	be large enough to fill the widget allocation into a function in
	nautilus-gnome-extensions.h. In the process, I fixed the problem
	where it would do the job wrong when the view was zoomed.
	(lay_down_icons), (relayout), (reload_icon_positions):
	Started work on sharing code between automatic layout of the entire
	container and layout of new icons as the arrive.
	(nautilus_icon_container_clear), (nautilus_icon_container_add):
	Got started on the mechanism for laying out new icons as they arrive
	in bunches instead of one at a time.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	* libnautilus-extensions/nautilus-program-chooser.c:
	* libnautilus-extensions/nautilus-program-choosing.c:
	* src/file-manager/dfos-xfer.c:
	* src/file-manager/fm-directory-view.c:
	* src/file-manager/fm-error-reporting.c:
	* src/nautilus-application.c:
	* src/nautilus-location-bar.c:
	* src/nautilus-property-browser.c:
	* src/nautilus-window-manage-views.c:
	* src/nautilus-window-menus.c:
	Added includes to source files that use the stock dialogs.

	* libnautilus-extensions/nautilus-stock-dialogs.h:
	* libnautilus-extensions/nautilus-stock-dialogs.c:
	(nautilus_timed_wait_stop), (convert_varargs_to_name_array),
	(nautilus_simple_dialog), (turn_on_line_wrap_flag),
	(turn_on_line_wrap_flag_callback), (show_ok_box),
	(show_yes_no_box), (nautilus_info_dialog),
	(nautilus_info_dialog_parented), (nautilus_warning_dialog),
	(nautilus_warning_dialog_parented), (nautilus_error_dialog),
	(nautilus_error_dialog_parented), (nautilus_yes_no_dialog),
	(nautilus_yes_no_dialog_parented):
	Moved all the stock dialog code in here.

	* src/nautilus-sidebar-title.c: (update_icon): Only display the
	icon when it's ready, instead of showing generic document icon
	before that time.
	(update_title), (update_more_info), (update_emblems),
	(update_notes): Added FIXMEs about doing the same with other info.
	(nautilus_sidebar_title_button_press_event): Added a FIXME to the
	half-baked code in here.
2000-06-26 18:01:44 +00:00
Fatih Demir
0fd3bdb987 Some cosmetic updates to configure.in and another include addition to the help-utils 2000-06-26 14:33:01 +00:00
Pavel Cisler
9f30b1c47a Fix build breakage caused recent changes to make GnomeVFS compile without
2000-06-26  Pavel Cisler <pavel@eazel.com>

	* acconfig.h:
	* configure.in:
	Fix build breakage caused recent changes to make GnomeVFS compile
	without OAF support. Some GnomeVFS headers now require USING_OAF
	to be defined and when included from Nautilus, this define was missing.
	Not sure this is the 100% correct way to do this but this should at
	least prevent people from being stuck with a broken build.
2000-06-26 11:56:12 +00:00
Andy Hertzfeld
a59d6685a6 implemented an xml-based general theme mechanism, and used it for the
implemented an xml-based general theme mechanism, and used it
	for the sidebar backgrounds, which isn't quite working yet.  Added
	xml files to our themes.
2000-06-26 08:37:44 +00:00
Andy Hertzfeld
ce1e30205e made linksets use gnome-vfs instead of ghhtp to load icons over http;
made linksets use gnome-vfs instead of ghhtp to load icons over
	http; also, made it work asynchronously.
2000-06-25 20:36:05 +00:00
Fatih Demir
1a12dc9282 Splitted up the ChangeLog 2000-06-25 12:04:58 +00:00
Fatih Demir
d0146ebfb6 Applied some updates to the configure.in, as said to the list. 2000-06-25 11:39:38 +00:00
John Sullivan
90886aff8c Finished task 585 (Handle handing URI to programs that
can only handle local paths). After talking to Darin,
	decided not to do some automagic local-copying in this
	case. Instead, Nautilus detects the case and puts up an
	alert explaining the situation instead of launching the app.

	* libnautilus-extensions/nautilus-program-choosing.h,
	* libnautilus-extensions/nautilus-program-choosing.c:
	(nautilus_launch_application_parented): New function, just
	like nautilus_launch_application but takes a parent window
	for error dialogs. Checks whether the application can
	handle uris and if not puts up an alert.
	(nautilus_launch_application): Guts moved to _parented call,
	which this now calls.
	(nautilus_launch_application_from_command): No longer converts
	the uri to a local path here; callers have to handle this
	themselves if they want to.
	* src/file-manager/fm-directory-view.c:
	(get_containing_window): New utility function, returns the
	GtkWindow that the directory view is in.
	(fm_directory_view_launch_application): Now calls new
	nautilus_launch_application_parented.
	(choose_program): Now calls get_containing_window.
2000-06-25 00:30:56 +00:00
Pavel
6271a3a555 Switched to match new GnomeVFS renamings.
2000-06-24  Pavel  <pavel@eazel.com>

	* libnautilus-extensions/nautilus-directory-async.c:
	(nautilus_directory_get_info_for_new_files),
	(start_monitoring_file_list), (start_getting_file_info):
	* components/music/nautilus-music-view.c:
	(nautilus_music_view_update_from_uri):
	* libnautilus-extensions/nautilus-icon-factory.c:
	(path_represents_svg_image):
	* libnautilus-extensions/nautilus-mime-actions.c:
	(get_mime_type_from_uri):
	* src/file-manager/dfos-corba.c: (convert_options):
	* src/file-manager/fm-properties-window.c:
	(get_property_names_from_uri):
	* src/nautilus-applicable-views.c: (got_metadata_callback):
	* src/nautilus-link-set-window.c: (get_link_set_names):
	* src/nautilus-property-browser.c: (ensure_uri_is_image),
	(make_properties_from_directory_path):
	Switched to match new GnomeVFS renamings.

	* libnautilus-extensions/nautilus-directory-async.c:
	(start_monitoring_file_list):
	Changed to use default mime type rather than forcing the
	fast mode.
2000-06-24 13:04:08 +00:00
John Sullivan
39103846fd Made #defines for a couple of constants.
* libnautilus-extensions/nautilus-horizontal-splitter.c:
	(nautilus_horizontal_splitter_button_release):
	Made #defines for a couple of constants.
2000-06-24 01:33:29 +00:00
John Sullivan
7ed5a1ae8b Finished task 1007 (Should show program "match quality" in
"View as Other" dialog). There's now a "status" column that
	you can sort by. It would be better if it showed some
	supertype info but I'm putting that off (with a bug report).

	* libnautilus-extensions/nautilus-program-chooser.c:
	(program_file_pair_compute_status), (program_file_pair_set_file),
	(program_file_pair_new_from_content_view),
	(program_file_pair_new_from_application), (program_file_pair_free),
	(program_file_pair_get_program_name_for_display),
	(get_supertype_from_file),
	(program_file_pair_get_short_status_text),
	(program_file_pair_get_long_status_text),
	(repopulate_program_list),
	(program_file_pair_is_default_for_file_type),
	(program_file_pair_is_default_for_file),
	(program_file_pair_is_in_short_list_for_file_type),
	(program_file_pair_is_in_short_list_for_file),
	(get_program_file_pair_from_row_data),
	(get_selected_program_file_pair), (update_selected_item_details),
	(update_all_status), (add_to_short_list_for_file),
	(remove_from_short_list_for_file), (add_to_short_list_for_type),
	(remove_from_short_list_for_type), (remove_default_for_type),
	(remove_default_for_item), (set_default_for_type),
	(set_default_for_item), (run_program_configurator_callback),
	(compare_program_file_pairs), (switch_sort_column),
	(create_program_clist), (nautilus_program_chooser_new),
	(nautilus_program_chooser_get_application),
	(nautilus_program_chooser_get_component): Did vast quantities of
	renaming and refactoring in here while adding this feature. Believe
	me, it's not worth the time to explain in great detail.
2000-06-24 01:00:43 +00:00
Andy Hertzfeld
6c7fee2b7a fixed bug that Carbamide found where clicking in the list view titles
fixed bug that Carbamide found where clicking in the list view titles
	would toggle the sidebar.  Fixed by requiring the click be in the
	splitter's window in order to toggle.
2000-06-23 23:19:48 +00:00
Darin Adler
e4ad959aab Some icon layout fixes.
* libnautilus-extensions/nautilus-icon-canvas-item.h:
	* libnautilus-extensions/nautilus-icon-canvas-item.c: (map_pixbuf),
	(draw_label_text_aa), (nautilus_icon_canvas_item_render),
	(nautilus_icon_canvas_item_event),
	(nautilus_icon_canvas_item_hit_test_stretch_handles),
	(nautilus_icon_canvas_item_get_max_text_width):
	Added comments and FIXMEs and fixed formatting. Removed unused
	functions and changed all the functions to return values in world
	coordinates rather than doing some in canvas coordinates.

	* libnautilus-extensions/nautilus-icon-container.c:
	(nautilus_gtk_adjustment_set_value): Added a function that clamps
	to the scroll bar range. The original in Gtk allows scrolling past
	the end of where the scroll bar does.
	(scroll): Call the new function. This fixes the "auto-scroll past
	edge of the screen" problem.
	(reveal_icon): Use the new function even though it shouldn't matter
	here.
	(set_scroll_region): Add some padding on the left and right and
	fix some of the math. Also use the new function to clamp the value
	instead of trying to do it by hand here. I think this fixes the
	dancing icon problem.
	(get_icon_space_width), (lay_down_one_line), (relayout): Wrote new
	layout code that works more simply and is closer to the layout we
	want. This fixes a few bugs, but for now it's only for auto layout
	-- I still need to fix manual layout.
	(nautilus_icon_container_update_icon): Made the maximum size for
	icons take the X and Y scale factors into account too. Now we
	probably need maximum scale factors, but without this stretching
	was quite broken.
	(nautilus_icon_container_start_renaming_selected_item): Simplified
	some of the renaming code to require a bit less from the canvas
	item.
	(nautilus_icon_container_emit_preview_signal): Let booleans be
	booleans.

	* libnautilus-extensions/nautilus-icon-container.h:
	* libnautilus-extensions/nautilus-icon-private.h:
	Moved nautilus_icon_container_set_anti_aliased_mode into the
	private header.
2000-06-23 17:51:53 +00:00
Andy Hertzfeld
a6c765c68e made tapping on the splitter show or hide the sidebar
made tapping on the splitter show or hide the sidebar
2000-06-23 16:45:20 +00:00
J Shane Culpepper
d90746e3a4 Fixed build bustage. No eazel-install-query.c file exists. 2000-06-23 06:14:29 +00:00
Rebecka Schulman
ea181123be (nautilus_simple_search_bar_set_search_controls): Extended search uri api;
2000-06-22  Rebecka Schulman  <rebecka@eazel.com>

	* libnautilus-extensions/nautilus-search-uri.c:
	* libnautilus-extensions/nautilus-search-uri.h:
	(nautilus_search_uri_to_simple_search_criteria),
	(nautilus_search_uri_to_search_bar_mode),
	(nautilus_search_uri_is_displayable_by_mode), (other_search_mode):
	* src/nautilus-simple-search-bar.c:
	* src/nautilus-switchable-search-bar.c:
	(nautilus_switchable_search_bar_set_mode),
	(nautilus_switchable_search_bar_set_search_controls):
	* src/nautilus-switchable-search-bar.h:

	(nautilus_simple_search_bar_set_search_controls):
	Extended search uri api; Some functions came from
	nautilus-switchable-search-bar.c
	* src/nautilus-complex-search-bar.c:
	(nautilus_complex_search_bar_initialize):
	fixed it so the containers work right
	* src/nautilus-search-bar-criterion.c:
	* src/nautilus-search-bar-criterion.h:
	(nautilus_search_bar_criterion_initialize),
	(nautilus_search_bar_criterion_initialize_class), (destroy),
	(nautilus_search_bar_criterion_new),
	(nautilus_search_bar_criterion_file_type_new),
	(nautilus_search_bar_criterion_file_name_new),
	(nautilus_search_bar_criterion_add_to_search_bar):
	added file name and type, and new functions
	to aid in displaying

	* src/nautilus-search-bar.c: (nautilus_search_bar_new):
	* src/nautilus-search-bar.h:
	added nautilus_search_bar_new
2000-06-23 02:15:28 +00:00
Michael Engber
610c3c77ee Removed zoom_to_level from the zoomable interface - starting on the
2000-06-22  Michael Engber  <engber@eazel.com>

	* libnautilus/nautilus-view-component.idl:
	* libnautilus/nautilus-zoomable.c:
	(nautilus_zoomable_initialize_class):
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_initialize), (nautilus_zoom_level_from_double),
	(zoomable_set_zoom_level_callback):
	* src/nautilus-view-frame.c:
	* src/nautilus-view-frame.h:
	* src/nautilus-window.c: (zoom_to_level_callback):
	* src/nautilus-zoom-control.c:
	(nautilus_zoom_control_class_initialize), (zoom_menu_callback),
	(zoom_menu_item_free_zoom_level), (create_zoom_menu_item),
	(create_zoom_menu):
	Removed zoom_to_level from the zoomable interface - starting
	on the process of removing the zoom control being tied to
	7 discrete icon sizes. Bug #1425
2000-06-23 01:39:59 +00:00
Eskil Heyn Olsen
29cfbcff0f Vamped to use the gtk+ client wrapper for the corba nastiness.
* components/services/install/command-line/Makefile.am:
	*
	components/services/install/command-line/eazel-alt-install-corba.c:
	(main):
	Vamped to use the gtk+ client wrapper for the corba nastiness.

	* components/services/install/idl/trilobite-eazel-install.idl:
	Added the query call.

	* components/services/install/lib/Makefile.am:
	* components/services/install/lib/eazel-install-corba-callback.c:
	(eazel_install_callback_new), (eazel_install_callback_corba),
	(eazel_install_callback_install_packages),
	(eazel_install_callback_query):
	* components/services/install/lib/eazel-install-corba-callback.h:
	* components/services/install/lib/eazel-install-corba-types.c:
	(corba_category_list_from_categorydata_list):
	* components/services/install/lib/eazel-install-corba-types.h:
	* components/services/install/lib/eazel-install-corba.c:
	(impl_Eazel_Install_install_packages), (impl_Eazel_Install_query),
	(eazel_install_get_epv):
	* components/services/install/lib/eazel-install-metadata.c:
	(transferoptions_destroy), (installoptions_destroy):
	* components/services/install/lib/eazel-install-object.c:
	(eazel_install_destroy), (eazel_install_initialize),
	(eazel_install_get_type), (eazel_install_new_with_config),
	(create_temporary_directory),
	(eazel_install_fetch_remote_package_list),
	(eazel_install_open_log), (eazel_install_install_packages),
	(eazel_install_uninstall), (eazel_install_emit_download_failed),
	(eazel_install_emit_install_failed):
	* components/services/install/lib/eazel-install-protocols.c:
	(http_fetch_remote_file), (ftp_fetch_remote_file),
	(local_fetch_remote_file), (get_url_for_package),
	(get_search_url_for_package):
	* components/services/install/lib/eazel-install-public.h:
	* components/services/install/lib/eazel-install-query.c:
	(eazel_install_query_package_system):
	* components/services/install/lib/eazel-install-query.h:
	* components/services/install/lib/eazel-install-rpm-glue.c:
	(download_all_packages), (install_all_packages),
	(uninstall_packages), (uninstall_a_package), (do_rpm_install),
	(do_rpm_uninstall), (eazel_install_prune_packages_helper),
	(eazel_install_load_rpm_headers),
	(eazel_install_prepare_rpm_system),
	(eazel_install_add_headers_to_rpm_set),
	(eazel_install_fetch_rpm_dependencies),
	(eazel_install_ensure_deps), (rpm_uninstall):
	* components/services/install/lib/eazel-install-rpm-glue.h:
	* components/services/install/lib/eazel-install-types.h:
	* components/services/install/server/main.c:
	(trilobite_service_factory_destroy):
	i18n a lot of strings. Did some more work on the gtk+ wrapper for
	the corba interface to libinstall. Added categories to the idl and
	the code. Added comments to the gtk+ interface, converters to/from
	the corba structs and CategoryData. Also closed bug 1024, 982, 980 and 1092.

	* components/services/time/command-line/main.c: (main):
	* components/services/time/service/trilobite-eazel-time-service.c:
	(trilobite_eazel_time_service_destroy):
	* components/services/trilobite/libtrilobite/trilobite-service.c:
	(trilobite_service_destroy):
	* components/services/trilobite/sample/command-line/main.c: (main):
	* components/services/trilobite/sample/service/main.c:
	(trilobite_service_factory_destroy):
	*
	components/services/trilobite/sample/service/sample-service-impl.c:
	(sample_service_destroy):
	Fixed the component destroy routines with Darins help.
2000-06-23 00:38:28 +00:00
Ramiro Estrugo
e77c95e0cb Fix a silly typo in the last checkin for this makefile.
2000-06-22  Ramiro Estrugo  <ramiro@eazel.com>

* components/websearch/Makefile.am:
Fix a silly typo in the last checkin for this makefile.
2000-06-22 23:19:51 +00:00
John Sullivan
63e30ca464 Oops, some refactoring in my previous checkin left all the labels
* src/file-manager/fm-properties-window.c: (attach_label),
	(attach_left_aligned_label), (attach_right_aligned_label),
	(attach_value_field), (attach_directory_contents_value_field),
	(attach_title_field): Oops, some refactoring in my previous
	checkin left all the labels left-aligned, when the title
	ones are supposed to be right-aligned. Fixed that up.
2000-06-22 22:50:08 +00:00
John Sullivan
f57a27804e Finished task 970 (Properties window should show deep
directory sizes)

	* libnautilus-extensions/nautilus-file.c:
	(format_item_count_for_display): New utility function
	used by some _as_string functions.
	(nautilus_file_get_size_as_string): Now uses
	format_item_count_for_display
	(nautilus_file_get_deep_count_as_string_internal),
	(nautilus_file_get_deep_size_as_string),
	(nautilus_file_get_deep_total_count_as_string),
	(nautilus_file_get_deep_file_count_as_string),
	(nautilus_file_get_deep_directory_count_as_string):
	New functions to get various "deep" info about a
	directory in handy string format.
	(nautilus_file_get_string_attribute),
	(nautilus_file_get_string_attribute_with_default):
	Taught these two functions about deep directory counts.

	* src/file-manager/fm-properties-window.c:
	(create_properties_window): Now uses nautilus_file_monitor_add
	to request the info it needs, including new deep counts.
	Formerly was just relying on all the information already having
	been requested by someone else, which worked in practice but was
	fragile and wouldn't work for deep counts.
	(forget_properties_window): Renamed from remove_properties_window_
	from_hash_table, and made it stop monitoring file.
	(fm_properties_window_get_or_create): Account for name change.
	(directory_contents_value_field_update),
	(attach_directory_contents_value_field),
	(attach_directory_contents_fields): New functions that manage
	showing the deep info.
	(attach_label), (attach_value_field), (attach_title_field),
	(attach_title_value_pair), (create_basic_page),
	(add_permissions_row_label), (create_permissions_page):
	Some renamings and reorganization.
2000-06-22 22:39:13 +00:00
Darin Adler
c02317004b Added code to make sure we don't see a canceled deep count as an eternally
* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(cancel_deep_count): Added code to make sure we don't see a
	canceled deep count as an eternally "in progress" one.
	(nautilus_directory_async_state_changed): Exported this
	function for use in NautilusFile.

	* libnautilus-extensions/nautilus-file.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_deep_counts): Fixed the comment.
	(nautilus_file_recompute_deep_counts): Added a function to
	force the deep count to be recomputed.

	* libnautilus-extensions/nautilus-mime-actions.h:
	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_set_default_action_type_for_uri),
	(nautilus_mime_set_default_application_for_uri),
	(nautilus_mime_set_default_component_for_uri),
	(nautilus_mime_set_short_list_applications_for_uri),
	(nautilus_mime_set_short_list_components_for_uri),
	(nautilus_mime_add_application_to_short_list_for_uri),
	(nautilus_mime_remove_application_from_short_list_for_uri),
	(nautilus_mime_add_component_to_short_list_for_uri),
	(nautilus_mime_remove_component_from_short_list_for_uri),
	(nautilus_mime_extend_all_applications_for_uri),
	(nautilus_mime_remove_from_all_applications_for_uri):
	Added some rudimentary error handling.
2000-06-22 22:16:10 +00:00
Darin Adler
9ba12e4ff0 Finished task 975 (Need API for asynchronously computing a
directory's recursive item count). More thorough testing will wait
	for John to implement the high level feature.

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(directory_count_callback): Used a local variable.
	(start_monitoring_file_list): Reduced use of GnomeVFSURI a bit.
	(cancel_deep_count), (nautilus_directory_cancel),
	(set_up_request_by_file_attributes),
	(nautilus_async_destroying_file), (lacks_deep_count),
	(wants_deep_count), (request_is_satisfied),
	(start_monitoring_file_list), (deep_count_one),
	(deep_count_callback), (deep_count_load), (deep_count_start),
	(state_changed): Added the code to compute deep counts.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_self_check_directory): Added a self-check to try out
	the deep counts.

	* libnautilus-extensions/nautilus-file-attributes.h:
	Renamed the attribute now that it's for more than one kind of
	deep count, not just a directory items count.

	* libnautilus-extensions/nautilus-file-private.h:
	* libnautilus-extensions/nautilus-file.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_deep_counts):
	Added the high-level interface for getting at the counts.
2000-06-22 18:11:12 +00:00
John Sullivan
2180b2d009 Finished task 877 (SUID/SGID/Sticky bits should be settable
in Properties). There are still several appearance loose ends
	that I'll write up bugs for. This change requires the latest
	gnome-vfs.

	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_permissions_as_string): Make permissions
	string display funky bits using ls conventions.
	* libnautilus-extensions/nautilus-global-preferences.h,
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog),
	(global_preferences_register_for_ui): Added a preference for
	allowing editing of the funky bits; defaults to on for hacker,
	off otherwise.
	* src/file-manager/fm-properties-window.c:
	(add_special_execution_checkbox), (add_special_execution_flags),
	(create_permissions_page): Wired up the funky bit checkboxes to
	the right funky bits; made some but not yet all of the Arlo
	layout improvements; decide whether to show funky bit checkboxes
	based on preference.
2000-06-22 17:55:15 +00:00
Ramiro Estrugo
998e41faaf Ignore more generated things.
2000-06-22  Ramiro Estrugo  <ramiro@eazel.com>

* components/services/install/command-line/.cvsignore:
Ignore more generated things.

* libnautilus-extensions/nautilus-search-async.c:
I fixed medusa to properly export its public header file, so
update its inclusion here.
2000-06-22 15:50:13 +00:00
Seth Nickell
1a51797fc0 Changes from Ali Abdin (rak), aliabdin@aucegypt.edu Fixed error message on
2000-06-22  Seth Nickell  <seth@eazel.com>
	Changes from Ali Abdin (rak), aliabdin@aucegypt.edu
	* components/websearch/Makefile.am:
	Fixed error message on Nautilus startup by correctly setting
	the directory websearch "make install"s into.
2000-06-22 11:26:37 +00:00
Andy Hertzfeld
f208052d7b made the reset background property appear in the top left of the
made the reset background property appear in the top left of
	the backgrounds section; also, made the home button reset
	search mode
2000-06-22 07:46:52 +00:00
Andy Hertzfeld
b8d89feda3 added sidebar panel enable/disable to sidebar context menu
added sidebar panel enable/disable to sidebar context menu
2000-06-22 06:50:59 +00:00
Andy Hertzfeld
435a46e6eb added a context menu to the sidebar with a reset background item, and also
added a context menu to the sidebar with a reset background item,
	and also added a drag-and-drop way to reset background using a
	special image.
2000-06-22 02:10:34 +00:00
John Sullivan
b9e0cbe6ef Made nautilus_file_get_string_attribute return NULL
for unknown/missing attributes; added new
	nautilus_file_get_string_attribute_with_default that
	never returns NULL; callers can choose which behavior
	they prefer.

	* libnautilus-extensions/nautilus-file.h,
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_string_attribute_with_default):
	New function, calls _get_string_attribute and chooses
	default strings for the NULL cases. The default default
	string is "unknown", but some attributes get more
	specific ones.

	(nautilus_file_get_octal_permissions_as_string),
	(nautilus_file_get_permissions_as_string),
	(nautilus_file_get_owner_as_string),
	(nautilus_file_get_group_as_string),
	(nautilus_file_get_mime_type_as_string_attribute),
	(nautilus_file_get_size_as_string),
	(nautilus_file_get_string_attribute),
	(nautilus_file_get_type_as_string): Changed these to
	return NULL if the value is unknown/unknowable.

	(nautilus_file_get_date_as_string): Changed to return NULL
	in some cases; also added case for "date_permissions",
	which returns ctime iff it differs from mtime, otherwise
	NULL.

	* libnautilus-extensions/nautilus-program-chooser.c:
	(update_selected_item_details),
	(run_program_configurator_callback):
	* src/file-manager/fm-icon-view.c: (get_icon_text_callback):
	* src/file-manager/fm-list-view.c: (add_to_list):
	use nautilus_file_get_string_attribute_with_value

	* src/nautilus-sidebar-title.c: (update_more_info):
	when the type is NULL, don't put ", " before the size.


	More work on the obscure unixisms of the Properties window.

	* src/file-manager/fm-properties-window.c: (value_field_update),
	(create_basic_page), (permissions_label_update),
	(set_up_permissions_checkbox), (add_permissions_checkbox),
	(add_special_execution_checkbox), (add_special_execution_flags),
	(create_permissions_page), (create_properties_window):
	Wired up GUID/SUID/Sticky bit checkboxes in a temporary way
	(not to the correct bits); moved some stuff around and
	renamed some stuff.
2000-06-22 01:12:19 +00:00
Darin Adler
165d633bcd Made new read-entire-file call with sync. and async. versions since Andy
* libnautilus-extensions/nautilus-file-utilities.h:
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_read_entire_file), (read_entire_file_close_callback),
	(read_entire_file_close), (read_entire_file_succeeded),
	(read_entire_file_failed), (read_entire_file_read_callback),
	(read_entire_file_read_chunk), (read_entire_file_open_callback),
	(nautilus_read_entire_file_async),
	(nautilus_read_entire_file_cancel): Made new read-entire-file call
	with sync. and async. versions since Andy needs it.

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory-async.c:
	(cancel_metafile_read), (metafile_read_done),
	(metafile_read_failed), (metafile_read_done_callback),
	(metafile_read_start), (nautilus_directory_request_read_metafile):
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_destroy):
	Changed the metafile reading to use the new stuff.

	* components/services/install/command-line/.cvsignore:
	* components/services/install/server/.cvsignore:
	Ignore a few new generated files.
2000-06-21 23:20:08 +00:00
Eskil Heyn Olsen
2030eabfe4 trying to convince it to do the orbit-idl
* components/services/install/lib/Makefile.am:
	trying to convince it to do the orbit-idl
2000-06-21 22:36:12 +00:00
Eskil Heyn Olsen
3194ac60a9 Added trilobite-eazel-install.h to noinst_HEADERS
* components/services/install/lib/Makefile.am:
	Added trilobite-eazel-install.h to noinst_HEADERS
2000-06-21 22:22:20 +00:00
Eskil Heyn Olsen
1db8e64836 Forgot this, better commit it before Ramiro kills me.
* components/services/install/server/main.c:
	(trilobite_service_factory_destroy),
	Forgot this, better commit it before Ramiro kills me.
	(eazel_install_service_factory), (main):
	* components/services/trilobite/sample/command-line/main.c: (main):
	Darins patch reg. unref.
2000-06-21 21:51:09 +00:00
Mike Engber
18420cebdc Zoom controls are now hidden when viewing non-zoomable stuff.
* src/nautilus-window-manage-views.c:
(nautilus_window_load_content_view):
* src/nautilus-window.c: (nautilus_window_constructed),
(nautilus_window_zoom_level_changed_callback):
Zoom controls are now hidden when viewing non-zoomable stuff.
2000-06-21 21:47:38 +00:00
Eskil Heyn Olsen
cd33184fda ack, always forget to save this before I commit 2000-06-21 21:08:54 +00:00
Eskil Heyn Olsen
46e737cc25 Added the server directory.
* components/services/install/Makefile.am:
	Added the server directory.

	* components/services/install/command-line/Makefile.am:
	*
	components/services/install/command-line/eazel-alt-install-corba.c:
	(set_parameters_from_command_line),
	(eazel_download_progress_signal), (eazel_install_progress_signal),
	(download_failed), (install_failed), (dep_check), (create_package),
	(done), (main):
	* components/services/install/command-line/genpkg_list.example:
	Vamping together yet another eazel-alt-install that uses the new
	corba service installer.

	* components/services/install/idl/trilobite-eazel-install.idl:
	* components/services/install/lib/Makefile.am:
	* components/services/install/lib/eazel-install-corba-callback.c:
	(impl_download_progress), (impl_download_failed), (impl_dep_check),
	(impl_install_progress), (impl_uninstall_progress),
	(impl_install_failed), (impl_uninstall_failed), (impl_done),
	(eazel_install_callback_get_epv),
	(eazel_install_callback_create_corba_object),
	(eazel_install_callback_destroy),
	(eazel_install_callback_class_initialize),
	(eazel_install_callback_initialize),
	(eazel_install_callback_get_type), (eazel_install_callback_new),
	(eazel_install_callback_corba):
	* components/services/install/lib/eazel-install-corba-callback.h:
	* components/services/install/lib/eazel-install-corba-types.c:
	(corba_packagestructlist_from_packagedata_list),
	(corba_packagedatastructlist_from_packagedata_list),
	(corba_packagedatastruct_from_packagedata),
	(corba_packagestruct_from_packagedata),
	(packagedata_list_from_corba_packagestructlist),
	(packagedata_list_from_corba_packagedatastructlist),
	(packagedata_from_corba_packagedatastruct),
	(packagedata_from_corba_packagestruct):
	* components/services/install/lib/eazel-install-corba-types.h:
	* components/services/install/lib/eazel-install-corba.c:
	(impl_Eazel_Install_install), (impl_Eazel_Install_uninstall),
	(impl_Eazel_Install_install_packages),
	(impl_Eazel_Install_uninstall_packages),
	(impl_Eazel_Install__set_verbose),
	(impl_Eazel_Install__get_verbose),
	(impl_Eazel_Install__set_silent), (impl_Eazel_Install__get_silent),
	(impl_Eazel_Install__set_test_mode),
	(impl_Eazel_Install__get_test_mode),
	(impl_Eazel_Install__set_force), (impl_Eazel_Install__get_force),
	(impl_Eazel_Install__set_update), (impl_Eazel_Install__get_update),
	(impl_Eazel_Install__set_tmp_dir),
	(impl_Eazel_Install__get_tmp_dir),
	(impl_Eazel_Install__set_server), (impl_Eazel_Install__get_server),
	(impl_Eazel_Install__set_server_port),
	(impl_Eazel_Install__get_server_port),
	(impl_Eazel_Install__set_log_file),
	(impl_Eazel_Install__get_log_file),
	(impl_Eazel_Install__set_protocol),
	(impl_Eazel_Install__get_protocol), (eazel_install_get_epv),
	(eazel_install_create_corba_object):
	* components/services/install/lib/eazel-install-object.c:
	(eazel_install_set_arg), (eazel_install_class_initialize),
	(eazel_install_initialize), (eazel_install_get_type),
	(eazel_install_new_with_config),
	(eazel_install_fetch_remote_package_list),
	(eazel_install_open_log), (eazel_install_install_packages),
	(eazel_install_uninstall), (eazel_install_emit_install_progress),
	(eazel_install_emit_install_progress_default),
	(eazel_install_emit_download_progress),
	(eazel_install_emit_download_progress_default),
	(eazel_install_emit_download_failed),
	(eazel_install_emit_download_failed_default),
	(eazel_install_emit_install_failed),
	(eazel_install_emit_install_failed_default),
	(eazel_install_emit_uninstall_failed),
	(eazel_install_emit_dependency_check),
	(eazel_install_emit_dependency_check_default),
	(eazel_install_emit_done), (eazel_install_emit_done_default):
	* components/services/install/lib/eazel-install-private.h:
	* components/services/install/lib/eazel-install-protocols.c:
	(get_url_for_package), (get_search_url_for_package):
	* 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), (rpm_show_progress), (do_rpm_install),
	(eazel_install_prune_packages_helper),
	(eazel_install_prepare_rpm_system),
	(eazel_install_add_headers_to_rpm_set),
	(eazel_install_fetch_rpm_dependencies), (print_package_list),
	(eazel_install_ensure_deps), (ei_extract_attributes),
	(eazel_install_query_package_system):
	* components/services/install/lib/eazel-install-rpm-glue.h:
	* components/services/install/lib/eazel-install-types.c:
	(rpmfilename_from_packagedata):
	* components/services/install/lib/eazel-install-types.h:
	*
	components/services/install/lib/trilobite-eazel-install-service.oaf
	info:
	* components/services/install/server/Makefile.am:
	*
	components/services/install/server/trilobite-eazel-install-service.
	oafinfo:
	Added a load of stuff to make the install service a corba
	service. There are corba/c converters in
	eazel-install-corba-types, moved a load of the corba magic into
	eazel-install-corba.c and created a gtk+ object in
	eazel-install-corba-callback that embodies the client interface to
	the install service.

	* components/services/time/service/Makefile.am:
	* components/services/time/service/trilobite-eazel-time-service.c:
	(trilobite_eazel_time_service_initialize):
	Changed the default url to the new testmachine.

	*
	components/services/trilobite/libtrilobite/trilobite-core-distribut
	ion.c: (trilobite_get_distribution_name),
	(trilobite_get_distribution_enum):
	*
	components/services/trilobite/libtrilobite/trilobite-core-distribut
	ion.h:
	Added call to get the distro enum from the generated string. Used
	for the corbafication of libinstall.

	* configure.in:
	Added the server dir makefile for services/install/server

	* nautilus-installer/src/HACKING:
	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.am:
	* nautilus-installer/src/installer.c: (installer):
	* nautilus-installer/src/interface.c: (create_window):
	* nautilus-installer/src/link.sh:
	* nautilus-installer/src/prescript:
	Updated to still work, as long as libinstall is compiled using
	EAZEL_INSTALL_NO_CORBA (see the hacking file)

	* nautilus.spec.in:
	Changed gnome-xml to libxml
2000-06-21 21:08:12 +00:00
Darin Adler
06d1b0e42d Updated callers of the gnome-vfs calls that I just changed. In some cases
* components/hardware/nautilus-hardware-view.c:
	(get_RAM_description):
	* components/music/nautilus-music-view.c:
	(nautilus_music_view_update_from_uri):
	* components/rpmview/nautilus-rpm-view.c:
	(nautilus_rpm_view_update_from_uri):
	* components/services/startup/nautilus-view/nautilus-service-startup-view.c:
	(gather_config_button_cb), (register_button_cb),
	(nautilus_service_startup_view_destroy):
	* libnautilus-extensions/nautilus-directory-async.c:
	(set_up_request_by_file_attributes):
	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_format_uri_for_display),
	(nautilus_get_uri_from_local_path):
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_size_as_string):
	* libnautilus-extensions/nautilus-link-set.c: (link_set_path_name),
	(expand_uri):
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_display_selection_info):
	* src/nautilus-desktop-window.c:
	(nautilus_desktop_window_initialize),
	(nautilus_desktop_window_new), (realize):
	Updated callers of the gnome-vfs calls that I just changed.
	In some cases I made them use higher-level nautilus utility
	functions instead.
2000-06-21 19:20:48 +00:00
Gene Z. Ragan
6dea2dce89 More updating of code to change gnome-vfs error codes to reflect renaming
2000-06-21  Gene Z. Ragan  <gzr@eazel.com>

	More updating of code to change gnome-vfs error codes to reflect
	renaming done to fix bug 1162.

	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_icon_name_for_file):
	Some old constants here.
2000-06-21 19:16:28 +00:00
Gene Z. Ragan
19c537463d Update code to change gnome-vfs error codes to reflect renaming done to
2000-06-21  Gene Z. Ragan  <gzr@eazel.com>

	Update code to change gnome-vfs error codes to reflect
	renaming done to fix bug 1162.

	* components/help/help-method.c: (help_do_transform):
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_make_directory_and_parents),
	(construct_alternate_metafile_uri):
	* libnautilus-extensions/nautilus-file.c: (nautilus_file_rename),
	(nautilus_file_set_permissions), (nautilus_file_delete):
	* libnautilus-extensions/nautilus-gdk-pixbuf-extensions.c:
	(nautilus_gdk_pixbuf_load), (file_read_callback):
	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_make_directory_and_parents),
	(nautilus_icon_factory_get_thumbnail_uri):
	* libnautilus-extensions/nautilus-search-async.c:
	(nautilus_async_medusa_search), (request_search):
	* src/file-manager/dfos-xfer.c: (fs_xfer), (fs_move_to_trash):
	* src/file-manager/fm-error-reporting.c:
	(fm_report_error_renaming_file):
	* src/nautilus-applicable-views.c:
	(get_nautilus_navigation_result_from_gnome_vfs_result),
	(got_file_info_callback), (async_get_file_info_text):
2000-06-21 17:51:10 +00:00
Ramiro Estrugo
c1c4e27610 Arlofication of the splitter widget. Bug 759.
2000-06-21  Ramiro Estrugo  <ramiro@eazel.com>

* libnautilus-extensions/nautilus-horizontal-splitter.c:
(nautilus_horizontal_splitter_initialize), (draw_resize_bar),
(draw_resize_bar_thumb), (nautilus_horizontal_splitter_draw):

Arlofication of the splitter widget.  Bug 759.
2000-06-21 14:13:45 +00:00
J Shane Culpepper
86bee9aa7d Adding a rough approximation of the login view for services. 2000-06-21 05:22:52 +00:00
Rebecca Schulman
c8556a87c4 forgot to add this to the last commit
2000-06-20  Rebecca Schulman  <rebecka@eazel.com>

	* src/nautilus-search-bar-private.h:
	forgot to add this to the last commit
2000-06-21 02:59:53 +00:00
Rebecca Schulman
d18ad1f885 set up search-bar as a virtual class that switches between the available
2000-06-20  Rebecca Schulman  <rebecka@eazel.com>

	* src/Makefile.am:
	* src/nautilus-search-bar.c:
	* src/nautilus-search-bar.h:
	(nautilus_search_bar_initialize_class),
	(nautilus_search_bar_initialize),
	(nautilus_search_bar_set_location),
	(nautilus_search_bar_set_search_controls):
	* src/nautilus-switchable-search-bar.c:
	* src/nautilus-switchable-search-bar.h:
	* src/nautilus-search-bar-criterion.c:
	* src/nautilus-search-bar-criterion.h:
	set up search-bar as a virtual class that
	switches between the available search bars,
	similar to nautilus-navigation-bar.

	* src/nautilus-complex-search-bar.c:
	* src/nautilus-complex-search-bar.h:
	* src/nautilus-simple-search-bar.c:
	* src/nautilus-simple-search-bar.h:
	Added simple and complex search bar skeletons.
	these need to get filled out a lot more

	* src/nautilus-switchable-navigation-bar.c:
	(nautilus_switchable_navigation_bar_initialize):
	switchable navigation bar uses a switchable
	search bar instead of a normal search bar,
	since that class is now virtual

	* src/nautilus-navigation-bar.c:
	fixed comment typos

	* libnautilus-extensions/nautilus-directory.h:
	Exported nautilus_uri_is_search_uri function
	* libnautilus-extensions/Makefile.am:
	Added nautilus-search-uri.c and .h files
	The functions aren't filled out yet, though
	* libnautilus-extensions/nautilus-search-uri.c:
	(nautilus_search_uri_to_simple_search_criteria):
	* libnautilus-extensions/nautilus-search-uri.h:

	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_register_for_ui):
	* libnautilus-extensions/nautilus-global-preferences.h:
	Changed search bar preference names from NAUTILUS_SEARCH_BAR_ONE_BOX
	and NAUTILUS_SEARCH_BAR_MULTI_BOX
	to NAUTILUS_SIMPLE_SEARCH_BAR and NAUTILUS_COMPLEX_SEARCH_BAR
	to match respective object names
2000-06-21 02:25:54 +00:00
Andy Hertzfeld
b3af87db6e improved the positioning of the anti-aliased stretch handles by using the
improved the positioning of the anti-aliased stretch handles by
	using the icon rect instead of the bounds rect.
2000-06-21 02:17:44 +00:00
John Sullivan
f86b2d3376 Left-justified prompt.
* libnautilus-extensions/nautilus-program-chooser.c:
	(nautilus_program_chooser_new): Left-justified prompt.

	* src/file-manager/fm-properties-window.c:
	(add_prompt_and_separator), (add_permissions_row_label),
	(add_special_execution_checkbox), (add_special_execution_flags),
	(create_permissions_page): Added as yet non-working checkboxes
	for the SUID, GUID, and Sticky flags. The layout and wording
	are abysmal; this will not stand.
2000-06-21 01:06:34 +00:00
Darin Adler
bad476fbc6 Fixed bug 1359 (Navigating into empty folder hangs).
* libnautilus-extensions/nautilus-directory-async.c:
	(dequeue_pending_idle_callback): Fixed bug where directories with
	multiples of 32 files would hang the state machine.
2000-06-21 00:58:31 +00:00
Andy Hertzfeld
4c62c6fe27 added new background images from Susan, and removed some of the older
added new background images from Susan, and removed some of the
	older ones.  Also, replaced the "cant write" emblem with a new
	one from Susan.
2000-06-21 00:38:13 +00:00
John Sullivan
b4bd5aad25 Fixed bug 1428 (Back button crashes in bookmark code)
* src/nautilus-window-menus.c:
	(bookmark_holder_new),
	(bookmark_holder_free): Replaced comment that says
	"bookmark here is unreffed, if this causes problem
	we can ref it someday" with ref/unref pair, now that
	we've found a case where it caused a problem. Going
	Back unrefs the bookmark for the current location before
	this go-menu code does its thing.
2000-06-21 00:35:07 +00:00
Darin Adler
d2822cb5d8 Make octal permissions always at least 3 digits long.
* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_octal_permissions_as_string):
	Make octal permissions always at least 3 digits long.

	* libnautilus-extensions/nautilus-undo-manager.c:
	(destroy_servant), (create_servant), (release_transaction),
	(corba_append), (corba_forget), (corba_undo),
	(nautilus_undo_manager_initialize),
	(nautilus_undo_manager_initialize_class),
	(nautilus_undo_manager_undo), (destroy), (update_undo_menu_item):
	Rewrote undo manager to support one level of undo and redo.
2000-06-21 00:29:59 +00:00
Andy Hertzfeld
81b81f62f4 made image files that use themselves as their icon update properly when
made image files that use themselves as their icon update properly
	when the image file changes.  To do this, I added a "cached_time"
	field to the image cache key, and used it in get_image_from_cache
	to remove the stale image from the cache if necessary
2000-06-20 23:31:49 +00:00
Darin Adler
e1f2a77d08 Made NautilusFile async. like NautilusDirectory already was.
* RENAMING: Added a renaming idea.

	* libnautilus-extensions/nautilus-directory-async.c:
	(cancel_get_info), (cancel_metafile_read),
	(nautilus_directory_cancel): Added the new getting of file info
	to the cancel logic.
	(nautilus_compare_file_with_name): Changed to get the name in a
	way that works with files with no info.
	(nautilus_async_destroying_file): Handle the cancelling for the
	get_file_info case.
	(lacks_info), (wants_info), (request_is_satisfied): Add code to
	handle the need for file info for a newly created NautilusFile.
	(get_info_callback), (start_getting_file_info), (state_changed):
	Add code to get file info for files that lack it.

	* libnautilus-extensions/nautilus-directory-private.h:
	Add fields for getting file info for new files.

	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_directory_notify_files_moved): Moved the logic about
	updating the name on a file as it is moved into nautilus-file.c.

	* libnautilus-extensions/nautilus-file-attributes.h:
	Added a "deep count" attribute and function as a placeholder for
	work that I'll be doing for John shortly.

	* libnautilus-extensions/nautilus-file-private.h:
	Moved the calls relating to updating an existing NautilusFile
	so they are private and added one for a name change.

	* libnautilus-extensions/nautilus-file-utilities.h:
	Added interface for new nautilus_read_entire_file family of calls
	that I still need to implement.

	* libnautilus-extensions/nautilus-file.h:
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_new_from_name), (nautilus_file_new_from_info):
	Added a way to create a file without having GnomeVFSFileInfo yet.
	(nautilus_file_get): Don't get the GnomeVFSFileInfo; let the async.
	logic handler that.
	(rename_update_info_and_metafile): Handle new name field.
	(nautilus_file_rename): Use new name field.
	(nautilus_file_get_gnome_vfs_uri): Common code shared in a couple
	of places. Started fixing the "no file object for root" problem.
	(nautilus_file_matches_uri): Use nautilus_file_get_gnome_vfs_uri.
	(nautilus_file_update_info): Handle NULL case and new name field.
	(nautilus_file_update_name): New function used by move code in
	nautilus-directory.c.
	(nautilus_file_compare_by_type): Handle NULL info case.
	(nautilus_file_compare_for_sort_internal): Handle NULL info case.
	(nautilus_file_compare_name): Use new name field.
	(nautilus_file_get_metadata), (nautilus_file_get_metadata_list):
	Handle NULL file and use new name field.
	(nautilus_file_set_metadata), (nautilus_file_set_metadata_list):
	Use new name field.
	(nautilus_file_get_name): Handle NULL file and use new name field.
	(nautilus_file_get_uri): Use nautilus_file_get_gnome_vfs_uri.
	(info_missing): New function to handle NULL file case, NULL info
	case, and check the valid_fields more thoroughly.
	(nautilus_file_get_date_as_string), (nautilus_file_get_size),
	(nautilus_file_can_get_permissions),
	(nautilus_file_get_owner_as_string),
	(nautilus_file_get_group_as_string),
	(nautilus_file_get_size_as_string),
	(nautilus_file_get_type_as_string), (nautilus_file_get_file_type),
	(nautilus_file_get_mime_type), (nautilus_file_is_mime_type),
	(nautilus_file_is_symbolic_link),
	Use info_missing to handle NULL file and NULL info cases and to
	do valid_fields checks as needed.
	(nautilus_file_get_permissions_as_string): Move file check so the
	NULL case will work properly.
	(nautilus_file_get_mime_type_as_string_attribute): Got rid of
	redundant g_free call.
	(nautilus_file_get_string_attribute): Remove file check so NULL
	case will work properly.
	(nautilus_file_get_emblem_names): Handle NULL file case.
	(nautilus_file_get_keywords): Handle NULL file case.
	(nautilus_file_is_executable): Remove file check so NULL case will
	work properly.
	(nautilus_file_mark_gone): Add code to get rid of info which we
	don't need to keep around for files that are gone.
	(nautilus_file_activate_custom): Added FIXME comments.

	* libnautilus-extensions/nautilus-gdk-extensions.c:
	(nautilus_get_largest_fitting_font): Changed so it handles the case
	of NULL for passed-in text properly.

	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_icon_for_file): Formatting.
	(nautilus_icon_factory_get_pixbuf_for_file): Handle NULL file by
	returning NULL for the pixbuf.
	(nautilus_icon_factory_get_pixmap_and_mask_for_file):
	Handle NULL for the pixbuf by return NULL for the pixmap/mask.

	* src/nautilus-main.c: (print_leaks), (main): Do the leak printing
	from an atexit function so more of the cleanup will run first.

	* libnautilus-extensions/nautilus-gtk-extensions.h:
	* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_pixmap_new_empty): A simple cover for allocating a
	GtkPixmap before we have a GdkPixmap to display.

	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_initialize):
	Create the widgets when the title is set up instead of creating
	them "as needed".
	(update_icon): Always update the icon, even if the file is NULL.
	(update_title): Always update the title, even if the file is NULL.
	Also got rid of the line-breaking code. We instead use the line-
	breaking code inside GtkLabel, which we can tweak as needed by
	setting a line width. We may need to revisit this, but lets not
	re-add our own line-break code unless we have to.
	(append_and_eat), (update_more_info): Always update the info field,
	even if the file is NULL. I rewrote this.
	(add_emblem), (update_emblems): Always update the emblems, even if
	the file is NULL.
	(update_notes): Always update the notes, even if the file is NULL.
	(update_all): Update all the pieces separately (the old code was
	doing them strangely bunched up).
	(nautilus_sidebar_title_set_uri): Always ask for the directory
	item count, even when the item is not yet known to be a directory.

	* src/nautilus-window.c: (nautilus_window_constructed): Get rid
	of the call to gtk_widget_show_all that was showhing things that
	were intentionally hidden.
	(nautilus_window_load_content_view_menu): Removed an unused
	variable that was set up but never examined.
2000-06-20 22:09:36 +00:00
Mike Engber
a72a5ed000 Finished off bugs 301 and 450 by making analogous zooming fixes for
* src/file-manager/fm-list-view.c: (fm_list_view_bump_zoom_level),
	(fm_list_view_zoom_to_level),
	(fm_list_view_restore_default_zoom_level),
	(fm_list_view_begin_loading), (fm_list_view_set_zoom_level):
	Finished off bugs 301 and 450 by making analogous zooming
	fixes for list-view as were previously done for icon-view.
2000-06-20 21:13:10 +00:00
John Sullivan
db3e40fb4f Finished task 878 (permissions should be displayed as an
octal number in Properties window)

	Finished task 880 (should show accessed & modified dates
	in Properties window)

	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_get_octal_permissions_as_string):
	New function, returns permissions as octal number.
	(nautilus_file_get_permissions_as_string): Added check
	for invalid permissions.
	(nautilus_file_get_string_attribute): Added case for
	"octal_permissions"
	* src/file-manager/fm-icon-text-window.c: Made "octal
	permissions" a new choice for icon captions.
	* src/file-manager/fm-properties-window.c:
	(mtime_and_ctime_different): New function, does what you
	might think.
	(create_basic_page): Include accessed date/time, and
	include modification date/time if different than changed
	date/time.
	(create_permissions_page): Show permissions as octal number
	in addition to as string.
2000-06-20 19:47:54 +00:00
Mike Engber
bbc8078738 The zoom control is now driven by its zoomable. This corrected the most
* src/file-manager/fm-directory-view.c:
	(fm_directory_view_report_zoom_level_changed):
	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-icon-view.c: (fm_icon_view_begin_loading),
	(fm_icon_view_set_zoom_level), (fm_icon_view_bump_zoom_level),
	(fm_icon_view_zoom_to_level),
	(fm_icon_view_restore_default_zoom_level):
	* src/nautilus-view-frame.c: (nautilus_view_frame_load_client):
	* src/nautilus-window.c:
	(nautilus_window_zoom_level_changed_callback),
	(nautilus_window_connect_view),
	(nautilus_window_real_set_content_view):
	* src/nautilus-zoom-control.c: (set_zoom_level),
	(nautilus_zoom_control_button_press_event),
	(nautilus_zoom_control_reset_zoom_level),
	(nautilus_zoom_level_from_double),
	(nautilus_zoom_control_set_zoom_level):
	The zoom control is now driven by its zoomable. This corrected
	the most visible problem - getting the correct initial state.
	Previously, the zoomable never propagated any messages back
	(not that anyone was listening for them anyway).
2000-06-20 19:09:42 +00:00
Ramiro Estrugo
5b20ccb198 Exorcise libnautilus-extensions.h. Its really used anywhere and stuff in
2000-06-20  Ramiro Estrugo  <ramiro@eazel.com>

* libnautilus-extensions/Makefile.am:
Exorcise libnautilus-extensions.h.  Its really used anywhere and
stuff in this library is private anyway.  Also, prevent the
makefile from even creating the installed libnautilus-extensions
directory since nothing gets installed there.

* libnautilus-extensions/libnautilus-extensions.h:
Removed from build.

* components/help/hyperbola-main.c:
Updated for libnautilus-extensions.h exorcism.
2000-06-20 18:30:39 +00:00
Ramiro Estrugo
bbc344c741 Ignore the generated files. 2000-06-20 18:15:49 +00:00
John Sullivan
a38a003aa7 Finished task 670 (Open multiple windows when multiple
URIs dropped on location bar).

	* src/nautilus-location-bar.c:
	(nautilus_location_bar_get_window): New helper function.
	(drag_data_received_callback): If multiple URIs dropped,
	ask the user whether they want to view each in a separate
	window.
2000-06-20 16:31:11 +00:00
Ramiro Estrugo
a5e37b99c4 Remove the GNOMECANVASPIXBUF depedency. Its not used no more.
2000-06-20  Ramiro Estrugo  <ramiro@eazel.com>

* configure.in:
* libnautilus-extensions/Makefile.am:
* libnautilus/Makefile.am:
* librsvg/Makefile.am:
* nautilus-installer/src/Makefile:
* src/Makefile.am:
* src/file-manager/Makefile.am:
* test/Makefile.am:

Remove the GNOMECANVASPIXBUF depedency.  Its not used no more.
2000-06-20 16:26:35 +00:00
George Lebl
0d05aea1fc Do the sscanf into a gulong and then assign to the inode which is of type
Tue Jun 20 01:49:08 2000  George Lebl <jirka@5z.com>

	* test/nautilus-leak-symbol-lookup.c
	  (nautilus_leak_symbol_map_get_offsets):  Do the sscanf into a
	  gulong and then assign to the inode which is of type ino_t to avoid
	  #ifdefs or other hacks to make it work on alpha.
2000-06-20 08:52:55 +00:00
Maciej Stachowiak
fd26d27ba5 FIXME 1262 believed fixed now:
* libnautilus-extensions/nautilus-mime-actions.c
	(nautilus_mime_get_short_list_components_for_uri,
	gnome_vfs_mime_application_has_id_not_in_list): Fixed some memory
	leaks.

	* src/nautilus-window.c (nautilus_window_load_content_view_menu):
	Fixed a memory leak.
2000-06-20 05:07:35 +00:00
Ramiro Estrugo
4c11ecc988 Update the "name" attributes to reflect the fact that mozilla is the
2000-06-19  Ramiro Estrugo  <ramiro@eazel.com>

* components/html/ntl-web-browser.oafinfo:
* components/mozilla/nautilus-mozilla-content-view.oafinfo:
Update the "name" attributes to reflect the fact that mozilla is
the default "text/html" handler for gnome vfs.
2000-06-20 03:06:27 +00:00
Ramiro Estrugo
4a4e329a74 Added better mozilla detection artificial intelligence and voodoo.
2000-06-19  Ramiro Estrugo  <ramiro@eazel.com>

* configure.in:

Added better mozilla detection artificial intelligence and voodoo.
2000-06-20 01:01:21 +00:00
Maciej Stachowiak
afbf3980b1 Skeleton of the tree component. For now it just creates the tree widget
* components/tree/Makefile.am, components/tree/main.c,
	components/tree/nautilus-tree-view.c,
	components/tree/nautilus-tree-view.h,
	components/tree/nautilus-tree-view.oafinfo: Skeleton of the tree
	component. For now it just creates the tree widget and puts in
	some hard-coded directories.

	* components/Makefile.am, configure.in: Add tree component to the
	build.
2000-06-20 00:31:54 +00:00
John Sullivan
0949666c36 Removed old never-implemented prototypes that no longer even fit the
* libnautilus-extensions/nautilus-icon-factory.h:
	Removed old never-implemented prototypes that no
	longer even fit the general design.
2000-06-19 23:20:28 +00:00
Maciej Stachowiak
6e85a6c9a3 Remove stray #ifdef.
* libnautilus-extensions/nautilus-mime-actions.c: Remove stray
	#ifdef.
2000-06-19 22:52:02 +00:00
John Sullivan
f6c5cf4c2e Finished bug 1401 (bookmark icon never updates) and some
related issues.

	* libnautilus-extensions/nautilus-directory-async.c:
	(metafile_read_done): Call emit_metadata_changed so
	change-watchers will know that new metadata is available.
	(set_up_request_by_file_attributes): Added FIXME comment
	about confusion between file attributes and metadata.
	(is_anyone_waiting_for_metafile): Made it check monitor_list
	as well as call_when_ready_list.

	* libnautilus-extensions/nautilus-icon-factory.h,
	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_get_required_file_attributes):
	New function, returns the list of file attributes needed
	to get the right icon for a file.
	(nautilus_icon_factory_is_icon_ready_for_file): Rewrote
	to call this new function.

	* src/nautilus-bookmark-list.c:
	(bookmark_in_list_changed_callback), (stop_monitoring_bookmark),
	(stop_monitoring_one), (insert_bookmark_internal),
	(nautilus_bookmark_list_append),
	(nautilus_bookmark_list_delete_item_at),
	(nautilus_bookmark_list_delete_items_with_uri),
	(nautilus_bookmark_list_insert_item),
	(nautilus_bookmark_list_load_file): Made bookmark list monitor
	the "changed" signal of all its bookmarks, so it knows to save
	new improved icons or names to disk.
	* src/nautilus-sidebar-title.c:
	(nautilus_sidebar_title_set_uri): add file monitor in all cases,
	not just if it's a directory; monitor the attributes needed for
	getting an icon too. This fixes a bug where a custom icon on the
	user's home directory wouldn't appear in the sidebar.
	(release_file): remove file monitor in all cases.
2000-06-19 22:50:12 +00:00
Maciej Stachowiak
60e23dcbe2 Make sort conditions syntactically valid when we don't have a MIME type.
* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_component_for_uri_internal),
	(nautilus_mime_get_short_list_components_for_uri),
	(make_oaf_query_with_known_mime_type),
	(make_oaf_query_with_uri_scheme_only): Make sort conditions
	syntactically valid when we don't have a MIME type. Added a FIXME
	to report the error properly when we have better error handling.
	* src/nautilus.oafinfo: Remove hardware: as a supported URI scheme
	from the list view.
2000-06-19 22:05:12 +00:00
Maciej Stachowiak
67acdb1ef0 Added docs on how to use the leak checker, thanks to Pavel.
* HACKING: Added docs on how to use the leak checker, thanks to
	Pavel.
2000-06-19 21:58:37 +00:00
John Sullivan
e3f2dd160f Fixed uninitialized variable that was masking the real
reason why eazel: URIs don't work today (real reason
	has not been figured out yet).

	* src/nautilus-applicable-views.c: (got_file_info_callback):
	Initialize default_id to NULL.

	More work towards bug 1401 (bookmark icon never updates).
	Almost done, but for a bug where bookmark for current
	location in Go menu doesn't get an icon.

	* libnautilus-extensions/nautilus-string.h,
	* libnautilus-extensions/nautilus-string.c:
	(nautilus_str_is_empty): New function, returns TRUE for
	NULL or zero-length string.

	* libnautilus-extensions/nautilus-file-attributes.h:
	Added #define for NAUTILUS_FILE_ATTRIBUTE_CUSTOM_ICON

	* libnautilus-extensions/nautilus-directory-async.c:
	Add file_info to Request struct.
	(request_is_satisfied): Renamed from ready_callback_is_satisfied;
	now takes a Request and a NautilusFile instead of a ReadyCallback.
	(call_ready_callbacks): Update existing caller for API change.
	(set_up_request_by_file_attributes): Set request's file_info
	field to TRUE if mime type requested; set request's metafile
	field to TRUE if custom icon requested.
	(nautilus_directory_check_if_ready_internal): New function,
	use request_is_satisfied to see whether specified attributes
	are available.
	* libnautilus-extensions/nautilus-directory-private.h:
	Added nautilus_directory_check_if_ready_internal.
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_check_if_ready): Call nautilus_directory_check_
	if_ready_internal.

	* libnautilus-extensions/nautilus-icon-factory.c:
	(nautilus_icon_factory_is_icon_ready_for_file): Implemented
	this formerly nonexistent function by calling
	nautilus_file_check_if_ready

	* libnautilus-extensions/nautilus-bookmark.c:
	(nautilus_bookmark_destroy), (nautilus_bookmark_icon_is_different),
	(nautilus_bookmark_update_icon), (bookmark_file_changed_callback),
	(nautilus_bookmark_set_icon_to_default), (nautilus_bookmark_new),
	(nautilus_bookmark_new_with_icon): NautilusBookmark now keeps
	ahold of a NautilusFile internally so it can notice its
	"changed" signal. When this signal fires, the bookmark determines
	whether a changed icon is available.
2000-06-19 19:42:30 +00:00
Pavel Cisler
2d46af0716 Rewrite draw_row introducing draw_cell and splitting up the drawing code
2000-06-19  Pavel Cisler <pavel@eazel.com>

	* libnautilus-extensions/nautilus-list.c: (activate_row),
	(nautilus_list_is_row_selected), (row_set_selected),
	(select_row_unselect_others), (nautilus_list_select_all),
	(nautilus_list_button_press), (nautilus_list_button_release),
	(nautilus_list_set_keyboard_focus),
	(nautilus_list_keyboard_move_to), (nautilus_list_select_row),
	(keyboard_row_reveal_timeout_callback),
	(schedule_keyboard_row_reveal), (reveal_row),
	(nautilus_list_keyboard_navigation_key_press),
	(nautilus_list_activate_selected_items), (nautilus_list_key_press),
	(list_requisition_width), (new_column_width),
	(size_allocate_columns), (get_cell_style),
	(gdk_window_size_as_rectangle), (draw_cell_pixmap),
	(draw_cell_pixbuf), (get_cell_horizontal_start_position),
	(last_column_index), (get_cell_rectangle),
	(get_cell_greater_rectangle), (draw_cell), (draw_row), (draw_rows),
	(nautilus_list_resize_column), (nautilus_list_mark_cell_as_link),
	(nautilus_list_set_cell_contents), (nautilus_list_set_pixbuf_list),
	(nautilus_list_track_new_column_width),
	(nautilus_list_column_resize_track_start),
	(nautilus_list_column_resize_track),
	(nautilus_list_column_resize_track_end),
	(nautilus_list_drag_motion), (nautilus_list_drag_drop),
	(nautilus_list_drag_data_received), (nautilus_list_row_at),
	(insert_row):
	Rewrite draw_row introducing draw_cell and splitting up the drawing
	code into several routines.
	Eliminate/simplify a bunch of confused blitting code in draw_row.
	Fix formatting in nautilus_list.c.
	Rename a number of function arguments to more meaningful names.
2000-06-19 10:39:58 +00:00
Andy Hertzfeld
5a9edb43e8 fixed long-standing bug where gradient or tiled image backgrounds would
fixed long-standing bug where gradient or tiled image backgrounds
	would draw over other widgets in the sidebar.  Fixed by making it
	set up the clip rectangle if necessary.
2000-06-19 04:17:04 +00:00
Andy Hertzfeld
d478de9891 made it check modification dates to update thumbnails when their
made it check modification dates to update thumbnails when
	their underlying image changes.  Added a routine to remove
	a specific image from the icon cache.
2000-06-19 03:01:21 +00:00
J Shane Culpepper
aff1cc629d Added the inventory template. 2000-06-18 22:04:13 +00:00
Pavel
2f786e1511 Do a better 64-bit clean fix avoiding messy ifdefs.
2000-06-18  Pavel  <pavel@eazel.com>

	* test/nautilus-leak-symbol-lookup.c:
	(nautilus_leak_symbol_map_get_offsets):
	Do a better 64-bit clean fix avoiding messy ifdefs.
2000-06-18 11:00:34 +00:00
George Lebl
30675e99d6 s/g_str_freev/g_strfreev/ as that's the correct glib name
Sun Jun 18 02:50:47 2000  George Lebl <jirka@5z.com>

	* components/help/help-method.c (file_in_info_path):
	  s/g_str_freev/g_strfreev/ as that's the correct glib name

	* components/help/hyperbola-main.c,
	  components/help/hyperbola-nav-index.c,
	  components/help/hyperbola-nav-search.c
	  components/help/hyperbola-nav-tree.c,
	  components/help/hyperbola-nav.h:  Use hyperbola-nav.h as a header
	  to put the prototypes from the hyperbola-nav-*.c files.  And
	  include this file in hyperbola-main.c and hyperbola-nav-*.c

	* libnautilus-extensions/nautilus-global-preferences.c
	  (global_preferences_register_boolean_with_defaults)
	  (global_preferences_register_enum_with_defaults),
	  libnautilus-extensions/nautilus-preferences.c
	  (preferences_hash_node_check_changes_func)
	  (user_level_changed_callback):
	  use GU?INT_TO_POINTER and GPOINTER_TO_U?INT macros to get and pass
	  ints and uints as pointers.

	* librsvg/rsvg-bpath-util.c, test/nautilus-leak-checker.c:
	  include <string.h>

	* test/nautilus-leak-checker.c (nautilus_leak_record_malloc)
	  (nautilus_leak_record_realloc) (nautilus_leak_record_free)
	  (print_one_leak):  Store pointers in gulongs not guints and
	  when printing size_t, cast to long and use %ld.

	* test/nautilus-leak-symbol-lookup.c
	  (nautilus_leak_symbol_map_get_offsets): When reading in gint64,
	  check if long is actually 64bit, in which case use %lx otherwise
	  use %Lx for sscanf.
2000-06-18 09:54:57 +00:00
J Shane Culpepper
3db19cf0ab Added login and summary component skeletons. Did minor cleanups of libtrilobite
and vault.
2000-06-18 08:37:37 +00:00
J Shane Culpepper
7157baed86 More minor fixes to sample. Fixed oafinfo files to use the correct names and
added gpl licenses to the files that did not contain it.
2000-06-18 05:47:17 +00:00
J Shane Culpepper
a1bf6815a6 Templating cleanups. Added the skeleton for vault. Cometic cleanup in install. 2000-06-18 05:13:26 +00:00
Andy Hertzfeld
21dbfef5a0 added a nice knob image to use as stretch handles instead of a black
added a nice knob image to use as stretch handles instead of a
	black rectangle. Right now it only uses it in aa mode and they
	need to be positioned better.  Also, added search button to
	toolbar theming mechanism.
2000-06-17 01:43:30 +00:00
John Sullivan
c7f4351657 Added a NULL check that prevents it from crashing when you add bookmarks
* src/nautilus-window-menus.c: (clear_appended_bookmark_items):
	Added a NULL check that prevents it from crashing when you
	add bookmarks or change themes.
2000-06-17 01:29:56 +00:00
John Sullivan
a773b18789 More work towards bug 1401 (bookmark icon never updates).
You can avoid some warnings if you get the latest Bonobo.

	* libnautilus-extensions/nautilus-bookmark.h:
	* libnautilus-extensions/nautilus-bookmark.c:
	(nautilus_bookmark_initialize_class), (nautilus_bookmark_set_name):
	Define "changed" signal for bookmarks and wire it up (though
	not yet to the icon-changing case). Remove never-implemented
	and never-to-be-implemented "nautilus_bookmark_get_file" since
	I changed my mind on the design.
	* src/nautilus-window-menus.c: (append_bookmark_to_menu),
	(clear_appended_bookmark_items): Connect and disconnect
	signals from the window to the bookmarks in the Go and
	Bookmarks menus.
2000-06-17 01:15:00 +00:00
Arlo Rose
c12a326dac icons/eazel/search.png icons/About_Image.png Fixed the invalid white point
2000-06-16  Arlo Rose  <arlo@eazel.com>
	* icons/eazel/search.png
	* icons/About_Image.png
	Fixed the invalid white point error on out about image.
	Made the "Eazel Theme" search icon look like an icon Susan
	would have done.
2000-06-17 00:44:20 +00:00
Darin Adler
2f82c2477d Simplify the handling of NULL MIME type.
* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_action_type_for_uri),
	(nautilus_mime_get_default_application_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):
	Simplify the handling of NULL MIME type.
2000-06-17 00:36:10 +00:00
Rebecka Schulman
85c28bf93b Fixed search icon issues, I hope
2000-06-16  Rebecka Schulman  <set EMAIL_ADDRESS environment variable>

	* icons/Makefile.am:
	* icons/eazel/Makefile.am:
	* icons/search.png:
	Fixed search icon issues, I hope
2000-06-16 22:26:30 +00:00
Darin Adler
21088d61bc Another round in the war against computer poetry at the console.
* components/loser/content/main.c: (loser_make_object), (main):
	* components/loser/sidebar/main.c: (loser_make_object), (main):
	* components/sample/main.c: (sample_make_object), (main):
	* components/services/startup/nautilus-view/main.c:
	(services_object_destroyed), (services_make_object):
	* src/nautilus-location-bar.c:
	(nautilus_location_bar_set_location):
	* src/nautilus-switchable-navigation-bar.c:
	(nautilus_switchable_navigation_bar_set_location):
	Took out a lot of puts calls that may have once been useful for
	debugging but now are mostly misleading.
2000-06-16 21:47:08 +00:00
John Sullivan
1fd31530af Some work towards bug 1401 (bookmark icon never updates).
No visible effect yet.

	* libnautilus-extensions/nautilus-bookmark.h:
	Added nautilus_bookmark_get_file prototype, not yet
	called or implemented.

	* libnautilus-extensions/nautilus-file.h,
	* libnautilus-extensions/nautilus-file.c:
	(nautilus_file_check_if_ready): New function, does
	nothing yet.

	* libnautilus-extensions/nautilus-icon-factory.h:
	Added nautilus_icon_factory_is_icon_ready_for_file
	prototype, not yet called or implemented.

	* src/nautilus-window-menus.c:
	(nautilus_window_initialize_bookmarks_menu),
	(nautilus_window_initialize_go_menu),
	(nautilus_window_remove_bookmarks_menu_callback),
	(nautilus_window_remove_go_menu_callback),
	(refresh_bookmarks_menu),
	(refresh_bookmarks_menu_idle_callback),
	(schedule_refresh_bookmarks_menu), (refresh_go_menu),
	(refresh_go_menu_idle_callback), (schedule_refresh_go_menu):
	Made the code that rebuilds the Go and Bookmarks menus when
	there's been a change to the bookmarks use idle handling to
	batch up requests. This will be important when bookmarks
	broadcast updates for their icons.

	* src/nautilus-window-private.h: Defined NautilusWindowDetails
	struct. We should eventually migrate all of the fields
	of NautilusWindow in here, but I didn't do that now.
	Added two fields used by bookmark-menu-updating code.
	* src/nautilus-window.h: Made a details field using
	NautilusWindowDetails.

	* src/nautilus-window.c:
	(nautilus_window_init): Create details field.
	(nautilus_window_destroy): Clean up any pending idle bookmark
	refreshing stuff.
2000-06-16 20:57:02 +00:00
Rebecka Schulman
f971d7c56d Changed search preferences, and fixed search icon
2000-06-16  Rebecka Schulman  <rebecka@eazel.com>

	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog),
	(global_preferences_register_for_ui):
	* libnautilus-extensions/nautilus-global-preferences.h:
	* src/nautilus-search-bar.c: (nautilus_search_bar_initialize):
	* src/nautilus-search-bar.h:
	Changed search preferences, and fixed search icon
2000-06-16 20:34:21 +00:00
Darin Adler
070e7a17cc Removed first cut at a fix for the "space accepts" problem.
* src/nautilus-location-bar.c: (try_to_expand_path):
	Removed first cut at a fix for the "space accepts" problem.
	(entry_would_have_inserted_characters),
	(editable_key_press_callback), (nautilus_location_bar_initialize):
	Put in a new fix that uses a marshal function to avoid clobbering
	the return value of key_press_event.
2000-06-16 20:12:44 +00:00
Rebecka Schulman
2ba73938b2 Added search icon to toolbar, courtesy of Arlo. It still has graphics
2000-06-16  Rebecka Schulman  <set EMAIL_ADDRESS environment variable>

	* icons/eazel/Search.png:
	Added search icon to toolbar, courtesy of Arlo.
	It still has graphics issues, we will try and iron
	those out
	* libnautilus-extensions/nautilus-global-preferences.c:
	(global_preferences_create_dialog),
	(global_preferences_register_for_ui):
	Changed the word on the search preferences
2000-06-16 19:05:40 +00:00
Darin Adler
341c93f4a9 New generated files that needed to be ignored.
* components/services/trilobite/sample/lib/.cvsignore:
	New generated files that needed to be ignored.

	* libnautilus-extensions/nautilus-bookmark.c: (get_icon_for_uri):
	* libnautilus-extensions/nautilus-icon-dnd.c:
	(receive_dropped_keyword):
	* src/nautilus-sidebar.c: (receive_dropped_keyword),
	(open_with_callback):
	* src/nautilus-window-manage-views.c: (handle_unreadable_location),
	(nautilus_window_end_location_change_callback):
	* src/nautilus-window.c: (view_menu_choose_view_callback):
	Added FIXME comments for all cases I might have to revisit to
	finish with bug 866.

	* libnautilus-extensions/nautilus-directory-private.h:
	* libnautilus-extensions/nautilus-directory.c:
	(nautilus_search_directory_new),
	(nautilus_directory_new), (nautilus_directory_is_local),
	(nautilus_directory_is_search_directory):
	Removed the is_local and is_search_directory booleans since they
	are very fast to compute.
	(nautilus_directory_call_when_ready): Removed the special case for
	search directories that was causing a problem with NULL
	directories.  This is better handled inside
	nautilus-directory-async.c.
	(nautilus_uri_is_search_uri): Greatly simplified the
	implementation of the function and moved it out of the
	"self-check-specific" part of the file.

	* libnautilus-extensions/nautilus-file-utilities.c:
	(nautilus_format_uri_for_display), (nautilus_make_uri_from_input),
	(nautilus_get_user_main_directory):
	Renamed SCHEMA -> SCHEME. Converted code to use
	nautilus_get_uri_from_local_path instead of just adding a file://
	on the beginning of path names.

	* libnautilus-extensions/nautilus-file.c: (nautilus_file_get):
	Did part of the work needed to make this function do its work
	async. It now only does the I/O if the file is not already known,
	but there's still the issue of doing the I/O only when requested.

	* libnautilus-extensions/nautilus-icon-dnd.c:
	(receive_dropped_keyword): Fixed storage leaks.
	(nautilus_icon_container_receive_dropped_icons),
	(nautilus_icon_dnd_update_drop_target): Added FIXMEs about
	file-specific stuff that's in here but should be in FMIconView.

	* libnautilus-extensions/nautilus-icon-factory.c:
	(path_represents_svg_image): Changed local svg check to use
	gnome-vfs instead of NautilusFile.  This is better since we want
	it to be sync.
	(load_specific_image): Change to use
	nautilus_get_local_path_from_uri instead of doing its own file://
	checks and unescaping.

	* libnautilus-extensions/nautilus-mime-actions.c:
	(nautilus_mime_get_default_component_for_uri_internal): Call the
	new public OAF_ServerInfo_duplicate from liboaf instead of our
	own copy. The one I checked in liboaf has a number of bugs fixed
	from the one that was in here.
	(mime_type_get_supertype): Put in a special case for NULL so we
	don't return "/*" as a supertype for NULL.
	(nautilus_do_component_query): Call OAF_ServerInfo_duplicate.
	Also get rid of a NULL check before CORBA_free.

	* libnautilus-extensions/nautilus-stock-dialogs.c:
	(nautilus_timed_wait_start), (nautilus_timed_wait_free):
	* libnautilus-extensions/nautilus-stock-dialogs.h:
	Added a window title to the still-not-implemented code in here.

	* src/file-manager/fm-icon-text-window.c:
	(create_icon_text_window): Changed the window title to match the
	menu item.

	* src/nautilus-main.c: Formatting tweaks.

	* src/nautilus-sidebar.c: (receive_dropped_keyword), Fixed a
	storage leak. Put in a FIXME about the code that is a copy of
	what's in the icon view.
2000-06-16 18:47:17 +00:00
Maciej Stachowiak
a5fa2e8a51 Task 1351: implement controllers to allow location bar and the
search/browse button

	* src/nautilus-location-bar.h, src/nautilus-location-bar.c:
	Factored this into two classes, NautilusNavigationBar, a class
	that defines the abstract interface (the set_location function and
	the location_changed signal), and NautilusLocationBar, a concrete
	implementation that works like the previous location bar.
	(nautilus_location_bar_set_location,
	nautilus_location_bar_get_location): Made static. Made
	`nautilus_location_bar_set_location' the handler for the
	set_location virtual method.
	* src/nautilus-navigation-bar.h, src/nautilus-navigation-bar.c:
	Abstract superclass for navigation bars.
	* src/nautilus-search-bar.h, src/nautilus-search-bar.c: New
	subclass of NautilusNavigationBar. Contains placeholder widgets
	for now, will eventually be the search bar.
	* src/nautilus-switchable-navigation-bar.h,
	src/nautilus-switchable-navigation-bar.c: New subclass of
	NautilusNavigationBar that allows switching between the location
	bar and the search bar.
	* src/nautilus-window.h: Rename `ent_uri' member of the window
	struct to `navigation_bar'.
	* src/nautilus-window.c
	(nautilus_window_navigation_bar_mode_changed_callback): Callback
	to sync the "search" toggle button to the mode of the switchable
	navigation bar.
	(nautilus_window_constructed): Create a
	NautilusSwitchableNavigationBar instead of a NautilusLocationBar.
	(nautilus_window_set_search_mode): New function to be used by the
	search toggle button callback; simply sets the mode of the
	switchable navigation bar appropriately.
	* src/nautilus-window-toolbars.c: Made Search button a toggle
	button.
	(toolbar_search_callback): Call `nautilus_window_set_search_mode'.
	* src/nautilus-window-manage-views.c
	(nautilus_window_update_internals,
	nautilus_window_end_location_change_callback): Use
	NautlusNavigationBar calls instead of NautilusLocationBar ones.
	* src/Makefile.am: Add new files to the build, and split all
	headers into noinst_HEADERS out from the nautilus_SOURCES
	variable.
2000-06-16 16:33:36 +00:00
Seth Nickell
8cbe2e455a Added function nautilus_location_bar_get_location Changed to call
2000-06-16  Seth Nickell  <seth@eazel.com>

	* src/nautilus-location-bar.h:
	* src/nautilus-location-bar.c: (nautilus_location_bar_get_location)
	Added function nautilus_location_bar_get_location
	* src/nautilus-location-bar.c: (drag_data_received_callback),
	(drag_data_get_callback), (editable_activated_callback),
	Changed to call nautilus_location_bar_get_location. An incidental effect (well
	actually intentional) is that nautilus-location-bar.c no longer uses gtk_entry_get_text.
	Hopefully this function will keep people adding code "mid-stream" to the URL bar (eg
	before activation, such as the auto-completion code) from being confused by the disparity
	between URIs and what the user is allowed to type.
2000-06-16 09:32:48 +00:00
J Shane Culpepper
c7a5dfeced Cleaned up the sample trilobite service for easer template usage. 2000-06-16 09:15:05 +00:00