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.
2001-07-14 John Fleck <jfleck@inkstain.net>
reviewed by Laszlo Kovacs <laszlo.kovacs@sun.com>
* components/help/converters/gnome-db2html3/gnome-db2html3.c
change logic for testing whether a file is sgml or xml
2001-07-12 Alex Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-monitor.c:
Use a GIOChannel instead of gdk_input_add. This fixes the bug
where when the fam connection dies it did gdk_input_remove (fd)
instead of gdk_input_remove (tag)
* components/help/converters/gnome-info2html2/html.c:
(write_menu_entry_html):
* components/help/converters/gnome-man2html2/gnome-man2html.c:
(add_links), (scan_escape), (scan_format), (scan_table),
(scan_expression), (scan_request), (scan_troff),
(scan_troff_mandoc), (main):
* src/nautilus-first-time-druid.c: (load_netscape_proxy_settings):
* src/nautilus-property-browser.c: (emblem_keyword_valid):
Fix code that was using <ctype.h> functions and passing char's
rather than int's (using the standard "cast to unsigned char"
trick).
* libnautilus-private/nautilus-file.c:
(nautilus_file_denies_access_permission),
(nautilus_file_can_set_permissions), (nautilus_file_set_owner),
(nautilus_file_get_group_name), (nautilus_file_can_set_group),
(nautilus_file_get_settable_group_names),
(nautilus_file_set_group):
Get rid of the assumption that GnomeVFSFileInfo field types match
the platform-specific uid_t and gid_t. This involves doing a few
more type casts.
(nautilus_extract_top_left_text): Fix a use of isprint on a char
rather than an int.
* libnautilus-private/nautilus-volume-monitor.c: Added ifdefs so
this file can compile for Solaris without warnings.
* test/test.c: (test_window_set_title_with_pid): Don't assume that
getpid() returns an int. Instead cast it to unsigned long for
printing.
2001-07-11 Alex Larsson <alexl@redhat.com>
* acconfig.h:
Add HAVE_LIBFAM
* configure.in:
Check for libfam, not only header.
* libnautilus-private/Makefile.am:
Link to libfam
* libnautilus-private/nautilus-monitor.c:
Use normal fam library calls.
2001-07-11 Benedikt Roth <Benedikt.Roth@gmx.net>
* components/text/nautilus-text-view-ui.xml:
* components/text/nautilus-text-view.c:
Created a 'Text view' menu to hold the 'Fonts' menu
and services items
* components/text/services/google.xml
* components/text/services/webster.xml:
Removed references to http://services.eazel.com
* libnautilus-private/nautilus-sound.c: (kill_sound_if_necessary),
(nautilus_sound_kill_sound): Change the kill function to not set
the GConf value to 0 if it's already 0. This may help with a
minor performance problem Yoann found in the directory view.
* cut-n-paste-code/widgets/gimphwrapbox/gtkwrapbox.c:
(gtk_wrap_box_expose): Fix a cast so that 64-bit systems
won't warn. This is similar to the e-paned.c fix I did
already.
2001-07-07 Seth Nickell <snickell@stanford.edu>
* libnautilus-private/nautilus-directory-private.h:
* libnautilus-private/nautilus-metafile.c:
* libnautilus-private/nautilus-thumbnails.c:
* src/nautilus-window-menus.c:
Add includes that were inadevertantly pulled in
by the older kinder GnomeVFS include heirarchy but
aren't anymore (people forgot to include some headers
because the compiler never complained).
* configure.in: Bump version to 1.0.4.1
* cut-n-paste-code/widgets/e-paned/e-paned.c: (e_paned_expose):
Fix type cast that was causing Ben trouble compiling on Solaris.
Take a cut at removing the problem where opening a new window
causes all the old windows to act as if all items were re-added.
* libnautilus-private/nautilus-directory.h:
* libnautilus-private/nautilus-directory.c:
(nautilus_directory_file_monitor_add),
(nautilus_self_check_directory):
* libnautilus-private/nautilus-directory-async.c:
(nautilus_directory_monitor_add_internal):
* libnautilus-private/nautilus-directory-private.h:
* libnautilus-private/nautilus-merged-directory.c:
(build_merged_callback_list), (merged_file_monitor_add),
(forward_files_added_cover), (forward_files_changed_cover),
(monitor_add_directory), (merged_add_real_directory):
* libnautilus-private/nautilus-trash-file.c: (real_monitor_add):
* libnautilus-private/nautilus-trash-monitor.c:
(nautilus_trash_monitor_initialize):
* libnautilus-private/nautilus-vfs-directory.c:
(vfs_file_monitor_add):
* libnautilus-private/nautilus-vfs-file.c: (vfs_file_monitor_add):
Change monitor_add to take a parameter for a callback function, and
call that instead of sending out a files_added message when someone
starts monitoring files.
* components/tree/nautilus-tree-model.c:
(nautilus_tree_model_node_begin_monitoring_no_connect),
(nautilus_tree_model_node_begin_monitoring),
(nautilus_tree_model_directory_files_changed_callback):
* src/file-manager/fm-directory-view.c: (connect_script_handlers),
(finish_loading):
Pass in a callback function to monitor_add, and don't hook up the
files_added and files_changed signals until after the monitor is
added.
* configure.in: Bump version to 1.0.4.
* NEWS: Update for recent changes.
* Makefile.i18npatch:
* POTFILES.skip:
* update.sh:
Remove remnants of the old localization scheme. These
are all superseded by xml-i18n-tools.
2001-07-05 Benedikt Roth <Benedikt.Roth@gmx.net>
* src/nautilus-sidebar.c: (nautilus_sidebar_initialize),
(nautilus_sidebar_destroy), (nautilus_sidebar_theme_changed),
(nautilus_sidebar_confirm_trash_changed):
Fix bug #8133 where changing of the
NAUTILUS_PREFERENCES_CONFIRM_TRASH value led to inconsistent menu
descriptions by adding a eel_preferences callback.
2001-07-05 Benedikt Roth <Benedikt.Roth@gmx.net>
* src/file-manager/fm-directory-view.c:
(fm_directory_view_display_selection_info):
Made the statusbar messages when selecting several folders clearer
and fixed i18n problems
2001-07-03 Benedikt Roth <Benedikt.Roth@gmx.net>
* src/file-manager/fm-directory-view.c: (real_update_menus):
Fix bug #6202, "'Show Trash' menu item should be greyed
when viewing trash"
* libnautilus/nautilus-view-standard-main.c (struct CallbackData,
delayed_quit_timeout_callback, object_destroyed, make_object,
nautilus_view_standard_main_multi):
Changed behaviour of view processes, now every process using
nautilus_view_standard_main/nautilus_view_standard_main_multi will be
destroyed after 30 seconds of inactivity, not immediately.
2001-06-28 Havoc Pennington <hp@redhat.com>
* src/nautilus-first-time-druid.c (druid_finished): Don't create a
desktop link to Eazel services or open Eazel home page.
nautilus_volume_monitor_should_integrate_trash() return FALSE for this
volume type. This solves the broken trash can issue on XFS (and probably
other non-ext2) filesystems.
2001-06-29 Ettore Perazzoli <ettore@ximian.com>
* libnautilus-private/nautilus-directory-metafile.c
(get_metafile): Avoid initializing the exception and getting the
URI if we already have a CORBA object, as they are not needed in
that case.
* src/run-nautilus: Get rid of all the "smarts" in this
script and made it just call Nautilus. The things it was
doing (disable bug buddy, work around MOZILLA_FIVE_HOME
for Debian users, call nautilus-verify-rpm.sh) are all
obsolete now.
* src/nautilus-window-manage-views.c: (begin_location_change):
Don't force a reload if file monitoring will work properly
for the location.
* components/throbber/Makefile.am:
* icons/sierra/Makefile.am:
* icons/tahoe/Makefile.am:
Remove use of empty SUBDIRS. At least some versions of automake
have trouble with that.
* src/file-manager/fm-directory-view.c: Formatting tweak.
* 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 Rodrguez Prez <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 Rodrguez Prez <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.