Some enhancements to icon lookup.
* libnautilus-extensions/nautilus-icon-factory.h:
* libnautilus-extensions/nautilus-icon-factory.c:
(get_mime_type_icon_without_suffix): Function used to strip suffixes
out so we can have file suffixes in the gnome-vfs icon database, but
can ignore them and look at all suffixes for the named icon.
(make_icon_name_from_mime_type): Construct an icon name for types
that don't specify a particular icon. This allows theme designers
to make icons for any MIME type.
(get_icon_name_for_regular_file): Use the new "without suffix" call.
This requires changing this function to return a strdup'd name.
(get_icon_name_for_directory), (get_icon_name_for_file): Change to
return a strdup'd name.
(make_full_icon_path): Do the file exists check in here (was
already doing it in some cases) and also call
gnome_vfs_icon_path_from_filename.
(get_themed_icon_file_path): Get rid of redundant g_file_exists
checks and gnome_vfs_icon_path_from_filename call, since both are
now handled inside make_full_icon_path.
(nautilus_scalable_icon_get_text_pieces),
(nautilus_scalable_icon_new_from_text_pieces),
(nautilus_scalable_icon_unref), (nautilus_scalable_icon_hash),
(nautilus_scalable_icon_equal): Add MIME type to the scalable
icons.
(nautilus_icon_factory_get_icon_for_file): Pass in the MIME type.
(nautilus_icon_factory_get_emblem_icon_by_name): Pass NULL for
MIME type.
(load_pixbuf_svg): Change to pass in boolean for emblem hack since
we don't always have an icon name.
(load_icon_from_path): New function, share common code.
(load_named_icon): New function, share common code.
(load_specific_icon): Try icon based on MIME type first, then fall
back on the name specified.
(nautilus_icon_factory_get_pixbuf_from_name): Pass NULL for MIME
type.
(load_icon_with_embedded_text): Pass in the MIME type.
* src/nautilus-bookmark-list.c: (append_bookmark_node):
* src/nautilus-bookmark-parsing.c:
(nautilus_bookmark_new_from_node):
* libnautilus-extensions/nautilus-bookmark.c:
(nautilus_bookmark_icon_is_different),
(nautilus_bookmark_set_icon_to_default):
Update to deal with MIME types in scalable icons.
* components/help/hyperbola-filefmt.c:
(fmt_scrollkeeper_parse_toc_section),
(fmt_scrollkeeper_parse_doc_toc),
(fmt_scrollkeeper_parse_document),
(fmt_scrollkeeper_parse_section), (fmt_scrollkeeper_parse_xml),
(fmt_scrollkeeper_trim_empty_branches),
(fmt_scrollkeeper_tree_empty), (fmt_scrollkeeper_populate_tree),
(remove_leading_and_trailing_white_spaces), (fmt_toplevel_add_doc),
(get_path_from_node), (has_content), (fmt_toplevel_parse_xml_tree):
Made more compatible with libxml by not using the content field
directly and using xmlChildrenNode and xmlRootNode.
* libnautilus-extensions/nautilus-trash-monitor.c:
(nautilus_trash_monitor_get): Fixed NautilusDirectory leak.
* THANKS: Added some more translator credits.
* check-THANKS.pl: Fixed some email addresses and such.
* icons/ardmore/.cvsignore:
* icons/arlo/.cvsignore,
* icons/arlo/backgrounds/.cvsignore:
* icons/arlo/sidebar_tab_pieces/.cvsignore:
* icons/villanova/.cvsignore:
Removed these again.
* THANKS: Added a translator's name.
* check-POTFILES.pl: Made it work for more file extensions.
* check-THANKS.pl: Updated for recent email changes.
* components/image-viewer/io-png.h: Fixed includes.
* components/image-viewer/io-png.c: Fixed includes.
* components/adapter/nautilus-zoomable-proxy.c: Add include of
<config.h>.
* components/music/Makefile.am: Add non-compiled files to
EXTRA_DIST. This makes check-headers-in-Makefile.pl happy.
* components/tree/main.c: Removed this unused file since it's just
a call to the standard main function.
* components/tree/nautilus-tree-change-queue.c: Add include of
<config.h>.
* libnautilus/Makefile.am:
* libnautilus-adapter/Makefile.am:
* libnautilus-extensions/Makefile.am:
* src/Makefile.am:
Do the dist-hook dance so we don't include generated files in the
tarball.
* libnautilus-extensions/nautilus-dateedit-extensions.h:
* libnautilus-extensions/nautilus-dateedit-extensions.c:
(nautilus_gnome_date_edit_get_date_as_string): Rewrite to use
eel_gstrdup_strftime.
* src/nautilus-window-manage-views.c:
(nautilus_window_content_view_matches_iid): We can get a NULL
content view IID in some cases, so make sure we don't call strcmp
on it.
Fix bug 7783 (Makefile.am used to install xml data is wrong):
* data/Makefile.am: Integrate build fix from fcrozat. Don't use
the magic "info" name since it is used for special purposes on
Mandrake and other systems.
Other strings:
* THANKS: Added some people who made recent contributions.
* check-THANKS.pl: Add some more alternate names.
* components/help/hyperbola-filefmt.c: (locale_score): Fix legal
code that doesn't compile with some versions of gcc by adding a
cast.
* help/nautilus-user-manual/es/.cvsignore: Add
nautilus-user-manual.junk.
* libnautilus-extensions/nautilus-directory-async.c:
(metafile_read_check_for_directory_callback),
(metafile_read_done_callback),
(metafile_write_failure_close_callback),
(metafile_write_success_close_callback),
(metafile_write_create_callback), (directory_load_callback),
(directory_count_callback), (new_files_callback), (has_problem),
(deep_count_callback), (mime_list_callback),
(top_left_read_callback), (get_info_callback),
(activation_uri_nautilus_link_read_callback),
(activation_uri_gmc_link_read_callback),
(cancel_activation_uri_for_file): Add ref/unref pairs that we need
in callbacks that use NautilusDirectory objects but that also send
out signals which might end up unref'ing them.
* libnautilus-extensions/nautilus-file-operations.c:
(nautilus_self_check_file_operations): Add tests to demonstrate
bug 7701.
* libnautilus-extensions/nautilus-smooth-text-layout-cache.c:
(nautilus_self_check_smooth_text_layout_cache): Fix some destroys
that should have been unrefs.
* libnautilus-extensions/nautilus-string.c:
(nautilus_self_check_string): Added tests for
nautilus_str_get_after_prefix.
fixed bug 7138, non-ASCII characters in author's names causes
the Japanese version to crash. Fixed by removing the accented
'i' from Pavel's name
* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback):
replaced the accented 'i' in Pavel's name with a plain one
* check-THANKS.pl:
fixed mapping in check-THANKS.pl as requested by Darin
* AUTHORS:
removed from AUTHORS, too, for consistency
Fixed bug 6725 (Crash on Refresh if viewed file/folder is deleted
outside of Nautilus):
* src/nautilus-window-manage-views.c: (free_location_change):
Reorder so we cancel the callbacks before more I/O has the chance
to happen.
* libnautilus-extensions/nautilus-directory-async.c:
(nautilus_directory_async_state_changed): Don't do any I/O for a
NautilusDirectory object once it's destroyed. Unfortunately, it's
still possible for destroying one NautilusDirectory object to
cause I/O to happen on another, so this doesn't fix the bug (which
is why we also need the change above).
Fixed bug 7080 (Nautilus build failure on Red Hat 7.)
* libnautilus-extensions/nautilus-medusa-support.c: Fixed the bad
#endif with non-comment text after it.
Worked on bug 6928 (create fallback mechanism so eazel-logos
version of each graphic is found if present). We still need a
separate fallback mechanism for the theme XML file, since the
throbber has a different number of frames.
* libnautilus-extensions/nautilus-file-utilities.c:
(nautilus_get_pixmap_directory): Simplify.
(nautilus_pixmap_file): Look in eazel-logos directory first, so we
will pick up logo graphics if there, and non-logo graphics otherwise.
* test/test-nautilus-image-simple.c: (main): Remove a reference to
a logo graphic.
* eazel-logos/.cvsignore:
* eazel-logos/About_Image.png:
* eazel-logos/about_background.png:
* eazel-logos/druid_header.png:
* eazel-logos/eazel-logo-right-side-logo.png:
* eazel-logos/throbber/.cvsignore:
* eazel-logos/throbber/001.png:
* eazel-logos/throbber/002.png:
* eazel-logos/throbber/003.png:
* eazel-logos/throbber/004.png:
* eazel-logos/throbber/005.png:
* eazel-logos/throbber/006.png:
* eazel-logos/throbber/007.png:
* eazel-logos/throbber/008.png:
* eazel-logos/throbber/009.png:
* eazel-logos/throbber/010.png:
* eazel-logos/throbber/011.png:
* eazel-logos/throbber/012.png:
* eazel-logos/throbber/013.png:
* eazel-logos/throbber/014.png:
* eazel-logos/throbber/015.png:
* eazel-logos/throbber/rest.png:
* eazel-logos/default.xml:
Added a new directory with copies of all graphics with the Eazel
logo in them. Next we have to make this directory actually build
and install these logos. Then Non-Eazel-logo'd graphics suitable
for GPL will replace the original copies and these will keep the
Eazel logo versions. The directory also contains the XML file for
the default theme, since we need to change the throbber frames for
the logo vs. non-logo version of the throbber.
* components/services/nautilus-dependent-shared/icons/Makefile.am:
* components/services/nautilus-dependent-shared/icons/eazel-cloud-logo.png:
* components/services/nautilus-dependent-shared/icons/eazel-services-logo.png:
* components/services/nautilus-dependent-shared/icons/service-summary-logo-top.png:
* components/services/nautilus-dependent-shared/icons/startup-logo.png:
* icons/Makefile.am:
* icons/eazel-logo.gif:
* icons/nautilus-logo.png:
Removed unused graphics with the Eazel logo in them. There are a
lot more unused graphics and someone should go through and remove
them. I'm thinking of writing a script to do it.
Other changes.
* components/services/install/nautilus-view/.cvsignore:
* components/services/vault/.cvsignore:
* components/services/vault/command-line/.cvsignore:
* data/top/.cvsignore:
Re-removed .cvsignore files for empty directories.
* THANKS: Corrected one email address.
* check-THANKS.pl: Updated for the latest ChangeLog typos.
<eli@eazel.com>
* THANKS: Gave credit where it's due. Added a section for testers.
* check-THANKS.pl: Don't fail if the about box file is not present
so this script can be used on modules other than Nautilus; also,
added some address aliases.
* AUTHORS:
* THANKS:
* src/nautilus-window-menus.c: (help_menu_about_nautilus_callback):
Updated based on recent check-ins and other contributions.
* check-THANKS.pl: Updated to check the about list against the
AUTHORS file and to fix some other things.
* libnautilus/nautilus-view-component.idl: Fix a comment and
remove a stray empty line.
Fixed bug 2233 (proper icon not selected switching views after
rename) by re-sending selection when the selection items change
since they might have changed names.
* src/file-manager/fm-directory-view.c: (done_loading): Moved
more of the done_loading code here for clarity.
(compare_pointers), (sort_and_check_for_intersection): Added
functions that quickly find if there's an intersection in two
GLists of NautilusFile objects.
(display_pending_files): Move some of the done_loading code into a
new function, do it after processing file changes, and add code to
send out the selection if a file change comes in for any items in
the selection (in case the name changed).
(display_selection_info_idle_callback),
(update_menus_idle_callback), (display_pending_idle_callback):
Make all of these more robust by keeping the NautilusView object
in a local variable.
(display_pending_timeout_callback): Do the "ref the NautilusView"
thing in this function too.
* check-POTFILES.pl: Added support for .xml and .cpp files and
also updated special cases for directory environment variables.
* check-THANKS.pl: Added a special case and fixed some things in
the ChangeLog too to make this output fewer false positives.
* src/file-manager/fm-directory-view.c:
(display_selection_info_idle_callback),
(update_menus_idle_callback), (display_pending_idle_callback): Add
code to ref the BonoboControl around all three of these idle
functions to eliminate the problem where the directory view would
get destroyed in the middle of an idle.
* data/browser.xml:
* data/linksets/apps.xml:
* data/linksets/desktop.xml:
* data/linksets/portals.xml:
* data/linksets/search_engines.xml:
* data/static_bookmarks.xml:
Used "_" prefix on all localizable fields of XML files.
* po/POTFILES.in: Add all these XML files that need translation.
* libnautilus-extensions/nautilus-link-set.c:
(nautilus_link_set_install), (nautilus_link_set_is_installed),
(nautilus_link_set_remove): Fix storage leaks, also use
nautilus_xml_get_property_translated to get the property for the
"name" property so it can be translated if desired.
* libnautilus-extensions/nautilus-xml-extensions.h:
* libnautilus-extensions/nautilus-xml-extensions.c:
(nautilus_xml_get_property_translated): Add a version of
xmlGetProp that looks for an untranslated version of the property
and runs it through gettext if there is not a pre-translated
version present. For strings downloaded from the service, for
example, we'll probably use a pre-translated string, but for
things in the Nautilus source tree we can use an untranslated
string.
* src/nautilus-bookmark-parsing.c:
(nautilus_bookmark_new_from_node): Use
nautilus_xml_get_property_translated to get the bookmark name so
that static bookmarks can have names translated with gettext. New
versions of the static bookmarks downloaded from the service can
use either kind of name. And user-created bookmarks are not run
through the gettext mechanism.
* src/nautilus-window-menus.c: (create_menu_item_from_node): Use
nautilus_xml_get_property_translated to get the folder names
translated just as the bookmarks themselves.
* src/nautilus-link-set-window.c: (get_link_set_names): Added a
FIXME. The link set names should come from inside the XML, not
from the file names.
* src/nautilus-property-browser.c: (get_xml_path),
(read_browser_xml), (write_browser_xml), (get_color_category):
(remove_color), (add_color_to_file): Factor out some shared code.
(add_reset_property): Make hard-wired font size with FIXME.
(make_properties_from_xml_node): Fix storage leaks and get the
name of the color using nautilus_xml_get_property_translated so
the names can be translated.
(set_up_category_width): Fix storage leaks
(nautilus_property_browser_update_contents): Fix storage leaks and
get the display name and description with
nautilus_xml_get_property_translated so they can be translated.
* check-THANKS.pl: Got rid of extra blank line at end.
* libnautilus-extensions/nautilus-customization-data.c:
(format_name_for_display): Add FIXME to bad-for-localization
function that turns "_" into " " and capitalizes the first letter
after each " ".
* check-THANKS.pl,
components/adapter/nautilus-adapter-progressive-load-strategy.c,
components/adapter/nautilus-adapter-stream-load-strategy.c,
src/nautilus-view-frame.c: Filed bugs for some FIXMEs
couldn't compile, and check-THANKS.pl failed.
* libnautilus-extensions/nautilus-string.c:
(nautilus_istr_compare): Change back nautilus_istr_compare to its
old meaning.
* libnautilus-extensions/nautilus-glib-extensions.c:
(compare_strings_case_breaks_ties),
(nautilus_g_str_list_sort_case_insensitive): Make the case
insensitive sort use nautilus_strcmp_case_breaks_ties.
* components/services/install/lib/eazel-install-protocols.c:
(eazel_install_fetch_package_by_id):
* components/services/install/lib/eazel-install-query.c:
(eazel_install_simple_query):
* components/services/install/lib/eazel-install-rpm-glue.c:
(install_new_packages), (eazel_install_prepare_package_system),
(eazel_install_free_package_system),
(eazel_install_add_to_rpm_set), (eazel_install_fetch_dependencies):
* components/services/install/lib/eazel-install-rpm-signature.c:
(trilobite_check_rpm_signature):
* components/services/install/lib/eazel-install-types.c:
(packagedata_status_str_to_enum),
(packagedata_modstatus_enum_to_str),
(packagedata_modstatus_str_to_enum):
* components/services/install/lib/eazel-install-xml-package-list.c:
(generate_xml_package_list):
Fixed a bunch of uninitialized variable warnings. At least one was
probably a real bug, so Eskil needs to review these changes.
* components/rpmview/nautilus-rpm-view.c:
(nautilus_rpm_view_update_from_uri): This didn't compile with the
Red Hat 6.1 version of the rpm library. So I fixed it. I hope I
did it right. Eskil needs to review this change.
* THANKS: Victor's name needed another space between it and the
email address.
* check-THANKS.pl: Missing comma, also the misspelling of Josh's
email address was not mapped to his new email address.
* components/adapter/nautilus-adapter-file-load-strategy.c:
(nautilus_adapter_file_load_strategy_new),
(nautilus_adapter_file_load_strategy_load_location):
* components/adapter/nautilus-adapter-file-load-strategy.h:
* components/adapter/nautilus-adapter-load-strategy.c:
(nautilus_adapter_load_strategy_initialize_class),
(nautilus_adapter_load_strategy_get),
(nautilus_adapter_load_strategy_stop_loading),
(nautilus_adapter_load_strategy_report_load_underway),
(nautilus_adapter_load_strategy_report_load_progress),
(nautilus_adapter_load_strategy_report_load_complete),
(nautilus_adapter_load_strategy_report_load_failed):
* components/adapter/nautilus-adapter-load-strategy.h:
* components/adapter/nautilus-adapter-progressive-load-strategy.c:
(nautilus_adapter_progressive_load_strategy_destroy),
(nautilus_adapter_progressive_load_strategy_new), (stop_loading),
(nautilus_adapter_progressive_load_strategy_load_location),
(nautilus_adapter_progressive_load_strategy_stop_loading):
* components/adapter/nautilus-adapter-progressive-load-strategy.h:
* components/adapter/nautilus-adapter-stream-load-strategy.c:
(nautilus_adapter_stream_load_strategy_new),
(nautilus_adapter_stream_load_strategy_load_location):
* components/adapter/nautilus-adapter-stream-load-strategy.h:
* components/adapter/nautilus-adapter.c:
(nautilus_adapter_destroy), (nautilus_adapter_new),
(nautilus_adapter_load_underway_callback),
(nautilus_adapter_load_progress_callback),
(nautilus_adapter_load_complete_callback),
(nautilus_adapter_load_failed_callback): Changed the load
strategies to no longer depend on the view; instead, they emit
appropriate signals at different stages of progress, which the
NautilusAdapter object hooks into (connecting with
_connect_object_while_alive). Also, the progressive load strategy
now checks for cancellation around various CORBA calls, so it
should actually respect the stop button.
* AUTHORS, THANKS, check-THANKS.pl: Updated Josh Barrow's email
address.
* check-THANKS.pl: New script to make sure we're giving credit
appropriately - should be run before releases to make sure.
* THANKS: Removed those who have been promoted to AUTHORS.
* ChangeLog-20000625, ChangeLog-20000831: Made a few minor edits
to avoid confusing check-THANKS.pl