* 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 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.
* 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-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-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 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.
* 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.
* 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-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.
* 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".
* 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.
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.
* 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.
* 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.
* .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 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 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...
* 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.
* 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 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 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-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
* 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 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 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.
* 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
* 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.
* 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 Anders Carlsson <andersca@gnu.org>
* src/nautilus-component-adapter-factory.c: Fix warnings by
putting #ifdef GNOME2_CONVERSION_COMPLETE around unused functions
and variables.
* 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
* 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-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 Seth Nickell <snickell@stanford.edu>
* Makefile.am:
Install nautilus and help .desktop files into the proper
location for GNOME2 menu entries ($datadir/applications).
* 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-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.
* 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-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 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-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-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.
* 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.
* 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-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 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().
* 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.
* 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-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 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-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.
* 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-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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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>.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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-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
* 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.
* 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-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.
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.
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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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.
* 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 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
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.
* 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):
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.
* 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.
* 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
* 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 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 Alex Larsson <alexl@redhat.com>
* data/Makefile.am (install-data-local):
Move sysconfig and serverconfig out of starthere.
That was a merge error.
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
* 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-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.
* 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-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-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-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-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.
* 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-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-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-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 ;-)
* 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.
* 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.
* components/help/hyperbola-filefmt.c: (get_locale_score),
(locale_score): Fix unused variable and expression warnings, and
fix to match Nautilus coding style.
* 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-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).
* 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.
* 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.
* 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.
* 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.
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.
* 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-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.
* 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.
* 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.
* 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.
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.
* 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-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-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).
* 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.
* 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.
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-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
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.
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.
* 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.
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 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
* 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 )
* 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.
* 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.
* 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).
* 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-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 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-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.
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.
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.
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.
* 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 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.
* 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-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.
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.