* src/file-manager/nautilus-icon-view-ui.xml: Added an F2 key
equivalent for the Rename command because: 1) we didn't have a key
equivalent here before, 2) F2 is what you use to do this on
Windows, and 3) Miguel asked me to.
* src/file-manager/fm-directory-view.c:
(open_scripts_folder_callback), (disconnect_script_handlers):
Made the dialog explaining how scripts work always show up when
you choose "Open Scripts Folder", not just the first time.
Fixed bug 8200 (News Sidebar panel crash on startup):
* components/news/nautilus-news.c: (draw_rss_items): Use
eel_strlen so it works with NULL titles.
* configure.in:
* nautilus.spec.in:
Removed dependency on ghttp. Trilobite needs it, but not Nautilus.
* libnautilus-extensions/nautilus-icon-factory.c:
(load_icon_given_two_names), (is_generic_icon_name),
(load_specific_icon): Made the two generic icons lose out if
there's a MIME type icon. We can't always prefer the MIME type
icon, since that would break things like the "thumbnail in
progress" icon.
were icon names rather than complete URIs.
* libnautilus-extensions/nautilus-icon-factory.c:
(remove_icon_name_suffix): Separate out this function.
(get_mime_type_icon_without_suffix): Use the new
remove_icon_name_suffix function.
(nautilus_icon_factory_get_icon_for_file): When getting a custom
icon name from a file, call remove_icon_name_suffix.
* src/file-manager/fm-desktop-icon-view.c: (create_mount_link),
(fm_desktop_icon_view_trash_state_changed_callback),
(icon_view_handle_uri_list), (update_home_link_and_delete_copies),
(update_trash_link_and_delete_copies): Leave the ".png" suffixes
out of the icon names. They never did any good.
* components/help/help-method.c: (help_uri_to_string): Fix name of
info2html2 and disallow parameters that start with "-" (for a
slight bit less security vulnerability).
* autogen.sh:
Detect whether the invocation of configure failed and print a
message accordingly. We used to always assume that configure was
successful and print misleading "now type make to build $PROJECT"
messages.
* configure.in:
Simplify the freetype2 detection insanity by using autoconf macro
technology. The new test should work with both FreeType2 RPMS as
well as freetype built from source in any prefix.
* components/news/nautilus-news.c: (do_destroy),
(rss_read_done_callback), (nautilus_news_load_channel),
(check_for_updates):
fixed bug 8216, removing the news panel when loading channels hangs
Nautilus. Fixed by making sure we don't launch multiple I/O request
for a single channel. I suspect there are still some problems lurking,
but the reported bug is no longer reproducible.
* components/news/nautilus-news.c: (has_matching_uri),
(mark_new_items):
fixed problem where the new flag wasn't being maintained
properly after updating, since it was using a whole new item
list. Fixed by propogating the new flag from the corresponding
old item.
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.
* components/news/nautilus-news.c: (mark_new_items),
(empty_message_size_allocate):
fixed bug where it would inadvertently clear the new flag on items
after refetching.
fixed bug 8211, criticals when opening the news panel with no
selected sites by making sure not to set the wrap width to a
negative number.
* components/news/news_channels.xml:
added some new channels suggested by Joshua K.
* components/news/nautilus-news.c: Marked two strings for translation.
* icons/ardmore/.cvsignore, icons/arlo/.cvsignore,
icons/arlo/backgrounds/.cvsignore,
icons/arlo/sidebar_tab_pieces/.cvsignore, icons/villanova/.cvsignore:
New files, ignore Makefile.in and Makefile.
* components/news/nautilus-news.c:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
* src/nautilus-about.c:
* src/nautilus-sidebar-tabs.c:
More work on changing parameters for functions that accept and
return ArtIRect, EelArtIPoint, ArtDRect, EelDimensions to pass by
value instead of by pointer.
* components/mozilla/main.c: (main): Make warnings and criticals
stop in the debugger to make this beast easier to debug.
* components/mozilla/nautilus-mozilla-content-view.c:
Use Eel gtk boilerplate and method invocation macros.
2001-05-01 Dan Mueth <dan@eazel.com>
Updates to the header and first section of the User Manual.
* help/nautilus-user-manual/C/nautilus-user-manual.sgml:
* icons/crux_teal/backgrounds/Makefile.am:
* icons/crux_teal/sidebar_tab_pieces/Makefile.am:
* icons/crux_teal/throbber/Makefile.am:
Forgot to change arlo to crux_teal in these 3.
2001-04-30 Pavel Cisler <pavel@eazel.com>
reviewed by: Darin Adler <darin@eazel.com>
Fixed 4964 (Files dragged to Trash from floppy don't
appear in Trash Can)
Fixed 7406 (Trash doesn't work until first restart of Nautilus)
Fixed 7976 (some files that you can't leave in the Trash just
silently go away instead of showing the dialog as
they should)
New trash directories are created lazily, when someone tries to
delete an item on the respective disk for the first time. The
problem was that these new trash directories do not get integrated
into the unified trash directory. Added logic to do that.
* libnautilus-extensions/nautilus-file-operations.c:
(nautilus_file_operations_copy_move):
Before a move to trash operation is started check for any new
trash directories and integrate them if needed.
* libnautilus-extensions/nautilus-trash-directory.c:
(check_trash_created), (check_trash_directory_added_callback),
(volume_mounted_callback)
Add calls to allow adding a new physical trash directory to the
unified trash.
* libnautilus-extensions/nautilus-trash-directory.h:
* libnautilus-extensions/nautilus-trash-monitor.c:
(nautilus_trash_monitor_initialize_class),
(nautilus_trash_monitor_get),
* libnautilus-extensions/nautilus-trash-directory.c:
(nautilus_trash_directory_initialize),
(nautilus_trash_directory_finish_initializing):
Rearrange to allow initializing the nautilus trash directory and
nautilus trash monitor properly, dodging a cyclic dependency.
* libnautilus-extensions/nautilus-trash-monitor.c:
* libnautilus-extensions/nautilus-trash-monitor.h:
(nautilus_trash_monitor_get_trash_directories),
(add_one_trash_directory_if_needed),
(nautilus_trash_monitor_add_new_trash_directories):
Add a new signal to allow clients get notified when a new
trash directory might get added to the unified trash.
* components/news/nautilus-news.c: (draw_rss_items),
(nautilus_news_update_display),
(nautilus_news_motion_notify_event), (rss_read_done_callback),
(news_label_new), (make_add_widgets), (set_up_edit_widgets),
(set_up_configure_widgets):
fixed bug where things wouldn't prelight properly; fixed by not
hit-testing channels that aren't visible in motion_notify
made a bunch of layout changes at Arlo's request, including no
longer using aa text for widgets.
* components/news/changed_bullet.png:
* components/news/nautilus-news-pixmaps.h:
* components/news/news_bullet.png:
new images from Arlo
* libnautilus-extensions/nautilus-program-choosing.c:
(get_xalf_prefix): Don't use xalf unless a NAUTILUS_USE_XALF
environment variable is defined.
* NEWS: Updated with the features added since last time I edited
the NEWS file. Since we are mostly doing bug fixes, there aren't
too many.
Updated for eel changes needed to fix bug 8198 ("New Terminal"
does not use GNOME default applications):
* libnautilus-extensions/nautilus-link.c:
(nautilus_link_local_create_from_gnome_entry): Use the new
eel_gnome_make_terminal_command instead of the obsolete
eel_gnome_get_terminal_path.
* libnautilus-extensions/nautilus-program-choosing.c:
(nautilus_launch_application_from_command): Let eel do the /bin/sh
-c trick. Get rid of it from here.
* components/news/nautilus-news.c: (extract_items),
(has_matching_uri), (rss_read_error), (extract_rss_title),
(extract_scripting_news_title), (extract_rss_image),
(extract_scripting_news_image), (rss_read_done_callback):
added support for "Scripting News" style rss files, which
are quite a bit different from standard ones. Also, restructured
the rss_read_done routine by breaking it into smaller routines,
plus other small cleanups.
* components/news/news_channels.xml:
added a few more channels
* components/news/nautilus-news.c:
* libnautilus-extensions/nautilus-icon-canvas-item.c:
* libnautilus-extensions/nautilus-icon-canvas-item.h:
* libnautilus-extensions/nautilus-icon-container.c:
* libnautilus-extensions/nautilus-icon-dnd.c:
* libnautilus-extensions/nautilus-icon-factory.c:
* src/file-manager/fm-list-view.c:
* src/nautilus-about.c:
* test/test.c:
Change parameters for functions that accept and return ArtIRect,
EelArtIPoint, ArtDRect, EelDimensions to pass by value instead of
by pointer.
* libnautilus-extensions/nautilus-global-preferences.h:
Add preferences for default manual layout support.
* libnautilus-extensions/nautilus-global-preferences.c:
(default_icon_view_sort_order_or_manual_layout_changed_callback),
(nautilus_global_preferences_initialize):
Use different enumerations for icon view and list view default
sort order since only icon view supports manual layout. Add
entries for default manual layout preference. Add proxy
preference for both icon view sort order and manual layout so that
it can be presented to the user as one choice and thus just one
menu. This also matches the view menu.
* libnautilus-extensions/nautilus-preferences-item.c:
(preferences_item_create_enumeration_list),
(preferences_item_create_enumeration_menu):
Add support for separators in string pickers.
* src/file-manager/fm-icon-view.c:
(get_default_directory_manual_layout),
(fm_icon_view_real_get_directory_auto_layout),
(fm_icon_view_real_set_directory_auto_layout),
(fm_icon_view_reset_to_defaults),
(default_use_manual_layout_changed_callback),
(fm_icon_view_initialize):
Add support for a default "use manual layout" preference.
* src/nautilus-preferences-dialog.c:
Make the default sort order preference use the proxy prefernece
instead of the real one.
* components/help/converters/gnome-info2html2/main.c: (main):
Remove the cast, its not needed and it breaks the build. You
probably need a newer popt if your build breaks without the cast.
2001-04-28 Dan Mueth <dan@eazel.com>
Small updates to a couple docs.
* help/nautilus-screenshot-guidelines/C/nautilus-screenshot-guideli
nes.sgml:
* help/nautilus-user-manual/C/nautilus-user-manual.sgml:
* components/news/nautilus-news.c: (nautilus_news_load_channel),
(update_remove_button), (add_site_from_fields),
(remove_selected_site), (make_news_view):
fixed bug 8192, remove button left enabled when all sites are
removed, by making the button insensitive when necessary. Also,
display the site name instead of the url when loading, since it's
much more understandable.
Update FAM support so it works fine on systems with and without
libfam installed. So if you build Nautilus with FAM, then you can
run it on a system with or without FAM.
* configure.in:
* libnautilus-extensions/Makefile.am:
Remove the FAM_LIBS part.
* libnautilus-extensions/nautilus-monitor.c: (get_fam_connection):
Load the module before the FAMOpen2 call, and get all the function
pointers.
(get_event_uri), (process_fam_notifications),
(nautilus_monitor_file), (nautilus_monitor_directory),
(nautilus_monitor_cancel): Use the new CALL_FAM macro so we can
use the function pointers when we call FAM.
* components/news/nautilus-news.c: (go_to_uri):
fixed bug 8186, clicking on a title while it's loading crashes
the news panel; fixed by checking for NULL.
* components/news/news_channels.xml:
removed the Dan Gillmor channel since it just moved and I can't
find where the rss file is on the new site.
2001-04-27 John Harper <jsh@eazel.com>
reviewed by: Darin Adler <darin@eazel.com>
Fixed bug 7732 (opening window from prompt spawns endless
process cycle):
* src/nautilus-application.c (desktop_changed_callback): call
update_session () directly
(update_session): don't check the SHOW_DESKTOP preference to
see if we should add ourselves to the session, check that the
current process has actually _created_ a desktop window
(init_session): don't register a listener for the SHOW_DESKTOP
preference since it's called by desktop_changed_callback ()
* libnautilus-extensions/nautilus-preferences.c:
(nautilus_self_check_preferences):
Disabled preferences self checks until I can debug why these
seemingly harmless tests dont work.
* components/help/hyperbola-main.c: (main):
Fix bug 8172 - Nautilus spews GConf error upon repeated clicking
of "help"
Intiialize preferences before creating the factory in case code in
the factory needs to use prefernces.
* src/nautilus-application.c: (nautilus_application_startup):
Dont do the GMC migration if we are about to kill the nautilus
shell. Fixes criticals when 'nautilus --quit' is used.
* components/news/Makefile.am:
* components/news/changed_bullet.png:
added a placed holder "new article" bullet; hopefully, Arlo will
provide us with a real one soon.
* components/news/nautilus-news.c: (do_destroy), (draw_rss_items),
(toggle_open_state), (nautilus_news_make_new_channel),
(check_for_updates), (nautilus_news_load_images),
(update_interval_changed), (make_news_view):
made it use the changed bullet when appropriate; also, completed
the preferences work by making it watch the update interval preference.
* libnautilus-extensions/nautilus-thumbnails-jpeg.c:
(fatal_error_handler), (output_message_handler),
(nautilus_thumbnail_load_scaled_jpeg): Added error handling
based on Alex Larsson's revised patch. Needs more testing.
partition gives "You can't copy a file over itself" error).
* libnautilus-extensions/nautilus-file-operations.c:
(nautilus_file_operations_copy_move): There was a bug in the call
to check_same_fs in here (it was passing in the target URI, which
is often a file that doesn't even exist), so I removed that check.
Did some other cleanups too.