Commit graph

5138 commits

Author SHA1 Message Date
Darin Adler
aaf205789a Get rid of code that passes around the "optimize for AA" flag.
* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_insert_model_node),
	(nautilus_tree_view_update_model_node):
	* libnautilus-private/nautilus-bookmark.c:
	(nautilus_bookmark_get_pixbuf):
	* libnautilus-private/nautilus-find-icon-image.c: (read_details),
	(get_themed_icon_file_path), (theme_has_icon),
	(nautilus_get_icon_file_name):
	* libnautilus-private/nautilus-find-icon-image.h:
	* libnautilus-private/nautilus-icon-container.c:
	(nautilus_icon_container_update_icon):
	* libnautilus-private/nautilus-icon-factory-private.h:
	* libnautilus-private/nautilus-icon-factory.c:
	(load_thumbnail_frame), (nautilus_icon_factory_init),
	(nautilus_icon_factory_destroy), (icon_theme_changed_callback),
	(should_display_image_file_as_itself),
	(nautilus_icon_factory_get_icon_for_file), (load_icon_from_path),
	(load_named_icon), (load_specific_icon), (load_icon_for_scaling),
	(load_icon_scale_if_necessary), (get_icon_from_cache),
	(nautilus_icon_factory_get_pixbuf_for_icon), (cache_key_hash),
	(cache_key_equal), (nautilus_icon_factory_get_pixbuf_for_file),
	(nautilus_icon_factory_get_pixbuf_from_name),
	(nautilus_icon_factory_get_thumbnail_frame):
	* libnautilus-private/nautilus-icon-factory.h:
	* libnautilus-private/nautilus-thumbnails.c:
	(nautilus_thumbnail_load_framed_image):
	* libnautilus-private/nautilus-thumbnails.h:
	* src/file-manager/fm-directory-view.c:
	(add_script_to_script_menus), (add_submenu_to_script_menus):
	* src/file-manager/fm-list-model.c: (fm_list_model_get_value):
	* src/file-manager/fm-properties-window.c:
	(get_pixbuf_for_properties_window):
	* src/nautilus-sidebar-title.c: (update_icon), (update_emblems):
	Get rid of code that passes around the "optimize for AA" flag.

	* cut-n-paste-code/widgets/gimphwrapbox/gtkhwrapbox.c:
	* cut-n-paste-code/widgets/gimphwrapbox/gtkhwrapbox.h:
	* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c:
	* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.h:
	Roll in the latest version from gimp source tree.

	* icons: Overwrite all the non-aa versions with the aa versions.
	Remove all the aa versions.
2002-01-21 22:49:40 +00:00
Darin Adler
c66ad8c74e Remove. Remove. Remove. Remove. Remove.
* check-signals.pl: Remove.
	* components/adapter/bonobo-stream-vfs.c: Remove.
	* components/adapter/bonobo-stream-vfs.h: Remove.
	* components/adapter/nautilus-adapter-progressive-load-strategy.c: Remove.
	* components/adapter/nautilus-adapter-progressive-load-strategy.h: Remove.

	* components/adapter/Makefile.am:
	* components/hardware/Makefile.am:
	* components/history/Makefile.am:
	* components/image-viewer/Makefile.am:
	* components/music/Makefile.am:
	* components/news/Makefile.am:
	* components/notes/Makefile.am:
	* components/text/Makefile.am:
	* components/throbber/Makefile.am:
	* components/tree/Makefile.am:
	* libnautilus-private/Makefile.am:
	* test/Makefile.am:
	General cleanups, mostly formatting.

	* configure.in: Remove libiconv stuff, since we don't use it
	any more. Do esound stuff in the main call to pkg-config, not
	a separate set of variables.

	* components/image-viewer/nautilus-image-view.c: Remove unused
	libart includes.

	* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.h: Remove
	the use of "decrement" as a synonym for "remove".

	* test/test.c: Remove unused libart include.
2002-01-21 20:21:31 +00:00
Anders Carlsson
39aacdfa73 Change libprofiler location.
2002-01-21  Anders Carlsson  <andersca@gnu.org>

	* configure.in:
	Change libprofiler location.

	* libnautilus-private/nautilus-directory-async.c:
	(lacks_link_info), (make_dot_directory_uri), (link_info_start):
	Remove support for gmc style links.

	* libnautilus-private/nautilus-entry.c:
	(emacs_shortcuts_preference_changed_callback),
	(nautilus_entry_init), (nautilus_entry_finalize),
	(nautilus_entry_key_press), (select_all_at_idle),
	(nautilus_entry_select_all_at_idle):
	Use gtk_idle_add instead and store the idle id in the details
	struct. This fixes some weirdness in the file properties dialog,
	since the "destroy" signal can be emitted more than once.

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(update_label_layouts):
	Enable underlining.

	* libnautilus-private/nautilus-monitor.c: (get_event_uri):
	Silently return if we can't find the base path. This is valid when
	we've called nautilus_monitor_cancel but still have some events
	in the queue.
2002-01-21 14:09:10 +00:00
Michael Meeks
d112f3e1ac upd to handle orientation too (create_back_or_forward_toolbar_item): add
2002-01-18  Michael Meeks  <michael@ximian.com>

	* src/nautilus-window-toolbars.c
	(back_or_forward_toolbar_item_property_set_cb): upd to
	handle orientation too
	(create_back_or_forward_toolbar_item): add orientation prop.
2002-01-21 12:09:54 +00:00
Darin Adler
8571f60d7d Fix storage leak by unrefing the metafile monitor before dropping it on
* libnautilus-private/nautilus-directory-metafile.c:
	(nautilus_directory_unregister_metadata_monitor): Fix storage leak by
	unrefing the metafile monitor before dropping it on the floor.

	* libnautilus-private/nautilus-directory-metafile-monitor.h: Remove
	uneeded BonoboXObject stuff.

	* libnautilus-private/nautilus-directory.c:
	(nautilus_directory_finalize): Remove unneeded NULLing.

	* libnautilus-private/nautilus-directory-metafile-monitor.c: Whitespace tweak.
2002-01-19 01:14:25 +00:00
Johan Dahlin
5a1fadef01 Port to GtkTreeView.
2002-01-18  Johan Dahlin  <jdahlin@telia.com>

        * components/history/nautilus-history-view.c: Port to GtkTreeView.
2002-01-19 00:25:00 +00:00
Darin Adler
24801f25ea Bump eel requirement to 1.1.2.
* configure.in: Bump eel requirement to 1.1.2.
2002-01-19 00:23:44 +00:00
Darin Adler
074ed7a01a Remove nautilus-launch-icon.png.
* Makefile.am: Remove nautilus-launch-icon.png.

	* components/hardware/nautilus-hardware-view.c: (setup_form_title),
	(setup_overview_form): Port from EelImage to GtkImage.

	* components/music/nautilus-music-view.c: Remove unused include.
	* src/nautilus-theme-selector.c: Remove unused includes.

	* libnautilus-private/nautilus-bonobo-extensions.c:
	(bonobo_activation_activation_callback): Add warning message so we
	get to see the error from bonobo-activation.

	* libnautilus-private/nautilus-directory-metafile.c: (get_factory):
	* libnautilus-private/nautilus-icon-factory.c: (get_icon_factory),
	(load_icon_for_scaling), (embed_text):
	* libnautilus-private/nautilus-metafile-factory.c:
	(nautilus_metafile_factory_get_instance):
	* libnautilus-private/nautilus-theme.c:
	(nautilus_theme_get_theme_data_from_theme):
	* libnautilus-private/nautilus-trash-monitor.c:
	(nautilus_trash_monitor_get):
	* libnautilus-private/nautilus-volume-monitor.c:
	(nautilus_volume_monitor_get):
	* src/file-manager/nautilus-indexing-info.c:
	(show_indexing_info_dialog):
	* src/nautilus-preferences-dialog.c:
	(global_preferences_get_dialog):
	* src/nautilus-window.c: (nautilus_window_class_init),
	(add_to_history_list):
	Use eel_debug_call_at_shutdown instead of g_atexit.

	* libnautilus-private/nautilus-file.c:
	(nautilus_file_get_display_name): Add G_BROKEN_FILENAMES support.

	* libnautilus-private/nautilus-global-preferences.c:
	(nautilus_global_preferences_init): Remove eel_smooth_widget code.

	* libnautilus/Makefile.am: Add missing ORBIT_IDL dependency.

	* libnautilus/nautilus-view-standard-main.c:
	(nautilus_view_standard_main_multi): Remove
	bonobo_ui_debug_shutdown for now. It does us no good unless we
	also do eel_debug_shut_down, but libnautilus can't depend on eel.

	* nautilus-launch-icon.png: Remove.

	* src/file-manager/fm-properties-window.c:
	(update_properties_window_icon),
	(fm_properties_window_drag_data_received),
	(create_image_widget_for_file): Port from EelImage to GtkImage.

	* src/nautilus-component-adapter-factory.c:
	(nautilus_component_adapter_factory_get): Use
	eel_debug_call_at_shutdown instead of g_atexit.
	(nautilus_component_adapter_factory_create_adapter): Look at
	exceptions before looking at return values from CORBA calls.

	* src/nautilus-main.c: (main): Add a call to eel_debug_shut_down.

	* src/nautilus-property-browser.c:
	(nautilus_property_browser_init), (element_clicked_callback),
	(nautilus_property_browser_update_contents): Port from EelViewport
	to GtkViewport.

	* src/nautilus-search-bar-criterion.c:
	(nautilus_search_bar_criterion_destroy),
	(nautilus_search_bar_criterion_new_from_values): Fix for change
	that made NautilusSignaller no longer a GtkObject.

	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init),
	(update_icon), (add_emblem): Port from EelImage to GtkImage.

	* src/nautilus-signaller.h:
	* src/nautilus-signaller.c: (nautilus_signaller_get_current): Use
	eel_debug_call_at_shutdown instead of g_atexit.
	(nautilus_signaller_instance_init),
	(nautilus_signaller_class_init): Change to GObject, not GtkObject.

	* src/nautilus-window-menus.c: (get_bookmark_list): Use
	eel_debug_call_at_shutdown instead of g_atexit.
	(nautilus_window_initialize_go_menu): Fix for change that made
	NautilusSignaller no longer a GtkObject.

	* test/test-nautilus-preferences-change.c: Remove unused include.
	* test/test-nautilus-preferences-display.c: Remove unused includes.
	* test/test-nautilus-wrap-table.c: Remove unused includes.
	* test/test.c: Remove unused function.
	* test/test.h: Remove unused function.
2002-01-19 00:06:14 +00:00
Michael Meeks
1da01a652d don't set the background, it causes a strange segv later.
2002-01-18  Michael Meeks  <michael@ximian.com>

	* libnautilus-private/nautilus-directory-background.c
	(image_loading_done_callback): don't set the background, it
	causes a strange segv later.

	* src/nautilus-window-toolbars.c
	(set_widget_for_bonobo_control): fold into
	(set_up_back_or_forward_toolbar_item): here.
	(set_up_standard_bonobo_button): kill redundant
	freeze / thaws.
	(set_up_special_bonobo_button): don't do nasty
	pixbuf roundtrips on a NULL icon_file_name
	(get_pixbuf_for_xml_node): kill - somewhat inefficient.
	(set_up_special_bonobo_button): set a straight pixbuf
	on the button item for more speed, and kill bogus
	in-proc freeze/thaw.
	(set_up_back_or_forward_toolbar_item): rename to
	(create_back_or_forward_toolbar_item): this to better
	reflect function, aggregate a property bag.
	(back_or_forward_tooblar_item_property_set_cb): impl.
2002-01-18 15:10:35 +00:00
Ian McKellar
a3950d8986 Get esd's CFLAGS and LIBS from pkg-config
* configure.in:
        Get esd's CFLAGS and LIBS from pkg-config
2002-01-18 09:26:14 +00:00
Anders Carlsson
2ac12f763e Add non-aa pango support.
2002-01-17  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_update_bounds),
	(draw_or_measure_label_text), (update_label_layouts),
	(get_label_layout), (draw_label_layout), (draw_label_layout_aa),
	(draw_or_measure_label_text_aa), (nautilus_icon_canvas_item_event):
	Add non-aa pango support.

	* libnautilus-private/nautilus-directory-async.c (make_dot_directory_uri):
	Do an sync check for the .directory file before scheduling an async read
	of the file.
2002-01-17 22:26:06 +00:00
Anders Carlsson
d9db3dbc11 Free the type string.
2002-01-17  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-link-desktop-file.c
	(nautilus_link_desktop_file_get_link_uri_from_desktop):
	Free the type string.

	* src/nautilus-view-frame.c (nautilus_view_frame_selection_changed):
	Call CORBA_free on uri_list.
	(send_history): Call CORBA_free on history.

	* src/nautilus-bookmark-parsing.c (nautilus_bookmark_new_from_node):
	free icon_mime_type.

	* src/file-manager/fm-icon-view.c (update_layout_menus): free path.
2002-01-17 21:24:12 +00:00
Anders Carlsson
843bc3dcb2 Remove conflict markers. 2002-01-17 21:01:51 +00:00
Anders Carlsson
fff1895637 Add fm-list-model.[ch]
2002-01-17  Anders Carlsson  <andersca@gnu.org>

	* src/file-manager/Makefile.am: Add fm-list-model.[ch]
2002-01-17 21:01:15 +00:00
Anders Carlsson
cb1f493db5 New file.
2002-01-17  Anders Carlsson  <andersca@gnu.org>

	* src/file-manager/fm-list-model.c: New file.

	* src/file-manager/fm-list-model.h: New file.

	* src/file-manager/fm-list-view.c: Port to GtkTreeView.

	* src/file-manager/fm-list-view.h: Port to GtkTreeView.

	* src/file-manager/fm-directory-view.c (fm_directory_view_destroy):
	Stop and clear the directory view before setting view to NULL because
	clearing the directory when nautilus_view is NULL can trigger an assertion.
2002-01-17 20:57:50 +00:00
Darin Adler
02b737b3a9 Added include needed for compatibility with new gnome-vfs.
* libnautilus-private/nautilus-mime-actions.c: Added include
	needed for compatibility with new gnome-vfs.

	* src/file-manager/fm-directory-view.c:
	(set_up_scripts_directory_global): Fix mistake with use of
	GNOME_DOT_GNOME by using gnome_util_home_file instead.
2002-01-17 20:23:14 +00:00
Darin Adler
639ce8e4a9 Remove unneeded code and restore display-specific registration. This gets
* components/hardware/main.c: (main):
	* components/image-viewer/nautilus-image-view.c:
	(init_server_factory):
	* components/loser/content/main.c: (main):
	* components/loser/sidebar/main.c: (main):
	* components/throbber/main.c: (main):
	* libnautilus/nautilus-view-standard-main.c:
	(nautilus_view_standard_main_multi),
	(nautilus_view_create_from_get_type_function):
	* src/nautilus-main.c: (main):
	Remove unneeded code and restore display-specific registration.
	This gets rid of a bunch of GNOME2_CONVERSION_COMPLETE ifdefs.

	* libnautilus-private/nautilus-directory-metafile-monitor.h:
	* libnautilus-private/nautilus-metafile-factory.c:
	* libnautilus-private/nautilus-metafile-factory.h:
	* libnautilus-private/nautilus-metafile.h:
	These had emacs mode lines that said they were IDL files.

	* libnautilus-private/nautilus-directory-metafile-monitor.c:
	* libnautilus-private/nautilus-metafile-factory.c:
	* libnautilus-private/nautilus-metafile.c:
	* libnautilus-private/nautilus-undo-context.c:
	* libnautilus-private/nautilus-undo-manager.c:
	* libnautilus/nautilus-undo-transaction.c:
	* src/nautilus-application.c:
	* src/nautilus-shell.c:
	* src/nautilus-view-frame-corba.c:
	Use BONOBO_CLASS_BOILERPLATE_FULL instead of EEL_BONOBO_BOILERPLATE_FULL.

	* src/nautilus-sidebar-title.c: (measure_width_callback),
	(update_more_info): First cut at implementing date that fits into
	sidebar. Not working yet.

	* src/nautilus-theme-selector.c:
	(install_theme_button_clicked_callback):
	Remove eel_gtk_window_set_up_close_accelerator call, since this is a
	GtkDialog that comes its own close accelerator.
2002-01-17 01:39:26 +00:00
Darin Adler
be14640d83 Release markers, and updated po files. 2002-01-16 08:33:27 +00:00
Darin Adler
25c5f4397e Bump version to 1.1.2 Update news a tiny bit.
* configure.in: Bump version to 1.1.2
	* NEWS: Update news a tiny bit.
2002-01-16 08:08:34 +00:00
Darin Adler
041b683b10 Remove. Remove.
* components/loser/content/Nautilus_View_content-loser.oaf.in: Remove.
	* components/loser/sidebar/Nautilus_View_sidebar-loser.oaf.in: Remove.
2002-01-16 08:06:55 +00:00
Johan Dahlin
c5866c29eb define __nautilus_view_component_COMPILATION instead of
2002-01-15  Johan Dahlin  <jdahlin@telia.com>

        * libnautilus/Makefile.am (nautilus_view_component_idl_stamp):
        * libnautilus/nautilus-view-component.idl: define
        __nautilus_view_component_COMPILATION instead of
        NAUTILUS_VIEW_COMPONENT_COMPILATION, to be compatible with
        libbonobo and bonobo-activation's idls.
2002-01-16 06:47:26 +00:00
Darin Adler
d5a1d7478d Mark release point. 2002-01-16 00:40:06 +00:00
Darin Adler
97bdd35053 Re-add ui_DATA to EXTRA_DIST. I removed it by accident.
* components/text/Makefile.am: Re-add ui_DATA to EXTRA_DIST.
        I removed it by accident.
2002-01-15 22:25:56 +00:00
Darin Adler
c46ea3870b Bump required eel version number. Get rid of ORBIT_REQUIRED.
* configure.in: Bump required eel version number. Get rid of
	ORBIT_REQUIRED.

	* libnautilus/Makefile.am: Remove unneeded "-I$(builddir)" since
	it is screwing up "make distcheck".
2002-01-15 21:56:45 +00:00
Darin Adler
369ee002cc Do an ifdef in the profiler code rather than in the makefile.
* src/Makefile.am:
	* src/nautilus-profiler.c:
	Do an ifdef in the profiler code rather than in the makefile.
2002-01-15 21:25:01 +00:00
Darin Adler
c37dff7d09 Prepare for 1.1.1 release. A few things got done.
* NEWS: Prepare for 1.1.1 release.
	* TODO: A few things got done.
2002-01-15 20:54:31 +00:00
Darin Adler
10d8291321 Fix another of those double-destroy problems by turning a destroy into a
* src/nautilus-desktop-window.c: (finalize),
	(nautilus_desktop_window_class_init):
	Fix another of those double-destroy problems by turning a destroy
	into a finalize.
2002-01-15 20:17:20 +00:00
Darin Adler
79c3c2e7de Inspired by a patch from Jacob Berkman <jacob@ximian.com>, got
rid of all the Makefile.am hackery so that everything ends up in
	the tarball.

	* configure.in: Bumped version to 1.1.1.

	* components/Makefile.am: Re-enabled all the subdirs.

	* components/adapter/Makefile.am: Re-enabled
	nautilus-adapter-embeddable-embed-strategy.[ch].

	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c:
	Put an #if GNOME2_CONVERSION_COMPLETE around the whole thing.

	* components/loser/content/Makefile.am:
	* components/loser/sidebar/Makefile.am:
	Update for COMPONENT_CFLAGS in NAUTILUS_PRIVATE_CFLAGS.

	* components/loser/content/main.c: (loser_make_object), (main):
	* components/loser/sidebar/main.c: (loser_make_object), (main):
	* components/loser/content/nautilus-content-loser.c:
	(nautilus_content_loser_init):
	* components/loser/sidebar/nautilus-sidebar-loser.c:
	(nautilus_sidebar_loser_init):
	Make these compile, not sure if they actually work.

	* components/shell/Nautilus_View_shell.server.in: Remove.
	* components/shell/shell.c: Remove.
	This component can go in a separate package -- it doesn't need to be
	part of the main Nautilus source tree.

	* components/text/Makefile.am: Turned off compiling of the component,
	but used EXTRA_DIST to make sure the source code still gets into the
	tarball.

	* components/tree/Makefile.am: Removed $(COMPONENT_LIBS) from the
	libnautilus_tree_view_la_SOURCES list. Not sure why it was in there.

	* libnautilus-private/Makefile.am: Remove stale references to the
	nautilus-druid-related headers.

	* libnautilus/nautilus-view-standard-main.c:
	(nautilus_view_standard_main_multi): Remove some
	GNOME2_CONVERSION_COMPLETE code that is now clearly not going to
	be needed. Left in the stuff that is a placeholder for things we
	still need.

	* src/Makefile.am: Distribute the profiler sources even when they are
	not built.

	* libnautilus-private/nautilus-icon-container.c: Whitespace tweak.
2002-01-15 20:05:57 +00:00
Johan Dahlin
6ca765153e Port to GtkTreeView.
2002-01-15  Johan Dahlin  <jdahlin@telia.com>

	* src/nautilus-bookmarks-window.c: Port to GtkTreeView.
2002-01-15 18:44:50 +00:00
Darin Adler
c2db1e5790 First cut at ensuring file names are always valid UTF-8. We probably need
* libnautilus-private/nautilus-file.c: (make_valid_utf8),
	(nautilus_file_get_display_name), (nautilus_file_get_name): First
	cut at ensuring file names are always valid UTF-8. We probably
	need other checks like this for various other places we read in
	external stuff. Also, we might later decide to cache the "made
	valid" name. Finally, we might want to support the glib
	G_BROKEN_FILENAMES feature.
2002-01-09 23:36:35 +00:00
Darin Adler
47c7d71426 Some destroy/finalize fixes.
* src/file-manager/fm-directory-view.c:
	(fm_directory_view_destroy), (fm_directory_view_finalize),
	(fm_directory_view_class_init):
	* src/file-manager/fm-icon-view.c: (fm_icon_view_finalize),
	(fm_icon_view_class_init):
	* src/file-manager/fm-list-view.c: (fm_list_view_class_init),
	(fm_list_view_finalize):
	Some destroy/finalize fixes.
2002-01-09 21:02:31 +00:00
Darin Adler
f4693fc046 Remove a stray reference to nautilus-help.desktop.
* Makefile.am: Remove a stray reference to nautilus-help.desktop.
2002-01-09 07:17:15 +00:00
Darin Adler
8c8ba31c5d Mention bad looking text.
* TODO: Mention bad looking text.

	* libnautilus-private/nautilus-icon-container.c: (destroy),
	(finalize), (nautilus_icon_container_init), (item_event_callback),
	(nautilus_icon_container_clear):
	Various fixes to make destroy on a NautilusIconContainer work.

	* components/tree/nautilus-tree-view-dnd.c:
	(nautilus_tree_view_drag_motion), (nautilus_tree_view_drag_drop),
	(nautilus_tree_view_button_press),
	(nautilus_tree_view_button_release),
	(nautilus_tree_view_motion_notify):
	* libnautilus-private/nautilus-undo-signal-handlers.c:
	(editable_key_press_event):
	* src/nautilus-bookmarks-window.c: (handle_close_accelerator):
	Remove unneeded stop_emit-type calls, now that the signal machinery
	understands that TRUE means to stop emitting in some cases.
2002-01-08 23:36:59 +00:00
Darin Adler
2bab818c86 Remove. Remove nautilus-help.desktop since Nautilus isn't the help browser
* .cvsignore:
	* Makefile.am:
	* nautilus-help.desktop.in: Remove.
	Remove nautilus-help.desktop since Nautilus isn't the help browser
	any more.

	* components/adapter/nautilus-adapter-load-strategy.c:
	(nautilus_adapter_load_strategy_class_init):
	* components/news/nautilus-news.c: (set_up_main_widgets):
	* libnautilus-private/nautilus-bookmark.c:
	(nautilus_bookmark_class_init):
	* libnautilus-private/nautilus-volume-monitor.c:
	(nautilus_volume_monitor_class_init):
	* src/file-manager/fm-desktop-icon-view.c:
	(fm_desktop_icon_view_destroy),
	(fm_desktop_icon_view_handle_middle_click), (delayed_init),
	(fm_desktop_icon_view_init), (desktop_icons_compare_callback):
	* src/nautilus-sidebar.c: (nautilus_sidebar_finalize),
	(nautilus_sidebar_update_buttons), (nautilus_sidebar_set_uri):
	Use more g_signal, less gtk_signal stuff.

	* components/hardware/nautilus-hardware-view.c: (setup_form_title),
	(setup_overview_form), (setup_CPU_form), (setup_RAM_form),
	(setup_IDE_form):
	* components/news/nautilus-news.c: (set_up_main_widgets):
	* src/file-manager/nautilus-indexing-info.c:
	(update_progress_display), (last_index_time_dialog_new),
	(index_progress_dialog_new):
	* src/nautilus-property-browser.c:
	(nautilus_property_browser_init), (element_clicked_callback),
	(labeled_image_new), (make_properties_from_directories),
	(add_reset_property), (make_properties_from_xml_node):
	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init),
	(nautilus_sidebar_title_select_text_color), (update_title_font),
	(update_title), (update_more_info),
	(sidebar_title_create_title_label),
	(sidebar_title_create_more_info_label):
	Port more code from EelLabel to GtkLabel. Also change all code that
	was using things like "make_larger" to use "set_scale" now.

	* components/music/nautilus-music-view.c: (xpm_label_box),
	(xpm_dual_label_box), (nautilus_music_view_set_album_image):
	* libnautilus-private/nautilus-bookmark.c:
	(create_image_widget_for_bookmark),
	(nautilus_bookmark_menu_item_new):
	* src/nautilus-complex-search-bar.c:
	(load_find_them_pixmap_widget):
	Port more code from GtkPixmap to GtkImage.

	* components/notes/nautilus-notes.c:
	* components/throbber/nautilus-throbber.c:
	* src/file-manager/fm-properties-window.c:
	* src/nautilus-zoom-control.c:
	Remove extra includes.

	* libnautilus-private/nautilus-icon-factory.c:
	* libnautilus-private/nautilus-icon-factory.h:
	Remove nautilus_icon_factory_get_pixmap_and_mask_for_file.

	* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
	(nautilus_about_draw_info): Port to use Pango to draw the text. It
	looks really bad right now, but should be straightforward to fix.
2002-01-08 22:37:57 +00:00
Anders Carlsson
b790895fea Whoops. 2002-01-08 22:20:05 +00:00
Anders Carlsson
f2d6d7a117 New function to free a handle and it's associated object.
2002-01-08  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-bonobo-extensions.c (activation_handle_free):
	New function to free a handle and it's associated object.
	(activation_idle_callback): Call activation_handle_free.
	(activation_cancel): Likewise.
2002-01-08 22:19:25 +00:00
Anders Carlsson
58e06b842b Implement nautilus_view_close_window ().
2002-01-08  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-icon-container.c:
	(nautilus_icon_container_update_icon):
	* libnautilus/nautilus-view-component.idl:
	* libnautilus/nautilus-view.c: (call_close_window),
	(nautilus_view_close_window):
	* libnautilus/nautilus-view.h:
	* src/nautilus-profiler.c:
	(nautilus_profiler_bonobo_ui_report_callback):
	* src/nautilus-view-frame-corba.c: (close_window),
	(impl_Nautilus_ViewFrame_close_window),
	(nautilus_view_frame_corba_part_class_init):
	* src/nautilus-view-frame-private.h:
	* src/nautilus-view-frame.c: (nautilus_view_frame_close_window),
	(nautilus_view_frame_class_init):
	* src/nautilus-view-frame.h:
	* src/nautilus-window-manage-views.c: (close_window_callback):
	Implement nautilus_view_close_window ().
2002-01-08 17:35:51 +00:00
Anders Carlsson
ab5fb6c7ba Remove preferences calback in ::finalize.
2002-01-08  Anders Carlsson  <andersca@gnu.org>

	* src/nautilus-zoom-control.c (nautilus_zoom_control_finalize): Remove
	preferences calback in ::finalize.
	(nautilus_zoom_control_unload_images): Set image pointers to NULL after
	unloading images.

	* src/nautilus-window-menus.c: Remove some userlevel #defines.

	* src/nautilus-switchable-search-bar.c
	(nautilus_switchable_search_bar_finalize): Remove the preferences callback
	in ::finalize instead of ::destroy.

	* src/nautilus-switchable-navigation-bar.c: Create the search bar lazily.
	Creating the search bar came up high on the profile when creating new windows,
	and doing it lazily helps, especially when we don't have medusa support yet.
	(nautilus_switchable_navigation_bar_finalize): Free details in ::finalize.

	* src/nautilus-simple-search-bar.c (nautilus_simple_search_bar_finalize):
	Free details in ::finalize.
	(nautilus_simple_search_bar_destroy): Disable the undo stuff. Perhaps we could
	call connect to "destroy" in nautilus_undo_set_up_nautilus_entry_for_undo
	and call nautilus_undo_tear_down_nautilus_entry_for_undo there instead.

	* src/nautilus-sidebar.c (nautilus_sidebar_init): Ref and sink the title tab.
	(nautilus_sidebar_finalize): Move things from ::finalize to ::destroy.

	* src/nautilus-preferences-dialog.c
	(preferences_dialog_populate_themes_group): The image chooser isn't
	broken anymore so we can enable it now.

	* src/nautilus-main.c (main): Call gtk_main instead of bonobo_main
	since bonobo_main is for non-gui apps and won't be affected by
	gtk_main_quit.

	* src/nautilus-location-bar.c: Destroy things in ::finalize
	instead of in ::destroy.

	* src/nautilus-profiler.c: Port to GtkTextView.

	* src/nautilus-application.c (nautilus_application_new):
	Call bonobo_generic_factory_construct_noreg so that we set
	the IID.
	(nautilus_application_destroy): Unref the undo manager
	in ::destroy instead.

	* libnautilus-private/nautilus-icon-container.c:
	Use g_list_sort_with_data when sorting icons so we can get rid
	of the hack_icon_container hack.

	* libnautilus-private/nautilus-entry.c: Free details struct
	in ::finalize instead of in ::destroy

	* libnautilus-private/nautilus-icon-dnd.c
	(confirm_switch_to_manual_layout): Compare with GTK_RESPONSE_YES.

	* libnautilus-private/nautilus-file-operations.c
	(confirm_empty_trash): Compare with GTK_RESPONSE_YES.

So now you know what I've been doing during christmas...
2002-01-08 09:41:19 +00:00
Darin Adler
81054a094c Fixed to use g_iconv instead of iconv, starting with a patch from Jean
* libnautilus-private/nautilus-desktop-file-loader.c:
	(validated_strdup): Fixed to use g_iconv instead of iconv,
	starting with a patch from Jean Schurger <jschurger@schurger.org>.

	* libnautilus-private/nautilus-font-factory.c: Remove.
	* libnautilus-private/nautilus-font-factory.h: Remove.
	* libnautilus-private/Makefile.am:
	Remove nautilus-font-factory.[ch].

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_finalize),
	(nautilus_icon_canvas_item_set_arg),
	(nautilus_icon_canvas_item_get_arg), (draw_or_measure_label_text),
	(nautilus_icon_canvas_item_class_init):
	Get rid of the "font" arg. We'll have to replace this with something
	that works with Pango -- maybe just a font name.

	* src/file-manager/fm-list-view.c: (truncate_middle_callback),
	(get_cell_text): Turn off the GdkFont ellipsizing code. I hope this
	just goes away when Anders finishes his port to GtkTextView.

	* src/file-manager/fm-properties-window.c:
	(fm_properties_window_class_init), (real_destroy), (real_finalize):
	Fix a bug where it would try to disconnect a signal on an object
	that is already NULL by that time.

	* src/nautilus-profiler.c:
	(nautilus_profiler_bonobo_ui_report_callback): Disable the dump
	window, pending a port to GtkTextView instead of GtkText.

	* components/music/nautilus-music-view.c:
	* components/news/nautilus-news.c:
	* components/notes/nautilus-notes.c:
	* components/text/nautilus-text-view.c:
	* libnautilus-private/nautilus-file-operations-progress.c:
	* libnautilus-private/nautilus-file-operations.c:
	* libnautilus-private/nautilus-icon-container.c:
	* src/file-manager/fm-icon-view.c:
	* src/nautilus-sidebar-title.c:
	Get rid of some includes of unused headers.
2002-01-08 01:11:21 +00:00
Darin Adler
4bf5e65ed8 Integrate patches from Frank Worsley <fworlsey@shaw.ca>.
* libnautilus-private/nautilus-link.c:
	(get_link_style_for_mime_type): Fix porting mistake that caused all
	desktop files to be treated as Nautilus links.

	* libnautilus-private/nautilus-file.c: (rename_callback):
	Fix storage leak.
2002-01-07 17:33:40 +00:00
Dave Camp
25e8b156f3 Put back the accidentally removed g_free (theme_selector)->details.
2002-01-07  Dave Camp  <dave@ximian.com>

	* src/nautilus-theme-selector.c (theme_selector_finalize): Put
	back the accidentally removed g_free (theme_selector)->details.
2002-01-07 17:22:50 +00:00
Dave Camp
fa0d91ebce Take out the return. The EelLabel exorcism did in fact mostly fix the
2002-01-07  Dave Camp  <dave@ximian.com>

	* src/nautilus-preferences-dialog.c
	(preferences_dialog_populate_themes_group): Take out the return.
	The EelLabel exorcism did in fact mostly fix the theme selector.

	* src/nautilus-theme-selector.c (theme_selector_finalize): Moved here
	from theme_selector_destroy.
	(nautilus_theme_selector_class_init): Fixed the argument type list for
	the theme_changed signal, and reflect the destroy->finalize change.
2002-01-07 17:06:26 +00:00
Michael Meeks
e0d36ccafb prune
2002-01-05  Michael Meeks  <michael@ximian.com>

	* configure.in (IMLIB_REQUIRED, GDK_PIXBUF_REQUIRED),
	(POPT_REQUIRED, GCONF_REQUIRED): prune
2002-01-05 21:24:16 +00:00
Havoc Pennington
e60f2abe9f add preload of the gconf cache, to hopefully avoid a zillion round trips
2002-01-04  Havoc Pennington  <hp@pobox.com>

	* libnautilus-private/nautilus-global-preferences.c
	(nautilus_global_preferences_init): add preload of the gconf
	cache, to hopefully avoid a zillion round trips to gconfd on
	startup.

	* test/test.c (test_window_new): remove weird gtk_window_set_policy

	* test/test-nautilus-preferences-display.c: remove user level
	stuff

	* test/test-nautilus-preferences-change.c: remove user level stuff

	* libnautilus-private/nautilus-global-preferences.c: the default
	click policy was SPEED_TRADEOFF_LOCAL_ONLY, fix

	* libnautilus-private/nautilus.schemas: add schemas file,
	incomplete, needs to be finished and installed

	* libnautilus-private/nautilus-global-preferences.c: strip out
	user levels

	* src/nautilus-shell-ui.xml: strip out user level menu

	* src/nautilus-window-menus.c: strip out user level menu
2002-01-05 04:05:26 +00:00
Darin Adler
f2ae2a4476 Fix rubberband selection when the icon view is scrolled by using the
* libnautilus-private/nautilus-icon-container.c:
	(rubberband_timeout_callback): Fix rubberband selection when
	the icon view is scrolled by using the bin_window.

	* src/nautilus-sidebar.c: (nautilus_sidebar_destroy):
	Fix one of those "double-destroy" problems.

	* TODO: Formatting tweak.
	* configure.in: Formatting tweak.
2002-01-04 22:22:08 +00:00
Dave Camp
ae4d6027a0 Renamed from nautilus_get_modified_bonobo_zoomable_epv and changed to
2002-01-04  Dave Camp  <dave@ximian.com>

	* components/adapter/nautilus-zoomable-proxy.c
	(nautilus_zoomable_prozy_init_epv): Renamed from
	nautilus_get_modified_bonobo_zoomable_epv and changed to
	initialize a passed in epv rather than allocating a new one.
	(nautilus_zoomable_proxy_destroy):
	(nautilus_zoomable_proxy_finalize):
	(nautilus_zoomable_proxy_class_init):
	(nautilus_zoomable_proxy_get):
	(nautilus_zoomable_proxy_get_type): Derive from BonoboObject rather
	than BonoboZoomable, as this object fully implements the Zoomable
	interface.

	* components/adapter/nautilus-adapter.c (nautilus_adapter_new):
	Replaced gtk_signal_connect_object with g_signal_connect_swapped,
	cast callbacks to G_CALLBACK, and use a weak reference rather than
	a "destroy" handler.
	(nautilus_adapter_activate_callback): Pass NULL as the opt_ev
	parameter to bonobo_control_get_remote_ui_container().

	* components/adapter/nautilus-adapter-stream-load-strategy.c
	(nautilus_adapter_stream_load_strategy_load_location): The
	bonobo-stream-vfs code was moved to the VFS moniker in gnome-vfs,
	so use it here.

	* components/adapter/nautilus-adapter-load-strategy.c
	(nautilus_adapter_load_strategy_class_init): replaced
	eel_marshal_VOID__DOUBLE with g_cclosure_marshal_VOID__DOUBLE.
	(nautilus_adapter_load_strategy_get): Disabled the progressive
	data sink code using GNOME2_CONVERSION_COMPLETE.

	* components/adapter/nautilus-adapter-factory-server.c (nautilus_adapter_factory_server_class_init):
	(nautilus_adapter_factory_server_init):
	(nautilus_adapter_factory_server_finalize):
	(adapter_object_destroyed):
	(impl_Nautilus_ComponentAdapterFactory_create_adapter):
	(nautilus_adapter_factory_server_get_type): Changed to the new
	style of deriving from BonoboObject.
	(impl_Nautilus_ComponentAdapterFactory_create_adapter): Use a weak
	reference to the adapter view rather than connecting to "destroy".

	* components/adapter/nautilus-adapter-embed-strategy.c (nautilus_adapter_embed_strategy_class_init): Fixed the argument type lists for the
	activate and open_location signals.
	(nautilus_adapter_embed_strategy_get): Disable use of the embeddable
	embed strategy using GNOME2_CONVERSION_COMPLETE.

	* components/adapter/nautilus-adapter-control-embed-strategy.c
	(nautilus_adapter_control_embed_strategy_new): Pass NULL for the
	opt_ev parameter of bonobo_control_frame_bind_to_control().

	* components/adapter/main.c (main): Replaced initialization
	functions with bonobo_ui_init, and put an #ifdef
	GNOME2_CONVERSION_COMPLETE around
	gnome_client_disable_master_connect().
	(adapter_factory_make_object): Use a weak reference rather than a
	destroy signal handler.
	(adapter_factory_object_weak_notify): Moved here from
	adapter_factory_object_destroy, use bonobo_main_quit() rather than
	gtk_main_quit().

	* components/adapter/Makefile.am: Removed
	nautilus-adapter-progressive-load-strategy.[ch], and moved
	nautilus-adapter-embeddable-embed-strategy.[ch] out of the build,
	removed bonobo-stream-vfs.[ch] replaced
	NAUTILUS_PRIVATE_CFLAGS/LIBS with COMPONENT_CFLAGS/LIBS.

	* src/nautilus-component-adapter-factory.c: Removed
	no-longer-necessary #if GNOME2_CONVERSION_COMPLETE lines.
	(activate_factory): Replaced BonoboObjectClient code with a call to
	bonobo_get_object().
2002-01-04 20:52:16 +00:00
Frédéric Crozat
4ef5d92e67 Add esound cflags to CORE_CFLAGS, Call GNOME_COMMON_INIT to correctly
* configure.in: Add esound cflags to CORE_CFLAGS,
  Call GNOME_COMMON_INIT to correctly initialize
  AC_LOCAL flags
2002-01-04 17:28:28 +00:00
Anders Carlsson
995efcdfaf Update to matched changed return value from nautilus_program_chooser_new
2002-01-04  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-program-choosing.c:
	Update to matched changed return value from
	nautilus_program_chooser_new ().

	* libnautilus-private/nautilus-program-chooser.h:
	* libnautilus-private/nautilus-program-chooser.c:
	Port to GtkTreeView, and make NautilusProgramChooser
	into a real object.

	* components/Makefile.am: Re-enable the music
	view.

	* components/music/nautilus-music-view.c: Port to
	GtkTreeView and GNOME2.
2002-01-04 13:15:14 +00:00
Andy Hertzfeld
eaca367340 made remote sound previewing work by using gnome-vfs to read from the
* src/file-manager/fm-icon-view.c: (play_file), (preview_audio),
	made remote sound previewing work by using gnome-vfs to read from
	the remote source and feeding the data to the sound player via popen.

	* (should_preview_sound):
	removed code that disabled remote sound previewing even if the
	preference was set
2002-01-04 04:13:57 +00:00
Darin Adler
ad4d0191ad Remove some smooth-font related stuff to get rid of the dependency on
* libnautilus-private/nautilus-global-preferences.c:
	(nautilus_global_preferences_init):
	Remove some smooth-font related stuff to get rid of the
	dependency on EelFontManager.

	* TODO: Quick update.
2002-01-04 00:14:17 +00:00
Darin Adler
1cb7f70f8f Don't use the eel_eat function.
* test/test.c: (test_text_caption_get_text_as_int):
	Don't use the eel_eat function.
2002-01-03 23:21:01 +00:00
Darin Adler
3eec4d53e1 Turn on test subdirectory.
* Makefile.am: Turn on test subdirectory.
	* test/test.c: (test_init), (test_label_new):
	* test/test.h:
	Build without using EelLabel.

	* src/nautilus-sidebar-title.c: Remove unused header include.
2002-01-03 23:18:38 +00:00
Darin Adler
baa6401268 Updated.
* TODO: Updated.

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(create_label_layout): Use eel_pango_layout_set_underline.

	* components/music/nautilus-music-view.c:
	Don't include EelList.
2002-01-03 22:48:25 +00:00
Darin Adler
33a7797c26 Use GnomeCanvasRect instead of EelCanvasRect. We can redo the
* libnautilus-private/nautilus-icon-container.c:
	(start_rubberbanding):
	Use GnomeCanvasRect instead of EelCanvasRect. We can redo the
	EelCanvasRect optimization if we want to, but it should really
	be put into libgnomecanvas.

	* components/music/common.c:
	* components/music/nautilus-music-view.c:
	* libnautilus-private/nautilus-customization-data.c:
	* libnautilus-private/nautilus-desktop-file-loader.c:
	* libnautilus-private/nautilus-directory-async.c:
	* libnautilus-private/nautilus-directory.c:
	* libnautilus-private/nautilus-file.c:
	* src/file-manager/fm-desktop-icon-view.c:
	* src/file-manager/fm-icon-view.c:
	* src/nautilus-property-browser.c:
	* src/nautilus-sidebar-title.c:
	* src/nautilus-window.c:
	Remove lots of unneeded includes, including all cases of
	including the locale-sensitive <ctype.h>.
2002-01-03 20:36:46 +00:00
Darin Adler
3ae6111714 Remove some help sidebar panel remnants.
* libnautilus-private/nautilus-global-preferences.c:
	(nautilus_global_preferences_init):
	* libnautilus-private/nautilus-sidebar-functions.c:
	(sidebar_panel_make_preference_key):
	* libnautilus-private/nautilus-sidebar-functions.h:
	Remove some help sidebar panel remnants.
2002-01-03 20:19:17 +00:00
Michael Meeks
6b5cf550d3 fix build. 2002-01-03 15:28:16 +00:00
John Fleck
dff4399113 //bugzilla.gnome.org/show_bug.cgi?id=47433
2002-01-03  John Fleck <jfleck@inkstain.net>

	* help/nautilus-quick-reference/C/index.html
	removing duplicate width tags, fixing
	http://bugzilla.gnome.org/show_bug.cgi?id=47433
2002-01-03 13:53:03 +00:00
Darin Adler
277c026168 Explicitly depend on librsvg instead of getting it through eel.
* configure.in:
	Explicitly depend on librsvg instead of getting it through eel.
2002-01-03 00:55:24 +00:00
Anders Carlsson
3aaa9809b4 Fix warnings by putting #ifdef GNOME2_CONVERSION_COMPLETE around unused
2002-01-03  Anders Carlsson  <andersca@gnu.org>

	* src/nautilus-component-adapter-factory.c: Fix warnings by
	putting #ifdef GNOME2_CONVERSION_COMPLETE around unused functions
	and variables.
2002-01-03 00:50:06 +00:00
Darin Adler
fa2a9d0085 Port from EelLabel to GtkLabel.
* components/hardware/nautilus-hardware-view.c:
	(update_uptime_text), (setup_overview_form):
	* components/music/nautilus-music-view.c:
	* src/file-manager/nautilus-indexing-info.c:
	(update_progress_display):
	* src/nautilus-property-browser.c:
	(nautilus_property_browser_init), (labeled_image_configure),
	(labeled_image_new), (make_category),
	(property_browser_category_button_new),
	(nautilus_property_browser_update_contents):
	* test/test.h:
	* src/nautilus-shell.c:
	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
	Port from EelLabel to GtkLabel.

	* components/news/nautilus-news.c: (do_destroy),
	(draw_rss_logo_image), (draw_rss_title), (draw_rss_items),
	(nautilus_news_set_title), (free_channel),
	(empty_message_size_allocate), (set_up_main_widgets),
	(make_news_view):
	* libnautilus-private/nautilus-icon-private.h:
	* src/nautilus-sidebar-tabs.c:
	(nautilus_sidebar_tabs_load_theme_data),
	(nautilus_sidebar_tabs_init), (nautilus_sidebar_tabs_destroy),
	(draw_one_tab_plain), (draw_one_tab_themed), (get_tab_width),
	(nautilus_sidebar_tabs_add_view):
	Port to Pango text instead of Eel text.

	* libnautilus-private/nautilus-customization-data.c:
	(add_reset_text):
	* libnautilus-private/nautilus-icon-factory.c:
	(embedded_text_font_changed_callback), (embed_text):
	* src/nautilus-about.c: (draw_aa_string), (draw_author_list),
	(nautilus_about_draw_info), (nautilus_about_update_authors):
	Disable Eel text and ifdef with GNOME2_CONVERSION_COMPLETE.

	* libnautilus-private/nautilus-global-preferences.h:
	* libnautilus-private/nautilus-global-preferences.c:
	Turn off font-related preferences. Maybe delete later or
	convert for Pango fonts.

	* libnautilus-private/nautilus-icon-canvas-item.h:
	* libnautilus-private/nautilus-icon-container.h:
	Remove eel-scalable-font.h includes.

	* src/nautilus-component-adapter-factory.c:
	(nautilus_component_adapter_factory_create_adapter):
	Disable the adapter because it was causing problems.
2002-01-03 00:11:12 +00:00
Frédéric Crozat
2b4a8d9728 Remove flash when Nautilus desktop is started with a pixmap background
* libnautilus-private/nautilus-directory-background.c:
        (initialize_background_from_settings): Remove flash when
        Nautilus desktop is started with a pixmap background

        * src/nautilus-desktop-window.c: (map): Remove unneeded variable
2002-01-02 19:24:40 +00:00
Michael Meeks
b14ecf3268 fix strcmp style for Darin.
2001-12-18  Michael Meeks  <michael@ximian.com>

	* components/hardware/nautilus-hardware-view.c
	(setup_overview_form): fix strcmp style for Darin.

	* components/music/fileinfo.c (find_genre_id),
	(file_info_http): ditto.

	* libnautilus-private/nautilus-customization-data.c
	(nautilus_customization_data_get_next_element_for_display),
	(nautilus_customization_data_new): ditto.

	* src/nautilus-property-browser.c
	(nautilus_property_browser_drag_data_get),
	(make_category_link, make_drag_image): ditto.

	* libnautilus-private/nautilus-volume-monitor.c
	(option_list_has_option): ditto.

2001-12-17  Michael Meeks  <michael@ximian.com>

	* src/file-manager/fm-directory-view.c
	(fm_directory_view_init): set mask.

	* src/nautilus-view-frame.c
	(create_corba_objects): set ambient property bag.
	(create_ambient_properties),
	(nautilus_view_frame_get_prop): impl.
	(nautilus_view_frame_title_changed),
	(nautilus_view_frame_selection_changed),
	(send_history): re-implement to fire event instead.

	* components/history/nautilus-history-view.c
	(nautilus_history_view_instance_init): set mask.
	(history_changed_callback, update_history): constify.

	* libnautilus/nautilus-view.c
	(impl_Nautilus_View_title_changed),
	(impl_Nautilus_View_history_changed): kill.
	(impl_Nautilus_View_selection_changed): kill.
	(nautilus_view_construct_from_bonobo_control):
	connect to set_frame.
	(nautilus_view_set_frame_callback): impl.
	(nautilus_view_dispose): impl. to unset the frame
	(nautilus_view_class_init): upd signals, epv & hook
	dispose.
	(nautilus_view_frame_property_changed_callback): impl.
	(nautilus_view_get_ambient_properties): impl.
	(nautilus_view_set_listener_mask): impl.

	* libnautilus/nautilus-view-component.idl: remove
	title_changed and history_changed - use a propert
	and the more flexible listener interface.
2001-12-21 11:32:29 +00:00
Darin Adler
0e61a2dc6f Do text drawing with Pango for the anti-aliased case. Remove all use of
* libnautilus-private/nautilus-icon-canvas-item.h:
	* libnautilus-private/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_init),
	(nautilus_icon_canvas_item_finalize),
	(nautilus_icon_canvas_item_invalidate_label_size),
	(nautilus_icon_canvas_item_set_arg),
	(nautilus_icon_canvas_item_get_arg), (draw_or_measure_label_text),
	(measure_label_text), (create_label_layout), (get_label_layout),
	(draw_label_layout), (draw_or_measure_label_text_aa),
	(draw_label_text_aa), (nautilus_icon_canvas_item_class_init):
	Do text drawing with Pango for the anti-aliased case. Remove all
	use of the non-Pango Eel anti-aliased text drawing code.

	* libnautilus-private/nautilus-icon-container.h:
	* libnautilus-private/nautilus-icon-container.c: (finalize),
	(nautilus_icon_container_init),
	(nautilus_icon_container_update_icon),
	(nautilus_icon_container_set_label_font_for_zoom_level):
	* src/file-manager/fm-icon-view.c: (create_icon_container),
	(fm_icon_view_init):
	Remove the smooth-font stuff. We're going to use a single font
	once we change everything to use Pango.

	* icons/Makefile.am: Remove help-system icons.
	* icons/hyperbola-*: Remove help-system icons.
2001-12-18 00:57:46 +00:00
Seth Nickell
0e8a902c00 The programs:/ URI is now applications:/ to conform with the HIG and GDP
2001-12-14  Seth Nickell  <snickell@stanford.edu>

        The programs:/ URI is now applications:/ to conform with the
	HIG and GDP word list.

	* data/Makefile.am:
	* data/applications.desktop.in:
	* data/programs.desktop.in:

	Move programs.desktop.in to applications.desktop.in and change
	the URI and Name in the desktop entry.
2001-12-14 13:40:35 +00:00
Seth Nickell
7c8800b6a2 Install nautilus and help .desktop files into the proper location for
2001-12-14  Seth Nickell  <snickell@stanford.edu>

	* Makefile.am:

	Install nautilus and help .desktop files into the proper
	location for GNOME2 menu entries ($datadir/applications).
2001-12-14 12:23:40 +00:00
Darin Adler
22ac93ef82 Deleted help component as it is not slated to be part of Gnome 2.
* components/Makefile.am:
	* components/help/*:
	* nautilus.spec.in:
	Deleted help component as it is not slated to be part of Gnome 2.

	* RENAMING: No need to rename hyperbola if it's gone.

	* configure.in: Removed ScrollKeeper check. Took a cut at making
	the medusa check use pkg-config, it's probably messed up but at
	least we won't define HAVE_MEDUSA if we see the Gnome 1 medusa.

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_init),
	(nautilus_icon_canvas_item_finalize),
	(nautilus_icon_canvas_item_set_arg),
	(nautilus_icon_canvas_item_get_arg),
	(draw_or_measure_label_text_aa), (draw_label_text_aa),
	(nautilus_icon_canvas_item_class_init):
	Quick cut at porting to Pango from Eel font code. It's all under
	ifdef USE_EEL_TEXT because it's not working well yet. At the moment
	the text looks bad, and it's very slow, and it's not centered.

	* libnautilus-private/nautilus-icon-factory.c: (embed_text):
	Baby steps at doing the port to Pango here too.

        * src/file-manager/fm-directory-view.c: (real_update_menus):
        Add a check for NULL that seems required. This change was
        suggested by the backtrace in bug 66809, but it's not clear
        if this really fixes anything. (Rolled from stable branch.)

	* src/file-manager/fm-icon-view.c: (icon_view_handle_uri_list):
	Fix code that passed a path instead of a URI when creating a
        desktop file. (Rolled from stable branch.)

	* TODO: Minor updates.
2001-12-13 23:37:55 +00:00
Michael Meeks
612ed122c7 fix container ref leak.
2001-12-12  Michael Meeks  <michael@ximian.com>

	* src/file-manager/fm-icon-view.c
	(fm_icon_view_merge_menus): fix container ref leak.

	* src/file-manager/fm-search-list-view.c
	(real_merge_menus): ditto.

	* src/file-manager/fm-desktop-icon-view.c
	(fm_desktop_icon_view_destroy): more guards.
	(real_merge_menus): fix container ref leak.
2001-12-12 23:19:36 +00:00
Michael Meeks
f9769d4cd3 protect vs. double destroy.
2001-12-12  Michael Meeks  <michael@ximian.com>

	* src/nautilus-window.c (nautilus_window_destroy):
	protect vs. double destroy.

	* src/nautilus-window-manage-views.c (disconnect_view):
	start macro definitions on the first line.

	* src/nautilus-sidebar.c (nautilus_sidebar_destroy):
	protect vs. double destroy.

	* src/nautilus-sidebar-tabs.c
	(nautilus_sidebar_tabs_destroy): protect vs. double destroy
	and theoretical re-enterancy hazard.

	* src/nautilus-sidebar-title.c
	(nautilus_sidebar_title_destroy): protect vs. double
	destroys.

	* src/nautilus-application.c (create_object): re-enable
	list view.

	* src/file-manager/fm-list-view.c: re-enable.
2001-12-12 20:14:52 +00:00
Laszlo Peter
57b746384e s/__FUNCTION__/G_GNUC_FUNCTION/
2001-12-11  Laszlo Peter  <laca@ireland.sun.com>

        * libnautilus-private/nautilus-authn-manager.c:
        s/__FUNCTION__/G_GNUC_FUNCTION/

        * libnautilus-private/nautilus-directory-background.c: get rid of
        _gdk_display_name

        * libnautilus-private/nautilus-volume-monitor.c
        (nautilus_volume_get_device_type): remove "const" to match the
        prototype.
2001-12-11 18:29:55 +00:00
Darin Adler
0df7aba68d Do fix based on patch from Martin Wehner <mwehner@tfh-berlin.de> to
* libnautilus-private/nautilus-file-operations.c:
	(handle_transfer_ok): Do fix based on patch from Martin Wehner
	<mwehner@tfh-berlin.de> to prevent cancel of emptying trash or
	deleting from core dumping.

	* Makefile.am:
	* configure.in:
	* docs/.cvsignore:
	* docs/Makefile.am:
	Add files in the docs directory to tarball.

	* libnautilus/nautilus-view-standard-main.c:
	(nautilus_view_standard_main_multi): Whitespace tweak.
2001-12-09 20:45:12 +00:00
Anders Carlsson
d58fa91abd Remove conflict markers 2001-12-08 13:18:21 +00:00
Anders Carlsson
1ab16a8b04 Update for new bonobo property bag API.
2001-12-08  Anders Carlsson  <andersca@gnu.org>

	* components/throbber/nautilus-throbber.c:
	(nautilus_throbber_instance_init):
	* src/nautilus-window.c: (nautilus_window_allow_stop):
	Update for new bonobo property bag API.
2001-12-08 13:17:07 +00:00
Michael Meeks
84204ad084 unroll control creation, connect to "activate" signal handler not map /
2001-12-08  Michael Meeks  <michael@ximian.com>

	* components/tree/nautilus-tree-view.c
	(nautilus_tree_view_init): unroll control creation,
	connect to "activate" signal handler not map / unmap
	on no-window widget GtkScrolledWindow.
	(tree_map_callback, tree_unmap_callback): kill.
	(tree_activate_callback): impl.

	* components/tree/libmain.c
	(BonoboActivation_Plugin_info) ->
	(Bonobo_Plugin_info).

	* components/tree/Makefile.am: setup ldflags
	correctly, and a LIBADD so we can activate it
	independantly.

	* components/throbber/main.c (main): fix for
	bonobo-activation-server race condition.

	* libnautilus-private/nautilus-marshal.list:
	add VOID:STRING,STRING
2001-12-08 10:46:18 +00:00
Michael Meeks
a0f24894de if we were already registered - due to a beautifuly inefficient activation
2001-12-06  Michael Meeks  <michael@ximian.com>

	* libnautilus/nautilus-view-standard-main.c
	(nautilus_view_standard_main_multi): if we were
	already registered - due to a beautifuly inefficient
	activation server race - just quit.
2001-12-08 08:36:35 +00:00
Darin Adler
c9b8fca3c2 Tweak some documents, removing obsolete ones.
* docs/design.txt:
	* docs/gnomad-notes.txt:
	* docs/metaitems.txt:
	* docs/nautilus.faq:
	* docs/use-cases.txt:
	Tweak some documents, removing obsolete ones.
2001-12-08 06:03:44 +00:00
Darin Adler
95b0620d80 Moved mozilla component into its own module.
* components/Makefile.am:
	* components/mozilla/.cvsignore:
	* components/mozilla/Makefile.am:
	* components/mozilla/Nautilus_View_mozilla.server.in:
	* components/mozilla/bonobo-extensions.c:
	* components/mozilla/bonobo-extensions.h:
	* components/mozilla/main.c:
	* components/mozilla/mozilla-components.cpp:
	* components/mozilla/mozilla-components.h:
	* components/mozilla/mozilla-events.cpp:
	* components/mozilla/mozilla-events.h:
	* components/mozilla/mozilla-preferences.cpp:
	* components/mozilla/mozilla-preferences.h:
	* components/mozilla/nautilus-mozilla-content-view.c:
	* components/mozilla/nautilus-mozilla-content-view.h:
	* components/mozilla/nautilus-mozilla-embed-extensions.cpp:
	* components/mozilla/nautilus-mozilla-embed-extensions.h:
	* components/mozilla/nautilus-mozilla-encoding-tables.c:
	* components/mozilla/nautilus-mozilla-encoding-tables.h:
	* components/mozilla/nautilus-mozilla-ui.xml:
	* configure.in:
	* nautilus.spec.in:
	Moved mozilla component into its own module.
2001-12-07 02:47:06 +00:00
Darin Adler
5a749ac982 lots of files Get rid of casts in callers to g_object_ref/g_object_unref.
* lots of files
	Get rid of casts in callers to g_object_ref/g_object_unref.
	Remove parameters to eel_make_warnings_and_criticals_stop_in_debugger.
2001-12-07 00:55:34 +00:00
Gediminas Paulauskas
60c93330fb remove cut'n'pasted functions which are in glib now. don't set close key
2001-12-05  Gediminas Paulauskas <menesis@delfi.lt>

	* libnautilus-private/nautilus-desktop-file-loader.c: remove
	cut'n'pasted functions which are in glib now.
	* src/nautilus-about.c (nautilus_about_instance_init): don't set
	close key accelerator, Gtk+ does that already.

2001-12-05  Gediminas Paulauskas <menesis@delfi.lt>

	* configure.in, libnautilus/Makefile.am,
	libnautilus/libnautilus.pc.in: make libnautilus know to pkg-config

2001-12-05  Gediminas Paulauskas <menesis@delfi.lt>

	* components/hardware/main.c, components/help/hyperbola-main.c,
	components/image-viewer/nautilus-image-view.c,
	components/mozilla/main.c, libnautilus/nautilus-view-standard-main.c,
	src/nautilus-main.c: (main) get translated messages from nautilus
	text domain in utf-8.
	* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback)
	replace copyright symbol with utf-8 version of it.
2001-12-05 18:58:07 +00:00
Darin Adler
b1dda7219f Fix bugs exposed by "make check".
* libnautilus-private/nautilus-directory-async.c:
	(is_dot_or_dot_dot), (should_skip_file),
	(dequeue_pending_idle_callback), (directory_load_one),
	(count_non_skipped_files), (directory_count_callback),
	(start_monitoring_file_list), (deep_count_one), (mime_list_one):
	Add new code to handle stuff that we did with a gnome-vfs filter
	in the old version.

	* libnautilus-private/nautilus-search-uri.c:
	(strip_uri_beginning), (tokenize_uri): Fix use of g_strsplit since
	the meaning of the parameter has changed.
2001-12-04 19:49:24 +00:00
Darin Adler
26b95469d4 Use GNOME_DOT_GNOME.
* src/file-manager/fm-directory-view.c:
	(set_up_scripts_directory_global): Use GNOME_DOT_GNOME.
2001-12-03 18:00:54 +00:00
Darin Adler
f576768c40 Skip over non-element nodes when walking libxml DOM tree.
* src/nautilus-property-browser.c: (remove_color),
	(make_properties_from_xml_node),
	(nautilus_property_browser_update_contents):
	Skip over non-element nodes when walking libxml DOM tree.

	* libnautilus-private/nautilus-theme.c:
	(nautilus_theme_get_theme_data_from_theme): Whitespace tweak.
2001-12-01 04:17:20 +00:00
Darin Adler
a238fef0fe Roll double-free bug fix from the branch.
* libnautilus-private/nautilus-directory-async.c:
	(top_left_read_callback): Roll double-free bug fix from the branch.

	* TODO: Some small updates.

	* components/hardware/nautilus-hardware-view.c:
	* data/browser.xml:
	* icons/crux_eggplant/crux_eggplant.xml:
	* icons/crux_teal/crux_teal.xml:
	* icons/default.xml:
	* icons/gnome/gnome.xml:
	* icons/sierra/sierra.xml:
	* icons/tahoe/tahoe.xml:
	* libnautilus-private/nautilus-directory-background.c:
	(nautilus_file_background_write_desktop_settings):
	* libnautilus-private/nautilus-icon-container.c:
	(start_rubberbanding):
	* libnautilus-private/nautilus-icon-text-item.c:
	(fetch_themed_color):
	* src/nautilus-property-browser.c: (add_color_to_browser):
	* src/nautilus-sidebar-tabs.c: (setup_light_text),
	(setup_dark_text), (nautilus_sidebar_tabs_init),
	(nautilus_sidebar_tabs_receive_dropped_color):
	* src/nautilus-sidebar-title.c:
	(nautilus_sidebar_title_select_text_color):
	* src/nautilus-sidebar.c: (receive_dropped_color):
	Changed all rgb:RRRR/GGGG/BBBB to #RRGGBB. We still probably have
	to handle the old format just for old data files.

	* libnautilus-private/.cvsignore:
	nautilus-marshal-guts.h -> nautilus-marshal.h

	* src/file-manager/fm-directory-view.c:
	(update_directory_in_scripts_menu): Add filter so that we don't
	see invisible or backup files in the scripts menu. In the old
	days, gnome-vfs supplied the filtering.

	* src/nautilus-about.c: (nautilus_about_finalize),
	(nautilus_about_instance_init), (nautilus_about_hide),
	(nautilus_about_hide_on_response),
	(nautilus_about_hide_on_delete), (nautilus_about_class_init):
	Get rid of double-destroy problem with about, and fix OK button.

	* src/nautilus-bookmarks-window.c:
	(nautilus_bookmarks_window_response_callback): Fix Done button.
	(create_bookmarks_window): Hook up response callback.
	(on_window_delete_event), (handle_close_accelerator): Get rid of
	save_geometry_and_hide, since hide already does that.

	* src/nautilus-main.c: (main): Add some missing domains for better
	debugging. We should figure out a way to do this without a list of
	domains.
2001-12-01 01:05:38 +00:00
Seth Nickell
b61c743047 Change list format for Categories field.
2001-11-27  Seth Nickell  <snickell@stanford.edu>

	* nautilus-help.desktop.in:
	* nautilus.desktop.in:

	Change list format for Categories field.
2001-11-28 00:55:59 +00:00
Seth Nickell
63a77e5507 Add "Categories=" section to work with George's new vfolder panel menu
2001-11-27  Seth Nickell  <snickell@stanford.edu>

	* nautilus.desktop.in:

	Add "Categories=" section to work with George's
	new vfolder panel menu system.
2001-11-27 09:26:32 +00:00
Owen Taylor
6b6368db2f Return from get_type() functions is GType, not guint. Deal with errant
Mon Nov 26 20:34:52 2001  Owen Taylor  <otaylor@redhat.com>
        * libnautilus-private/nautilus-icon-factory.c:
        * libnautilus-private/nautilus-icon-container.h
          libnautilus-private/nautilus-file-operations-progress.h: Return
        from get_type() functions is GType, not guint.
        * components/sample/nautilus-sample-content-view.c
          libnautilus/nautilus-undo-private.h: Deal with
        errant gobject/* includes. (George Karabin)
2001-11-27 01:46:16 +00:00
Michael Meeks
7e6e6bd8cb listen for changed on the text buffer. (notes_load_metainfo): set buffer
2001-11-22  Michael Meeks  <michael@ximian.com>

	* components/notes/nautilus-notes.c (make_notes_view):
	listen for changed on the text buffer.
	(notes_load_metainfo): set buffer to "" not NULL.

	* libnautilus/nautilus-view-standard-main.c
	(delayed_quit_timeout_callback): do a bonobo_main_quit.
	(object_destroyed): GObject-ify.

	* components/throbber/main.c (main): upd.
2001-11-22 06:49:46 +00:00
Michael Meeks
50a26e5813 fix marshaller.
2001-11-22  Michael Meeks  <michael@ximian.com>

	* libnautilus-private/nautilus-icon-container.c
	(nautilus_icon_container_class_init): fix marshaller.

	* libnautilus-private/nautilus-marshal.list: add
	INT_POINTER_BOOLEAN

	* src/file-manager/fm-properties-window.c
	(real_destroy): protect against double destroys.

Tue Nov 20 21:45:43 2001  Owen Taylor  <otaylor@redhat.com>

	* configure.in: Add [quoting] around AC_CHECK_HEADERS needed for
	some autoconf versions.

	* components/text/nautilus-text-view.c (file_read_callback):
	text_view->details->text_display is set to NULL in
	nautilus_text_view_destroy(), so simply check for non-NULL
	rather than calling GTK_OBJECT_DESTROYED().

	* src/file-manager/fm-properties-window.c (real_destroy): NULL
	out name_field here, since it will be destroyed, so we
	can avoid accessing it in rename_callback.

	* libnautilus-private/Makefile.am (nautilus-marshal-guts.c): Get rid
	of nautilus-marshal-guts.h, since glib-genmarshal now generates correct
	standalone headers.

	* libnautilus/nautilus-clipboard.c (select_all_callback),
	* libnautilus-private/nautilus-entry.c (nautilus_entry_select_all_at_idle):
	Remove the idle on destrunction of the widget, rather than checking
	GTK_OBJECT_DESTROYED().
2001-11-22 05:58:33 +00:00
Michael Meeks
7a030297d9 fix.
2001-11-21  Michael Meeks  <michael@ximian.com>

	* test/test-nautilus-wrap-table.c (main): fix.

	* test/test-nautilus-mime-actions.c (main): upd. init.

	* test/test.c (test_init): upd.
	(test_label_new): kill tile_pixbuf support.
	(test_image_new): ditto.

	* test/test-nautilus-async-activation.c (main): upd.

	* test/Makefile.am: add CORE_CFLAGS, update LDADD.

	* libnautilus-private/nautilus-directory.c
	(nautilus_directory_destroy): rename to
	(nautilus_directory_dispose): this, but leave as a
	gtk object for now, double emission protect, move
	removal from directories list to head & split into:
	(nautilus_directory_finalize): here.

	* libnautilus-private/nautilus-directory-async.c
	(nautilus_directory_async_state_changed): fully remove
	GTK_OBJECT_DESTROYED check.
2001-11-21 08:34:57 +00:00
Michael Meeks
44af9fae6c kill g_log_domain_glib.
2001-11-21  Michael Meeks  <michael@ximian.com>

	* src/nautilus-main.c (main): kill g_log_domain_glib.

	* components/news/nautilus-news.c (main): ditto.

	* libnautilus-private/nautilus-marshal.h: upd.

	* libnautilus/nautilus-view.c (nautilus_view_class_init):
	update for new marshallers.

	* libnautilus-private/nautilus-directory-async.c
	(nautilus_directory_async_state_changed): #ifdef out
	GTK_OBJECT_DESTROYED check.

	* libnautilus/nautilus-clipboard.c
	(select_all_idle_callback): kill GTK_OBJECT_DESTROYED
	check; unneccessary.

	* libnautilus-private/nautilus-directory.c
	(nautilus_directory_find_file_by_internal_uri): ditto.

	* libnautilus-private/nautilus-entry.c
	(select_all_at_idle): ditto.

	* components/text/nautilus-text-view.c
	(file_read_callback): ditto.

	* src/file-manager/fm-properties-window.c
	(rename_callback): ditto.
2001-11-21 06:14:51 +00:00
Ramiro Estrugo
5eed5fb9ed Workaround the crashing preferences dialog problem. Turn off the theme
* src/nautilus-preferences-dialog.c:
	(preferences_dialog_populate_themes_group):
	Workaround the crashing preferences dialog problem.  Turn off the
	theme chooser for now.  The image chooser is broken because of
	EelLabel usage.  Im hopeful that a general exorcism of EelLabel
	will fix this along with many other label related problems.
2001-11-15 11:16:01 +00:00
Michael Meeks
89a3d81710 allow double destroys & split out (nautilus_tree_view_finalize): impl.
2001-11-13  Michael Meeks  <michael@ximian.com>

	* components/tree/nautilus-tree-view.c
	(nautilus_tree_view_destroy): allow double destroys &
	split out
	(nautilus_tree_view_finalize): impl.
	(nautilus_tree_view_class_init): upd.

	* components/text/nautilus-text-view.c
	(nautilus_text_view_class_init): upd.
	(nautilus_text_view_destroy): allow double destroys.
	(nautilus_text_view_finalize): impl.

	* components/music/nautilus-music-view.c
	(nautilus_music_view_class_init): upd.
	(nautilus_music_view_destroy): upd.
	(nautilus_music_view_finalize): impl.

	* components/notes/nautilus-notes.c (do_destroy): don't
	do hacks around the old bonobo.

	* components/adapter/nautilus-adapter.c
	(nautilus_adapter_new): don't gtk_signal_connect_object to a
	BonoboObject.
2001-11-15 07:06:10 +00:00
Darin Adler
5b8e3d4436 Remove g_log_domain_gruntime.
* src/nautilus-main.c: (main): Remove g_log_domain_gruntime.
2001-11-14 23:22:41 +00:00
Frédéric Crozat
cf6567d4d1 Add detection of automounted volume, don't eject automounted CDROMs
* libnautilus-private/nautilus-volume-monitor.c:
(volume_is_automounted), (mount_volume_deactivate):
Add detection of automounted volume, don't eject automounted CDROMs

* libnautilus-private/nautilus-volume-monitor.c:
(nautilus_volume_monitor_set_volume_name):
Fix search for volume to modify
2001-11-14 10:28:13 +00:00
Darin Adler
d5f81287a5 Update to use proper boilerplate macros. Other porting tweaks.
* components/history/nautilus-history-view.c:
	* components/notes/nautilus-notes.c:
	* components/sample/nautilus-sample-content-view.c:
	* components/throbber/nautilus-throbber.c:
	Update to use proper boilerplate macros. Other porting tweaks.

	* libnautilus/nautilus-view.c: Switch to gnome version of macros
	instead of eel version.
2001-11-13 01:22:29 +00:00
Michael Meeks
cb91ae81a4 guard against CORBA_OBJECT_NIL return from get_control_frame.
2001-11-12  Michael Meeks  <michael@ximian.com>

	* libnautilus/nautilus-view.c
	(view_frame_call_begin): guard against
	CORBA_OBJECT_NIL return from get_control_frame.
2001-11-12 09:38:57 +00:00
Thomas Canty
6aeb09507b Initialise the gnome-vfs-module package, which is required for the help
2001-11-12  Thomas Canty  <tommydal@optushome.com.au>
* configure.in: Initialise the gnome-vfs-module package,
which is required for the help component

* components/help/*.[c|am]: Get the help component
working.

* components/text/nautilus-text-view.c: Some work towards
getting this file compiling.

* components/throbber/main.c: register the factory iid
directly.

* components/tree/*.c: get the tree component compiling
and linking.
2001-11-12 07:00:48 +00:00
Michael Meeks
09495c89f0 include string.h 2001-11-12 01:49:01 +00:00
Thomas Canty
8b7d17f0a6 Work towards getting the components compiling and working. History, News,
2001-11-10  Thomas Canty  <tommydal@optushome.com.au>

* Lots of files:
Work towards getting the components compiling and
working. History, News, Notes and Throbber components
are now working.

*  libnautilus/nautilus-view-standard-main.c:
Change the initialisation to use bonobo_ui_init

* src/nautilus-window-toolbars.c:
Re-enable the throbber.
2001-11-11 00:50:14 +00:00
Benedikt Roth
9a9ae4d9c8 *** empty log message *** 2001-11-10 17:25:11 +00:00
Darin Adler
92030834e9 Remove unused stuff.
* libnautilus-private/nautilus-horizontal-splitter.c:
        Remove unused stuff.

        * libnautilus-private/nautilus-icon-container.c: (destroy),
        (finalize), (nautilus_icon_container_class_init): Fix the
        destroy and finalize code for the new object lifetime rules.
        * libnautilus-private/nautilus-icon-dnd.c:
        (nautilus_icon_dnd_fini): Fix another multiple-invocation
        issue.
        * libnautilus-private/nautilus-program-chooser.c:
        (nautilus_program_chooser_new): Change response codes to
        match the way this worked under GnomeDialog.

        * libnautilus-private/README: Update wording a bit.
2001-11-10 05:00:34 +00:00
Michael Meeks
b47cbae42d return bonobo_debug_shutdown, if only we could get there.
2001-11-09  Michael Meeks  <michael@ximian.com>

	* src/nautilus-main.c (main): return bonobo_debug_shutdown,
	if only we could get there.

	* libnautilus-private/nautilus-icon-dnd.c
	(nautilus_icon_dnd_fini): don't try to double free the
	drag_info, allow mutliple invocations.
2001-11-09 06:37:02 +00:00
Darin Adler
4a2255079a Lots of files. Get rid a lot of unneeded casts.
* Lots of files.
	Get rid a lot of unneeded casts.
2001-11-09 02:05:53 +00:00
Darin Adler
ee16c76383 Cleanup, turn on all DISABLE_DEPRECATED. Turn on all DISABLE_DEPRECATED.
* components/sample/Makefile.am: Cleanup, turn on all
	DISABLE_DEPRECATED.
	* libnautilus/Makefile.am: Turn on all DISABLE_DEPRECATED.

	* components/sample/nautilus-sample-content-view.c:
	(nautilus_sample_content_view_instance_init): Remove gratuitous
	assert.

	* libnautilus/nautilus-clipboard.c: (cut_callback),
	(copy_callback), (paste_callback): Remove bug workaround.
	(merge_in_clipboard_menu_items), (merge_out_clipboard_menu_items),
	(nautilus_clipboard_set_up_editable),
	(disconnect_set_up_in_control_handlers): gtk_signal -> g_signal.
2001-11-09 01:32:17 +00:00
Darin Adler
bf4da2da8c Just me, not the mailing list.
* MAINTAINERS: Just me, not the mailing list.

	* Makefile.am: Enable the components directory.
	* components/Makefile.am: Disable all but sample.

	* components/*/.cvsignore:
	* components/*/*.oaf.in: Removed.
	* components/*/*.server.in: Added.
	server -> oaf

	* components/*/Makefile.am:
	Install the servers in the right place.

	* configure.in:
	* libnautilus-adapter/Makefile.am:
	* libnautilus-private/Makefile.am:
	* src/Makefile.am:
	* src/file-manager/Makefile.am:
	Simplified CFLAGS, LIBS, and IDL_INCLUDES.

	* components/sample/Makefile.am:
	Switch to the new COMPONENT_CFLAGS.

	* components/sample/nautilus-sample-content-view.h:
	* components/sample/nautilus-sample-content-view.c:
	(nautilus_sample_content_view_finalize): Use instead of destroy.
	(bonobo_sample_callback): Mark string for localization.
2001-11-09 01:10:02 +00:00
Darin Adler
57947850ff Remove John Sullivan's email address from these error messages.
* src/file-manager/fm-error-reporting.c:
	(fm_report_error_loading_directory),
	(fm_report_error_renaming_file), (fm_report_error_setting_group),
	(fm_report_error_setting_owner),
	(fm_report_error_setting_permissions):
	Remove John Sullivan's email address from these error messages.

	* src/nautilus-view-frame.c: (shut_down),
	(nautilus_view_frame_unrealize), (nautilus_view_frame_destroy),
	(nautilus_view_frame_finalize), (nautilus_view_frame_class_init):
	Start shutting down in unrealize, since the BonoboPlug will also
	start shutting down then, and we don't want to misinterpret that
	as a failure.
2001-11-08 23:52:52 +00:00
Darin Adler
bc8ad1bf56 Remove e-paned.
* configure.in:
	* cut-n-paste-code/widgets/Makefile.am:
	* cut-n-paste-code/widgets/e-paned:
	* libnautilus-private/Makefile.am:
	* libnautilus-private/nautilus-horizontal-splitter.c:
	* libnautilus-private/nautilus-horizontal-splitter.h:
	* src/nautilus-window.c: (nautilus_window_constructed),
	(nautilus_window_set_content_view_widget),
	(nautilus_window_hide_sidebar), (nautilus_window_show_sidebar),
	(nautilus_window_sidebar_showing):
	Remove e-paned.

	* configure.in:
	* data/Makefile.am:
	* data/linksets/
	* libnautilus-private/Makefile.am:
	* libnautilus-private/nautilus-file-utilities.c:
	* libnautilus-private/nautilus-link-set.c:
	* libnautilus-private/nautilus-link-set.h:
	* src/Makefile.am:
	* src/nautilus-link-set-window.c:
	* src/nautilus-link-set-window.h:
	* src/nautilus-sidebar.c: (metadata_button_callback):
	Remove link sets.

	* libnautilus-private/nautilus-program-chooser.c:
	(launch_mime_capplet_on_ok),
	(launch_mime_capplet_and_close_dialog):
	* src/nautilus-window-menus.c: (forget_history_if_yes),
	(remove_bookmarks_for_uri_if_yes):
	Destroy dialogs when done, since GtkDialog doesn't do this for us.

	* src/nautilus-preferences-dialog.c: (preferences_dialog_create):
	Get rid of close signal handler, since default close handler does
	the same thing as a delete_event, which is what we want. We still
	might have to do something fancier on a delete_event.
2001-11-08 23:09:35 +00:00
Darin Adler
3f4aeca2fa Remove Nautilus 1 news. This file is empty for now. Add some renaming
* NEWS: Remove Nautilus 1 news. This file is empty for now.
	* RENAMING: Add some renaming ideas.
	* TODO: Add a tiny porting to-do list. I should take that
	survey of GNOME2_CONVERSION_COMPLETE that Havoc did and put
	it in here.
	* TRADEMARK_NOTICE: Removed this file. Eazel logo isn't in
	here any more.
	* Makefile.am: Remove TRADEMARK_NOTICE.

	* components/help/hyperbola-nav-index.c:
	* components/mozilla/nautilus-mozilla-content-view.c:
	* libnautilus-private/nautilus-authn-manager.c:
	* libnautilus-private/nautilus-file-operations-progress.c:
	* libnautilus-private/nautilus-file-operations-progress.h:
	* libnautilus-private/nautilus-file-operations.c:
	* libnautilus-private/nautilus-icon-dnd.c:
	* libnautilus-private/nautilus-program-chooser.c:
	* libnautilus-private/nautilus-program-chooser.h:
	* libnautilus-private/nautilus-program-choosing.c:
	* src/file-manager/fm-directory-view.c:
	* src/file-manager/fm-search-list-view.c:
	* src/file-manager/nautilus-indexing-info.c:
	* src/nautilus-about.c:
	* src/nautilus-about.h:
	* src/nautilus-application.c:
	* src/nautilus-bookmarks-window.c:
	* src/nautilus-location-bar.c:
	* src/nautilus-property-browser.c:
	* src/nautilus-shell.c:
	* src/nautilus-window-menus.c:
	* src/nautilus-window.c:
	First cut at converting to GtkDialog from GnomeDialog.
2001-11-08 21:46:07 +00:00
Anders Carlsson
7b12c54ecd Plug a leak.
2001-11-08  Anders Carlsson  <andersca@gnu.org>

	* libnautilus-private/nautilus-icon-dnd.c
	(nautilus_icon_dnd_update_drop_target): Plug a leak.


Sloff Sliff
2001-11-08 20:08:07 +00:00
Darin Adler
60c00f6fdd Finish the job of removing the converters.
* configure.in: Finish the job of removing the converters.
2001-11-08 18:23:06 +00:00
Darin Adler
a893354992 Freshen up a bit.
* .cvsignore: Freshen up a bit.
2001-11-07 21:46:10 +00:00
Darin Adler
f6cff97ccd Switch to glib's gettext.
* acconfig.h:
	* configure.in:
	Switch to glib's gettext.

	* components/help/converters/*:
	Remove, since these were moved to libgnome.

	* Many files:
	Get rid of incorrect uses of many locale-specific functions like
	g_strcasecmp and isspace.
2001-11-07 21:43:57 +00:00
Darin Adler
0bdc094fe6 Remove nautilus-clean.sh -- use bonobo-slay instead.
* Makefile.am:
	* README:
	* nautilus-clean.sh:
	* nautilus.spec.in:
	* src/nautilus-application.c: (nautilus_application_startup):
	Remove nautilus-clean.sh -- use bonobo-slay instead.

	* libnautilus-private/nautilus-program-chooser.c:
	(nautilus_program_chooser_new): The -2 feature is gone from
	gtk_window_set_default_size, so use -1.

	* src/nautilus-sidebar-title.c: (smooth_font_changed_callback),
	(nautilus_sidebar_title_select_text_color), (update_title_font),
	(update_title), (measure_width_callback), (update_more_info),
	(sidebar_title_create_title_label),
	(sidebar_title_create_more_info_label): Change to use GtkLabel
	instead of EelLabel for now -- that makes us actually get a label.
2001-11-07 19:02:02 +00:00
Darin Adler
1884c7e309 These were still including <libgnomevfs/gnome-vfs-mime.h>.
* components/help/help-method.c:
        * src/file-manager/fm-directory-view.c:
        * src/file-manager/fm-icon-view.c:
        These were still including <libgnomevfs/gnome-vfs-mime.h>.
2001-11-07 17:34:02 +00:00
Maciej Stachowiak
f97df4131c Tweak headers for latest gnome-vfs. I promise to stop messing with this
* libnautilus-private/nautilus-file.c,
	libnautilus-private/nautilus-link.c,
	libnautilus-private/nautilus-mime-actions.c: Tweak headers for
	latest gnome-vfs. I promise to stop messing with this now.
2001-11-07 16:47:40 +00:00
Darin Adler
2630769d7a libxml2 complains about NULL path, which libxml1 just handled by returning
* libnautilus-private/nautilus-find-icon-image.c: (read_details):
	libxml2 complains about NULL path, which libxml1 just handled by
	returning NULL, so check for NULL path.

	* libnautilus-private/nautilus-icon-canvas-item.c:
	(nautilus_icon_canvas_item_finalize),
	(nautilus_icon_canvas_item_class_init): Change destroy to finalize.
	(nautilus_icon_canvas_item_set_arg),
	(nautilus_icon_canvas_item_get_arg): Use pointer instead of boxed
	type for font.

	* src/nautilus-window-menus.c: (create_menu_item_from_node),
	(append_static_bookmarks): In the old days, all nodes were elements,
	but now we have nodes for text too. Change code to skip over non-
	element nodes.
2001-11-06 20:43:44 +00:00
Darin Adler
52b329b137 Lots of files. Another GtkObject -> GObject pass.
* Lots of files.
	Another GtkObject -> GObject pass.
2001-11-06 19:14:33 +00:00
Darin Adler
5fb5bf3739 Did some fixes based on a patch Michael sent me.
* cut-n-paste-code/widgets/e-paned/e-paned.c:
	(e_paned_class_init): Turn off e_paned_expose for now.

	* libnautilus-private/nautilus-icon-container.c:
	(nautilus_icon_container_class_init): Marshaller said the
	parameters were strings, but they were actually pointers to
	strings.

	* libnautilus/nautilus-view.c: (queue_incoming_call): Pass
	servant, not bonobo object.

	* src/nautilus-view-frame.c: (nautilus_view_frame_init),
	(attach_view): Switch to eel versions of connect_while_alive
	functions, since the gtk versions work only on gtk objects.
2001-11-06 19:12:46 +00:00
Darin Adler
f7e2844c0c Lots of files. Another GtkObject -> GObject pass.
* Lots of files.
	Another GtkObject -> GObject pass.
2001-11-06 18:40:17 +00:00
Darin Adler
dfefd4c356 Update for gnome-vfs API changes.
* libnautilus-private/nautilus-file.c:
	Remove include of gnome-vfs-mime-info.h. Also switch to
	g_ascii_strcasecmp instead of g_strcasecmp.

	* libnautilus-private/nautilus-icon-factory.c:
	Remove includes of gnome-vfs-mime.h and gnome-vfs-mime-info.h.

	* libnautilus-private/nautilus-link-desktop-file.c:
	Remove include of gnome-vfs-mime.h.

	* libnautilus-private/nautilus-link-historical.c:
	(local_get_root_property): Rewrote to use
	gnome_vfs_get_file_info. Removed include of gnome-vfs-mime.h.

	* libnautilus-private/nautilus-link.c:
	(get_link_style_for_mime_type): New function.
	(get_link_style_for_local_file): New function, uses
	gnome_vfs_get_file_info instead of gnome_vfs_get_mime_type.
	(get_link_style_for_data): New function.
	(nautilus_link_local_create),
	(nautilus_link_local_set_icon), (nautilus_link_local_set_link_uri),
	(nautilus_link_local_set_type),
	(nautilus_link_local_get_additional_text),
	(nautilus_link_local_get_link_uri),
	(nautilus_link_local_get_link_type),
	(nautilus_link_get_link_uri_given_file_contents),
	(nautilus_link_get_link_name_given_file_contents),
	(nautilus_link_get_link_icon_given_file_contents),
	(nautilus_link_local_is_volume_link),
	(nautilus_link_local_is_home_link),
	(nautilus_link_local_is_trash_link),
	(nautilus_link_local_create_from_gnome_entry):
	Rewrote all of these to simplify and get rid of spread-out MIME
	type code.

	* libnautilus-private/nautilus-mime-actions.c:
	Remove include of gnome-vfs-mime-info.h.

	* src/Makefile.am: Remove extra dist-hook.
2001-11-06 17:29:42 +00:00
Michael Meeks
41572cfeec upd. bind to zoomable.
2001-11-06  Michael Meeks  <michael@ximian.com>

	* src/nautilus-view-frame.c
	(create_corba_objects): upd. bind to zoomable.

	* components/image-viewer/nautilus-image-view.c
	(zoomable_set_zoom_level_callback): upd. for bonobo.

	* src/file-manager/fm-directory-view.c
	(fm_directory_view_set_zoom_level): ditto.

	* components/text/nautilus-text-view.c
	(nautilus_text_view_zoom_to_level): ditto.
2001-11-06 04:27:01 +00:00
Michael Meeks
d625b6573e update bonobo requirement to 1.106.0 bump bonobo-activation to 0.9.3, bump
2001-11-06  Michael Meeks  <michael@ximian.com>

	* configure.in: update bonobo requirement to 1.106.0
	bump bonobo-activation to 0.9.3, bump canvas and libgnome[ui]
	to 1.105, ORBit2 >= 2.3.97, glib, gtk+, gdk-pixbuf >= 1.3.10,
	gconf >= 1.1.3

	* components/adapter/nautilus-adapter-control-embed-strategy.c
	(nautilus_adapter_control_embed_strategy_activate): add NULL opt_ev
	to bonobo_ui_util_set_ui and/or bonobo_control_frame_set_ui_container

	* components/adapter/nautilus-adapter-embeddable-embed-strategy.c
	(nautilus_adapter_embeddable_embed_strategy_activate): ditto.

	* libnautilus/nautilus-view.c (nautilus_view_set_up_ui): ditto.

	* libnautilus/nautilus-clipboard.c (merge_in_clipboard_menu_items): ditto.

	* src/nautilus-window.c (nautilus_window_constructed): ditto.

	* src/file-manager/fm-desktop-icon-view.c (real_merge_menus): ditto.

	* src/file-manager/fm-search-list-view.c (real_merge_menus): ditto.

	* libnautilus/nautilus-view.c (nautilus_view_set_up_ui): ditto.
2001-11-06 03:00:42 +00:00
Darin Adler
55941234a1 Fix a G_OBJECT_CLASS that should have been G_OBJECT_GET_CLASS.
* cut-n-paste-code/widgets/e-paned/e-paned.c:
        (e_paned_handle_shown): Fix a G_OBJECT_CLASS that should
        have been G_OBJECT_GET_CLASS.

        * libnautilus-private/Makefile.am: Add back the dependency on
        the cut-n-paste libraries.

        * libnautilus-private/nautilus-bonobo-extensions.c:
        (nautilus_bonobo_get_hidden): Silently ignore when there's no
        "hidden" attribute rather than warning every time.

        * libnautilus-private/nautilus-icon-factory.c:
        (nautilus_icon_factory_get_pixbuf_for_icon): Ref all the pixbufs
        on their way out of the icon factory since we don't have a new
        strategy for removing them from the cache when the caller is done
        yet.

        * src/nautilus-sidebar-title.c:
        (sidebar_title_create_more_info_label): Don't call make_smaller
        so Havoc won't complain every time we do it.

        * src/nautilus-view-frame.c: (nautilus_view_frame_destroy): Check
        for NULL so we can call destroy any number of times.

        * src/nautilus-window-toolbars.c:
        (nautilus_window_initialize_toolbars): Turn off the code that
        tries to load the throbber since we aren't compiling it yet.

        * components/loser/content/nautilus-content-loser-ui.xml:
        * components/loser/sidebar/nautilus-sidebar-loser-ui.xml:
        * components/sample/nautilus-sample-content-view-ui.xml:
        * libnautilus/nautilus-clipboard-ui.xml:
        * src/nautilus-shell-ui.xml:
        Update for new names of stock icons.
2001-11-05 18:17:24 +00:00
Darin Adler
137cfdb885 Tons of files. More GtkObject -> GObject stuff.
* Tons of files.
	More GtkObject -> GObject stuff.
2001-11-04 06:11:12 +00:00
Darin Adler
612ee9807b More GtkObject -> GObject stuff.
* components/text/nautilus-text-view.c: (nautilus_text_view_init):
	* libnautilus/nautilus-view.c:
	* src/file-manager/fm-icon-view.c: (fm_icon_view_init):
	* src/file-manager/fm-properties-window.c:
	(append_directory_contents_fields),
	(append_special_execution_flags):
	* src/nautilus-application.c: (nautilus_application_startup),
	(nautilus_application_create_window):
	* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_init):
	* src/nautilus-window-menus.c:
	(nautilus_window_initialize_bookmarks_menu),
	(nautilus_window_initialize_menus_part_1):
	* src/nautilus-window.c: (add_sidebar_panel_callback):
	More GtkObject -> GObject stuff.
2001-11-04 02:55:32 +00:00
Darin Adler
c910902230 Many files. Update for change in Eel boilerplate macro names.
* Many files.
	Update for change in Eel boilerplate macro names.

	* src/nautilus-application.c: (nautilus_application_startup):
	GtkObject -> GObject.
	* src/nautilus-shell.c: (nautilus_shell_class_init), (finalize),
	(nautilus_shell_new):
	GtkObject -> GObject.
2001-11-04 02:07:34 +00:00
Darin Adler
3ad0e618f6 Put the server file in the right directory. Fix some things -- still
* src/Makefile.am: Put the server file in the right directory.
	* nautilus.spec.in: Fix some things -- still totally wrong.
2001-11-03 00:37:58 +00:00
Darin Adler
fc05ed2010 Get rid of use of gnome_vfs_uri_get_basename. Not sure if I fixed this
* src/nautilus-location-bar.c: (try_to_expand_path): Get rid of
	use of gnome_vfs_uri_get_basename. Not sure if I fixed this
	right. This could have been the one caller who really wanted a
	basename-type call.
2001-11-02 19:41:27 +00:00
Havoc Pennington
c91bb9d138 remove GtkText workaround (I'm also checking in a fix for the bug being
2001-11-01  Havoc Pennington  <hp@pobox.com>

	* libnautilus/nautilus-clipboard.c (select_all): remove GtkText
	workaround (I'm also checking in a fix for the bug being worked
	around)

	* libnautilus-private/nautilus-bookmark.c
	(nautilus_bookmark_menu_item_new): replace some PixmapMenuItem
	with ImageMenuItem

	* src/file-manager/fm-directory-view.c
	(set_script_environment_variables): use
	eel_gtk_window_get_geometry_string

	* src/nautilus-zoom-control.c: just nuke the draw method, it ain't
	coming back

	* src/nautilus-window.c (set_initial_window_geometry): remove
	gtk_window_set_policy() that was useless, and replace set_usize
	with set_size_request.
	(nautilus_window_constructed): remove menu_bar_no_resize_hack, I
	have no idea what GTK bug it's talking about, neither does the
	referenced bug report say, but if we see it
	again we'll fix it. (plus it says the bug is unsigned math,
	and GTK 2 pretty much did a global s/uint/int/, especially
	in the size request/alloc code)

	* src/nautilus-desktop-window.c (realize): just remove the
	gnome_win_hints stuff, as the FIXME says, it's dead.
	(realize): remove the set_decorations, set_functions, and
	the move_resize, all cruft
	(nautilus_desktop_window_init): simplify some cruft in here

	* src/nautilus-bookmarks-window.c
	(nautilus_bookmarks_window_save_geometry):
	use eel_gtk_window_get_geometry_string

	* src/nautilus-window.c (nautilus_window_save_geometry): ditto
2001-11-02 15:43:10 +00:00
Darin Adler
9ab32f9cc9 More changes to make Nautilus get closer to running.
* libnautilus-private/nautilus-bonobo-extensions.h: Remove
	NAUTILUS_BONOBO_X_BOILERPLATE, superceded by EEL_DEFINE_
	BONOBO_BOILERPLATE

	* libnautilus-private/nautilus-directory-metafile-monitor.c:
	* libnautilus-private/nautilus-metafile.c:
	* libnautilus-private/nautilus-undo-context.c:
	* libnautilus/nautilus-undo-transaction.c:
	Same fixes Havoc did, formatted differently.

	* libnautilus-private/nautilus-undo-manager.c: (corba_append),
	(corba_forget), (corba_undo), (nautilus_undo_manager_new),
	(finalize), (nautilus_undo_manager_class_init):
	GtkObject -> GObject fixes. bonobo_object_from_servant fixes.

	* nautilus-clean.sh: Not sure if we still need this, but
	change gconfd-1 to gconfd-2 and oafd to bonobo-activation-server.

	* nautilus.spec.in: Some updates, not sure if they are right.

	* src/nautilus-application.c: (nautilus_application_new),
	(nautilus_application_finalize), (nautilus_application_class_init):
	GtkObject -> GObject fixes.

	* src/nautilus-main.c: (main): Use gnome_program_init.

	* src/Makefile.am: Define a bunch more stuff used by
	GNOME_PROGRAM_STANDARD_PROPERTIES.
2001-11-02 06:17:13 +00:00
Havoc Pennington
408dcac2a8 fix EEL_DEFINE_BONOBO_BOILERPLATE call
2001-11-01  Havoc Pennington  <hp@pobox.com>

	* src/nautilus-view-frame-corba.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call

	* src/nautilus-property-browser.c
	(nautilus_property_browser_init): mnemonics

	* src/nautilus-complex-search-bar.c
	(attach_criterion_to_search_bar): use gtk_widget_activate instead
	of eel_gtk_button_auto_click

	* src/nautilus-simple-search-bar.c
	(nautilus_simple_search_bar_new): ditto

	* src/nautilus-sidebar.c (nautilus_sidebar_update_buttons):
	remove eel_gtk_button_set_standard_padding, add mnemonic to
	button

	* src/nautilus-bookmarks-window.c (create_bookmarks_window):
	remove eel_gtk_button_set_standard_padding, add mnemonic to
	button

	* src/file-manager/fm-properties-window.c (create_basic_page):
	remove eel_gtk_button_set_standard_padding, add mnemonics to
	buttons

	* src/file-manager/fm-directory-view.c (copy_or_cut_files): remove
	use of eel_get_current_event_time()
	(paste_files_callback): ditto

	* Makefile.am (SUBDIRS): cut-n-paste-code seems to be required by
	libnautilus-private, so move it before libnautilus-private

	* libnautilus-private/nautilus-undo-manager.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call

	* libnautilus-private/nautilus-undo-context.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call

	* libnautilus-private/nautilus-program-chooser.c
	(nautilus_program_chooser_new): axe
	eel_gtk_button_set_standard_padding, add mnemonic to button
	(nautilus_program_chooser_new): axe
	eel_gtk_button_set_standard_padding, add mnemonic to button

	* libnautilus-private/nautilus-metafile.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call

	* libnautilus-private/nautilus-metafile-factory.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call

	* libnautilus-private/nautilus-icon-dnd.c
	(nautilus_icon_dnd_begin_drag): replace eel_drag_set_icon_pixbuf

	* libnautilus-private/nautilus-directory-metafile-monitor.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call

	* libnautilus/nautilus-undo-transaction.c: fix
	EEL_DEFINE_BONOBO_BOILERPLATE call
2001-11-02 03:47:34 +00:00
Louise Miller
64f7360d2b Lots of files in components/help Intregation of scrollkeeper indexing
2001-11-01  Louise Miller  <louise.miller@sun.com>

        * Lots of files in components/help
        Intregation of scrollkeeper indexing capabilities
        into nautilus.
2001-11-01 19:41:32 +00:00
Darin Adler
097991a9d0 Removed nautilus-config and nautilusConf.sh stuff. Get rid of applets,
* configure.in:
	* Makefile.am:
	Removed nautilus-config and nautilusConf.sh stuff.
	Get rid of applets, helper-scripts, and helper-utilities.
	Compile user-guide, help, and omf-install.

	* applets/
	* helper-scripts/
	* helper-utilities/
	Removed.

	* src/Nautilus_shell.oaf.in: Renamed to .server.in.
	* src/.cvsignore: Ignore the new .server.

	* src/nautilus-view-frame.c: Add missing include.

	* src/nautilus-window.c: (nautilus_window_allow_stop):
	Put code in #if GNOME2_CONVERSION_COMPLETE.
2001-11-01 01:24:25 +00:00
Darin Adler
2d5e846c73 Try to be kinda up to date. Fix dependencies. I removed too many last time
* README: Try to be kinda up to date.
	* configure.in: Fix dependencies. I removed too many last
	time so idl compiles all failed.
2001-11-01 01:01:49 +00:00
Darin Adler
74e78f43fe cut-n-paste-code now compiles, and we are a hair's breadth away from
* Lots of files:
	cut-n-paste-code now compiles, and we are a hair's breadth
	away from linking -- so far from running, though
2001-10-31 00:31:00 +00:00
Darin Adler
b1db3597ea src now compiles -- next problem is linking
* Lots of files:
	src now compiles -- next problem is linking
2001-10-30 19:32:09 +00:00
Darin Adler
5b9963c2fe libnautilus-private now compiles -- on to src
* Lots of files:
	libnautilus-private now compiles -- on to src
2001-10-30 00:26:25 +00:00
Darin Adler
93359a3e11 Locate glib-genmarshal.
* configure.in: Locate glib-genmarshal.
	* libnautilus-private/.cvsignore:
	* libnautilus-private/Makefile.am:
	* libnautilus-private/nautilus-marshal.list:
	* src/nautilus-view-frame.c: (nautilus_view_frame_class_init):
	* src/nautilus-zoom-control.c: (nautilus_zoom_control_class_init):
	Add marshalers used inside Nautilus only.

	* components/adapter/nautilus-adapter-load-strategy.c:
	(nautilus_adapter_load_strategy_class_init):

	* libnautilus-private/nautilus-horizontal-splitter.c:
	* libnautilus-private/nautilus-icon-canvas-item.c:
	* libnautilus-private/nautilus-icon-text-item.h:
	Put code in #if GNOME2_CONVERSION_COMPLETE.

	* libnautilus-private/nautilus-icon-container.c:
	(set_pending_icon_to_reveal), (nautilus_icon_container_class_init),
	(nautilus_icon_container_init), (set_pending_icon_to_rename):
	Convert signal-handling code.

	* libnautilus-private/nautilus-icon-dnd.c:
	(get_data_on_first_target_we_support): Update for GdkAtom changes.
	(confirm_switch_to_manual_layout): Switch to GtkDialog.
2001-10-29 20:46:49 +00:00
Darin Adler
5abcc19954 More GNOME 2 work. We now compile up to libnautilus-private and I'm
* Lots of files:
	More GNOME 2 work. We now compile up to libnautilus-private and
	I'm working my way through the files in there. Also changed all
	the initialize_class and initialize to class_init and init.
2001-10-28 20:21:52 +00:00
Darin Adler
ce7e34aada First baby steps at compiling under gnome 2. 2001-10-24 17:23:35 +00:00
Anders Carlsson
00ee7d7b5d If the file is a symbolic link, return the uri the file points at. Fixes
2001-10-24  Anders Carlsson  <andersca@gnu.org>

 	* libnautilus-private/nautilus-file.c
 	(nautilus_file_get_activation_uri): If the file is a symbolic link,
 	return the uri the file points at. Fixes bug #48353. The fix is not
	perfect though, so the bug is still open.
2001-10-22 22:31:09 +00:00
Benedikt Roth
ddebdf1ee6 Use the localized string
2001-10-21  Benedikt Roth  <Benedikt.Roth@gmx.net>

	* libnautilus-private/nautilus-link-desktop-file.c:
	(nautilus_link_desktop_file_get_link_name_from_desktop):
	Use the localized string

=== nautilus 1.0.5 ===
2001-10-21 18:30:35 +00:00
Darin Adler
abbd1223b8 Put Nautilus 1.0.5 marker in. 2001-10-19 20:15:30 +00:00
Darin Adler
350abab988 Add mention of Mozilla 0.9.5. Thank Frank. Make a little more up to date,
* NEWS: Add mention of Mozilla 0.9.5.
	* THANKS: Thank Frank.
	* README: Make a little more up to date, but still needs work.
2001-10-19 16:17:10 +00:00
Darin Adler
5d691d7750 Fixed a bunch of bugs that were causing directory display to be
even slower than it ought to be. The hysteresis wasn't working at
	all because of the confusion about when files were ready for
	display. Also changed hysteresis to 1 second and file chunk to 300
	files instead of 100.

	* libnautilus-private/nautilus-directory-async.c:
	(link_info_gmc_link_read_callback): Fix function so it uses the
	actual URI, not the thing that starts with URL. The old way it
	was always failing to read. There were some other backwards if
	statements in here too.

	* src/file-manager/fm-directory-view.h:
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_initialize): Create "non-ready files" hash.
	(fm_directory_view_destroy): Destroy it.
	(real_file_still_belongs): Move this here from FMListView.
	(still_should_show_file): New function, used to decide whether to
	keep a file in the window or not.
	(ready_to_load): New function, used to decide whether a file is
	ready enough to show in the window.
	(process_new_files): Move files from the "new files" lists to the
	"old files" lists, filtering out ones that are not ready to load
	and putting those into the "non-ready files" hash. Also sort the
	added files so the ones that show up at the top are the first to
	be added.
	(split_off_first_n): Renamed to eliminate the "g" namespace.
	(process_old_files): The guts of what used to be in
	display_pending_files. Now we use a separate signal for remove
	instead of just reusing the changed signal.
	(display_pending_files): We're not done loading until all the
	"non-ready files" are ready. Also reverse the sense of the return
	value, so it returns TRUE if there is more work to do.
	(display_pending_idle_callback): Don't zero out the idle ID if we
	are going to return TRUE.
	(display_pending_timeout_callback): If there are more files than
	we can handle, do the remainder at idle time, not in another
	timeout.
	(schedule_idle_display_of_pending_files): Lower the priority so we
	are more likely to get canvas updates between idles.
	(done_loading_callback): We're not done until there are no
	"non-ready files" left.
	(fm_directory_view_queue_file_change): Tiny optimization.
	(unref_key_and_remove): Helper function for clearing out the
	"non-ready files" hash.
	(fm_directory_view_stop): Clear out the 4 lists and the hash (it
	used to just be 2 lists).
	(real_sort_files): Default implementation, doesn't sort.
	(fm_directory_view_initialize_class): Various new methods.

	* src/file-manager/fm-icon-view.c: (fm_icon_view_add_file): Do
	less work, since the rules about which files should be shown and
	which files are ready to be seen are now in FMDirectoryView.
	(fm_icon_view_remove_file): New function.
	(fm_icon_view_file_changed): Do way less work, since
	FMDirectoryView does the heavy lifting now.
	(play_file), (preview_audio): Some rudimentary fixes, still seems
	to be broken.
	(compare_files): New function.
	(compare_files_cover): New function.
	(fm_icon_view_sort_files): If automatic layout is on, sort the
	files on their way in so the first ones displayed are the top left
	ones.
	(icon_container_compare_icons_callback): Share code by using the
	new compare_files function.
	(fm_icon_view_initialize_class): Various new methods.

	* src/file-manager/fm-list-view.h:
	* src/file-manager/fm-list-view.c:
	(fm_list_view_initialize_class): Various new methods.
	(fm_list_view_add_file): Do less work, since the rules about which
	files should be shown and which files are ready to be seen are now
	in FMDirectoryView.
	(fm_list_view_file_changed): Do way less work, since
	FMDirectoryView does the heavy lifting now.
	(fm_list_view_remove_file): New function.
	(fm_list_view_sort_files): This replaces the old override of
	display_pending_files.

	* src/file-manager/fm-search-list-view.c:
	(fm_search_list_view_initialize_class): The file_still_belongs
	method moved to FMDirectoryView.
2001-10-18 23:31:14 +00:00
Darin Adler
a59af0bc12 Switch to require Mozilla 0.9.5 -- sadly this means we are
now incompatible with any older verion. Thanks to frb@ximian.com
	for his patch and help making it compile with 0.9.5.

	* README: Tell people 0.9.5 is needed.
	* configure.in: Various cleanup, and ask for 0.9.5.
	* components/mozilla/mozilla-events.cpp:
	* components/mozilla/nautilus-mozilla-embed-extensions.cpp:
	Work around gcc bug with the directory named string. Switch to use
	new calls in cases where the old ones are gone.
2001-10-16 02:38:42 +00:00
Carlos Perell Marn
f6072075a5 Added by Duarte Loreto <happyguy_pt@hotmail.com>
2001-10-13  Carlos Perell Marn <carlos@gnome-db.org>

        * pt.po: Added by Duarte Loreto <happyguy_pt@hotmail.com>

2001-10-13  Carlos Perell Marn <carlos@gnome-db.org>

        * configure.in (ALL_LINGUAS): Added pt
2001-10-13 09:55:28 +00:00
Darin Adler
00f861516e Change hysteresis value from .1 second to 4 seconds. I think this will get
* src/file-manager/fm-directory-view.c: Change hysteresis value
	from .1 second to 4 seconds. I think this will get rid of the
	slowness people have been reporting.
2001-10-13 04:30:22 +00:00
Darin Adler
654531444c Bumped gnome-vfs requirement to 1.0.3.
* configure.in: Bumped gnome-vfs requirement to 1.0.3.
2001-10-12 20:47:32 +00:00
Darin Adler
15d6bc96a6 Remove RPMs-README.
* Makefile.am: Remove RPMs-README.

	* libnautilus/Makefile.am: -I$(builddir)

	* libnautilus/nautilus-undo-private.h:
	* libnautilus/nautilus-undo-transaction.h:
	Use #include <libnautilus/x.h> rather than #include "x.h".

	* NEWS: Some refinement.
2001-10-11 21:06:35 +00:00
Darin Adler
829732a43e Add a first cut at Nautilus 1.0.5 release notes. Updated to match change
* NEWS: Add a first cut at Nautilus 1.0.5 release notes.
	* THANKS: Updated to match change log better.
	* configure.in: Bumped version to 1.0.5 in preparation for the
	release.
2001-10-11 17:18:32 +00:00
Alex Larsson
0be0f2ac3b Include libgnomevfs/gnome-vfs-utils.h, needed for
2001-10-09  Alex Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-find-icon-image.c:
	Include libgnomevfs/gnome-vfs-utils.h, needed for
	gnome_vfs_icon_path_from_filename().

	* libnautilus-private/nautilus-volume-monitor.c (copy_volume):
	Copy is_read_only.
2001-10-09 22:37:15 +00:00
Darin Adler
c8a38d05eb Require newer versions of various libraries to cut down on the bug reports
* configure.in: Require newer versions of various libraries to
	cut down on the bug reports with people using newer nautilus
	and older versions of those libraries. Including bonobo 1.0.9,
	eel 1.0.2, librsvg 1.0.1. Remove the freetype stuff here, since
	that's all taken care of in librsvg. Remove old GNOME2_PATH thing
	that is definitely not needed. Remove gnome_canvas_set_dither
	check which is now in eel if needed at all. Remove ammonite
	configure flags.

	* nautilus.spec.in: Remove freetype dependencies. This is now
	handled in librsvg.

	* components/mozilla/Makefile.am:
	* components/mozilla/main.c: (main):
	* components/mozilla/nautilus-mozilla-content-view.c:
	(mozilla_location_callback), (mozilla_link_message_callback),
	(mozilla_dom_mouse_click_callback),
	(navigate_mozilla_to_nautilus_uri), (post_widget_initialize):
	* src/Makefile.am:
	Remove dependencies on ammonite and some more remnants of
	Eazel services code.
2001-10-09 21:46:21 +00:00
Darin Adler
9d48f0e9f4 Fix typo.
* libnautilus-private/nautilus-find-icon-image.c:
	(get_themed_icon_file_path): Fix typo.
2001-10-09 15:40:43 +00:00
Darin Adler
f60759e695 Fix problem with NULL themes.
* libnautilus-private/nautilus-find-icon-image.c:
	(get_themed_icon_file_path): Fix problem with NULL themes.
2001-10-09 15:19:57 +00:00
Darin Adler
ed442213ca off 2001-10-08 19:30:37 +00:00
Darin Adler
b2ce43cab0 Bend to the forces of practicality and mediocrity and turn of the trash
* libnautilus-private/nautilus-file.c:
	(get_automatic_emblems_as_integer),
	(prepend_automatic_emblem_names): Bend to the forces of
	practicality and mediocrity and turn of the trash emblem until we
	can make the "in trash" check fast.

	* libnautilus-private/nautilus-icon-factory.c:
	Tweak formatting.
2001-10-08 19:30:29 +00:00
Darin Adler
d668a75df1 Separate out the part of the code that locates icons.
* libnautilus-private/Makefile.am: New source files.

	* libnautilus-private/nautilus-find-icon-image.h: New.
	* libnautilus-private/nautilus-find-icon-image.c: New.

	* libnautilus-private/nautilus-icon-factory.c:
	(cache_icon_new): Use new theme structure.
	(nautilus_icon_factory_destroy): Use new theme structure.
	(get_mime_type_icon_without_suffix): Use suffix remove function
	moved into new file by its new name.
	(set_theme_name): Helper function to keep the theme change code
	simpler.
	(icon_theme_changed_callback): Rewrote to get rid of confused
	juxtaposition of old and new theme concepts.
	(image_uri_to_name_or_uri): Use suffix remove function moved into
	new file by its new name.
	(nautilus_icon_factory_get_emblem_icon_by_name): Use emblem prefix
	by new name.
	(load_named_icon): Use nautilus_get_icon_file_name function in new
	source file.
	(load_specific_icon), (scale_icon), (load_icon_with_embedded_text):
	IconDetails is now NautilusIconDetails.
2001-10-08 19:07:48 +00:00
Darin Adler
260d1eb66e A few DESTDIR fixes.
* Makefile.am:
	* data/Makefile.am:
	* helper-scripts/Makefile.am:
	A few DESTDIR fixes.

	* libnautilus-private/nautilus-icon-factory.c:
	Cache more icons. The old number was arbitrary and way too small.
2001-10-07 16:25:37 +00:00
Darin Adler
bf5c57c1f0 Remove gratuitous suffixes from the icon file search. We now look only for
* libnautilus-private/nautilus-icon-factory.c: Remove gratuitous
	suffixes from the icon file search. We now look only for .svg and
	.png and .jpg files. Lets use .png files most of the time.
2001-10-05 23:30:27 +00:00
Darin Adler
e5afc6511c removed Remove the code to look for Eazel logos.
* eazel-logos: removed
	* libnautilus-private/nautilus-file-utilities.c:
	(nautilus_pixmap_file): Remove the code to look for Eazel logos.

	* configure.in:
	* Makefile.am:
	* nautilus.spec.in:
	Remove the code to include the Eazel logos in the tarball and
	the package.

	* HACKING: Remove the instructions on how to omit the Eazel logos.
2001-10-05 23:28:55 +00:00
Benedikt Roth
e1ccd6d519 Implemented DnD for the icon in the file properties dialog
2001-10-05  Benedikt Roth  <Benedikt.Roth@gmx.net>

 	* src/file-manager/fm-properties-window.c: (uri_is_local_image),
 	(fm_properties_window_drag_data_received),
 	(create_image_widget_for_file):
 	Implemented DnD for the icon in the file properties dialog
2001-10-05 17:26:45 +00:00
Darin Adler
8448ab084c A bit more renaming to be explicit about "display name".
This is slightly gratuitious, because we don't really need to be
	explicit about which name in every case, but it does no harm and
	a tiny bit of good.

	* components/tree/nautilus-tree-view.c: (ctree_compare_rows):
	* libnautilus-private/nautilus-file.c: (compare_by_display_name),
	(compare_by_full_path), (nautilus_file_compare_for_sort_internal),
	(compare_by_display_name_cover),
	(nautilus_file_list_sort_by_display_name),
	(nautilus_self_check_file):
	* libnautilus-private/nautilus-file.h:
	* libnautilus-private/nautilus-global-preferences.c:
	(default_icon_view_sort_order_or_manual_layout_changed_callback):
	* src/file-manager/fm-desktop-icon-view.c:
	(desktop_icons_compare_callback):
	* src/file-manager/fm-directory-view.c:
	(update_directory_in_scripts_menu):
	* src/file-manager/fm-icon-view.c: (get_default_sort_order),
	(icon_container_compare_icons_by_name_callback):
	* src/file-manager/fm-list-view.c: (compare_rows_by_name),
	(get_attribute_from_sort_type), (real_get_column_specification):
	* src/file-manager/fm-search-list-view.c:
	(real_get_column_specification):
	Change NAUTILUS_FILE_SORT_BY_NAME to NAUTILUS_FILE_SORT_BY_DISPLAY_NAME
	and compare_by_name to compare_by_display_name and
	nautilus_file_list_sort_by_name to nautilus_file_list_sort_by_display_name.
2001-10-04 18:32:09 +00:00
Maciej Stachowiak
dc9c636e06 Rename CUSTOM_NAME attribute to DISPLAY_NAME.
* libnautilus-private/nautilus-file-attributes.h,
	libnautilus-private/nautilus-file-private.h: Rename CUSTOM_NAME
	attribute to DISPLAY_NAME.

	* libnautilus-private/nautilus-file.h,
	libnautilus-private/nautilus-file.c:
	(nautilus_file_get_name): Always return the real name of the file.
	(nautilus_file_get_display_name): New function which returns the
	display name of the file, taking into account special names that
	may be set for .desktop files or gmc-style links, as
	nautilus_file_get_name formerly did.
	(nautilus_file_compare_display_name): Use display name and rename
	for clarity.

	(destroy, compare_by_name, nautilus_file_get_string_attribute,
	nautilus_file_get_all_attributes, nautilus_self_check_file):
	Adjust for custom_name->display_name change, use
	nautilus_file_get_display_name instead of natilus_file_get_name
	where appropriate.

	* libnautilus-private/nautilus-directory-async.c:
	(nautilus_directory_set_up_request), (link_info_done,
	(link_info_gmc_link_read_callback): Adjust for custom_name->display_name change.


	In all the places below, use nautilus_file_get_display_name
	instead of nautilus_file_get_name:

	* components/text/nautilus-text-view.c: (file_read_callback):
	* components/tree/nautilus-tree-model.c:
	(nautilus_tree_model_monitor_add),
	(nautilus_tree_model_node_begin_monitoring_no_connect):
	* components/tree/nautilus-tree-view.c:
	(nautilus_tree_view_insert_model_node),
	(nautilus_tree_view_update_model_node):
	* libnautilus-private/nautilus-program-chooser.c:
	(get_file_name_for_display):
	* libnautilus-private/nautilus-program-choosing.c:
	(application_cannot_open_location):
	* src/file-manager/fm-directory-view.c:
	(fm_directory_view_display_selection_info),
	(real_file_limit_reached), (file_name_from_uri),
	(add_script_to_script_menus), (add_submenu_to_script_menus),
	(copy_or_cut_files), (get_executable_text_file_action),
	(fm_directory_view_activate_file), (finish_loading):
	* src/file-manager/fm-error-reporting.c:
	(fm_report_error_loading_directory),
	(fm_report_error_renaming_file), (fm_report_error_setting_group),
	(fm_report_error_setting_owner),
	(fm_report_error_setting_permissions), (fm_rename_file):
	* src/file-manager/fm-icon-view.c:
	(icon_container_preview_callback), (get_icon_text_callback):
	* src/file-manager/fm-list-view.c: (match_row_name):
	* src/file-manager/fm-properties-window.c:
	(name_field_update_to_match_file),
	(update_properties_window_title), (create_permissions_page),
	(create_properties_window):
	* src/file-manager/fm-search-list-view.c: (real_adding_file):
	* src/nautilus-window-manage-views.c: (compute_default_title):
	* src/nautilus-window.c: (nautilus_window_set_viewed_file):
2001-10-04 10:06:07 +00:00
Darin Adler
7d872d04bd Fix the longstanding problem where the Notes and History sidebar
panels failed to load.

	* libnautilus-private/nautilus-directory-metafile.c:
	(die_on_failed_activation): Give better error messages.
	(get_factory): Check the ev result from oaf_activate_from_id
	rather than relying on getting NIL when it fails.
	(open_metafile): New helper function.
	(get_metafile): Don't complain if the open call fails the first
	time, and re-get the factory and retry before doing a g_error.
2001-10-02 19:53:11 +00:00
Darin Adler
cc42f95ed1 Fix bug where we would leave a file monitored when we closed the window.
* src/nautilus-window.c: (nautilus_window_destroy),
	(nautilus_window_set_viewed_file): Fix bug where we would leave a
	file monitored when we closed the window.

	* libnautilus-private/nautilus-volume-monitor.c:
	(mount_unmount_callback): Formatting tweaks.
2001-10-02 15:53:19 +00:00
Frédéric Crozat
caab8b4256 add support for JFS Set locale to "C" before running mount/umoun to be
* libnautilus-private/filesystem-attributes.xml: add support for JFS
* libnautilus-private/nautilus-volume-monitor.c:
(close_error_pipe), (mount_unmount_callback): Set locale to "C"
before running mount/umoun to be able to parse mount message in english
* po/fr.po: Add missing '\n' in one translation which was
oversizing Nautilus Preference Dialog
2001-10-02 12:14:18 +00:00
Darin Adler
2ec827207e Say that the deep count of a non-directory is "done" rather "not started".
* libnautilus-private/nautilus-directory-async.c:
	(deep_count_start): Say that the deep count of a non-directory is
	"done" rather "not started". This was causing an infinite loop when
	doing the directory self-check.
2001-10-01 20:44:33 +00:00
Benedikt Roth
010541befb Fix #47701, Duplicate numbering scheme does not correctly number the 11th,
2001-10-01  Benedikt Roth  <Benedikt.Roth@gmx.net>

	* libnautilus-private/nautilus-file-operations.c:
	(parse_previous_duplicate_name), (make_next_duplicate_name),
	(nautilus_self_check_file_operations):
	Fix #47701, Duplicate numbering scheme does not correctly number
	the 11th, 12th, and 13th copies
2001-10-01 19:44:36 +00:00
Alex Larsson
27a8b1d24a Move sysconfig and serverconfig out of starthere. That was a merge error.
2001-10-01  Alex Larsson  <alexl@redhat.com>

	* data/Makefile.am (install-data-local):
	Move sysconfig and serverconfig out of starthere.
	That was a merge error.
2001-10-01 18:38:26 +00:00
Darin Adler
cfcc2bf517 Updated tags and build order in the README to match what Nautilus hackers
* README: Updated tags and build order in the README to match
	what Nautilus hackers really use.
2001-10-01 16:48:04 +00:00
Darin Adler
eebd2053ba Bump gnome-vfs requirement to 1.0.2, since we use new APIs that aren't in
* configure.in: Bump gnome-vfs requirement to 1.0.2, since we
	use new APIs that aren't in 1.0.1.
2001-09-28 15:35:52 +00:00
Benedikt Roth
f450c54f5c i18n fixes for cpu speed and cache size (fixes #45298) Fix #48322, Theme
2001-09-27  Benedikt Roth  <Benedikt.Roth@gmx.net>

	* components/hardware/nautilus-hardware-view.c:
	(get_CPU_description):
	i18n fixes for cpu speed and cache size (fixes #45298)
	* icons/gnome/gnome.xml:
	Fix #48322, Theme description for new Gnome theme lacks a dot
2001-09-28 09:41:57 +00:00
Darin Adler
dc5c292a5b Format time using eel_strdup_strftime so we don't have a fixed maximum
* components/news/nautilus-news.c: (draw_rss_logo_image):
	Format time using eel_strdup_strftime so we don't have
	a fixed maximum buffer size and marked the time format
	for localization.
2001-09-27 19:05:50 +00:00
Alex Larsson
f1c874625c Allow the mozilla component to open Chrome windows. This is needed for
2001-09-26  Alex Larsson  <alexl@redhat.com>

	* components/mozilla/nautilus-mozilla-content-view.c:
	Allow the mozilla component to open Chrome windows.
	This is needed for simple dialogs when e.g. submitting
	forms.
2001-09-26 20:08:28 +00:00
Darin Adler
491ee13cb9 Fix up branch change log entries. 2001-09-26 19:52:19 +00:00
Alexander Larsson
61d960f12c Huge ass redhat merge 2001-09-26 16:37:21 +00:00
Darin Adler
badc7589bc Ref and sink the new adapter. (nautilus_adapter_new): Remove unused
* components/adapter/nautilus-adapter.c:
	(nautilus_adapter_initialize): Ref and sink the new adapter.
	(nautilus_adapter_new): Remove unused CORBA_Environment.
	* components/adapter/nautilus-adapter.h: Whitespace tweak.

	* libnautilus-private/nautilus-directory-metafile.c:
	(nautilus_directory_get_integer_file_metadata):
	* libnautilus-private/nautilus-file.c: (get_id_from_digit_string):
	* libnautilus-private/nautilus-icon-factory.c:
	(parse_attach_points):
	* libnautilus-private/nautilus-thumbnails.c:
	(nautilus_thumbnail_load_framed_image):
	* src/file-manager/fm-icon-view.c:
	(get_stored_icon_position_callback):
	A bunch of places were trying to use %*s to detect whether there
	were stray characters at the end of a string when doing an sscanf.
	I wrote that code. But it doesn't work. A similar technique that
	does work is to use %c, and ignore the parsed character.

	* src/nautilus-search-bar-criterion.c:
	(nautilus_search_uri_get_first_criterion):
	This place wasn't using the %*s at all, so just remove it.
2001-09-25 18:26:16 +00:00
Fabrice Bellet
494f382efb Reviewed by Darin Adler <darin@bentspoon.com> (Bug 44402) vfs_get_info()
2001-09-24  Fabrice Bellet  <fabrice@gnu.org>

        * Reviewed by Darin Adler <darin@bentspoon.com> (Bug 44402)
        * components/adapter/bonobo-stream-vfs.c: vfs_get_info()
        needs to be implemented to make the EOG component happy.
2001-09-24 21:54:37 +00:00
Philip Langdale
426aa73ee6 Reviewed by John Fleck <jfleck@inkstain.net> (Bug 60511)
2001-09-21  Philip Langdale  <philipl@mail.utexas.edu>

        * Reviewed by John Fleck <jfleck@inkstain.net> (Bug 60511)
        * components/help/converters/gnome-info2html2/html.c
        * components/help/converters/gnome-info2html2/html.h
        * components/help/converters/gnome-info2html2/main.c: Added optional
        "galeon mode" invoked with -g command line param. This involves writing
        fully qualified info: hrefs instead of just the #nodename target,
        which appears to me to be a bug, but might have negative effects on
        nautilus. It also uses ? queries instead of # refs when forming hrefs.
2001-09-22 03:14:53 +00:00
Darin Adler
be664629f5 Change all libxml includes to use #include <libxml/*> instead of #include
* components/help/hyperbola-nav-index.c:
	* components/help/hyperbola-nav-search.c:
	* components/news/nautilus-news.c:
	* components/text/nautilus-text-view.c:
	* libnautilus-private/nautilus-customization-data.c:
	* libnautilus-private/nautilus-directory-async.c:
	* libnautilus-private/nautilus-directory-private.h:
	* libnautilus-private/nautilus-file.c:
	* libnautilus-private/nautilus-icon-factory.c:
	* libnautilus-private/nautilus-link-set.c:
	* libnautilus-private/nautilus-link.c:
	* libnautilus-private/nautilus-metafile.c:
	* libnautilus-private/nautilus-metafile.h:
	* libnautilus-private/nautilus-theme.c:
	* libnautilus-private/nautilus-volume-monitor.c:
	* src/nautilus-bookmark-list.c:
	* src/nautilus-bookmark-parsing.c:
	* src/nautilus-bookmark-parsing.h:
	* src/nautilus-link-set-window.c:
	* src/nautilus-main.c:
	* src/nautilus-property-browser.c:
	* src/nautilus-sidebar.c:
	* src/nautilus-window-menus.c:
	Change all libxml includes to use #include <libxml/*>
	instead of #include <gnome-xml/*>.
2001-09-20 18:34:08 +00:00
Darin Adler
31c20fa038 Updated bugzilla.eazel.com references to refer to the
corresponding bugzilla.gnome.org bug. Also updated my
	email address.
2001-09-15 19:18:15 +00:00
Darin Adler
e8362fdc0a Move inside #ifdef HAVE_FAM.
* libnautilus-private/nautilus-monitor.c:
	(path_is_on_readonly_volume): Move inside #ifdef HAVE_FAM.
2001-09-15 00:35:56 +00:00
Alex Larsson
ede19226c5 Merge some stuff from the redhat-outstanding-patches branch
2001-09-05  Alex Larsson  <alexl@redhat.com>

	Merge some stuff from the redhat-outstanding-patches branch

	* eazel-logos/default.xml:
	* icons/default.xml:
	don't hardcode the title, title info, and
	shadow colors; this prevented the auto-color-selection stuff
	in nautilus-sidebar-title.c from working properly.
	And the hardcoded values were the same thing the autoselector
	would have chosen anyhow.

	* libnautilus-private/nautilus-monitor.c:
	Don't monitor files on read only volumes, they never change, and
	will keep cdroms from being unmounted because fam has open file
	descriptors on them.

	* libnautilus-private/nautilus-thumbnails.c:
	Always look for local thumbnails first.

	* libnautilus-private/nautilus-volume-monitor.[ch]:
	Add nautilus_volume_is_read_only() and
	nautilus_volume_monitor_get_volume_for_path()

	* src/nautilus-desktop-window.c:
	(set_wmspec_desktop_hint): function to set _NET_WM_WINDOW_TYPE, to
	avoid confusing kwin so badly, and also to go ahead and support
	the Window Manager Hints Of The Future.
	(set_gdk_window_background): only set root background to a pixel
	if we retrieved a pixel property
	(map): Set background of our child widgets in addition to our
	own background. This gets rid of the last of the ugliness during
	Nautilus startup, I believe.

	* src/file-manager/fm-icon-view.c:
	Don't read GMC position meta data -- it is never right for nautilus,
	due to different size icons, additional icons, different placement
	policies, so falling back to normal automatic placement works better.
2001-09-11 01:20:43 +00:00
Darin Adler
b9b96b5724 Ignore .desktop and .directory files generated by the xml-18n-merge
* .cvsignore:
	* data/.cvsignore:
	Ignore .desktop and .directory files generated by the
	xml-18n-merge process.
2001-09-08 01:19:47 +00:00
Darin Adler
066a2fc55c Remove unused variable.
* libnautilus-private/nautilus-volume-monitor.c:
	(verify_current_mount_state): Remove unused variable.
2001-09-08 01:18:01 +00:00
Owen Taylor
a06d3386f6 Fix bug where the mount list was stored without full mount names. Don't
2001-09-06  Owen Taylor  <otaylor@redhat.com>

        * libnautilus-private/nautilus-volume-monitor.c (verify_current_mount_state):
        Fix bug where the mount list was stored without full mount
        names. Don't call mount_volume_make_name() on volumes that
        might not be on the system any more. Remove code that
        (unsuccesfully) tried to fix the old volume names up, since
        we now have the correct old volume names.

        Effect of these changes is to fix a race condition where
        'unmount /mnt/cdrom; eject /dev/cdrom' would leave a left-over
        icon on the deskop.
2001-09-07 00:47:03 +00:00
Maciej Stachowiak
ab37e3b87f Converted to use the new module callback API. Use async callbacks instead
* libnautilus-private/nautilus-authn-manager.c:
	(construct_password_dialog,
	present_authentication_dialog_blocking, mark_callback_completed,
	authentication_dialog_button_clicked,
	present_authentication_dialog_nonblocking,
	vfs_async_authentication_callback, vfs_authentication_callback,
	nautilus_authentication_manager_initialize): Converted to use the
	new module callback API. Use async callbacks instead of our own
	mechanism to achieve the same effect.
2001-09-05 20:10:32 +00:00
Alex Larsson
47a2fa6e4c Merge some stuff from the redhat-outstanding-patches branch
2001-09-04  Alex Larsson  <alexl@redhat.com>

	Merge some stuff from the redhat-outstanding-patches branch

	* libnautilus-private/nautilus-file-utilities.[ch]
	(nautilus_user_main_directory_exists, nautilus_get_user_main_directory):
	Get rid of these. No more ~/Nautilus

	* libnautilus-private/nautilus-global-preferences.c:
	(default_home_location_callback): Always use your normal homedir
	as the home dir.

	* src/nautilus-application.c (check_required_directories): Don't
	create ~/Nautilus.
	(create_starthere_link_callback, nautilus_application_startup):
	Create a start here icon on the desktop.
	Turn of first time druid (by setting first time flag).
	(nautilus_application_startup, check_for_kdesktop, look_for_kdesktop_recursive,
	has_wm_state, get_self_typed_prop)
	Don't manage the desktop if kdesktop is running.

	* src/nautilus-first-time-druid.[ch]:
	Remove ~/Nautilus handling.
	s/druid_set_first_time_file_flag/nautilus_set_first_time_file_flag/

	* src/nautilus-shell-ui.xml:
	* src/nautilus-window-menus.c:
	Add start here to the go menu. Remove leftovers of the "support" menuimem.

	* src/file-manager/fm-directory-view.c:
	Move scripts to ~/.gnome/nautilus-scripts

	* Makefile.am:
	Add starthere icons

	* data/Makefile.am:
	* data/*.desktop.in:
	* data/*.directory.in:
	Add starthere desktop files.
2001-09-05 17:12:22 +00:00
Alex Larsson
a4cea25853 Merge some stuff from the redhat-outstanding-patches branch
2001-09-04  Alex Larsson  <alexl@redhat.com>

	Merge some stuff from the redhat-outstanding-patches branch

	* libnautilus-private/nautilus-icon-container.c:
	* libnautilus-private/nautilus-icon-dnd.c:
	Change signature of the "handle_uri_list" callback to include the
	drag action.

	* src/file-manager/fm-icon-view.c (icon_view_handle_uri_list):
	Handle uri's more gracefully.

	* src/file-manager/fm-desktop-icon-view.c:
	(icon_view_handle_uri_list): Remove.  Now handled in the
	parent class.
2001-09-04 21:16:09 +00:00
Alex Larsson
c113f3a2d1 Merge some stuff from the redhat-outstanding-patches branch
2001-09-03  Alex Larsson  <alexl@redhat.com>

	Merge some stuff from the redhat-outstanding-patches branch

	* components/mozilla/nautilus-mozilla-embed-extensions.cpp
	(mozilla_get_document_title): add this from Galeon

	* components/mozilla/nautilus-mozilla-embed-extensions.cpp
	(mozilla_unicode_to_locale): copy code from Galeon to use Mozilla
	conversion features to convert unicode to locale encoding

	* components/mozilla/nautilus-mozilla-content-view.c
	(mozilla_title_changed_callback): set title in locale encoding

	* libnautilus-private/nautilus-directory-metafile.c
	(get_metafile): print error and exit if we fail to open the
	metafile factory; somewhat cleaner than segfaulting.

	* libnautilus-private/nautilus-file.c:
	Cache user information to avoid many getpwuid calls etc.

	* src/nautilus-complex-search-bar.c (load_find_them_pixmap_widget):
	Don't leak pixmap and mask.

	* libnautilus-private/nautilus-icon-container.c (lay_down_icons_tblr):
	64bit clean. Use sizeof (int *), not sizeof (int).


	* Makefile.am, nautilus-help.desktop.in: Add a help icon that uses
	Nautilus

	* components/help/help-method.c (help_name_to_local_path):
	handle ghelp:toc to go to the default page gnome-help-browser used
	to go to. kind of a lame hack, but so is this whole vfs module ;-)
2001-09-04 15:37:11 +00:00
Maciej Stachowiak
3dfb1edf17 Replace authn with authentication throughout.
* libnautilus-private/nautilus-authn-manager.h,
	libnautilus-private/nautilus-authn-manager.c:
	(construct_password_dialog),
	(present_authentication_dialog_blocking),
	(authentication_dialog_button_clicked),
	(authentication_dialog_closed), (authentication_dialog_destroyed),
	(present_authentication_dialog_nonblocking),
	(run_authentication_dialog_on_main_thread),
	(vfs_authentication_callback),
	(nautilus_authentication_manager_initialize):

	Replace authn with authentication throughout.

	* src/nautilus-application.c (finish_startup): Adjust to rename.

	* RENAMING: Suggest renaming nautilus-authn-manager to
	nautillus-authentication-manager.c
2001-09-02 02:56:48 +00:00
Darin Adler
0e323670e5 Don't link in the libnautilus-private library for components that don't
* components/adapter/Makefile.am:
	* components/image-viewer/Makefile.am:
	* components/loser/content/Makefile.am:
	* components/loser/sidebar/Makefile.am:
	Don't link in the libnautilus-private library for components that
	don't use it.
	* components/sample/Makefile.am: Pretty up the sample a bit.
	Don't link with GConf since we're not using it directly.

	* components/shell/shell.oafinfo: Remove this obsolete file.

	* components/news/nautilus-news.c: (draw_rss_items): Fix a leak
	by unref'ing the text layout object instead of just destroying it.
	* src/nautilus-complex-search-bar.c:
	(search_bar_criterion_type_changed_callback): Fix leak of the
	criterion object by sinking it instead of destroying it. The
	criterion object seems to be a widget that's never used as one.
	It should be a GtkObject instead.

	* src/nautilus-location-bar.c:
	(nautilus_location_bar_set_location): Simplified code a bit by
	getting rid of special cases for NULL.
2001-08-31 22:19:08 +00:00
Wang Jian
579b34d672 *** empty log message *** 2001-08-31 16:37:22 +00:00
Kwok-Koon Cheung
608ec64194 Rename zh_TW.Big5 -> zh_TW, to prevent future encoding naming problem. 2001-08-31 11:53:32 +00:00
Darin Adler
beaa4d8dd2 Add workaround for gnome-metadata bug that was causing a stat and mkdir of
* src/nautilus-main.c: (main): Add workaround for gnome-metadata bug
	that was causing a stat and mkdir of NULL. (Yoann helped me find this).

	* src/nautilus-window-manage-views.c: (update_title): Fix code that
	was freeing the title and then using it afterward. (Yoann helped me
	find this).

	* src/nautilus-window.c: (refresh_stored_viewers): Fix code so that
	it uses g_list_prepend and g_list_reverse instead of using
	g_list_append, which is a bad habit.
2001-08-31 01:06:35 +00:00
Darin Adler
b8351ab255 Fix a storage leak that Yoann found.
* src/nautilus-search-bar-criterion.c:
	(nautilus_search_bar_criterion_new_from_values): Fix a storage
	leak that Yoann found.
2001-08-30 18:24:13 +00:00
Darin Adler
f0b878562c Fix unused variable and expression warnings, and fix to match Nautilus
* components/help/hyperbola-filefmt.c: (get_locale_score),
	(locale_score): Fix unused variable and expression warnings, and
	fix to match Nautilus coding style.
2001-08-28 16:41:22 +00:00
Vandoorselaere Yoann
11964ca155 avoid un-needed string copy.
* libnautilus-private/nautilus-link.c (nautilus_link_local_get_image_uri):         avoid un-needed string copy.

        * components/help/hyperbola-filefmt.c (locale_score):
        free return of xmlGetProp on return. Do not use a char pointer
        to point on the returned value, use an xmlChar pointer.

        * libnautilus-private/nautilus-link.c (nautilus_link_local_get_link_type):         Free the value returned by local_get_root_property.
2001-08-28 07:45:15 +00:00
Seth Nickell
c1475cb159 reviewed by: Maciej
2001-08-27  Seth Nickell  <snickell@stanford.edu>

	reviewed by: Maciej

	* libnautilus-private/nautilus-link.c: (local_set_root_property):

	change a const char * to an xmlChar *, since its being assigned
	a newly allocated xml property and promptly freed (and hence isn't
	being treated as a const at all).
2001-08-28 04:26:12 +00:00
Vandoorselaere Yoann
93d89f332b Don't leak a GtkBox.
* src/nautilus-switchable-search-bar.c (nautilus_switchable_search_bar_new):
        Don't leak a GtkBox.

        * src/nautilus-complex-search-bar.c (load_find_them_pixmap_widget):
        Do not check pixmap, check pixbuf. This also fix a leak.

        * libnautilus-private/nautilus-link.c (local_set_root_property):
        Fix a leak of the xmlProp returned data.
2001-08-27 15:18:32 +00:00
Darin Adler
c4c8dd3bd0 Define VERSION for the preprocessor.
* helper-utilities/error-dialog/Makefile.am:
	Define VERSION for the preprocessor.
2001-08-27 15:13:51 +00:00
Darin Adler
4599ec3e3a Some makefile cleanup.
* Makefile.am: Don't build intl since we don't need it the way we
	use gettext.
	* applets/launcher/Makefile.am: Remove redundant -I$(srcdir).
	* applets/preferences-applet/Makefile.am: Remove redundant
	-I$(srcdir).
	* components/adapter/Makefile.am: Remove redundant -I.
	* components/mozilla/Makefile.am: Mark private headers as SOURCES,
	not noinst_HEADERS, as suggested by automake book and manual.
	* components/news/Makefile.am: Remove unneeded
	-I$(top_srcdir)/components/news.
	* configure.in: Don't build intl since we don't need it the way we
	use gettext.
	* libnautilus-adapter/Makefile.am: Remove redundant -I.
	* libnautilus-private/Makefile.am: Change -I for new
	cut-n-paste-code scheme. Also mark private headers as SOURCES, not
	noinst_HEADERS, as suggested by automake book and manual.
	* libnautilus/Makefile.am: Remove redundant -I.
	* src/Makefile.am: Change -I for new cut-n-paste-code scheme. Also
	mark private headers as SOURCES, not noinst_HEADERS, as suggested
	by automake book and manual.
	* src/file-manager/Makefile.am: Mark private headers as SOURCES,
	not noinst_HEADERS, as suggested by automake book and manual.

	* check-THANKS.pl: Change Seth's preferred email address.

	* cut-n-paste-code/widgets/e-paned/Makefile.am:
	* cut-n-paste-code/widgets/gimphwrapbox/Makefile.am:
	Don't use -static, since we plan to link
	Remove unneeded -I directives now that we handle includes
	differently. Also mark private headers as SOURCES, not
	noinst_HEADERS, as suggested by automake book and manual.

	* cut-n-paste-code/widgets/e-paned/e-hpaned.h:
	* cut-n-paste-code/widgets/e-paned/e-vpaned.h:
	* libnautilus-private/nautilus-horizontal-splitter.h:
	* src/nautilus-complex-search-bar.c:
	* src/nautilus-search-bar-criterion.c:
	Simpler include scheme for cut-n-paste code.
2001-08-26 19:01:15 +00:00
Darin Adler
d0b6b683b0 Some new FIXMEs for I/O that's done at bad times -- these could contribute
* libnautilus-private/nautilus-file.c:
	(is_special_desktop_gmc_file), (nautilus_file_get_name):
	Some new FIXMEs for I/O that's done at bad times -- these could
	contribute to the performance problems that Alan Cox reported.
2001-08-24 20:10:22 +00:00
Darin Adler
6ac5db4fda Separate this from the code to create the scripts directory.
* src/file-manager/fm-directory-view.c:
	(set_up_scripts_directory_global): Separate this from the code to
	create the scripts directory.
	(create_scripts_directory): New function.
	(fm_directory_view_initialize): Use set_up_scripts_directory_global.
	(open_scripts_folder_callback): Use create_scripts_directory.
2001-08-24 15:41:29 +00:00
Darin Adler
d31bf8d65b Added support for nested directories inside the scripts directory,
starting with a patch by David Emory Watson <dwatson@cs.ucr.edu>.

	* src/file-manager/fm-directory-view.c: (get_scripts_directory):
	Keep the scripts directory URI and string length in a global
	variable.
	(add_scripts_directory): New function, replaces
	connect_script_handlers. Refs the directory, puts it on the
	scripts directory list, and monitors more attributes than before.
	(fm_directory_view_initialize): Use add_scripts_directory instead
	of connect_script_handlers.
	(fm_directory_view_destroy): Use remove_scripts_directory on the
	entire list instead of disconnect_script_handlers.
	(add_submenu): New function.
	(add_script_to_script_menus): Change name, pass in path.
	(add_submenu_to_script_menus): New function.
	(directory_belongs_in_scripts_menu): New function.
	(add_directory_to_scripts_directory_list): New function, high
	level call used to turn a NautilusFile into a NautilusDirectory
	and call add_scripts_directory.
	(update_directory_in_scripts_menu): New function.
	(update_scripts_menu): New function, replaces reset_scripts_menu
	and uses new nautilus_directory_get_files_list rather than
	nautilus_directory_call_when_ready.
	(open_scripts_folder_callback): Use new global variable instead
	of calling get_scripts_directory.
	(real_update_menus): Call update_scripts_menu instead of
	schedule_reset_scripts_menu.
	(remove_scripts_directory): New function, replaces
	disconnect_script_handlers. Removes the directory from the scripts
	directory list and unrefs it after disconnecting handlers.

	* libnautilus-private/nautilus-directory.h:
	* libnautilus-private/nautilus-directory.c: (is_tentative): Moved
	from nautilus-directory-async.c.
	(nautilus_directory_get_file_list): New, made from formerly-
	private get_non_tentative_file_list in nautilus-directory-async.c.
	(nautilus_directory_list_ref): New.
	(nautilus_directory_list_unref): New.
	(nautilus_directory_list_free): New.
	(nautilus_directory_list_copy): New.
	(compare_by_uri), (compare_by_uri_cover),
	(nautilus_directory_list_sort_by_uri): New. Sorrts directories by
	URI, parents before children, and children sorted as if by
	nautilus_file_list_sort_by_name.
	* libnautilus-private/nautilus-directory-async.c:
	(nautilus_directory_monitor_add_internal), (ready_callback_call):
	Use nautilus_directory_get_file_list instead of
	get_non_tentative_file_list.
2001-08-24 15:26:53 +00:00
Ramiro Estrugo
e2341ed5f8 No longer need to check that we want to kill the nautilus shell before
* src/nautilus-main.c: (main):
	No longer need to check that we want to kill the nautilus shell
	before initializing preferences.  I used to do this because of the
	way visibilities and defaults were stored using gconf - which led
	to problems about too early initialization for gconf.   It also
	happens that some desktop prefernece checking code was just added
	for a situation when the nautilus shell is about to be killed.
	That was causing criticals, so thats the end of this now uneeded
	check.
2001-08-24 10:39:05 +00:00
Anders Carlsson
bafee4405a Remove CONTROL_CENTER_REQUIRED since nautilus doesn't require
2001-08-23  Anders Carlsson  <andersca@gnu.org>

	* nautilus.spec.in: Remove CONTROL_CENTER_REQUIRED since nautilus
	doesn't require control-center anymore.

 	* configure.in: Remove CONTROL_CENTER_REQUIRED since nautilus
 	doesn't require control-center anymore.

 	* src/nautilus-window.c (nautilus_window_constructed):
 	Set shrink to TRUE when adding the sidebar since it'll look
 	better when the splitter is collapsed.
 	(nautilus_window_destroy): Free the window title.

 	* src/nautilus-window-manage-views.c (begin_location_change):
 	Unref the directory when we're done using it.

 	* src/nautilus-sidebar.c (nautilus_sidebar_destroy): Sink
 	the title tab so it'll destroyed even if it hasn't got a parent.

 	* libnautilus-private/nautilus-vfs-file.c (vfs_destroy):
 	Free details struct.

 	* libnautilus-private/nautilus-vfs-directory.c (vfs_destroy):
 	Free details struct.

 	* libnautilus-private/nautilus-mime-actions.c
 	(nautilus_mime_get_short_list_applications_for_file):
 	Free uri_scheme.
 	(make_oaf_query_with_uri_scheme_only): Free explicit_iid_query.

 	* libnautilus-private/nautilus-metafile.c (destroy):
 	Unref the private vfs uri, and free the directory uri.

 	* libnautilus-private/nautilus-file.c (nautilus_file_get_internal):
 	Free the string returned by nautilus_directory_get_name_for_self_as_new_file.

 	* libnautilus-private/nautilus-file-changes-queue.c
 	(nautilus_file_changes_consume_changes):
 	Free the change struct.

 	* libnautilus-private/nautilus-directory-async.c
 	(nautilus_directory_invalidate_count_and_mime_list):
 	Unref the file after using it.

 	* libnautilus/nautilus-idle-queue.c (execute_queued_functions):
 	Free each list node.
 	(nautilus_idle_queue_destroy): Likewise.
2001-08-23 16:48:19 +00:00
Ramiro Estrugo
1c50f7b140 No longer need to check that we want to kill the nautilus shell before
* src/nautilus-main.c: (main):
	No longer need to check that we want to kill the nautilus shell
	before initializing preferences.  I used to do this because of the
	way visibilities and defaults were stored using gconf - which led
	to problems about too early initialization for gconf.   It also
	happens that some desktop prefernece checking code was just added
	for a situation when the nautilus shell is about to be killed.
	That was causing criticals, so thats the end of this now uneeded
	check.
2001-08-22 17:33:21 +00:00
Christian Meyer
339fcbffe4 Removed eazel services from nautilus. 2001-08-22 17:24:16 +00:00
Christian Meyer
b18e6ea27f Removed Eazel related bookmarks, added SuSE and Ximian. 2001-08-22 10:51:36 +00:00
Christian Meyer
66ab1ec344 Removed obsolete Eazel stuff from nautilus-shell.c and nautilus-shell-ui.xml 2001-08-22 00:51:21 +00:00
Darin Adler
177235e92f Add a new document.
* docs/nautilus-io.txt: Add a new document.
2001-08-21 23:05:22 +00:00
Maciej Stachowiak
a090629c96 Ported to use EelList instead of GtkCList. This looks better and allows
* components/music/nautilus-music-view.c: (get_cell_text),
	(nautilus_music_view_initialize), (get_song_text),
	(music_view_set_selected_song_title), (selection_callback),
	(value_changed_callback), (compare_song_numbers),
	(compare_song_titles), (compare_song_artists),
	(compare_song_times), (compare_song_bitrates), (sort_list),
	(click_column_callback), (list_move_vertical), (list_moveto),
	(list_reveal_row), (play_current_file), (go_to_next_track),
	(nautilus_music_view_update), (nautilus_music_view_load_uri):
	Ported to use EelList instead of GtkCList. This looks better and
	allows for futre drag and drop support.
2001-08-20 05:44:50 +00:00
Darin Adler
39c1a148ee Trap errors when doing the XKillClient call inside set_root_pixmap. I
* libnautilus-private/nautilus-directory-background.c:
	(nautilus_file_background_receive_root_window_changes),
	(set_root_pixmap): Trap errors when doing the XKillClient
	call inside set_root_pixmap. I don't know why it would
	fail, exactly, but we have reports from the field that it
	is failing.
2001-08-18 21:25:51 +00:00
Darin Adler
d95a78e1bb Corrected a backwards g_return_if_fail!
* libnautilus-private/nautilus-volume-monitor.c:
	(nautilus_volume_monitor_get_mount_name_for_display):
	Corrected a backwards g_return_if_fail!
2001-08-16 22:46:04 +00:00
Darin Adler
c4b8cdd48c A pass at cleaning up the volume monitor. Made all the details of
NautilusVolume private.

	* libnautilus-private/filesystem-attributes.xml: Changed the
	"description" string to be named "default_volume_name" and also
	marked it to be localized.

	* libnautilus-private/nautilus-file-utilities.h:
	* libnautilus-private/nautilus-file-utilities.c:
	(nautilus_get_data_file_path):
	Added a new utility function to locate a file that's either in the
	user's directory or in the Nautilus datadir.

	* src/nautilus-property-browser.c: (read_browser_xml): Use
	nautilus_get_data_file_path.

	* libnautilus-private/nautilus-trash-directory.c:
	(get_trash_volume):
	* libnautilus-private/nautilus-trash-monitor.c:
	(add_one_volume_trash):
	* src/file-manager/fm-desktop-icon-view.c: (volume_in_black_list),
	(create_unique_volume_name), (create_mount_link),
	(volume_unmounted_callback), (update_disks_menu):
	* src/nautilus-application.c: (volume_mounted_callback),
	(volume_unmounted_callback):
	* src/nautilus-bookmark-list.c:
	(nautilus_bookmark_list_get_file_path):
	Use only calls from the NautilusVolume public API -- no getting at
	the structure directly. Also fix callers that were using
	nautilus_volume_monitor_get_volume_mount_uri to correctly
	understand that they get the mount path, not the mount URI.

	* libnautilus-private/nautilus-volume-monitor.h:
	* libnautilus-private/nautilus-volume-monitor.c:
	(load_file_system_table): Fix storage leaks. Use the new
	nautilus_get_data_file_path. Translate the default volume names as
	they are loaded. Check for duplicate entries while loading the
	table. Don't bother checking the name of the root node, since
	there are plenty of other things about the file that we don't
	check and there's no reason we particularly need to check that.
	Fix some storage leaks. Free the doc, since I'm not seeing a
	"nautilus --quit" segfault.
	(nautilus_volume_monitor_initialize): Only initialize stuff that
	g_new0 won't set up for us.
	(nautilus_volume_is_removable): Rename so it's a call on
	NautilusVolume, not the NautilusVolumeMonitor.
	(volume_is_removable): Fix logic so we don't have to have so many
	different calls to fclose.
	(nautilus_volume_get_name): Rename so it's a call on
	NautilusVolume, not the NautilusVolumeMonitor.
	(modify_volume_name_for_display): Don't bother supplying a name if
	passed NULL, since that won't ever be helpful the way this is used.
	(nautilus_volume_get_target_uri): Rename so it's a call on
	NautilusVolume, not the NautilusVolumeMonitor.
	(nautilus_volume_should_integrate_trash): Rename so it's a call on
	NautilusVolume, not the NautilusVolumeMonitor. Get the information
	from the file system type, so we don't have to copy it into each
	NautilusVolume object.
	(nautilus_volume_get_mount_path): Rename so it's a call on
	NautilusVolume, and don't call it a URI since it's really a path.
	(nautilus_volume_get_device_type): New call.
	(make_volume_name_from_path): Get the default from the file system
	type rather than passing it in.
	(free_mount_list): Get rid of some dumb extra code.
	(copy_volume), (nautilus_volume_free): Update for smaller set of
	fields.
	(create_volume), (finish_creating_volume),
	(finish_creating_volume_and_prepend): Restructure so we don't need
	to keep so much stuff around in the NautilusVolume object.

	* src/nautilus-first-time-druid.c:
	(druid_set_first_time_file_flag): Some tiny tweaking.
2001-08-15 21:04:01 +00:00
Maciej Stachowiak
bda504410c Revert accidental commit of not quite done change.
* components/music/Makefile.am: Revert accidental commit of not
	quite done change.
2001-08-15 18:55:16 +00:00
Darin Adler
f234e681cc Use a 64K buffer size instead of a 4K buffer size.
* components/image-viewer/nautilus-image-view.c:
	(load_image_from_stream): Use a 64K buffer size instead of a 4K
	buffer size.
2001-08-15 16:08:33 +00:00
Maciej Stachowiak
6e1255de63 A bunch of code cleanup; stop using hidden columns in the list view and
* components/music/nautilus-music-view.c:
	(nautilus_music_view_initialize), (get_song_text), (sort_list),
	(click_column_callback), (ensure_uri_is_image),
	(nautilus_music_view_update): A bunch of code cleanup; stop using
	hidden columns in the list view and try to pave the way for better
	model/view separation.

	* src/nautilus-main.c (main): set DISPLAY variable to
	canonicalized version; this is needed to make
2001-08-15 08:31:45 +00:00
Seth Nickell
64ff8e32f2 Load filesystems from an XML file rather than hardcoding the various
2001-08-14  Seth Nickell  <snickell@stanford.edu>

	Load filesystems from an XML file rather than hardcoding
	the various attributes and behaviors. Some properties, such
	as for CDDA and NFS, are still hardcoded because they require
	actual code. This also makes it easier to add new filesystems.

	* libnautilus-private/filesystem-attributes.xml

	Filesystem description file.

	* libnautilus-private/Makefile.am:

	Add filesystem-attribute.xml to the build.

	* libnautilus-private/nautilus-volume-monitor.c:

	(mount_volume_prepend_filesystem):

	Don't try to detect filesystem strings and associate them
	with an enumeration type...nix the enumeration altogether
	since its not compatible with dynamically loading the
	filesystems.

	(get_xml_path), (load_filesystem_attributes_table)

	Functions for reading in filesystem-attribute.xml and
	loading the various filesystems into a hashtable.

	(nautilus_volume_monitor_initialize)

	Read in the filesystem attributes table.

	(get_removable_volumes), (mount_volume_deactivate),
	(get_mount_list), (get_current_mount_list),
	(verify_current_mount_state)

	Take a file attributes hashtable, or pass one to a
	subfunction.

	(nautilus_volume_monitor_get_target_uri),

	CDDA is the only system we need to deal with in an unusual
	way. Take out a long list and just check for CDDA.

	(nautilus_volume_monitor_should_integrate_trash)

	Use information read from the file rather than hardcoding
	a list of filesystems that can use trash (should be the
	same for now).

	(make_volume_name_from_path), (mount_volume_make_name)

	Get name out of the filesystem table rather than hardcoding.

	(mount_volume_iso9660_add)

	We were deciding if a device was *really* a CDROM by
	doing an ioctl on it to determine the drive status. This
	is a good check...except that on systems using DevFS
	devices can be user mountable without being user readable
	by default. Also, on my system it fails if there's no
	disk in the drive itself.

	(mount_volume_auto_add)

	Continue setting the device if its a floppy drive (eventually
	this should probably be cleaned out too), but don't set the
	filesystem type since we don't use the enum anymore.

	(mount_volume_cdda_add)

	Set as a CDDA device, but not a CDDA volume (since we don't
	have hardcoded volume types anymore).

	(mount_volume_nfs_add)

	Don't set NFS type since the enum was blown away.

	(create_volume)

	Accept a filesystem table and set attributes read from
	filesystem-attributes.xml if a volume's filesystem is found
	in the table. Perhaps eventually we should just assign a
	reference to the volume entry, but this was simpler for
	now since some functions modify things like the description.

	(copy_volume)

	Deal with copying the new attributes.

	* libnautilus-private/nautilus-volume-monitor.h:

	Nix the filesystem enumeration. Change NAUTILUS_DEVICE_CD_ROM
	to NAUTILUS_DEVICE_CDROM

	* src/file-manager/fm-desktop-icon-view.c: (create_mount_link),
	(update_disks_menu):

	Deal with rename of NAUTILUS_DEVICE_CD_ROM

	* src/nautilus-application.c: (volume_mounted_callback):

	Deal with rename of NAUTILUS_DEVICE_CD_ROM

	* AUTHORS:

	Update E-mail address.

	* configure.in:

	Make "FAM not found" warning a little more serious and
	informative. We particularly want to encourage distributors
	to enable FAM support.
2001-08-15 06:35:04 +00:00
Seth Nickell
8c287d3b63 Trying to make nautilus volume monitor work more reliably. First step is
2001-08-11  Seth Nickell  <snickell@stanford.edu>

	Trying to make nautilus volume monitor work more
	reliably. First step is to make the codebase more
	maintainable so I can start tracking down bugs in
	the volume monitor more easily.
	(I get complaints about this from friends, family, and
	coworkers all the time, so there must be some/one bugs).

	* libnautilus-private/nautilus-volume-monitor.h:
	* libnautilus-private/nautilus-volume-monitor.c:
	(nautilus_volume_monitor_initialize_class),
	(nautilus_volume_monitor_get_target_uri),
	(nautilus_volume_monitor_should_integrate_trash),
	(mount_volume_make_name), (mount_volume_deactivate),
	(mount_volume_generic_add), (mount_volume_prepend_filesystem):

	Remove mount_volume_*_add for filesystems that do
	effectively the same thing. This added a large amount of
	clutter to a module that already has a lot of similar
	functions. Add a generic function that accepts the filesystem
	type, and change calls to use this.

	Fix signal in initialize_class to be "nautilus_volume_unmount_failed"
	rather than "nautilus_volume_unmoun_failed" (nobody was assuming
	the broken behavior eithe, I checked, maybe this will fix something).

	Renamed NAUTILUS_VOLUME_REISER to NAUTILUS_VOLUME_REISERFS
	to maintain the naming convention the other filesystems use.

	Changed "unsdos" to "umsdos" everywhere. I don't think a unsdos
	filesystem exists, after web searches, and umsdos *is* one of
	the basic Linux filesystems. I suspect somebody misread a filesystem
	name browsing the kernel compilation menu or somesuch.

	Removed redundant (and erroneous) check for "ufs" type filesystems
	(the check was already listed in the if then statement above).
2001-08-11 08:48:26 +00:00
Darin Adler
f8643ceb56 Add an include of nsIContentView.h in the hopes that this will make it
* components/mozilla/mozilla-events.cpp:
	* components/mozilla/nautilus-mozilla-embed-extensions.cpp:
	Add an include of nsIContentView.h in the hopes that this
	will make it work with newer Mozilla sources.
2001-08-07 17:30:18 +00:00
Darin Adler
e27a02eda1 Simplify logic. (pixbuf_is_framed): Do size and format reality checks on
* libnautilus-private/nautilus-thumbnails.c:
	(pixel_matches_value): Simplify logic.
	(pixbuf_is_framed): Do size and format reality checks on pixbuf
	before reading the pixels.
	(nautilus_thumbnail_load_framed_image): Handle case where the
	pixbuf loading failed. Handle case where there's no frame. Handle
	case where the frame offsets in the theme data is improperly
	formatted.
2001-08-06 17:35:46 +00:00
Maciej Stachowiak
9a7dd3c20c Get display name in a better way suggested by Havoc Pennington.
* libnautilus/nautilus-view-standard-main.c:
	(nautilus_view_standard_main_multi): Get display name in a better
	way suggested by Havoc Pennington.
2001-08-03 07:48:33 +00:00
Michael Fleming
77cb5a29b6 Added gnome-vfs authentication dialog support. Currently works with HTTP
Added gnome-vfs authentication dialog support.
        Currently works with HTTP basic and proxy authentication.

        A bug causes the dialog to appear more than once in quick succession
        in some cases.

        Separate processes (eg sidebar components) that need to access
        a protected URL will also pop open their own individual dialogs
        at this point

        There's also no integration with Mozilla at this point, so
        Mozilla too will prompt separately.

        This code works against gnome-vfs head and the gnome-vfs-1-0
        branch, as well as the soon-to-be-released gnome-vfs 1.0.2
2001-08-02 07:09:45 +00:00
Darin Adler
a9c64525ac More people to thank.
* THANKS: More people to thank.
2001-08-01 21:02:38 +00:00
Yanko Kaneti
b3d4454847 remove the extra bg_BG(.cp1251) references, part of the gnome cvs wide
2001-07-31  Yanko Kaneti  <yaneti@declera.com>

   * components/help/topleveldocs.xml: remove the extra bg_BG(.cp1251)
   references, part of the gnome cvs wide move from bg_BG to bg
2001-07-31 20:07:23 +00:00
Darin Adler
b071ed5d73 Fixed bug 8438 (changing desktop between $HOME and .gnome-desktop
breaks desktop DnD from other apps).

	* src/file-manager/fm-desktop-icon-view.c:
	(desktop_directory_changed_callback): New function to update the
	local variable when the desktop directory changes.
	(fm_desktop_icon_view_initialize): Set up the callback rather than
	just setting up the global variable.

	* configure.in: Fixed code to set up compile-time options. It
	was putting the options into VFS_CFLAGS.
2001-07-27 17:36:35 +00:00
Maciej Stachowiak
821fac83df Fixed bug 6776 (In-place file rename allowed (but doesn't occur)
at 25% zoom level):

	* src/file-manager/fm-icon-view.c: (fm_icon_view_set_zoom_level):
	Update menus since the sensitivity of "Rename" now depends on the
	zoom level.
	(fm_icon_view_update_menus): Disable the "Rename" item when at
	smallest zoom level, since renaming won't happen anyway.
2001-07-26 09:16:37 +00:00
Darin Adler
bf72a34cab Remove eel_ prefix from name. (background_get_desktop_background_window):
* libnautilus-private/nautilus-directory-background.c:
	(background_is_desktop): Remove eel_ prefix from name.
	(background_get_desktop_background_window): Remove eel_ prefix
	from name.

	* libnautilus-private/nautilus-icon-factory.c:
	(should_display_image_file_as_itself),
	(nautilus_icon_factory_get_icon_for_file), (load_icon_from_path):
	* libnautilus-private/nautilus-thumbnails.h:
	* libnautilus-private/nautilus-thumbnails.c: (make_thumbnail_uri),
	(nautilus_thumbnail_has_invalid_thumbnail),
	(nautilus_get_thumbnail_uri),
	(nautilus_update_thumbnail_file_renamed),
	(nautilus_remove_thumbnail_for_file), (check_for_thumbnails),
	(make_thumbnails), (nautilus_thumbnail_load_framed_image):
	Remove anti-aliased parameter from most functions, since the
	thumbnails are now the same either way.

	* THANKS:
	* check-THANKS.pl:
	Some more THANKS updates.

	* RPMs-README: No need for this any more.
2001-07-24 23:38:41 +00:00
Jens Finke
2b14aa41cf Updated KDE rdf location.
2001-07-24  Jens Finke <jens@gnome.org>

	* components/news/news_channels.xml: Updated KDE rdf location.
2001-07-24 13:53:16 +00:00
Andy Hertzfeld
5650475642 changed thumbnailing to not draw the frame into the thumbnail images
changed thumbnailing to not draw the frame into the
	thumbnail images themselves anymore; instead, draw it at the time
	they're loaded. This makes anti-aliased thumbnail variants no
	longer necessary, so they're no longer used.  There's a cheap test so
	old thumbnails aren't framed twice.

	* libnautilus-private/nautilus-thumbnails.c: (make_thumbnail_uri),
	(make_thumbnails), (pixel_matches_value), (pixbuf_is_framed),
	(nautilus_thumbnail_load_framed_image):
	don't frame the thumbnails at creation time; instead, provide
	a routine to frame them at load time if necessary.

	* libnautilus-private/nautilus-thumbnails.h:
	added nautilus_thumbnail_load_framed_image

	* libnautilus-private/nautilus-icon-factory-private.h:
	added nautilus_icon_factory_get_thumbnail_frame

	* libnautilus-private/nautilus-icon-factory.c:
	(load_thumbnail_frames), (nautilus_icon_factory_initialize),
	(nautilus_icon_factory_destroy), (icon_theme_changed_callback),
	(load_icon_from_path), (load_named_icon), (load_specific_icon),
	(nautilus_icon_factory_get_thumbnail_frame):
	made it call nautilus_thumbnail_load_framed_image to load
	thumbnails; made the icon factory load the thumbnail frames so it
	doesn't have to be done repeatedly; changed how the aa flag is
	passed around a little, although this could be cleaned up more now.
2001-07-23 20:20:32 +00:00
Benedikt Roth
8b1d7f6840 Fix the tip for the "Delete from Trash" item in the right-click menu
2001-07-23 Benedikt Roth  <Benedikt.Roth@gmx.net>

	* src/file-manager/fm-directory-view.c: (real_update_menus):
	Fix the tip for the "Delete from Trash" item in the right-click menu
2001-07-23 11:25:34 +00:00
Maciej Stachowiak
763194bfef Update the icon even when newly creating it, in case the trash state
* src/file-manager/fm-desktop-icon-view.c
	(update_trash_link_and_delete_copies): Update the icon even when
	newly creating it, in case the trash state changed while the
	desktop was off. This fixes bug 7956 (improper Trash icon state
	after desktop toggle )
2001-07-23 10:42:36 +00:00
Maciej Stachowiak
8d074785a4 Avoid a ref underflow. This was causing a crash noticed by Anders
* libnautilus-private/nautilus-directory-async.c
	(nautilus_file_invalidate_count_and_mime_list): Avoid a ref
	underflow. This was causing a crash noticed by Anders
	Carlsson. I'm so embarassed!

	* src/file-manager/fm-desktop-icon-view.c
	(fm_desktop_icon_view_destroy, delayed_init): Make sure to
	disconnect signals on destroy to avoid a possible crash when
	turning the desktop off and back on, and not using fam.
2001-07-23 10:12:53 +00:00
Maciej Stachowiak
70bf6de4c9 Fix bug 5242 (Selection not kept on-screen after column resort) by
* components/music/nautilus-music-view.c (click_column_callback):
	Fix bug 5242 (Selection not kept on-screen after column resort) by
	scrolling the selected item into view on a resort if it's not in
	view already.
2001-07-23 09:37:22 +00:00
Maciej Stachowiak
c61c49b787 Fix the remainer of bug 3769 (Music View window redraws upon clicking a
* components/music/nautilus-music-view.c: (get_song_text): Fix the
	remainer of bug 3769 (Music View window redraws upon clicking a
	different song) by making songs with no title show up with "-" for
	the title (I have quite a collection of broken mp3s).
2001-07-23 09:24:52 +00:00
Maciej Stachowiak
8d103fdb18 Fix bug 5175 (Music View displays year fields of '0'.) by filtering out
* components/music/nautilus-music-view.c:
	(read_id_tag): Fix bug 5175 (Music View displays year fields of
	'0'.) by filtering out years that are all zeros or all spaces.
	(filter_out_unset_year): New helper function.
2001-07-23 08:54:52 +00:00
Dan Mueth
2da559d388 Updating doc build stuff so it works properly on RH7.1 and any other newer
2001-07-22  Dan Mueth  <d-mueth@uchicago.edu>

        Updating doc build stuff so it works properly on RH7.1 and
        any other newer distributions which have the updated docbook
        tools where db2html doesn't work with GNOME's modified DTD.
        For these systems, we use jw instead of db2html.

        * configure.in:
        * help/sgmldocs.make:
2001-07-22 18:53:29 +00:00
Maciej Stachowiak
7fdb454478 Add artist to the info displayed about the currently selected song. Also,
2001-07-22  Maciej Stachowiak  <mjs@eazel.com>

	* components/music/nautilus-music-view.c: (string_non_empty),
	(get_song_text), (play_current_file): Add artist to the info
	displayed about the currently selected song. Also, fix a bug where
	a song entry does not get scrolled into view when the player
	switches to it sometimes. This happened because the song list
	would resize depending on whether or not there was an album
	name. Now if there is no album name (or artist) `-' is displayed
	in the second line.
2001-07-22 07:12:57 +00:00
Darin Adler
a05dbb3dcb Update cvs tags for gnome-vfs, librsvg, eel.
* README: Update cvs tags for gnome-vfs, librsvg, eel.
2001-07-22 02:42:49 +00:00
Anders Carlsson
b63962433d Remove multiple references to $(NAUTILUS_PRIVATE_LIBS) since having
2001-07-21  Anders Carlsson  <andersca@gnome.org>

	* components/help/Makefile.am:
	* components/sample/Makefile.am:
	* libnautilus-adapter/Makefile.am:
	* libnautilus-private/Makefile.am:
	* libnautilus/Makefile.am:
	Remove multiple references to $(NAUTILUS_PRIVATE_LIBS) since
	having multiple references makes linking very slow with libtool 1.4.
2001-07-21 17:06:45 +00:00
Maciej Stachowiak
8a21397a51 Fixed bugzilla.eazel.com bug 7015 (Item count not updated when
copying an empty folder to another).

	* libnautilus-private/nautilus-directory-async.c:
	(nautilus_file_invalidate_count_and_mime_list): New function to
	invalidate a directory's item count and item mime list given it's
	corresponding NautilusFile object.
	(nautilus_directory_invalidate_count_and_mime_list): Reimplemented
	in terms of the above.

	* libnautilus-private/nautilus-file-private.h:
	Prototype the new function.

	* libnautilus-private/nautilus-directory.c:
	(nautilus_directory_notify_files_added): If the NautilusDirectory
	for a directory into which files are being moved is not being
	monitored but the NautilusFile is, make sure to invalidate it's
	item count and mime list. This is the corner case that bug 7015
	was tickling.
2001-07-21 08:12:31 +00:00
Andy Hertzfeld
4a61d92628 fixed problem that the reset property was not localizable, since it used
fixed problem that the reset property was not localizable, since
	it used an image that contained text.  Fixed, by removing the
	text from the image and compositing it on the fly, from a localizable
	string.

	* data/patterns/reset.png:
	new version of reset tile without text.

	* libnautilus-private/nautilus-customization-data.c:
	(nautilus_customization_data_get_next_element_for_display),
	(add_reset_text), (nautilus_customization_make_pattern_chit):
	composite the reset text on the fly when necessary

	* libnautilus-private/nautilus-customization-data.h:
	added a parameter to make_pattern_chit to tell it to draw
	the reset text when necessary

	* src/nautilus-property-browser.c: (make_drag_image),
	(make_color_drag_image), (add_reset_property):
	set the reset parameter properly when calling make_pattern_chit.
2001-07-21 00:14:57 +00:00
Andy Hertzfeld
d53b677f42 removed the bad hack of attributing special meaning to the "reset.png"
removed the bad hack of attributing special meaning to the
	"reset.png" filename; instead, use a newly defined drop type of
	"x-special/gnome-reset-background".

	* libnautilus-private/nautilus-icon-dnd.c:
	(drag_data_received_callback),
	(nautilus_icon_container_get_drop_action), (drag_drop_callback):
	make the icon view handle the new drop type.

	* src/nautilus-property-browser.c: (element_clicked_callback):
	make the property browser emit the new drop type for the reset property

	* src/nautilus-sidebar.c: (reset_background_callback),
	(nautilus_sidebar_drag_data_received):
	make the sidebar handle the new drop type.
2001-07-20 17:36:34 +00:00
Darin Adler
c00bab3e1c More fixes like the one Alex just did.
* libnautilus-private/nautilus-icon-container.c: (destroy):
	Move the call to unschedule_keyboard_icon_reveal into
	nautilus_icon_container_clear.
	(nautilus_icon_container_clear): Cancel both of the pending
	icon reveals, since all the icons are gone.
	(icon_destroy): Cancel a pending icon to reveal if the
	icon being destroyed is that icon.

	* libnautilus-private/nautilus-icon-private.h: Remove some
	unused fields.
2001-07-19 21:35:13 +00:00
Alex Larsson
fdb0c0b377 Clear details->drop_target. This should fix a hard to trigger DnD
2001-07-19  Alex Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-icon-container.c (nautilus_icon_container_clear):
	Clear details->drop_target. This should fix a hard to trigger DnD segfault.
2001-07-19 20:01:02 +00:00
Darin Adler
67c2f29006 Updated thanks for recent changes in ChangeLog.
* THANKS:
	* check-THANKS.pl:
	Updated thanks for recent changes in ChangeLog.

	* libnautilus-private/nautilus-file-operations.c:
	(build_error_string):
	* libnautilus-private/nautilus-file.c: (get_description):
	Updated the people to tell about various warnings.
2001-07-16 21:15:06 +00:00
Anders Carlsson
a6971b669d Check that the file mime type is correct (that the files is a music file)
2001-07-15  Anders Carlsson  <andersca@codefactory.se>

	* src/file-manager/fm-icon-view.c (icon_container_preview_callback): Check
	that the file mime type is correct (that the files is a music file) before calling
	nautilus_sound_can_play_sound () since that function launches esd which we
	don't want to do unless we have a music file.
2001-07-15 09:00:44 +00:00
Andy Hertzfeld
320c3808a8 allowed components to specify their sidebar icons and text info through
allowed components to specify their sidebar icons and text info
	through the property bag interface.  Removed the special cases from
	the sidebar and icon factory, and added the relevant properties to the
	hardware and mozilla views.

	made the modification date in the sidebar adapt itself gracefully
	to the available space like the list view does, by calling
	nautilus_file_fit_modified_data_as_string.

	added an "uptime" display to the hardware view.
2001-07-15 08:54:11 +00:00