Commit graph

4914 commits

Author SHA1 Message Date
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