* libnautilus-private/nautilus-thumbnails.c (obfuscate_password):
New function to look for a password in una uri and change it
for 6 asterisks.
(make_thumbnail_uri): Call obfuscate_passwd before generating the
final uri.
This prevents the password to be saved in cleartext in
~/.nautilus/thumbnails if the user accesses some remote server.
* configure.in:
Patch from David Sainty <dsainty@redhat.com>.
Tidy up the mozilla-component option. Now both
--enable-mozilla-component and --disable-mozilla component do as
they should.
* nautilus.spec.in:
Put the idl files in the main package, not the devel package
because the perl corba bindings can use the .idl files at run
time. Thanks to jacob berkman <jacob@ximian.com> for pointing
this out.
2001-06-11 John Fleck <jfleck@inkstain.net>
* components/help/converters/gnome/db2html3/
docbook/Makefile.am to include file VERSION in DocBook
stylesheet
2001-06-11 John Fleck <jfleck@inkstain.net>
* components/help/converters/gnome-db2html3/gnome-customization
gnome-customization.xsl
updating path to including docbook stylesheets
* configure.in: Updated version to 1.0.3.2 for the 1.0.4
candidate build.
* icons/gnome/Makefile.am: Added missing backslash character.
Without it, many icons didn't get installed.
* src/nautilus-application.c: (need_to_show_first_time_druid):
Fix some code that was building a URL by sticking a file://
onto the front of a file name. I just changed it to use the
path directly and do a plain unlink instead of gnome_vfs_unlink.
* src/nautilus-profiler.c:
(nautilus_profiler_bonobo_ui_report_callback):
Use gnome_vfs_get_uri_from_local_path instead of just sticking
a file:// on the front of a path name.
2001-06-10 John Fleck <jfleck@inkstain.net>
* components/help/converters/gnome-db2html3/Makefile.am:
fix segfault caused by the fact that we were linking to both
libxml1 and 2
2001-06-08 Dan Mueth <dan@eazel.com>
Updating Release Notes to contain new Mozilla version
compatibility information based on Ramiro's updates to the README.
* help/nautilus-release-notes/C/nautilus-release-notes.sgml:
added reference to "i-regular.xml" in the gnome theme make file,
to make embedded text work in the new gnome theme.
Also, fixed bug where the names of the rightmost tabs cound get cut
off by tweaking the layout code.
2001-06-08 Dan Mueth <d-mueth@uchicago.edu>
Updating Nautilus Release Notes for 1.0.4. Note that we
probably still need to modify the Mozilla compatibility
section.
* help/nautilus-release-notes/C/nautilus-release-notes.sgml:
* components/music/nautilus-music-view.c: (play_current_file):
* libnautilus-private/nautilus-icon-factory.c: (get_cache_time):
* src/nautilus-window-menus.c: (get_static_bookmarks_file_path):
Oops, a few of my changes were still in the editor. More places
where we should follow links.
pointed out that the icon factory wasn't following links.
I found similar problems elsewhere.
* components/music/nautilus-music-view.c:
(nautilus_music_view_update):
* libnautilus-private/nautilus-customization-data.c:
(nautilus_customization_data_new),
(nautilus_customization_data_get_next_element_for_display):
* libnautilus-private/nautilus-icon-factory.c:
(path_represents_svg_image):
* libnautilus-private/nautilus-metafile.c:
(metafile_read_check_for_directory):
* libnautilus-private/nautilus-thumbnails.c:
(first_file_more_recent):
* src/nautilus-link-set-window.c: (get_link_set_names),
(nautilus_link_set_configure_window):
* src/nautilus-property-browser.c: (ensure_uri_is_image):
Updated all places where we were using the gnome-vfs file info
calls and not following links.
* src/nautilus-window-manage-views.c: (update_for_new_location),
(handle_view_failure), (nautilus_window_set_sidebar_panels):
Check the sidebar for NULL in a few more places.
* libnautilus-private/nautilus-volume-monitor.c:
(modify_volume_name_for_display),
(nautilus_volume_monitor_get_target_uri),
(mount_volume_make_cdrom_name), (make_volume_name_from_path),
(mount_volume_make_name), (mount_volume_activate),
(mount_volume_deactivate), (get_current_mount_list),
(update_modifed_volume_name), (verify_current_mount_state),
(nautilus_volume_monitor_set_volume_name),
(get_iso9660_volume_name), (load_additional_mount_list_info):
Change volume name logic to be simpler. Also fixed some assert
problems with the last check-in.
and added XFS support so that trash will work on XFS volumes.
* libnautilus-private/nautilus-volume-monitor.h:
* libnautilus-private/nautilus-volume-monitor.c:
(nautilus_volume_monitor_should_integrate_trash),
(make_volume_name_from_path), (mount_volume_get_name),
(do_volume_activate), (mount_volume_activate),
(verify_current_mount_state), (mount_volume_ext2_add),
(mount_volume_udf_add), (mount_volume_vfat_add),
(mount_volume_msdos_add), (mount_volume_affs_add),
(mount_volume_auto_add), (mount_volume_fat_add),
(mount_volume_hpfs_add), (mount_volume_hsfs_add),
(mount_volume_minix_add), (mount_volume_proc_add),
(mount_volume_reiserfs_add), (mount_volume_ufs_add),
(mount_volume_smb_add), (mount_volume_unsdos_add),
(mount_volume_xenix_add), (mount_volume_xfs_add),
(mount_volume_xiafs_add), (copy_volume),
(load_additional_mount_list_info),
(mount_volume_prepend_filesystem):
Added an XFS case and crunched code a bit.
Rolled in patch by Johan Dahlin <zilch.am@home.se> to install the
public IDL files in $(datadir)/idl so that non-C programmers can
use them.
* libnautilus/Makefile.am: Install the IDL files.
Also added them to the .spec file.
* nautilus.spec.in: Install the IDL files as part of nautilus-devel.
make the file dialog show up in the right position instead of
showing up in one place and then moving right away.
* libnautilus-private/nautilus-file-operations.c:
(create_transfer_dialog): Move gtk_show_widget until after the
center_dialog_over_window call.
* libnautilus-private/nautilus-mime-actions.c:
(build_joined_string): Correct variable so we build the string
from all the elements in the list, not just the first element
repeated over and over again.
(nautilus_mime_get_short_list_components_for_file): Remove stray
single-quote character so we build a legal query. The queries were
all failing due to this typo.
* src/nautilus-window.c: Spacing tweak.
* NEWS: Remove lack-of-tinderbox lament.
problems typing characters with values > 127 on some systems.
* libnautilus-private/nautilus-icon-container.c: (match_best_name):
Cast the result of tolower to a (char) before comparing it with
another char.
faster by sending fewer "selection_changed" signals. This may fix
bug 5010.
* libnautilus-private/nautilus-entry.c: (nautilus_entry_key_press),
(nautilus_entry_motion_notify): Only send the "selection_changed"
signal when a selection was there to change.
* src/nautilus-window-manage-views.c: (update_title): Missed a
place that required a non-NULL sidebar. Thanks to Miguel
Rodriguez Perez <migras@atlas.uvigo.es> for pointing it out.
not sorted. This could result in the wrong default component being
selected, and may be the problem that caused some users to get the
text component instead of the Mozilla web page component.
* libnautilus-private/nautilus-mime-actions.c:
(nautilus_mime_get_default_component_for_file_internal): Update
since nautilus_do_component_query no longer takes an &ev.
(nautilus_mime_get_short_list_applications_for_file): Remove
unused ev variable. Fix problem where the user's added items would
be added in reverse order.
(build_joined_string): New helper function.
(nautilus_mime_get_short_list_components_for_file): Update since
nautilus_do_component_query no longer takes an &ev. Pass in a
sorting order to the query so we don't lose the order of the short
list.
(nautilus_mime_actions_file_needs_full_file_attributes): Update
since nautilus_do_component_query no longer takes an &ev.
(nautilus_mime_get_all_components_for_file): Update since
nautilus_do_component_query no longer takes an &ev.
(mime_get_all_components_for_uri_scheme): Update since
nautilus_do_component_query no longer takes an &ev.
(nautilus_do_component_query): Update to use its own &ev instead of
take one passed in. None of the callers were looking at the &ev.
* libnautilus-private/nautilus-directory-async.c: Bumped the
number of items per call back up. Now that we've done other bug
fixes, this makes things faster overall, not slower, although it
does make the time until the first icon shows up a bit longer.
* src/nautilus-sidebar-title.c: (nautilus_sidebar_title_set_file):
Don't monitor the directory item count. If the main view monitors
it we'll display it. If the main view doesn't, we'll show the old
"last known" value or nothing. It's better to do less I/O and
sometimes be wrong than do more I/O to always be right in this
case.
* src/nautilus-window.c: (add_sidebar_panel_callback),
(nautilus_window_initialize), (nautilus_window_constructed),
(nautilus_window_add_sidebar_panel),
(update_sidebar_panels_from_preferences),
(nautilus_window_hide_sidebar), (nautilus_window_show_sidebar),
(nautilus_window_sidebar_showing):
Simplify sidebar logic. Among other things, we no longer create an
invisible sidebar for the desktop.
* libnautilus-private/nautilus-icon-canvas-item.c:
(in_single_click_mode): Use "(void)", not "()".
* libnautilus-private/nautilus-icon-container.c:
(nautilus_icon_container_did_not_drag): Coding style tweak.
* libnautilus-private/nautilus-global-preferences.c: Added a
default for the ADD_TO_SESSION preference. This should fix the
problem where some people don't get any session
management. Miguel's patch removed the code to set this preference
in the first time druid so we need to default to TRUE.
* libnautilus-private/nautilus-file.c:
(nautilus_file_get_string_attribute_with_default): Used return
statements to simplify the logic a bit.
2001-05-22 John Harper <jsh@pixelslut.com>
Fallout from fixing bug 8220 (Having Ctrl as default "modifier
key used for default WM shortcuts" breaks everything...):
* libnautilus-private/nautilus-icon-container.c
(keyboard_space, keyboard_move_to): changed to use Control
modifier instead of Alt
* hack-macros/gnome.m4: Add BUILD_INCLUDED_LIBINTL for
compatibility with the new gettext.
Fixed a problem with the throbber detecting that its X window is
gone. Based on suggestions from Owen Taylor.
* libnautilus/nautilus-bonobo-workarounds.h:
* libnautilus/nautilus-bonobo-workarounds.c:
(destroy_later_callback), (destroyed_before_timeout_callback),
(nautilus_bonobo_object_force_destroy_later): Changed to "destroy
later" instead of "destroy at idle". This makes us less likely to
experience race conditions.
* src/nautilus-window.c: (nautilus_window_initialize_class),
(nautilus_window_unrealize), (nautilus_window_destroy): Moved the
throbber destruction to unrealize so we destroy the throbber
before we destroy its X window.
Starting with patch by Anders Carlsson <andersca@gnu.org>, added
both prelighting and tracking to the throbber, also making it take
action on release, not press.
* components/throbber/nautilus-throbber.c:
(nautilus_throbber_initialize_class): Add handlers for enter,
leave, and release.
(nautilus_throbber_initialize): Set flags so we get enter and
leave events.
(select_throbber_image): Ref the image that's returned.
(draw_throbber_image): Make the image be prelit if the mouse is
over the throbber but it wasn't clicked, and darkened if the mouse
is over the throbber and it was clicked.
(nautilus_throbber_enter_notify_event): Set flag and request
redraw to prelight.
(nautilus_throbber_leave_notify_event): Set flag and request
redraw to un-prelight.
(nautilus_throbber_button_press_event): Set flag to indicate we
hit the button in the throbber. Also, respond only to left clicks.
(nautilus_throbber_button_release_event): Look at flag set in
press event. Do the work here now instead of at press time since
we are more like a real button.
Rolled in change by Miguel Rodríguez Pérez <migrax@terra.es> to
fix volume mounting problems:
* configure.in: Check for hasmntopt.
* libnautilus-private/nautilus-volume-monitor.c:
(get_removable_volumes): Fix typo (HAVE_MNTTENT_H ->
HAVE_MNTENT_H).
Integrated patch by Miguel Rodríguez Pérez <migrax@terra.es> to
make Nautilus not try to preview MPEG lists:
* src/file-manager/fm-icon-view.c:
(icon_container_preview_callback): Made audio/x-mpegurl another
exception to the list of audio types we can preview.
Rolled in change by Dennis Smit <synap@area101.penguin.nl>:
* THANKS: added more translators that were missing from the
THANKS file (names from all the .po files in ./po).
Other updates to THANKS:
* THANKS: Added Jon K Hellan.
* check-THANKS.pl: Fixed logic so you can be credited as both an
author and translator.
Other changes:
* src/file-manager/fm-list-view.c: (get_default_zoom_level): Fix
typo (storaged -> storage).
* src/nautilus-shell-ui.xml:
* src/file-manager/nautilus-directory-view-ui.xml:
Fixed keybindings entries to use the correct tags as described by
ui-xml.txt.
made the news panel flash less by defering async updates with a timer
task, so ones that fire close together are coalesced.
* components/news/nautilus-news.c: (do_destroy),
(rss_logo_callback), (update_timeout_callback),
(queue_update_size_and_redraw), (rss_read_done_callback),
(make_remove_widgets), (make_news_view):
2001-05-18 Yoann Vandoorselaere <yoann@mandrakesoft.com>
Code reviewed by Darin Adler <darin@bentspoon.com>.
* src/file-manager/fm-directory-view.c (display_pending_idle_callback):
return TRUE if real_display_pending_files() return FALSE which mean
that there is other icon to be drawn (the idle won't be removed until
the idle callback return FALSE).
return FALSE if real_display_pending_files() return TRUE, which mean
all files were drawn.
2001-05-18 Jon K Hellan <hellan@acm.org>
Code reviewed by Darin Adler <darin@bentspoon.com>
* components/music/mpg123.h (struct id3v1tag_t): Fix track info.
(struct id3tag_t): Fix track info. Not tested for v2, but big
enough for what can be represented in v1.1.
* components/music/mpg123.c (mpg123_id3v1_to_id3v2): Fix track
info. Track in id3v1.1 is an 8 bit integer, not a string.
Track is still unimplemented for id3v2. I did not fix it, as I
don't have examples to test with.
2001-05-18 Yoann Vandoorselaere <yoann@mandrakesoft.com>
Code reviewed by Darin Adler <darin@bentspoon.com>,
also, thanks for the help solving this issue.
* src/file-manager/fm-directory-view.c (g_list_split_off_first_n):
moved from fm-list-view.c.
(real_display_pending_files): move the fm-list-view.c function to
display pending file, but remove the clist sorting code.
(FILES_TO_PROCESS_AT_ONCE): new constant, appear to be a better name
than LIST_VIEW_DISPLAY_PENDING_FILES_GROUP_SIZE.
* src/file-manager/fm-list-view.c (LIST_VIEW_DISPLAY_PENDING_FILES_GROUP_SIZE):
removed this constant.
(fm_list_view_display_pending_files): just sort the list by the clist criteria
then call the parent function to display_pending_file.
(g_list_split_off_first_n): removed.
This should fix the issue where UI response (icon drawing) would take
a long time because the directory loaded was cached by the kernel.
We now draw with a fixed maximum number of files at once.
The list view code was already doing that, so the code was just moved,
and adaptated for use in directory view, so list view has the same
behavior as before without any code being duplicated.
over a bug that was responsible for some big slowdowns.
* libnautilus-private/nautilus-directory-async.c:
(activation_uri_start): Fixed bug that was causing activation URI
reads to work strangely.
* src/file-manager/nautilus-directory-view-ui.xml:
* src/file-manager/fm-directory-view.c: (delete_callback),
(bonobo_control_activate_callback), (fm_directory_view_destroy):
* src/nautilus-shell-ui.xml:
* src/nautilus-window.c: (nautilus_window_initialize_class),
(nautilus_window_realize):
Rip out keybinding hack and use Bonobo's (undocumented as far as I
can tell) keybinding machinery instead.
* libnautilus-private/nautilus-metafile.c: (schedule_next_read):
Use (void), not ().
* configure.in:
* nautilus.spec.in:
Don't require ammonite any more in the default Nautilus RPM. I
left the ability to compile ammonite support in for now. That can
be removed at any time, but it doesn't hurt anybody.
* libnautilus-private/nautilus-global-preferences.c: Change default
web search to use google instead of the defunct Eazel search page.
* configure.in: Up version to 1.0.3.1 so we don't confuse cvs
builds with the release.
* libnautilus-private/nautilus-file.c:
(nautilus_file_fit_date_as_string): Fix i18n problem by calling
_() on strings before using.
* src/file-manager/fm-directory-view.c: (key_press_event_callback),
(bonobo_control_activate_callback), (fm_directory_view_destroy):
* src/nautilus-window.c: (nautilus_window_key_press_event):
Change key press event callbacks to run only after the parent
class. This makes keys go to the focused text field first, so
hitting delete while editing a file name doesn't delete the file.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_destroy), (activate_callback),
(cancel_activate_callback), (fm_directory_view_activate_file),
Got rid of monitor_file_for_activation, another example of this
same loose end as last time.
* src/nautilus-window-manage-views.c:
(set_to_pending_location_and_selection): There was an overzealous
assert in here. Looked into why it fired, and fixed it up.
* src/nautilus-window-private.h:
* src/nautilus-window-manage-views.c: (free_location_change),
(begin_location_change):
Finished up a loose end from when I made the change to
determine_initial_view to not get full attributes. This leftover
code was causing an extra directory load.
* THANKS: Added Yoann.
* src/nautilus-sidebar.c: (notify_current_sidebar_view),
(nautilus_sidebar_activate_panel),
(nautilus_sidebar_deactivate_panel):
at Darin's urging, coalesced the open and closed properties into a
single one with a value.
* components/news/nautilus-news.c: (get_bonobo_properties),
(set_bonobo_properties), (nautilus_news_load_location):
made it maintain the closed state and made load_location only redraw
when opened.
2001-05-13 Yoann Vandoorselaere <yoann@mandrakesoft.com>
* libnautilus-private/nautilus-directory-async.c (DIRECTORY_LOAD_ITEMS_PER_CALLBACK):
Change from 32 item by callback to 10.
This is much better for UI response time and will prevent having
too much latency time when loading the directory.
* src/file-manager/fm-directory-view.c (DISPLAY_TIMEOUT_INTERVAL_MSECS):
Change from 700 ms to 100 ms, this is much better for the user
as he won't see any latency time before drawing start.
Theses are the better experienced setting for now.
<yoann@mandrakesoft.com>. Yoann found that double-clicking on on a
directory would wait for all the files to be read in before
displaying anything, while typing the path in the location bar
would should proper progressive loading. This checkin solves that
problem.
* src/file-manager/fm-directory-view.c:
(fm_directory_view_activate_file): Only call_when_ready on the
minimum attributes, not full. All the checks in activate_callback
only depend on the minimum attributes, and do not need the extra
directory item mime types attribute.
code to load a directory was accidentally waiting for all the
files to be read in before displaying anything. This fixes the two
problems that caused that, but there are remaining loose ends
(it's not entirely clear why View As Music is still showing
properly in the View menu).
* libnautilus-private/nautilus-directory-private.h:
* libnautilus-private/nautilus-directory-async.c:
(nautilus_directory_call_when_ready_internal): Take a parameter to
say whether to wait for all the files in the file list, instead of
deducing it from other parameters.
* libnautilus-private/nautilus-directory.h:
* libnautilus-private/nautilus-directory.c:
(nautilus_directory_call_when_ready): Take a parameter to say
whether to wait for all the files in the file list, instead of
deducing it from other parameters.
(nautilus_self_check_directory): Pass TRUE so we wait for the file
list.
* libnautilus-private/nautilus-merged-directory.c:
(merged_call_when_ready): Pass through the new boolean.
* libnautilus-private/nautilus-trash-file.c:
(real_call_when_ready): Pass FALSE since there is no file list for
a single file.
* libnautilus-private/nautilus-vfs-directory.c:
(vfs_call_when_ready): Pass through the new boolean.
* libnautilus-private/nautilus-vfs-file.c:
(vfs_file_call_when_ready): Pass FALSE since there is no file list
for a single file.
* src/nautilus-applicable-views.c:
(nautilus_determine_initial_view),
(nautilus_determine_initial_view_cancel): Removed the code to get
full file attributes after getting the minimum required if
nautilus_mime_actions_file_needs_full_file_attributes return
TRUE. We want to make the choice fast, and it's OK if we choose
poorly as a result. The question is whether this will cause any
real end-user problems.
* src/file-manager/fm-directory-view.c:
(call_when_ready_on_scripts_directory): Pass TRUE so we read the
entire scripts directory.
(load_directory): Pass FALSE so we don't wait for all the files to
be loaded before starting to display them. This is the core of the
fix.
* components/tree/nautilus-tree-change-queue.c:
(nautilus_tree_change_queue_enqueue): A place where we can use
g_slist_prepend instead of g_slist_append.
* src/nautilus-complex-search-bar.c:
(nautilus_complex_search_bar_initialize): A place where we can use
g_slist_prepend instead of g_slist_append.
preference, so if you change "Make Folder Appearance Details
Public" to Never (in Speed Tradeoffs at Advanced user level),
thumbnails will always be created in ~/.nautilus/thumbnails,
instead of in a .thumbnails subdirectory in each directory.
Thanks to Michael Rothwell <rothwell@holly-springs.nc.us> for
the idea and a first pass at the code.
* libnautilus-private/nautilus-thumbnails.h:
* libnautilus-private/nautilus-thumbnails.c:
(uri_is_local):
New convenience function, calls gnome_vfs_uri_is_local
(prefer_global_thumbnails_location): New function that
checks preference value.
(make_thumbnail_uri): Call preference-checking function.
(first_file_more_recent),
(nautilus_thumbnail_has_invalid_thumbnail),
(nautilus_get_thumbnail_uri),
(nautilus_update_thumbnail_file_renamed_one),
(nautilus_update_thumbnail_file_renamed),
(nautilus_remove_thumbnail_for_file_one),
(nautilus_remove_thumbnail_for_file): Use uri_is_local () to
reduce duplicated code; change some parameter names for clarity.
MOZILLA_FIVE_HOME-setting code from the main Nautilus program
(where it does no good) to the Mozilla component (which is a nicer
place for it anyway).
While integrating the patch I made some other small cleanups to
the Mozilla component and the patch itself. I removed the code to
set up LD_LIBRARY_PATH, since it's not needed, and changed the name
of some things and simplified others.
* components/mozilla/Makefile.am: Define PREFIX.
* components/mozilla/main.c: (is_good_mozilla_path),
(get_mozilla_path), (set_up_MOZILLA_FIVE_HOME), (main): Add the
new code to set up MOZILLA_FIVE_HOME.
* src/nautilus-application.c: (finish_startup): Remove the code
from the old place.
* check-THANKS.pl: Updated.
* libnautilus-private/nautilus-metafile-factory.c:
* libnautilus-private/nautilus-vfs-directory.c:
* libnautilus-private/nautilus-vfs-file.c:
Added dummy members so we have no illegal empty structures.
* src/nautilus-sidebar-title.c: (update_emblems): Get rid of some
dead code.
<yoann@mandrakesoft.com> to not re-open /proc/mounts each time,
but to simply rewind it instead. The patch had a lot of problems
on Solaris and when HAVE_CDDA is true, but I reworked it so it
should be OK.
* libnautilus-private/nautilus-volume-monitor.c: (get_mount_list),
(get_current_mount_list): Use rewind.
FreeBSD.
* libnautilus-private/nautilus-volume-monitor.c:
(has_removable_mntent_options), (get_removable_volumes),
(volume_is_removable), (volume_is_read_only),
(nautilus_volume_monitor_mount_unmount_removable),
(nautilus_volume_monitor_get_mount_name_for_display): Added more
ifdefs all over the place. This could be done more elegantly some
day.
to fix a problem where we would try to get metadata for all files
in the home directory if it was set to be used as the desktop
directory.
* libnautilus-private/nautilus-file-utilities.h:
* libnautilus-private/nautilus-file-utilities.c:
(nautilus_get_desktop_directory): Changed this to not bother with
the call to create the directory when the home directory is used
as the desktop.
(nautilus_get_gmc_desktop_directory): New function.
* libnautilus-private/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_for_file): Use
nautilus_get_gmc_desktop_directory for the check when deciding to
look for old-fashioned gmc metadata.
* components/mozilla/Makefile.am:
* configure.in:
* README:
Remove some Mozilla Milestone cruft. Make the Mozilla component
build with the newly released Mozilla 0.9. Update the README with
the latest Mozilla 0.9 support.
Fixed bug 8122 (Folders opened from the desktop should not
reuse frontmost window). The previous behavior was intended to
match the behavior of web browsers, but user feedback made it
clear that it was confusing and annoying people too much.
* src/nautilus-window-manage-views.c:
(get_topmost_nautilus_window_in_current_workspace_and_area):
Removed this no-longer-needed function.
(open_location): Always create a new window in the desktop case.
Fix bug 8251 (Mozilla component crashes every time I try to view a
web page) by putting the same logic for locating Mozilla that is
used by galeon into Nautilus.
* src/nautilus-application.c: (is_mozilla_path_good),
(get_mozilla_path), (find_mozilla): Code to find Mozilla and set
up some environment variables that matches the code in galeon's
startup script.
(finish_startup): New function for initialization code that should
be done only in the main Nautilus, not in clients that are going
to contact the main Nautilus. More initialization should be moved
in here over time. Calls find_mozilla among other things.
(nautilus_application_startup): Moved the sound initialization and
the code to migrate desktop directory contents inside the new
initialization function.
* src/nautilus-first-time-druid.c: (make_title_page_icon_box):
changed "arlo/i-directory-aa.png" to "crux_eggplant/i-directory-aa.png"
as the arlo directory has become depreciated.
Fri May 4 19:12:55 2001 Jonathan Blandford <jrb@webwynk.net>
* src/file-manager/fm-icon-view.c
(icon_container_preview_callback): Possibly play the file if it's
an ogg.
* src/file-manager/fm-icon-view.c (play_file): Check for ogg
file.
* libnautilus-private/nautilus-mime-actions.c:
(is_known_mime_type): Fix mistake where we put quotes
around GNOME_VFS_MIME_TYPE_UNKNOWN. Use g_strcasecmp.
(nautilus_mime_get_default_action_type_for_file),
(application_supports_uri_scheme): Use g_strcasecmp.
* components/news/nautilus-news.c: (ellipsize_string),
(extract_items):
made the news panel ellipsize long items. I hope this can make it into
1.0.3, but it's not worth making new rpms unless we have other
reasons to do so.
* cut-n-paste-code/freetype/.cvsignore: Removing this file so that
this empty directory will become completely empty.
* cut-n-paste-code/.cvsignore: Tweak.
* cut-n-paste-code/widgets/.cvsignore: Tweak.
* libnautilus-extensions/nautilus-icon-factory.c:
(nautilus_icon_factory_get_icon_for_file): Fix Nautilus Link
support so it works for links that have paths instead of URIs in
their custom icon field.
Fixed bug 8239 ("Zoom In" keyboard shortcut (Control-=) is
untypable on many non-US keyboards)
* src/nautilus-shell-ui.xml: Changed Zoom In shortcut to Control-+,
so the more-mnemonic + appears in the menu.
* src/nautilus-window.c: (nautilus_window_initialize_class),
(nautilus_window_key_press_event):
Make Control-+ and Control-= both activate Zoom In.
More tweaking on keyboard shortcuts for deleting and trashing.
* src/file-manager/fm-directory-view.c:
(ALL_NON_LOCK_MODIFIER_KEYS): Don't include MOD2, because it is
"num lock". Don't include MOD3-5 because I don't know for sure if
they are lock modifiers or not.
(trash_or_delete_selected_files), (trash_callback): Separated out
the Move To Trash command into a non-callback function.
(delete_selected_files), (delete_callback): Separated out the
Delete command into a non-callback function.
(key_press_event_callback): Shift-Delete now means "Delete" if that
command is turned on. Control-Backspace now means "Move To Trash".
Fixed bug 8232 (Trash.gmc and home directory link files made by
gmc show on Desktop):
* libnautilus-extensions/nautilus-file.c:
(nautilus_file_should_show): Moved special case for gmc files in
here.
(filter_hidden_and_backup_partition_callback): Removed special
case for gmc files, since it's now in the lower level. Also fixed
code that was casting a pointer to an int without using
GPOINTER_TO_INT.
* src/nautilus-application.c: Fix typo.
Fixed bug 8230 (launchers dragged from panel don't get icons as
they did in Ximian's Nautilus 1.0.2):
* libnautilus-extensions/nautilus-link.c:
(nautilus_link_local_create_from_gnome_entry): Changed to use
eel_make_uri_from_half_baked_uri so we can handle the kind of
"URI"s that are in most .desktop files. Also did a lot of code
cleanup.
* src/file-manager/fm-desktop-icon-view.c:
(icon_view_handle_uri_list): Changed to use
eel_make_uri_from_half_baked_uri so we can handle the kind of
"URI"s that are passed when dragging from old programs. Also did a
lot of code cleanup.
not HTML icon).
* src/nautilus-sidebar-title.c: (update_icon): Changed code to
pass in icon names to nautilus_icon_factory_get_pixbuf_by_name,
instead of passing icon paths (no reason to do that).
2001-05-03 John Fleck <jfleck@inkstain.net>
* components/help/converters/gnome-db2html2/sect-elements.c
improve support for <emphasis> tag to proporly support role="bold"
and role="strong" attributes with <B> but *no* <EM> tags
2001-05-03 Dan Mueth <dan@eazel.com>
Updating Nautilus Release Notes to mention that anybody
who builds or repackages Nautilus should make sure Medusa
support isn't built in by accident.
* help/nautilus-release-notes/C/nautilus-release-notes.sgml:
2001-05-03 Dan Mueth <dan@eazel.com>
Updates to Nautilus User Manual, including two new screenshots.
* help/nautilus-user-manual/C/Makefile.am:
* help/nautilus-user-manual/C/figures/help_num.png:
* help/nautilus-user-manual/C/figures/news_num.png:
* help/nautilus-user-manual/C/nautilus-user-manual.sgml:
* src/file-manager/fm-directory-view.c:
(key_press_event_callback), (bonobo_control_activate_callback):
Hook up the delete key to move files to trash. Another feature
requested by Miguel.
* src/file-manager/nautilus-icon-view-ui.xml: Only show the F2 in
the menu bar, not the right-click menu.
* libnautilus-extensions/nautilus-icon-factory.c:
(cache_icon_new), (load_specific_icon), (load_icon_for_scaling),
(scale_icon), (get_icon_from_cache),
(nautilus_icon_factory_get_pixbuf_for_icon),
(load_icon_with_embedded_text): Tried to fix bug 8228, but
failed. I still want to keep my changes. I'll get back to this
tomorrow.
* 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.
Fixed bug 6277 (Bookmarks window should close with Escape key)
* src/nautilus-bookmarks-window.c: (create_bookmarks_window):
Made bookmarks window a GnomeDialog, giving it the single
button "Done".
added preferences for the maximum numder of items per site and
the update interval. It's not quite finished, as the news
view isn't watching the update interval preference yet.
* components/news/nautilus-news.c: (do_destroy), (draw_rss_items),
(nautilus_news_make_new_channel), (max_items_changed),
(make_news_view):
use the preference for max items and update interval
* libnautilus-extensions/nautilus-global-preferences.c:
define defaults for news panel preferences
* libnautilus-extensions/nautilus-global-preferences.h:
define news panel preferences
* src/nautilus-preferences-dialog.c:
add a news panel pane to the preferences dialog