Commit graph

1946 commits

Author SHA1 Message Date
Eskil Heyn Olsen
c704995010 And suddenly the bonobo libs went *poof*
* components/services/install/command-line/Makefile.am:
	* components/services/install/server/Makefile.am:
	* components/services/trilobite/sample/service/Makefile.am:
	And suddenly the bonobo libs went *poof*
2000-06-27 02:14:48 +00:00
Eskil Heyn Olsen
3108354795 Missed a file.
* components/services/install/lib/libeazelinstall.h:
	Missed a file.
2000-06-27 02:11:22 +00:00
Eskil Heyn Olsen
8491d1a326 Rearranged so libeazelinstall is built before rpmview
* components/Makefile.am:
	Rearranged so libeazelinstall is built before rpmview

	* components/help/Makefile.am:
	Added a missing .h file so make dist works

	* components/rpmview/Makefile.am:
	* components/rpmview/nautilus-rpm-view-install.c:
	(nautilus_rpm_view_download_progress_signal),
	(nautilus_rpm_view_install_progress_signal),
	(nautilus_rpm_view_download_failed),
	(nautilus_rpm_view_install_failed_helper),
	(nautilus_rpm_view_install_failed),
	(nautilus_rpm_view_dependency_check),
	(nautilus_rpm_view_install_done),
	(nautilus_rpm_view_install_package_callback):
	* components/rpmview/nautilus-rpm-view-install.h:
	* components/rpmview/nautilus-rpm-view.c:
	(nautilus_rpm_view_initialize):
	Added a callback and some skeleton code to the install
	button. So it now does rpm installs.

	* components/services/install/lib/Makefile.am:
	* components/services/install/command-line/Makefile.am:
	Changed the libnames.
	*
	components/services/install/command-line/eazel-alt-install-corba.c:
	(done), (main):
	* components/services/install/lib/eazel-install-corba-callback.c:
	(eazel_install_callback_destroy),
	(eazel_install_callback_initialize), (eazel_install_callback_new),
	(eazel_install_callback_corba_objref),
	(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.h:
	* components/services/install/lib/eazel-install-protocols.c:
	(get_search_url_for_package):
	* components/services/install/server/Makefile.am:
	* components/services/install/server/main.c:
	Changed the object destroction scheme, so eazel_install_callback
	now unrefs and destroys the bonobo object.

	* components/services/trilobite/sample/lib/Makefile.am:
	Fixed to pass make dist

	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.am:
	Patching so it works with the new installer libs (and still some
	stroking because of the static stuff)

	* nautilus.spec.in:
	* po/POTFILES.in:
	* test/Makefile.am:
	Slice and dice so make dist and rpm -ta works again.
2000-06-27 01:58:34 +00:00
Eskil Heyn Olsen
06a43fbbb5 Rearranged so libeazelinstall is built before rpmview
* components/Makefile.am:
	Rearranged so libeazelinstall is built before rpmview

	* components/help/Makefile.am:
	Added a missing .h file so make dist works

	* components/rpmview/Makefile.am:
	* components/rpmview/nautilus-rpm-view-install.c:
	(nautilus_rpm_view_download_progress_signal),
	(nautilus_rpm_view_install_progress_signal),
	(nautilus_rpm_view_download_failed),
	(nautilus_rpm_view_install_failed_helper),
	(nautilus_rpm_view_install_failed),
	(nautilus_rpm_view_dependency_check),
	(nautilus_rpm_view_install_done),
	(nautilus_rpm_view_install_package_callback):
	* components/rpmview/nautilus-rpm-view-install.h:
	* components/rpmview/nautilus-rpm-view.c:
	(nautilus_rpm_view_initialize):
	Added a callback and some skeleton code to the install
	button. So it now does rpm installs.

	* components/services/install/lib/Makefile.am:
	* components/services/install/command-line/Makefile.am:
	Changed the libnames.
	*
	components/services/install/command-line/eazel-alt-install-corba.c:
	(done), (main):
	* components/services/install/lib/eazel-install-corba-callback.c:
	(eazel_install_callback_destroy),
	(eazel_install_callback_initialize), (eazel_install_callback_new),
	(eazel_install_callback_corba_objref),
	(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.h:
	* components/services/install/lib/eazel-install-protocols.c:
	(get_search_url_for_package):
	* components/services/install/server/Makefile.am:
	* components/services/install/server/main.c:
	Changed the object destroction scheme, so eazel_install_callback
	now unrefs and destroys the bonobo object.

	* components/services/trilobite/sample/lib/Makefile.am:
	Fixed to pass make dist

	* nautilus-installer/src/Makefile:
	* nautilus-installer/src/Makefile.am:
	Patching so it works with the new installer libs (and still some
	stroking because of the static stuff)

	* nautilus.spec.in:
	* po/POTFILES.in:
	* test/Makefile.am:
	Slice and dice so make dist and rpm -ta works again.
2000-06-27 01:56:52 +00:00
Andy Hertzfeld
3c4ab33c5f fixed sidebar theming by adding a gtk_signal_handler_block_by_func call
fixed sidebar theming by adding a gtk_signal_handler_block_by_func
	call (with corresponding unblock) to avoid the background data
	being written out to the metafile, since it just came from the theme
	and didn't really change
2000-06-27 01:54:13 +00:00
Mike Engber
c108999dc3 Added report_zoom_parameters_changed to the zoomable interface. This
* libnautilus-extensions/nautilus-gtk-extensions.c:
	(nautilus_gtk_marshal_NONE__DOUBLE_DOUBLE_DOUBLE):
	* libnautilus-extensions/nautilus-gtk-extensions.h:
	* libnautilus/nautilus-view-component.idl:
	* libnautilus/nautilus-zoomable.c:
	(nautilus_zoomable_set_parameters),
	(nautilus_zoomable_set_zoom_level):
	* libnautilus/nautilus-zoomable.h:
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_set_zoom_level),
	(fm_directory_view_set_zoom_parameters):
	* 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_init_zoom_params),
	(fm_icon_view_bump_zoom_level), (fm_icon_view_zoom_to_level),
	(fm_icon_view_restore_default_zoom_level):
	* 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),
	(fm_list_view_init_zoom_params):
	* src/nautilus-view-frame-private.h:
	* src/nautilus-view-frame.c:
	(nautilus_view_frame_initialize_class),
	(nautilus_view_frame_zoom_parameters_changed):
	* src/nautilus-view-frame.h:
	* src/nautilus-window.c:
	(nautilus_window_zoom_level_changed_callback),
	(nautilus_window_zoom_parameters_changed_callback),
	(nautilus_window_connect_view):
	* src/nautilus-zoom-control.c: (nautilus_zoom_control_initialize),
	(draw_number_and_disable_arrows), (zoom_menu_callback),
	(create_zoom_menu_item),
	(nautilus_zoom_control_button_press_event),
	(nautilus_zoom_control_set_zoom_level),
	(nautilus_zoom_control_set_min_zoom_level),
	(nautilus_zoom_control_set_max_zoom_level),
	(nautilus_zoom_control_get_zoom_level),
	(nautilus_zoom_control_get_min_zoom_level),
	(nautilus_zoom_control_get_max_zoom_level):
	* src/nautilus-zoom-control.h:
	* src/nautilus-zoomable-frame-corba.c:
	(impl_Nautilus_ZoomableFrame_report_zoom_level_changed),
	(impl_Nautilus_ZoomableFrame_report_zoom_parameters_changed):
	Added report_zoom_parameters_changed to the zoomable
	interface. This allows the zoom control to get min/max
	from the zoomable (as opposed to hard coding in values)
	Also fixed the zoom control to now use just doubles.
	Renamed the zoom_level_changed message to be report_zoom_level_changed
	in accordance with convention.
2000-06-27 01:17:44 +00:00
John Sullivan
a77ea1f8fa Finished task 876 (owner and group should be changeable
in Properties window). The only part I didn't get done was
	using asynch gnome-vfs calls. I made that part of bug 845.

	* libnautilus-extensions/nautilus-string.h,
	* libnautilus-extensions/nautilus-string.c:
	(nautilus_strcasecmp): New NULL-handling form of
	strcasecmp.

	* libnautilus-extensions/nautilus-glib-extensions.h,
	* libnautilus-extensions/nautilus-glib-extensions.c:
	(nautilus_g_str_list_sort),
	(nautilus_g_str_list_sort_case_insensitive): New functions
	to sort a list of strings.
	(compare_strings), (compare_strings_case_insensitive):
	New helper routines used by the new _sort calls.

	* src/nautilus-window-manage-views.c:
	(nautilus_window_report_selection_change): Use
	nautilus_g_str_list_sort.

	* libnautilus-extensions/nautilus-file.h,
	* libnautilus-extensions/nautilus-file.c:
	(user_has_real_name): New helper function, returns TRUE
	if a password-file-entry user has a real name distinguishable
	from the username.

	(get_user_name_from_id), (get_user_and_real_name_from_id),
	(get_group_id_from_group_name), (get_ids_from_user_name),
	(get_user_id_from_user_name), (get_group_id_from_user_name):
	New helper functions for converting between user & group
	names & ids.

	(get_id_from_digit_string): New helper function for converting
	between	an integer as text and an integer.

	(nautilus_get_user_names): New public function for getting the
	list of all user names, with the real name (if distinguishable)
	thrown in for good measure.

	(nautilus_get_group_names): New public function for getting the
	list of all group names.

	(nautilus_file_can_get_owner), (nautilus_file_get_owner_name),
	(nautilus_file_can_set_owner), (nautilus_file_set_owner),
	(nautilus_file_can_get_group), (nautilus_file_get_group_name),
	(nautilus_file_can_set_group), (nautilus_file_set_group):
	New public functions for reading and setting the group and owner.
	The setters define an asynch API though currently they're
	using non-asynch calls internally.

	(nautilus_file_get_settable_group_names): New public function
	returning a list of all group names that the current user can
	set this file's group to.

	(group_includes_user), (nautilus_get_group_names_including):
	New helper functions used by _get_settable_group_names.

	(nautilus_file_get_owner_as_string): Now optionally includes
	real name in result.

	(nautilus_file_get_string_attribute): Changed to call
	_get_owner_as_string with the real name included.

	* src/file-manager/fm-error-reporting.h:
	* src/file-manager/fm-error-reporting.c:
	(fm_report_error_setting_group), (fm_report_error_setting_owner):
	Error messages for when our predictions fail for whether a
	group or owner-setting operation will succeed.

	* src/file-manager/fm-properties-window.c:
	(file_name_pair_new), (file_name_pair_free): New helper functions
	for passing around a file and string together (used in callbacks).

	(group_change_callback), (activate_group_callback),
	(create_group_menu_item), (synch_groups_menu),
	(attach_group_menu), (owner_change_callback),
	(activate_owner_callback), (create_owner_menu_item),
	(synch_user_menu), (attach_owner_menu): New functions for setting
	up widgets for display and control of owner and group.

	(add_special_execution_flags): Use attach_title_field instead of
	add_permissions_row_label.

	(permissions_label_update), (add_permissions_row_label): Removed
	these no-longer-needed functions.

	(add_permissions_column_label): Change row number constants to
	match new layout.

	(create_permissions_page): Use static text for owner & group if
	non-editable, option menu if editable.

	(get_property_names): Now calls nautilus_g_str_list_sort.
2000-06-27 00:56:08 +00:00
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
Kjartan Maraas
858925f580 Move bonobo after gnome-vfs since it now depends on it for
2000-06-26  Kjartan Maraas  <kmaraas@gnome.org>

	* HACKING: Move bonobo after gnome-vfs since it now
	depends on it for bonobo-storage-vfs.c to build.
2000-06-26 18:29:20 +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
1575d03c67 Ehem, again cosmetics .. 2000-06-26 14:36:10 +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
Kenneth Christiansen
173c750acb Translations from Keld
achtung/po/da.po balsa/po/da.po dia/po/da.po
dr-genius/po/da.po evolution/po/da.po gimp/po/da.po
gnome-core/po/da.po gnome-db/po/da.po gnome-utils/po/da.po
mc/po/da.po nautilus/po/da.po rp3/po/da.po sodipodi/po/da.po
2000-06-25 22:18:40 +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
Yukihiro Nakai
4cefa56c0b ja.po: Update from Japanese GNOME Users Group(translation@gnome.gr.jp). 2000-06-25 17:36:33 +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
Valek Frob
94a03ac265 Typo fixed. 2000-06-24 10:42:43 +00:00
Valek Frob
a38a17e9f4 Updated russian translation. 2000-06-24 10:40:14 +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
Fatih Demir
f385980a38 Updated the Turkish translation for Nautilus 2000-06-23 15:43:28 +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