1 2003-08-25 Alexander Larsson <alexl@redhat.com>
7 2003-08-25 Alexander Larsson <alexl@redhat.com>
9 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_make_uri_from_input_internal):
10 Only add http: if the string looks like a http uri.
12 2003-08-25 Alexander Larsson <alexl@redhat.com>
14 * modules/default-modules.conf:
15 Add dav: scheme, handled by the http module.
17 2003-08-19 Alexander Larsson <alexl@redhat.com>
19 * modules/file-method.c (fam_do_iter_unlocked):
20 Don't do anything if fam_connection is NULL.
21 Should fix bug #120211
23 2003-08-13 Alexander Larsson <alexl@redhat.com>
25 * libgnomevfs/gnome-vfs-utils.c:
26 revert the ngettext usage.
28 2003-08-13 Alexander Larsson <alexl@redhat.com>
30 * modules/http-method.c: Fix the build for Solaris, FreeBSD (and
31 probably anything else that is "not Linux"). Fixes bug #119706.
32 based on patch by Malcolm Tredinnick
34 2003-08-12 Thomas Vander Stichele <thomas at apestaart dot org>
36 * configure.in: make maintainer builds work with aclocal
38 2003-08-12 Leena Gunda <leena.gunda@wipro.com>
40 * modules/cdemenu-desktop-method.c (get_title):
41 Added this to get the menu names without quotes.
42 * modules/cdemenu-desktop-method.c (do_open):
43 * modules/cdemenu-desktop-method.c (do_read_directory):
44 Make sure that for unquoted menu item names, the pointers are
45 not NULL. Bugzilla bug# 119425
47 === gnome-vfs 2.3.7 ===
49 2003-08-11 Alexander Larsson <alexl@redhat.com>
53 * configure.in: Bump to 2.3.7.
55 2003-08-11 Malcolm Tredinnick <malcolm@commsecure.com.au>
57 * modules/http-method.c:
58 Process the contents of the /system/http_proxy/ignore_hosts
59 gconf key and do not use the proxy when connecting to these
62 * schemas/system_http_proxy.schemas:
63 Add an entry for /system/http_proxy/ignore_hosts.
65 2003-08-04 Michael Meeks <michael@ximian.com>
67 * test/test-shell.c (authentication_callback),
68 (get_input_string): don't pollute user/password with
71 2003-08-01 Michael Meeks <michael@ximian.com>
73 * test/test-shell.c (do_ls): add ls [dir]
74 (main): quit properly at end of stream.
76 2003-08-03 Danilo Segan <dsegan@gmx.net>
78 * libgnomevfs/gnome-vfs-utils.c: uses ngettext
80 (committed by teuf@gnome.org, please note this makes gnome-vfs
81 depend on a 'new enough' gettext implementation, and compilation
82 will break if such a gettext impl is not available. Hopefully some
83 gnome module (intltool?) makes sure this is the case(?))
85 === gnome-vfs 2.3.6 ===
87 2003-08-01 Christophe Fergeau <teuf@gnome.org>
91 Bump version to 2.3.6.
93 2003-07-25 Christophe Fergeau <teuf@gnome.org>
95 * libgnomevfs/gnome-vfs-xfer.h: another gcc 3.3 fix, remove
96 unnecessary ',' at the end of some enums. Fixes bug #118851
98 2003-07-25 Christophe Fergeau <teuf@gnome.org>
100 * libgnomevfs/gnome-vfs-file-size.h.in: add G_GNUC_EXTENSION before
101 GnomeVFSFileSize declaration to prevent g++ from spitting warnings
102 about long long being forbidden in C++ when used with -pedantic
103 (glib does exactly the same thing in its gint64 definition)
106 2003-07-24 Leena Gunda <leena.gunda@wipro.com>
108 * libgnomevfs/gnome-vfs-process.c:
109 Create hash table before associating signal handler for SIGCHLD.
112 2003-07-18 Christophe Fergeau <teuf@gnome.org>
114 * test/test-symlinks.c: removed unnecessary ;, fixes build on older
117 2003-07-18 Fredrik Jönsson <fjo@nada.kth.se>
119 * modules/ssh-method.c: cast pid_t* to gint * (fixes compilation on
120 Solaris, bug #117788)
121 * modules/cde-method.c: removed unused variable (fixes compilation
122 on Solaris, bug #117789)
123 * modules/ftp-method.c: include strings.h (for index) (fixes #117787)
125 2003-07-18 Christophe Fergeau <teuf@gnome.org>
127 * test/Makefile.am: don't build test-subdir.c since it uses a private
128 gnome-vfs symbol (prefixed with _) which breaks build on some non
129 linux platforms (fixes bug #117791)
131 2003-07-18 Christophe Fergeau <teuf@gnome.org>
133 * libgnomevfs/gnome-vfs-mime.c: some stuff wasn't properly freed when
134 calling gnome_vfs_mime_shutdown
135 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_to_string): fixed a small
137 * libgnomevfs/gnome-vfs-uri.c
138 * libgnomevfs/gnome-vfs-utils.c: fixed a few function descriptions
139 to explicitly say when these functions return a newly allocated
141 * libgnomevfs/gnome-vfs-utils.c (_gnome_vfs_uri_is_in_subdir): fixed
145 * test/test-symlinks.c: fixed some memory leaks (it may seem pointless,
146 but this will save some precious time the next time someone runs
147 valgrind on those tests)
149 2003-07-17 Christophe Fergeau <teuf@gnome.org>
151 * test/test-mime-handlers.c: don't segfault on unknown mime types
153 2003-07-17 Christophe Fergeau <teuf@gnome.org>
155 * libgnomevfs/gnome-vfs-mime-info.c: fixed a memory leak, fixed a bug
156 where the last line of .mime and .keys files wouldn't be read properly
157 if it didn't end with a \n.
159 2003-07-17 Christophe Fergeau <teuf@gnome.org>
161 * modules/vfolder/vfolder-info.c: properly ignore // which can
162 appear in <ItemDir> elements
163 * modules/vfolder/vfolder-util.h: fixes debug macro so that it compiles
166 2003-07-17 Christophe Fergeau <teuf@gnome.org>
168 * test/test-mime-handlers.c: free all allocated memory before exiting
169 to make valgrind happy (and to identify the leaks which are truly
170 coming from gnome-vfs ;)
172 2003-07-17 Christophe Fergeau <teuf@gnome.org>
174 * test/test-mime.c: fixed a crash when using an absolute path
176 2003-07-11 Calum Benson <calum.benson@sun.com>
178 reviewed by: Alex Larsson <alexl@redhat.com>
180 * modules/vfolder/applications-all-users.vfolder-info.in:
181 Add an Accessibility menu to the Applications menu. Closes
182 #116379, #115979 and #115981.
184 2003-07-11 Arvind Samptur <arvind.samptur@wipro.com>
186 Reviewed by: Stephen Browne <stephen.browne@sun.com>
188 * modules/cdemenu-desktop-method.c: (do_open),(do_open_directory),
189 (do_read_directory): Replace chars such as '/' and '#' with
190 appropriate % escape codes the then unescape again when used to
191 search the dtwmrc files.
193 * modules/cdemenu-desktop-method.c: (open_and_find_pointer_to_menu):
194 Do an exact match of the menu names (strcmp) from the dtwrmc file
195 and not just the first occurance of the string(strchr).
197 2003-07-10 Alexander Larsson <alexl@redhat.com>
199 * libgnomevfs/gnome-vfs-thread-pool.c (new_thread_state):
200 Make vfs thread stack size 256k
202 2003-07-08 Alexander Larsson <alexl@redhat.com>
204 * libgnomevfs/gnome-vfs-directory.c (gnome_vfs_directory_visit):
207 * libgnomevfs/gnome-vfs-cancellable-ops.c (gnome_vfs_get_file_info_uri_cancellable):
210 2003-07-04 Christophe Fergeau <teuf@users.sourceforge.net>
212 * libgnomevfs/gnome-vfs-mime-info.c: (set_value_real):
213 added missing g_string_free (fixes leak)
214 * test/Makefile.am: disabled test-resolv since it uses a private
215 gnome-vfs symbol, which breaks compilation on some non-linux
218 2003-07-02 Leena Gunda <leena.gunda@wipro.com>
220 * modules/cdemenu-desktop-method.c
221 (open_and_find_pointer_to_menu): Show the last custom menu
222 defined for the CDE menu items. Bugzilla bug #116101
224 2003-06-28 Christophe Fergeau <teuf@users.sourceforge.net>
226 * libgnomevfs/gnome-vfs-mime-handlers.c:
227 (gnome_vfs_mime_set_short_list_applications): when adding an app
228 to the short_list for a mime-type, also add it to the global list
229 of apps able to handle this mime-type
231 2003-06-28 Christophe Fergeau <teuf@users.sourceforge.net>
233 * libgnomevfs/gnome-vfs-uri.c (BV_IS_SET): don't read out of
234 the buffer bounds if the uri contains 8-bit chars (this fixes
235 some problem when trying to parse uris containing UTF-8 chars)
237 2003-06-25 Christophe Fergeau <teuf@users.sourceforge.net>
239 * programs/gnomevfs-mkdir.c: removed debugging code, fixes compilation
240 with Forte on Solaris (bug #115862)
242 === gnome-vfs 2.3.5 ===
244 2003-06-23 Dave Camp <dave@ximian.com>
248 Bump version to 2.3.5.
250 2003-06-13 Alexander Larsson <alexl@redhat.com>
252 * libgnomevfs/gnome-vfs-mime-handlers.c (expand_parameters):
253 Fix memory handling. We were freeing already freed stuff in the
254 GNOME_VFS_ERROR_NOT_SUPPORTED case.
256 2003-06-11 Jon Svendsen <jon-sven@frisurf.no>
258 * libgnomevfs/gnome-vfs-application-registry.h
259 (GNOME_VFS_APPLICATION_REGISTRY_STARTUP_NOTIFY): Add a macro
260 describing a new application registry key to determine if an
261 application supports startup notification.
263 2003-06-11 Leena Gunda <leena.gunda@wipro.com>
265 * modules/cdemenu-desktop-method.c (do_open):
266 Make sure that for unquoted menu item names, the pointers are
267 not NULL. Bugzilla bug#114555
269 2003-06-10 Alexander Larsson <alexl@redhat.com>
271 * libgnomevfs/gnome-vfs-job.c:
272 Make job_private static.
274 ==== gnome-vfs 2.3.4 ====
276 2003-06-10 Alexander Larsson <alexl@redhat.com>
282 2003-06-07 Mark Finlay <sisob@eircom.net>
284 * modules/vfolder/applications-all-users.vfolder-info.in
286 Make other point to Other.directory (bug #81834)
288 2003-06-05 Kenneth Rohde Christiansen <kenneth@gnu.org>
290 * configure.in: Added li to ALL_LINGUAS.
292 ==== gnome-vfs 2.3.3 ====
294 2003-06-04 Alexander Larsson <alexl@redhat.com>
300 * libgnomevfs/gnome-vfs-mime-magic.c
301 (_gnome_vfs_sniff_buffer_looks_like_text):
302 Make sure to fallback to returning FALSE.
304 2003-05-26 Alexander Larsson <alexl@redhat.com>
307 Reomve -Wsign-promo and add -Wno-strict-aliasing to the list
308 of options to test for. Fixes the gcc 3.3 aliasing warnings.
310 2003-05-24 Christophe Fergeau <teuf@users.sourceforge.net>
313 * doc/gnome-vfs-2.0-docs.sgml (added)
314 * doc/gnome-vfs-2.0-overrides.txt (added)
315 * doc/gnome-vfs-2.0-sections.txt (added)
316 * doc/gnome-vfs-2.0.types (added)
317 * doc/gnome-vfs-docs.sgml (removed)
318 * doc/gnome-vfs-overrides.txt (removed)
319 * doc/gnome-vfs-sections.txt (removed)
320 * doc/gnome-vfs.types (removed): fixed API docs building so that they
322 * doc/tmpl/*.tmpl: removed unnecessary \n in section names,
323 added descriptions for some sections
325 2003-05-23 Alexander Larsson <alexl@redhat.com>
327 * modules/file-method.c:
328 Handle the fam connection going away if the connection breaks.
330 2003-05-23 Alexander Larsson <alexl@redhat.com>
332 * modules/file-method.c (do_monitor_add):
333 Make FAM usage threadsafe.
335 2003-05-21 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
337 * configure.in (GETTEXT_PACKAGE): do libnsl and libsocket checks
338 before inet_pton (#113325).
340 2003-05-20 Christophe Fergeau <teuf@users.sourceforge.net>
342 * modules/ftp-method.c
343 * modules/http-method.c
344 * modules/ssh-method.c: fixed potential crash with uris containing
345 %2F, fixed a few small leaks
347 ==== gnome-vfs 2.3.2 ====
349 2003-05-19 Alexander Larsson <alexl@redhat.com>
355 2003-05-17 Bastien Nocera <hadess@hadess.net>
357 * Makefile.am: add the programs subdir so the programs are built by
360 2003-05-16 Radu Greab <radu@netsoft.ro>
361 Christophe Fergeau <teuf@users.sourceforge.net>
363 * libgnomevfs/gnome-vfs-utils.c(gnome_vfs_get_volume_free_space):
364 fixed a leak when the function was called with an non-file:// uri
365 * modules/file-method.c(do_is_local): ncpfs file systems aren't local
368 2003-05-16 Bastien Nocera <hadess@hadess.net>
370 * programs/gnomevfs-ls.c: (show_data), (main): remove use of SHOW_ICON
372 2003-05-16 Bastien Nocera <hadess@hadess.net>
374 reviewed by: Alexander Larsson <alexl@redhat.com>
377 * programs/.cvsignore:
378 * programs/Makefile.am:
379 * programs/gnomevfs-cat.c:
380 * programs/gnomevfs-copy.c:
381 * programs/gnomevfs-info.c:
382 * programs/gnomevfs-ls.c:
383 * programs/gnomevfs-mkdir.c: added some programs to test out
384 gnome-vfs methods, use the gnomevfs- prefix for them, add some
385 more information from get_info in -ls and -info
387 2003-05-14 Pasupathi Duraisamy <pasupathi.duraisamy@wipro.com>
389 * configure.in: check "getdelim" in AC_CHECK_FUNCS
391 * libgnomevfs/Makefile.am (EXTRA_DIST): remove getdelim.c
393 * modules/extfs-method.c: Wrap getdelim definition inside
394 #ifndef HAVE_GETDELIM
396 (patch reviewed by alexl@redhat.com)
398 2003-05-14 Malcolm Tredinnick <malcolm@commsecure.com.au>
400 * modules/http-method.c: Bring comment about gconf keys into
403 2003-05-13 Shailesh Mittal <shailesh.mittal@wipro.com>
405 (applied by Ian McKellar <yakk@yakk.net>)
407 Changes are made by keeping nautilus in focus.
409 * libgnomevfs/gnome-vfs-uri.c:
410 Macro for URI_DELIMITER_IPV6_SET is added and a value
411 is added to array of structures uri_strspn_sets[].
413 (split_toplevel_uri): Changed to parse IPv6 address
414 (given in square brackets) like [fe80::203:baff:fe0b:a63d].
416 (gnome_vfs_uri_to_string): Modified to enclose an IPv6
417 address within '[' and ']', while converting uri to string.
419 2003-05-12 Michael Meeks <michael@ximian.com>
421 * libgnomevfs/gnome-vfs-job.c: update misc. calls
422 to spew more pleasant debug.
424 * libgnomevfs/gnome-vfs-job.h: add gettimeofday call
425 to JOB_DEBUG_PRINT, add job_debug_types array and
426 JOB_DEBUG_TYPE macro to pretty-print the job type.
428 2003-05-09 Telsa Gwynne <hobbit@aloss.ukuu.org.uk>
430 * configure.in: Added cy to ALL_LINGUAS
432 2003-05-08 Samúel Jón Gunnarsson <sammi@techattack.nu>
434 * configure.in: Added "is" into ALL_LINGUAS
436 2003-05-06 Danilo Šegan <dsegan@gmx.net>
438 * configure.in: Added "sr" and "sr@Latn" to ALL_LINGUAS.
440 2003-05-05 Bastien Nocera <hadess@hadess.net>
442 * libgnomevfs/gnome-vfs-mime.c:
443 (_gnome_vfs_get_mime_type_internal): "audio/mpeg" is the right
444 mimetype for MP3 files, not "audio/x-mp3" (Closes: #100523)
446 2003-05-05 Xan Lopez <xan@masilla.org>
448 * modules/cdda-cddb.c: (CDDBConnect):
450 Init sock variable to -1, fixes warning compilation.
452 ==== gnome-vfs 2.3.1 ====
454 2003-05-05 Alexander Larsson <alexl@redhat.com>
456 * libgnomevfs/Makefile.am:
458 Go to libgnome/gtk+ style library versioning.
460 2003-05-05 Alexander Larsson <alexl@redhat.com>
468 2003-05-03 Arvind Samptur <arvind.samptur@wipro.com>
469 * modules/cdemenu-desktop-method.c:
470 (create_cde_icon_name_cache): While running the dttypes
471 command to create a icon cache for the cde menu, we need
472 to reap the child process. wait() currently on a solaris box
473 fails with an EINTR. So loop till you succeed. Fixes #111628
475 2003-04-25 Alexander Larsson <alexl@redhat.com>
477 Based on patch by Frank Worsley <fworsley@shaw.ca>
479 * libgnomevfs/gnome-vfs-utils.[ch]:
480 (gnome_vfs_icon_path_from_filename):
481 Use g_file_test instead of hack_file_exists.
483 (gnome_vfs_make_uri_from_input_with_dirs):
486 2003-04-24 Alexander Larsson <alexl@redhat.com>
488 * libgnomevfs/Makefile.am (libgnomevfs_2_la_LIBADD):
489 Remove LTLIBOBJS for the moment. It was breaking the build.
491 2003-04-24 Alexander Larsson <alexl@redhat.com>
493 Patch from Frank Worsley <fworsley@shaw.ca>
495 * libgnomevfs/gnome-vfs-mime-handlers.c:
496 (gnome_vfs_mime_application_new_from_id),
497 (gnome_vfs_mime_action_launch),
498 (gnome_vfs_mime_action_launch_with_env),
499 (gnome_vfs_mime_application_launch),
500 (gnome_vfs_mime_application_launch_with_env), (expand_parameters):
501 new functions for launching mime actions and applications
503 * libgnomevfs/gnome-vfs-mime-handlers.h:
504 updated for new functions
506 * libgnomevfs/gnome-vfs-private-utils.c:
507 (_gnome_vfs_use_handler_for_scheme),
508 (_gnome_vfs_url_show_using_handler_with_env):
509 private functions for launching url handlers defined in gconf
511 (gnome_vfs_prepend_terminal_to_vector):
512 the default terminal is needed by gnome-vfs so we make a copy of this
515 * libgnomevfs/gnome-vfs-private-utils.h:
516 update for new functions
518 * libgnomevfs/gnome-vfs-result.c:
519 * libgnomevfs/gnome-vfs-result.h:
520 new error codes for the new functions
522 * libgnomevfs/gnome-vfs-utils.c:
523 (gnome_vfs_url_show), (gnome_vfs_url_show_with_env):
524 convenience functions for launching a url in string form using
525 the default application or component
527 * libgnomevfs/gnome-vfs-utils.h:
528 updated for new functions
530 * schemas/desktop_default_applications.schemas:
531 new schema that defines the default terminal application
533 * schemas/Makefile.am:
534 updated for new schema
536 2003-04-24 Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>
538 * configure.in: fix IPV6 test. check inet_pton() and off64_t.
540 * configure.in: call AC_LIBTOOL_WIN32_DLL. This is necessary for
541 building DLL on some win32 platform.
543 * modules/cdemenu-module.conf
544 * modules/default-modules.conf: remove "lib" prefix from module names
545 since it is added automatically by g_module_build_path(), and it
546 breaks on Cygwin. (Cygwin uses "cyg" as library prefix.)
548 * libgnomevfs/Makefile.am
549 * modules/Makefile.am
550 * modules/vfolder/Makefile.am: add -no-undefined to each library's
551 LDFLAGS, and write each library's depencency libraries explicitly
552 in its LIBADD. These are necessary for building DLL on some win32
555 * libgnomevfs/Makefile.am (libgnomevfs_2_la_LIBADD): add $(LTLIBOBJS)
558 * libgnomevfs/getdelim.c: add prototype and fix to work on Cygwin.
560 * modules/file-method.c:
561 don't use lseek64() when off64_t is not available.
562 (do_read_directory): call G_UNLOCK(readdir) when readdir() is failed.
563 (find_trash_in_one_hierarchy_level): fix to work without readdir_r().
565 * modules/vfolder/Makefile.am (module_flags): add -module
567 * modules/vfolder/vfolder-common.c (entry_reload_if_needed): comment
568 out vfolder_monitor_emit() call since this function is not defined.
570 * modules/http-method.c: if inet_pton() is not available, define
571 the function using inet_aton().
572 [FIXME: should be done using AC_REPLACE_FUNCS].
574 2003-04-24 Michael Meeks <michael@ximian.com>
576 * TODO: waffle unproductively - this file is really stale.
578 2003-04-23 Alexander Larsson <alexl@redhat.com>
580 * libgnomevfs/gnome-vfs-mime-info.c (gnome_vfs_mime_type_is_known):
581 Nothing is known if the mime type has been deleted.
584 2003-04-23 Alexander Larsson <alexl@redhat.com>
586 * libgnomevfs/gnome-vfs-mime-handlers.c (gnome_vfs_mime_remove_extension):
587 Handle the case when the last extension is removed.
589 * modules/file-method.c (get_stat_info):
590 Correct handling of symlinks.
591 Fixes bug #111397. Based on patch in bug by jon.
593 2003-04-18 Christophe Fergeau <teuf@users.sourceforge.net>
595 * libgnomevfs/gnome-vfs-private-utils.h: removed misleading comment
596 * modules/cdemenu-module.conf
597 * modules/default-modules.conf: removed .so extension to module names
598 since this is added automatically by gmodule, and it breaks on
599 some unices (eg HPUX). Fixes #110986
601 2003-4-17 HideToshi Tajima <hidetoshi.tajima@sun.com>
603 * modules/cdemenu-desktop-method.c (get_icon_for_menu):
604 Fixes bug #103306. Translators, please translate these messages
605 exactly the same in CDE's sys.dtwmrc file of the locale.
607 2003-04-17 Balamurali Viswanathan <balamurali.viswanathan@wipro.com>
609 * modules/http-method.c: Changed private symbol inet_aton
612 2003-04-15 Christophe Fergeau <teuf@users.sourceforge.net>
615 * libgnomevfs/gnome-vfs-mime-magic.c: don't try to use wctype.h
616 and mbrtowc on platforms which don't have it (bug #110226)
618 2003-04-11 Christophe Fergeau <teuf@users.sourceforge.net>
620 * modules/http-method.[ch]: cleaned up some eazel related stuff
621 parses an HTTP error code in the body of an answer to a PROPFIND
622 request (fixes access to WebDAV servers using Resin).
625 2003-04-11 Christophe Fergeau <teuf@users.sourceforge.net>
627 * test/test-uri.c: added regression test for
628 gnome_vfs_uri_make_full_from_relative
630 2003-04-11 Christophe Fergeau <teuf@users.sourceforge.net>
632 * libgnomevfs/gnome-vfs-i18n.c (read_aliases): make it work
633 * libgnomevfs/gnome-vfs-utils.c: removed bogus
634 #ifndef GNOME_VFS_DISABLE_DEPRECATED
636 2003-04-11 Hidetoshi Tajima <hidetoshi.tajima@sun.com>
638 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): call bindtextdomain
639 inside #ifdef ENABLE_NLS. Fixes bug #110213.
641 2003-04-11 Michael Meeks <michael@ximian.com>
643 * test/test-shell.c (authentication_callback, main):
644 hook up some really dumb authentication bits.
646 2003-04-11 Alexander Larsson <alexl@redhat.com>
648 * test/test-async.c (file_control_callback):
649 Don't double free operation_data.
651 2003-04-09 Michael Meeks <michael@ximian.com>
653 * libgnomevfs/gnome-vfs-module-callback.h: add
654 G_BEGIN/END_DECLS for my C++
656 2003-04-05 Christophe Fergeau <teuf@users.sourceforge.net>
658 * libgnomevfs/gnome-vfs-uri.c
659 * libgnomevfs/gnome-vfs-utils.c
660 * libgnomevfs/gnome-vfs-utils.h: removed duplicated code, deprecated
661 gnome_vfs_make_uri_full_from_relative, use
662 gnome_vfs_uri_make_full_from_relative instead
664 2003-04-04 Christophe Fergeau <teuf@users.sourceforge.net>
666 * modules/fstype.c: don't try to call getmntent with a NULL parameter
667 if mtab is non-existent. Fixes bug #106950
669 2003-04-03 Kaushal Kumar <kaushal.kumar@wipro.com>
671 * libgnomevfs/gnome-vfs-mime-info.c (gnome_vfs_mime_set_extensions_list):
672 Set the deleted key to "" if it exists before resetting ext key.
675 2003-04-02 Shailesh Mittal <shailesh.mittal@wipro.com>
678 Added option for enabling IPv6 support, and only enabling
679 IPv6 support if AF_INET6 and function getaddrinfo are
682 * libgnomevfs/gnome-vfs-inet-connection.c :
683 Added a field addr6 of #sockaddr_in6 type in structure
684 GnomeVFSInetConnection, for holding IPv6 address.
685 One more field socklen is added to the definition of
686 structure GnomeVFSInetConnection to hold the length of
687 socket for identification of address family.
688 (gnome_vfs_inet_connection_create):
689 Modified to have support for IPv6 addresses too.
690 Included <gnome-vfs-private-utils.h> for prototype of the
691 function _gnome_vfs_have_ipv6 ().
693 * libgnomevfs/gnome-vfs-private-utils.c :
694 (_gnome_vfs_have_ipv6):
695 Function added to check for run-time IPv6 support.
697 * libgnomevfs/gnome-vfs-private-utils.h :
698 Added prototype for function _gnome_vfs_have_ipv6 ().
700 * libgnomevfs/gnome-vfs-ssl.c (gnome_vfs_ssl_create) :
701 Modified to have support for IPv6 addresses as well.
702 Included <libgnomevfs/gnome-vfs-private-utils.h> for prototype of the
703 function _gnome_vfs_have_ipv6 ().
705 * modules/cdda-cddb.c :
706 Included "config.h" for having definition of macro ENABLE_IPV6.
708 Modified to support IPv6 addresses in addition to IPv4.
710 Function added to check for run-time IPv6 support.
712 * modules/http-method.c :
713 Included header <netdb.h> for prototype of getaddrinfo().
715 Function added to check for run-time IPv6 support.
716 (proxy_should_for_hostname) :
717 It is modified to work with IPv6 and IPv4-Mapped IPv6 addresses
718 in addition to IPv4 addresses.
720 ==== gnome-vfs 2.2.4 ====
722 2003-03-31 Alexander Larsson <alexl@redhat.com>
728 2003-03-31 Alexander Larsson <alexl@redhat.com>
730 * libgnomevfs/gnome-vfs-configuration.c (_gnome_vfs_configuration_init):
731 Look for user modules in ~/.gnome2/vfs/modules instead of ~/.gnome/vfs/modules.
733 2003-03-27 Christophe Fergeau <teuf@users.sourceforge.net>
735 * modules/ftp-method.c: make sure the current directory is / when
736 using an uri without directory
738 2003-03-26 Christian Rose <menthos@menthos.com>
740 * configure.in: Added "yi" to ALL_LINGUAS.
742 2003-03-25 Alexander Larsson <alexl@redhat.com>
744 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_get_volume_free_space):
745 statvfs works for nfs!
747 2003-03-25 Alexander Larsson <alexl@redhat.com>
749 * libgnomevfs/gnome-vfs-monitor.c:
750 Don't queue changes to canceled monitors.
751 Fix sign bug that caused events to be missed.
752 Fix theoretical race with setting up the idle handler.
754 2003-03-23 Murray Cumming <murrayc@usa.net>
756 * doc/about.sgml: Simple Sample Progam: Allocated memory for the
757 read buffer. Initializing this to 0 would show the error. I don't
758 know how this ran without crashing before.
760 2003-03-24 Alexander Larsson <alexl@redhat.com>
762 * libgnomevfs/gnome-vfs-job.c (_gnome_vfs_job_destroy_notify_result):
763 Don't free OP_XFER notify result. Its stack-allocated. (#100654)
765 2003-03-20 Guntupalli Karunakar <karunakar@freedomink.org>
767 * configure.in: Added "ml" in ALL_LINGUAS
769 2003-03-18 Alexander Larsson <alexl@redhat.com>
771 * libgnomevfs/gnome-vfs-xfer.c (copy_symlink):
772 Check for errors when copying symlinks.
774 2003-03-14 Alexander Larsson <alexl@redhat.com>
776 * libgnomevfs/gnome-vfs-monitor.c (gnome_vfs_monitor_callback):
777 Throttle the change event rate so that applications don't
778 use 100% cpu when monitoring a directory someone is downloading
781 2003-03-14 Dave Camp <dave@ximian.com>
783 * libgnomevfs/gnome-vfs-job.c (_gnome_vfs_job_destroy_notify_result):
784 Remove the unnecessary g_warning here.
786 2003-03-14 Joël Brich <joel.brich@laposte.net>
788 * configure.in: Added "eo" to ALL_LINGUAS.
790 2003-03-14 Michael Meeks <michael@server.home>
792 * test/test-shell.c (do_ssl): impl.
793 (main, list_commands): upd.
795 2003-03-14 Alexander Larsson <alexl@redhat.com>
798 Remove hardcoded ACLOCAL_AMFLAGS.
799 Please do not make changes to modules without
800 permission from the maintainer.
802 ==== gnome-vfs 2.2.3 ====
804 2003-03-10 Alexander Larsson <alexl@redhat.com>
810 2003-03-05 Alexander Larsson <alexl@redhat.com>
813 Try pkg-config for detecting openssl.
814 Add --disable-openssl to not use openssl
815 Add --enable-gnutls to enable gnutls.
817 2003-02-25 Taneem Ahmed <taneem@eyetap.org>
819 * configure.in: Added "bn" to ALL_LINGUAS.
821 2003-02-24 Alexander Larsson <alexl@redhat.com>
823 * libgnomevfs/gnome-vfs-job.c (_gnome_vfs_job_destroy_notify_result):
824 Turn crash into g_warning for smb: module callback bug. This needs
825 looking into. I'm not sure what is happening here.
827 2003-02-24 Alexander Larsson <alexl@redhat.com>
829 * modules/file-method.c (do_read_directory):
830 Actually make the non-readdir_r case work.
832 2003-02-24 Alexander Larsson <alexl@redhat.com>
834 * libgnomevfs/gnome-vfs-monitor.c (destroy_monitor_handle):
835 Warn if the handle was not in the hash table.
836 (gnome_vfs_monitor_callback):
837 Loop to get the hashtable. This fixes a possible race where
838 there is a callback before the add_monitor code has added the
839 monitor to the hashtable. (#106758)
841 2003-02-21 Alexander Larsson <alexl@redhat.com>
843 * monikers/Makefile.am:
844 Assign CLEANFILES with normal assignment
846 * libgnomevfs/Makefile.am:
847 Remove commented out lines that were confusing automake.
849 2003-02-20 Alexander Larsson <alexl@redhat.com>
851 * libgnomevfs/gnome-vfs-job.h:
852 Remove include of semaphore.h. Not needed.
854 2003-02-19 Alexander Larsson <alexl@redhat.com>
856 * libgnomevfs/gnome-vfs-mime-magic.c:
857 Fix vorbis sniff change.
858 (_gnome_vfs_sniff_buffer_looks_like_text):
859 Non utf8 text sniffing.
861 * schemas/Makefile.am (install-data-local):
862 Don't install schemas if --disable-schemas-install was passed
865 Add support for get_info_from_handle.
867 * modules/http-method.c (do_get_file_info_from_handle):
868 For get_info_from_handle we use the cached file info to
871 2003-02-18 Alexander Larsson <alexl@redhat.com>
874 * modules/file-method.c (do_read_directory):
875 Check for readdir_r and use locks + readdir if it doesn't exist.
877 2003-02-18 Alexander Larsson <alexl@redhat.com>
878 * libgnomevfs/gnome-vfs-mime-magic.c (_gnome_vfs_sniff_buffer_looks_like_mp3):
879 Don't interpret vorbis files with ID3 tags as mp3.
881 2003-02-18 Alexander Larsson <alexl@redhat.com>
884 Define HAVE_SYS_PARAM_H. Patch from jmmv@hispabsd.org.
886 2003-02-18 Roozbeh Pournader <roozbeh@sharif.edu>
888 * configure.in: Added "fa" to ALL_LINGUAS.
890 2003-02-17 Bastien Nocera <hadess@hadess.net>
892 * modules/ssh-method.c: (do_read_directory): implement setting the
893 type of the file when we have a symlink (Closes: #92630)
895 2003-02-17 Bastien Nocera <hadess@hadess.net>
897 * modules/ssh-method.c: (do_read_directory): implement mime-type
898 checking for symlinks, still doesn't work for directories
900 2003-02-17 Frederic Crozat <fcrozat@mandrakesoft.com>
902 * modules/file-method.c: (read_link): fix memleak when readlink
904 * test/.cvsignore : quiet CVS, quiet.
906 2003-02-13 Bastien Nocera <hadess@hadess.net>
908 * modules/ssh-method.c: (do_move), (do_unlink), (do_check_same_fs):
909 implement do_move and revive do_check_same_fs
911 2003-02-13 Bastien Nocera <hadess@hadess.net>
913 * modules/ssh-method.c: (ssh_connect), (do_open_directory): don't crash
914 when accessing ssh://, nicer error message when we get a connection
917 2003-02-13 Bastien Nocera <hadess@hadess.net>
919 reviewed by: Alexander Larsson <alexl@redhat.com>
921 * modules/ssh-method.c: (ssh_connect), (ssh_destroy),
922 (ssh_check_for_done), (do_read), (do_read_directory):
923 add more robust error checking, check for EOF and EOD when we're done
924 reading rather than on close
926 ==== gnome-vfs 2.2.2 ====
928 2003-02-12 Alexander Larsson <alexl@redhat.com>
934 2003-02-12 Alexander Larsson <alexl@redhat.com>
936 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_monitor_add):
937 Free uri if no monitor_add implementation. Plugs leak.
939 * libgnomevfs/gnome-vfs-monitor.c (_gnome_vfs_monitor_do_cancel):
940 Correctly destroy the handle of result == OK. Plugs leak.
942 2003-02-12 Bastien Nocera <hadess@hadess.net>
944 reviewed by: Alexander Larsson <alexl@redhat.com>
946 * modules/Makefile.am:
947 * modules/ssh-method.c: (ssh_connect), (ssh_read_error),
948 (ssh_wait_and_destroy), (do_open), (do_close), (do_read),
949 (do_make_directory), (do_remove_directory), (do_unlink),
950 (do_check_same_fs), (do_set_file_info): give a login failed error when
951 no key is setup to access the machine, a server not available when the
952 machine doesn't have its keys in the known_hosts, use port information
953 from the URI, redirect ssh:/// to ssh://localhost/, wait 30 secs for ssh to finish before killing it (fixes the data loss problem when copying
954 files to a remote location), check for cancellation when ssh takes
955 to much time to finish, implement do_check_same_fs (disabled until
958 2003-02-10 Christophe Fergeau <teuf@users.sourceforge.net>
960 * modules/file-method.c: disabled the annoying "FAMOpen failed..."
963 ==== gnome-vfs 2.2.1 ====
965 2003-02-10 Alexander Larsson <alexl@redhat.com>
971 * modules/file-method.c:
972 Queue up fam events before adding/removing monitors to avoid
973 deadlocking. Fixes gnome-theme-manager hang.
975 2003-02-09 Christophe Fergeau <teuf@users.sourceforge.net>
977 * libgnomevfs/gnome-vfs-configuration.c: fixed a memory leak
979 2003-02-08 Kang Jeong-Hee <Keizi@mail.co.kr>
981 * Makefile.am: Added ACLOCAL_AMFLAGS. bug #102296
983 2003-02-06 Christian Rose <menthos@menthos.com>
985 * configure.in: Added "id" to ALL_LINGUAS.
987 2003-01-22 Pablo Saratxaga <pablo@mandrakesoft.com>
989 * configure.in: Added Amharic (am), Bosnian (bs),
990 Macedonian (mk) to ALL_LINGUAS
992 2003-01-22 Christian Rose <menthos@menthos.com>
994 * configure.in: Added "mn" to ALL_LINGUAS.
996 ==== gnome-vfs 2.2.0 ====
998 2003-01-20 Alexander Larsson <alexl@redhat.com>
1004 2003-01-17 Alexander Larsson <alexl@redhat.com>
1006 * libgnomevfs/gnome-vfs-ssl.c (gnome_vfs_ssl_create_from_fd):
1009 2003-01-16 Alexander Larsson <alexl@redhat.com>
1012 Comment out the gnutls check since its not tested.
1014 2003-01-16 Alexander Larsson <alexl@redhat.com>
1019 * libgnomevfs/gnome-vfs-ssl.c:
1020 gnutls support if openssl is not availible.
1021 Patch from Andrew McDonald (debian).
1022 I haven't tested this.
1024 2003-01-14 Alexander Larsson <alexl@redhat.com>
1026 * libgnomevfs/gnome-vfs-job.c:
1027 Fix race and bugs. Patches from Josh Parsons (jp30@st-and.ac.uk).
1028 Fixes #103420 and #103236.
1030 ==== gnome-vfs 2.1.91 ====
1032 2003-01-13 Alexander Larsson <alexl@redhat.com>
1038 2003-01-07 Alexander Larsson <alexl@redhat.com>
1040 * modules/gzip-method.c (write_gzip_header):
1041 Set creation time. Based on patch by davh@davh.dk. (#41172)
1043 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_extract_dirname):
1044 Don't crash on NULL uri->text. Patch by Dennis Haney. (#79730)
1046 * libgnomevfs/gnome-vfs-socket-buffer.c (gnome_vfs_socket_buffer_peekc):
1047 Return correct char instead of first in buffer.
1049 Patch from ksato@users.sourceforge.net (#102202)
1051 ==== gnome-vfs 2.1.6 ====
1053 2003-01-06 Alexander Larsson <alexl@redhat.com>
1057 Bump version to 2.1.6.
1059 2002-12-19 Alexander Larsson <alexl@redhat.com>
1061 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_format_file_size_for_display):
1062 Fix erronous change in string.
1064 2002-12-19 Michael Meeks <michael@ximian.com>
1066 * big sed job to '_' prefix 'internal' methods, it
1067 turns out that the modules use loads of these
1068 methods, based on Tim Janik's patch (thanks Tim)
1070 2002-12-18 Diego Gonzalez <diego@pemas.net>
1072 * libgnomevfs/gnome-vfs-job.h:
1074 * libgnomevfs/gnome-vfs-handle.h:
1075 add the description of GnomeVFSHandle
1077 2002-12-18 Alexander Larsson <alexl@redhat.com>
1080 Fix up mistakes from previous change.
1082 2002-12-18 Diego Gonzalez <diego@pemas.net>
1084 * configure.in: accidentaly changed the version in the last merge
1086 2002-12-18 Diego Gonzalez <diego@pemas.net>
1088 * configure.in: check for gtk-doc version 0.10
1090 * libgnomevfs/gnome-vfs-async-ops.[c-h]
1091 * libgnomevfs/gnome-vfs-directory.h
1092 * libgnomevfs/gnome-vfs-file-info.[c-h]
1093 * libgnomevfs/gnome-vfs-handle.h
1094 * libgnomevfs/gnome-vfs-init.c
1095 * libgnomevfs/gnome-vfs-mime.[c-h]
1096 * libgnomevfs/gnome-vfs-mime-info.h
1097 * libgnomevfs/gnome-vfs-job.h
1098 * libgnomevfs/gnome-vfs-mime-handlers.h
1099 * libgnomevfs/gnome-vfs-open-fd.c
1100 * libgnomevfs/gnome-vfs-ops.c
1101 * libgnomevfs/gnome-vfs-monitor.h
1102 * libgnomevfs/gnome-vfs-result.h
1103 * libgnomevfs/gnome-vfs-utils.c
1104 * libgnomevfs/gnome-vfs-xfer.[c-h]
1107 * doc/writing-modules.sgml:
1108 * doc/gnome-vfs-sections.txt
1109 * doc/gnome-vfs-docs.sgml
1111 * doc/tmpl/gnome-vfs-async-ops.sgml
1112 * doc/tmpl/gnome-vfs-directory.sgml
1113 * doc/tmpl/gnome-vfs-file-info.sgml
1114 * doc/tmpl/gnome-vfs-init.sgml
1115 * doc/tmpl/gnome-vfs-metadata.sgml
1116 * doc/tmpl/gnome-vfs-ops.sgml
1117 * doc/tmpl/gnome-vfs-result.sgml
1118 * doc/tmpl/gnome-vfs-uri.sgml
1119 * doc/tmpl/gnome-vfs-utils.sgml
1120 * doc/tmpl/gnome-vfs-xfer.sgml
1122 fix documentation, reorganize it and migrate the generation to use
1125 * doc/tmpl/gnome-vfs-directory-basic-ops.sgml
1126 * doc/tmpl/gnome-vfs-directory-find-ops.sgml
1127 * doc/tmpl/gnome-vfs-directory-list-ops.sgml
1128 * doc/tmpl/gnome-vfs-file-rw-ops.sgml
1129 * doc/tmpl/gnome-vfs-file-trunc-ops.sgml
1130 * doc/tmpl/gnome-vfs-file-basic-ops.sgml
1131 * doc/tmpl/gnome-vfs-file-advanced-ops.sgml
1132 * doc/tmpl/gnome-vfs-file-info-ops.sgml
1135 2002-12-18 Alexander Larsson <alexl@redhat.com>
1137 * libgnomevfs/gnome-vfs-mime.h:
1138 * libgnomevfs/gnome-vfs-init.h:
1139 Deprecate gnome_vfs_mime_shutdown, gnome_vfs_loadinit,
1140 gnome_vfs_preinit and gnome_vfs_postinit.
1142 2002-12-18 Frederic Crozat <fcrozat@mandrakesoft.com>
1144 * modules/Makefile.am:
1145 * modules/extfs-method.c:
1146 * modules/extfs/Makefile.am:
1147 use $(libdir) instead of $(prefix)/lib (needed for AMD x86-64)
1149 2002-12-18 Alexander Larsson <alexl@redhat.com>
1151 * libgnomevfs/gnome-vfs-private-utils.h:
1152 * libgnomevfs/gnome-vfs-utils.c:
1153 (_gnome_vfs_uri_resolve_all_symlinks_uri),
1154 (_gnome_vfs_uri_resolve_all_symlinks),
1155 (_gnome_vfs_uri_is_in_subdir):
1156 New functions. Not exported since we're in a freeze, but might
1157 be nice to export later.
1159 * libgnomevfs/gnome-vfs-xfer.c:
1160 (move_source_is_in_target),
1161 (handle_name_conflicts):
1162 Handle the case when moving a file over a directory it is contained in.
1166 * test/test-resolv.c: (main):
1167 * test/test-subdir.c: (main):
1170 2002-12-17 Alexander Larsson <alexl@redhat.com>
1173 * modules/vfolder/Makefile.am (libvfolder_desktop_la_LIBADD):
1174 Add gthread-2.0 to TEST_LIBS and add it to LIBADD.
1175 Patch from owen taylor.
1177 ==== gnome-vfs 2.1.5 ====
1179 2002-12-16 Alexander Larsson <alexl@redhat.com>
1185 2002-12-12 Alexander Larsson <alexl@redhat.com>
1187 * libgnomevfs/gnome-vfs-result.[ch]:
1188 Add GNOME_VFS_ERROR_NO_MASTER_BROWSER error.
1190 ==== gnome-vfs 2.1.4 ====
1192 2002-12-09 Alexander Larsson <alexl@redhat.com>
1195 Bump version to 2.1.4.
1200 2002-12-06 Frederic Crozat <fcrozat@mandrakesoft.com>
1202 * libgnomevfs/gnome-vfs-mime-info.c: (ensure_user_directory_exist):
1203 Check dir is not NULL before trying to close it.
1205 2002-12-05 Frederic Crozat <fcrozat@mandrakesoft.com>
1207 * libgnomevfs/gnome-vfs-mime-info.c: (ensure_user_directory_exist),
1208 (write_back_mime_user_file), (write_back_keys_user_file):
1209 Ensure directory stream is never leaked.
1211 2002-12-05 Frederic Crozat <fcrozat@mandrakesoft.com>
1213 * libgnomevfs/gnome-vfs-mime-monitor.c:
1214 (gnome_vfs_mime_monitor_init):
1215 Ensure user mime dir exists before monitoring it
1217 2002-12-05 Alexander Larsson <alexl@redhat.com>
1219 * modules/default-modules.conf:
1220 * modules/console-method.c:
1221 * modules/Makefile.am:
1222 Remove console method.
1224 * libgnomevfs/Makefile.am:
1225 * libgnomevfs/gnome-vfs-open-fd.c:
1226 * libgnomevfs/gnome-vfs-utils.h:
1227 Implement gnome_vfs_open_fd().
1228 Patch from Giovanni Corriga <valkadesh@libero.it>
1230 2002-11-27 Jody Goldberg <jody@gnome.org>
1232 * configure.in : post release version bump
1234 2002-11-27 Jody Goldberg <jody@gnome.org>
1238 2002-11-27 Jody Goldberg <jody@gnome.org>
1240 * configure.in : bump to 2.1.3.1 for release
1242 2002-11-12 Michael Meeks <michael@server.home>
1244 * modules/extfs-method.c (do_get_file_info): check
1245 result before using the handle.
1247 2002-11-12 Alexander Larsson <alexl@redhat.com>
1249 * libgnomevfs/gnome-vfs-method.h:
1250 Added file_control to ops
1252 * libgnomevfs/gnome-vfs-async-ops.[ch]:
1253 Added gnome_vfs_async_file_control
1255 * libgnomevfs/gnome-vfs-cancellable-ops.[ch]:
1256 Added gnome_vfs_file_control_cancellable
1258 * libgnomevfs/gnome-vfs-ops.[ch]:
1259 Added gnome_vfs_file_control
1261 * libgnomevfs/gnome-vfs-handle-private.h:
1262 * libgnomevfs/gnome-vfs-handle.c:
1263 * libgnomevfs/gnome-vfs-job.[ch]:
1264 Implement file_control
1266 2002-11-08 Giovanni Corriga <valkadesh@rocketmail.com>
1268 * modules/Makefile.am
1269 * modules/default-modules.conf
1270 * modules/console-method.c: added console method (which adds
1271 console:///stdin, console:///stdout, console:///stderr uris)
1273 2002-11-08 Christophe Fergeau <teuf@users.sourceforge.net>
1275 * libgnomevfs/gnome-vfs-file-info.h: documented
1276 GNOME_VFS_FILE_INFO_FIELDS_ACCESS and
1277 GNOME_VFS_FILE_INFO_GET_ACCESS_RIGHTS
1278 * modules/ssh-method.c: only get mime type and access info if they
1281 2002-11-06 Christophe Fergeau <teuf@users.sourceforge.net>
1283 * libgnomevfs/gnome-vfs-mime-magic.c
1284 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h: rework looks_like_text to
1285 use glib functions, remove looks_like_gzip (moved in gnome-mime-data)
1286 * libgnomevfs/gnome-vfs-mime.c: removed looks_like_gzip call, replaced
1287 by a strcmp on the mime type returned by the sniff function
1289 2002-11-05 Michael Meeks <michael@ximian.com>
1291 * test/Makefile.am: disable test-metadata
1293 * libgnomevfs/gnome-vfs.h: remove
1294 gnome-vfs-metadata.h.
1296 * libgnomevfs/gnome-vfs-metadata-private.h,
1297 * libgnomevfs/gnome-vfs-metadata.h,
1298 * libgnomevfs/gnome-vfs-metadata.c: add
1299 generated files to CVS, so they can be
1300 canonicalized later if neccessary.
1302 * libgnomevfs/Makefile.am: disable gob
1303 builds, and remove generated files from
1304 install - immature / unfinished API.
1306 * configure.in: disable building gob.
1308 2002-11-04 Frederic Vannere <homere@krow.org>
1310 * modules/ftp-method.c: add support for Microsoft and Netware FTP
1313 2002-11-04 bugzilla-gnome@thewrittenword.com
1316 * libgnomevfs/gnome-vfs-method.c: check whether to use seteuid/setegid
1317 or setresuid/setregid (fixes #96078)
1319 2002-11-04 Jens Elkner <elkner@linofee.org>
1321 * configure.in: fixes --with-openssl-includes
1323 2002-11-04 Josh Lucas <josh@stonecottage.com>
1325 * test/test-shell.c: display more info, fixes #42800
1327 2002-11-03 Dmitry G. Mastrukov <dmitry@taurussoft.org>
1329 * configure.in: Added Belarusian to ALL_LINGUAS
1331 2002-11-02 Michael Meeks <michael@ximian.com>
1335 * libgnomevfs/Makefile.am: disable
1336 check-headers.pl, we have some path issues here.
1338 * modules/vfolder/Makefile.am: disable this, doesn't
1341 2002-10-31 Bastien Nocera <hadess@hadess.net>
1343 * modules/vfolder/network.vfolder-info.in: make writing to network:
1346 2002-10-30 Bastien Nocera <hadess@hadess.net>
1348 * modules/default-modules.conf:
1349 * modules/vfolder/Makefile.am:
1350 * modules/vfolder/network.vfolder-info.in: added network: scheme
1352 2002-10-29 Jody Goldberg <jody@gnome.org>
1354 Patch from Christophe Fergeau <teuf@users.sourceforge.net>
1355 * libgnomevfs/gnome-vfs-file-info.h : Add explicit flags to request
1357 * modules/file-method.c (get_access_info) : new.
1358 * modules/ssh-method.c (get_access_info) : new.
1359 * test/test-info.c (print_file_info) : test for the new flag.
1361 2002-10-29 Michael Meeks <michael@ximian.com>
1363 * libgnomevfs/gnome-vfs-module-callback.c
1364 (copy_one_callback): bin so we can build -Wall
1367 2002-10-29 Colin Walters <walters@debian.org>
1369 * test/test-xfer.c: add params so we can regression
1370 test the various options nicely.
1372 * libgnomevfs/gnome-vfs-xfer.h (GnomeVFSXferOptions):
1373 add GNOME_VFS_XFER_FOLLOW_LINKS_RECURSIVE.
1375 * libgnomevfs/gnome-vfs-xfer.c (copy_directory): add
1376 recursive symlink following copy support.
1378 2002-10-25 Alex Graveley <alex@ximian.com>
1380 Drop support for the broken .vfolder-info-default concept.
1382 * modules/vfolder/Makefile.am (EXTRA_DIST): Remove
1383 applications.vfolder-info-default.in and
1384 preferences.vfolder-info-default.in
1385 (vfolder_DATA): Remove applications.vfolder-info-default and
1386 preferences.vfolder-info-default.
1388 * modules/vfolder/applications-all-users.vfolder-info.in: Link to
1389 preferences:/// instead of preferences-all-users:///. If admins
1390 want to edit preferences-all-users:, they should go there
1393 * modules/vfolder/vfolder-info.c (vfolder_info_find_filenames):
1394 Don't look for .vfolder-info-default, and don't copy it to the
1395 user's vfolder directory.
1396 (copy_user_default_file): Remove.
1397 (vfolder_info_init): Set the default writedir to
1398 ~/.gnome2/vfolders/scheme, in case a .vfolder-info files doesn't
1399 exist to tell us where to write changes.
1401 2002-10-25 Alex Graveley <alex@ximian.com>
1403 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new_private): Use
1404 gnome_vfs_context_peek_current() instead of
1405 gnome_vfs_context_new() which was triggering an abort if resolving
1406 a transform URI from a worker thread because you cannot create
1407 contexts in anything other than the primary thread (for some
1410 2002-10-25 Alex Graveley <alex@ximian.com>
1412 * modules/vfolder/vfolder-common.c (folder_add_include): Don't add
1413 the include to a hashtable, since a) we don't use it and b) it was
1414 causing memory corruption on folder free. Fixes #95965.
1415 (folder_remove_include): Drop hashtable removing code.
1417 2002-10-24 Brian Cameron <brian.cameron@sun.com>
1419 * libgnomevfs/gnome-vfs-module-callback.c: Performance fix.
1420 No longer copy the default callback functions to stack_info
1421 in the function gnome_vfs_module_callback_get_stack_info.
1422 Note that the function gnome_vfs_module_callback_invoke is
1423 the only function to access the callback hashes, and it
1424 already will get the callback from the default if it is not
1425 in the private thread memory.
1427 2002-10-21 Stephen Browne <stephen.browne@sun.com>
1429 * modules/cdemenu-desktop-method.c: Find correct titles
1430 and use last defintion instead of first found of a menu
1431 that is defined multiple times.
1433 2002-10-12 Seth Nickell <snickell@stanford.edu>
1435 * modules/vfolder/applications.vfolder-info-default.in:
1437 Disable favorites folder... Everything is favorites now.
1439 2002-10-04 Mark McLoughlin <mark@skynet.ie>
1441 * modules/vfolder/vfolder-common.h: turn on VFOLDER_DEBUG
1442 for debugging spew and VFOLDER_DEBUG_WITHOUT_MONITORING
1443 for testing non-FAM monitoring code.
1445 * modules/vfolder/vfolder-common.c:
1446 * modules/vfolder/vfolder-info.c: only spew debugging info
1449 * modules/vfolder/vfolder-util.c: (monitor_callback_internal):
1450 Use non-FAM monitoring code if VFOLDER_DEBUG_WITHOUT_MONITORING
1453 2002-10-07 Seth Nickell <snickell@stanford.edu>
1455 * modules/vfolder/applications-all-users.vfolder-info.in:
1457 Don't hardcode displaying evolution and galeon into the
1460 2002-10-01 Yanko Kaneti <yaneti@declera.com>
1462 * schemas/system_http_proxy.schemas: reorder some elements so that it
1465 2002-09-30 Christophe Fergeau <teuf@users.sourceforge.net>
1467 * modules/ssh-method.c:
1468 Quote filenames using g_shell_quote before passing them to ssh
1470 2002-09-30 Christophe Fergeau <teuf@users.sourceforge.net>
1472 * modules/ssh-method.c:
1473 Make do_read return GNOME_VFS_ERROR_EOF when it read 0 byte
1474 Force C locale in ssh_connect before running ssh (the ls parsing
1475 function expects ls output to be in this locale)
1476 When the uri contains no username, use the name of the current user
1477 (otherwise ssh://localhost won't work).
1478 Fix a possible buffer overflow in do_read_directory
1480 2002-09-30 Christophe Fergeau <teuf@users.sourceforge.net>
1482 * modules/ftp-method.c:
1483 Moved ftp authentification to a separate function (ftp_login)
1484 Correctly return GNOME_VFS_ERROR_EOF when do_read didn't read anything
1486 2002-09-27 Arvind Samptur <arvind.samptur@wipro.com>
1488 * modules/Makefile.am : look for cde menus only if cde is present.
1489 * cdemenu-module.conf : added the new file.
1490 * default-modules.conf : remove cdemenu from defaults.
1491 Fixes #86736. Patch from Stephen Browne.
1493 2002-09-20 Arvind Samptur <arvind.samptur@wipro.com>
1495 * modules/cde-desktop-method.c: Removing Comment field
1496 from the desktop files. Fixes #88484
1497 Redoing this since gnome-vfs-rewrite and gnome-2-0 branch
1498 merge had knocked it off.
1500 2002-09-19 James Willcox <jwillcox@gnome.org>
1502 Moved some of eel-vfs-extensions.c into gnome-vfs-utils.c
1504 * libgnomevfs/gnome-vfs-utils.c:
1505 (gnome_vfs_escape_string_internal),
1506 (gnome_vfs_make_uri_canonical_old), (gnome_vfs_make_valid_utf8),
1507 (gnome_vfs_format_uri_for_display_internal),
1508 (gnome_vfs_format_uri_for_display), (is_valid_scheme_character),
1509 (has_valid_scheme), (gnome_vfs_escape_high_chars),
1510 (gnome_vfs_make_uri_from_input_internal),
1511 (gnome_vfs_make_uri_from_input),
1512 (gnome_vfs_make_uri_canonical_strip_fragment), (uris_match),
1513 (gnome_vfs_uris_match), (gnome_vfs_str_has_prefix),
1514 (gnome_vfs_uri_is_local_scheme),
1515 (gnome_vfs_handle_trailing_slashes),
1516 (gnome_vfs_make_uri_canonical), (gnome_vfs_get_uri_scheme),
1517 (file_uri_from_local_relative_path),
1518 (gnome_vfs_make_uri_from_shell_arg), (is_uri_partial),
1519 (remove_internal_relative_components),
1520 (gnome_vfs_make_uri_full_from_relative):
1521 * libgnomevfs/gnome-vfs-utils.h:
1523 2002-09-19 Christophe Fergeau <teuf@users.sourceforge.net>
1525 * libgnomevfs/gnome-vfs-application-registry.c
1526 * libgnomevfs/gnome-vfs-application-registry.h
1527 * libgnomevfs/gnome-vfs-configuration.c
1528 * libgnomevfs/gnome-vfs-configuration.h: added support for
1529 uses_gnomevfs in .application file so that apps can indicate they
1530 can open all uris supported by gnomevfs
1531 * doc/mime-data-specification.txt: updated doc accordingly
1533 2002-09-13 Ghee Teo <ghee.teo@sun.com>
1535 * Fixes #92132 in modules/http-method.c which leaks file descriptor
1536 on a bad page, error 405.
1538 2002-09-09 Jody Goldberg <jody@gnome.org>
1540 * libgnomevfs/gnome-vfs-job.c (gnome_vfs_job_destroy_notify_result) :
1541 Add an entry to OP_XFER.
1543 2002-09-04 Ian McKellar <yakk@yakk.net>
1545 * libgnomevfs/gnome-vfs-configuration.c:
1546 (gnome_vfs_configuration_init):
1547 Fixed bug #90035. If g_get_home_dir returns NULL then don't load
1548 configuration from your home directory.
1550 2002-09-04 Ian McKellar <yakk@yakk.net>
1552 * LIMITATIONS: Document a few of GnomeVFS's limitations
1554 2002-08-29 Alex Graveley <alex@ximian.com>
1556 * configure.in: Bump version to 2.1.2 for development.
1558 === start merge changes from gnome-vfs-2-0-vfolder-rewrite branch ===
1560 2002-08-23 Alex Graveley <alex@ximian.com>
1562 * modules/vfolder/vfolder-method.c (do_move): Remove fake CHANGED
1563 event for .directory files since it is really a bug in nautilus
1564 renames (see bug #89616).
1566 2002-08-23 Alex Graveley <alex@ximian.com>
1568 * modules/vfolder/vfolder-info.c (vfolder_info_emit_change): Call
1569 gnome_vfs_escape_path_string() on the path arg. This fixes some
1570 strange behavior in nautilus when editing .desktop files with
1571 emacs, since emacs' temporary #files were being parsed as URI
1572 fragment identifiers.
1574 * modules/vfolder/vfolder-util.h (VFOLDER_URI_PARSE): Add debug
1575 printf with function name being called. This allows us to trace
1576 the vfs method calls.
1578 2002-08-23 Alex Graveley <alex@ximian.com>
1580 * modules/vfolder/vfolder-common.c (folder_extend_monitor_cb):
1581 Fix segfault where we accidentally used child.entry instead of
1582 entry. Remove local entry var, and use child.entry throughout.
1585 2002-08-19 Alex Graveley <alex@ximian.com>
1587 * modules/vfolder/vfolder-method.c (set_desktop_file_key):
1588 Impl. Append a key/value pair to the end of the buffer, after
1589 removing any prior occurances of the same keyname.
1590 (set_desktop_file_locale_key): Impl. Localize the keyname with
1591 the current locale gotten from gnome_vfs_i18n_get_language_list(),
1592 and call set_desktop_file_key().
1593 (set_dot_directory_locale_name): Impl. Handles renaming
1594 .directory files by making them user-private if necessary, reading
1595 in the file contents, replacing the localized Name key, and
1596 writing it back out again. Also generates a CHANGED event for the
1598 (do_move): Call set_dot_directory_locale_name() to change the
1599 folder name as described in the .directory file, as well as
1600 renaming the "physical" directory name.
1601 (do_create_symbolic_link): Fix deadlock by unlocking the vfolder
1602 before calling get_file_info() and locking it again afterwards ,
1603 in case the target URI is on the same filesystem (which may always
1606 * modules/vfolder/vfolder-common.c (entry_make_user_private): Make
1607 a .directory file user-private by calling
1608 folder_set_desktop_file(), instead of modifying includes/excludes.
1609 (create_dot_directory_entry): Make <desktop> files user_private
1610 again, so we don't make a new user-private copy for each edit.
1611 Ths has the side effect that changes to applications-all-users:
1612 directory names will be reflected in the original .directory files.
1614 * modules/vfolder/vfolder-info.c (filename_monitor_handle): Reset
1615 info->filename_reload_tag to 0 as a precaution.
1617 2002-08-16 Alex Graveley <alex@ximian.com>
1619 * modules/vfolder/vfolder-method.c (do_remove_directory_unlocked):
1620 Use vfolder_build_uri instead of creating a parent uri only to
1621 concat the filename to.
1622 (do_move): Call folder_set_name() after folder_make_user_private()
1625 * modules/vfolder/vfolder-info.c
1626 (integrate_writedir_entry_changed): Call entry_set_dirty() on the
1628 (writedir_monitor_cb): Handle files with a .directory extension.
1630 * modules/vfolder/vfolder-common.c (folder_extend_monitor_cb):
1631 Handle extended subfolder deletion, and don't iterate child
1632 entries for changed/delete just lookup based on filename and
1634 (create_dot_directory_entry): Don't consider <Desktop> files
1636 (folder_reload_if_needed): Reset the entries and the
1637 non-user-private subfolders here.
1638 (folder_new): Set dirty to true for new folders.
1639 (folder_remove_subfolder): Don't blindly unref the child folder,
1640 instead unref the folder we know is our child. Set the removed
1641 child's parent to NULL.
1642 (folder_add_subfolder): Call folder_remove_subfolder() before
1643 adding, but ref first of all.
1645 2002-08-14 Alex Graveley <alex@ximian.com>
1647 * modules/vfolder/vfolder-util.c (vfolder_untimestamp_file_name):
1648 Only remove one set of timestamp, in case we are copying the same
1649 file around multiple times.
1651 * modules/vfolder/vfolder-common.c (create_dot_directory_entry):
1652 Only add entry to folder if it does not contain one with the same
1653 name and a higher weight.
1654 (read_one_extended_entry): Ditto.
1655 (read_one_extended_entry): Ditto.
1656 (read_one_include): Ditto.
1658 * modules/vfolder/vfolder-method.c (do_remove_directory_unlocked):
1659 Remove check for hiddeness, as a recursive delete on a folder with
1660 <DontShowIfEmpty/> will not allow the actual folder to be deleted
1661 once all its contents are removed.
1662 (do_unlink_unlocked): Only check result of file delete if parent
1663 is a linked directory, since if it fails we can still just remove
1664 it from the .vfolder-info.
1665 (do_read_directory): Skip to next entry if getting the real file's
1668 * modules/vfolder/vfolder-common.c (read_one_include): Untimestamp
1669 included files that originate in the writedir.
1670 (folder_remove_entry): Only unref the existing entry, instead of
1671 assuming the one we are removing is the same.
1672 (folder_add_entry): Ref before calling folder_remove_entry, in
1673 case we hold the only ref.
1675 * modules/vfolder/preferences-all-users.vfolder-info.in: Set the
1676 WriteDir to @vfolderdir@/preferences-all-users.
1678 * modules/vfolder/applications-all-users.vfolder-info.in: Set the
1679 WriteDir to @vfolderdir@/applications-all-users.
1681 * modules/vfolder/Makefile.am (VFOLDER_INFO_CREATE): Translate
1682 @vfolderdir@ in .vfolder-info.in files as
1683 $(sysconfdir)/gnome-vfs-2.0/vfolders.
1685 * modules/vfolder/vfolder-info.c (vfolder_info_find_filenames):
1686 Check for system-global file first, then user-local, then try
1687 copying the system-default file. This allows administrator
1688 override of editing. Remove default WriteDir.
1689 (create_itemdir_entry): Don't create ItemDir/MergeDir entries as
1690 user-private, because we probably don't really want them
1692 (read_vfolder_from_file): Don't bother creating ItemDir struct to
1693 monitor writedirs, since I don't think we actually care about the
1696 2002-08-12 Alex Graveley <alex@ximian.com>
1698 * modules/Makefile.am (modules_LTLIBRARIES): Remove libdesktop.so.
1700 * modules/default-modules.conf: Use libvfolder-desktop.so instead
1703 * modules/desktop-method.c: Delete in favor of vfolder-based impl.
1705 * modules/vfolder/Makefile.am (vfolder_DATA): Install
1706 favorites.vfolder-info, start-here.vfolder-info,
1707 server-settings.vfolder-info, and system-settings.vfolder-info.
1709 * modules/vfolder/favorites.vfolder-info.in:
1710 * modules/vfolder/start-here.vfolder-info.in:
1711 * modules/vfolder/server-settings.vfolder-info.in:
1712 * modules/vfolder/system-settings.vfolder-info.in: New vfolder info
1713 files to support the vfs methods currently handled by
1716 2002-08-12 Alex Graveley <alex@ximian.com>
1718 * modules/vfolder/vfolder-info.c (find_replacement_for_delete):
1719 For correctness, only call set_mergedir_entry_keywords() if
1720 id_next is a MergeDir.
1721 (itemdir_monitor_handle): Ditto.
1722 (itemdir_monitor_cb): Don't handle events other than CHANGED for
1723 the WriteDir, since if we care about them the .vfolder-info should
1724 be updated and reread, instead of us trying to guess where they
1726 (vfolder_info_find_filenames): Load user-private, else try copying
1727 system-default to user-private, else try using system-global
1728 .vfolder-info directly, else fall back to empty user-private
1729 .vfolder-info. Fixes bug #90202.
1731 2002-08-09 Alex Graveley <alex@ximian.com>
1733 * modules/vfolder/vfolder-method.c (do_remove_directory_unlocked):
1734 Always unconditionally <Exclude> the deleted folder name, in case
1735 the folder is overrriding a system one.
1736 (do_unlink_unlocked): Always exclude the deleted entry's
1737 displayname, for the same reasons.
1739 2002-08-09 Alex Graveley <alex@ximian.com>
1741 * modules/vfolder/vfolder-info.c (set_mergedir_entry_keywords):
1742 Abstract the MergeDir keyword adding to here.
1743 (create_mergedir_entry): Call set_mergedir_entry_keywords().
1744 (find_replacement_for_delete): Take an entry which this
1745 mmanipulates directly. Make sure to load up MergeDir keywords for
1746 the replaced file on the existing entry. Set the entry weight to
1747 that of the ItemDir where we are finding our replacement.
1748 (itemdir_monitor_handle): Set weight and load MergeDir keywords
1749 when the CREATED entry has a higher weight than an existing one
1751 (check_monitors_foreach): Don't emit events for <OnlyUnallocated>
1752 folders, since we can't be sure all the entries have been
1755 * modules/vfolder/vfolder-common.c (entry_make_user_private): Set
1756 the weigth to 1000 so no other entries will override us.
1757 (entry_set_weight): Impl.
1759 2002-08-09 Alex Graveley <alex@ximian.com>
1761 * modules/vfolder/vfolder-method.c (fill_file_info_for_directory):
1762 Copy code for filling a GnomeVFSFileInfo with a directory's
1763 properties to here from get_file_info_internal().
1764 (get_file_info_internal): Make child a pointer to a FolderChild,
1766 (do_get_file_info_from_handle): Use get_file_info_internal(), and
1767 be sure to read lock the info.
1769 * modules/vfolder/vfolder-info.c (vfolder_info_read_info): Don't
1770 forget to add the moniitor for the root directory, as
1771 directory_visit doesn't call create_entry_directory_visit_cb() for
1772 the starting directory.
1773 (itemdir_monitor_cb): If the file matches the monitored uri,
1774 ignore since we only care about events from our children. Don't
1775 set the Vfolder to loading, since we want events to actually be
1776 sent. Check the child filename in question is not hidden.
1778 2002-08-08 Alex Graveley <alex@ximian.com>
1780 * modules/vfolder/vfolder-method.c (do_create): Don't Forgot to
1781 write unlock when returning from a failed parent directory
1783 (dir_handle_new): Don't hold a read lock here, otherwise directory
1784 deletion deadlocks as nautilus traverses the files and deletes
1786 (dir_handle_new_all): Ditto.
1787 (dir_handle_free): Don't read unlock, to match above.
1788 (get_file_info_internal): Abstract the GnomeVFSFileInfo filling to
1789 here to share code between do_read_directory() and
1791 (do_read_directory): Acquire read lock while reading the next
1793 (do_make_directory): Add check to block against trying to create
1794 the root folder, which always exists. Don't forget to write
1795 unlock if make_directory fails for a link folder's actual
1797 (do_remove_directory_unlocked): Don't write unlock here, since
1798 this is an _unlocked function :-)
1799 (do_unlink_unlocked): Only add exclude for displayname if file is
1801 (do_create_symbolic_link): Use GNOME_VFS_FILE_INFO_FOLLOW_LINKS
1802 when stat'ing our target link, as we need to be able to tell if
1803 the destination is really a directory.
1805 * modules/vfolder/vfolder-info.c (filename_monitor_handle): Move
1806 code from filename_monitor_cb, so we can be called from the
1807 filename event timeout handler.
1808 (filename_monitor_cb): For delete events set a 2 second delay
1809 before processing .vfolder-info files, for create a .5 second
1810 delay and process change events instantly.
1812 * modules/vfolder/vfolder-common.c (entry_make_user_private):
1813 Clean up include/exclude handling. Exclude current displayname,
1814 remove include for current filename, and add include for new
1816 (read_one_include): Simplify include loading, don't try to futz
1817 with untimestamping filenames, handle include with just a
1818 filename and not a full uri.
1820 * modules/vfolder/applications-all-users.vfolder-info.in: Don't
1821 include sep.desktop.
1823 2002-08-08 Alex Graveley <alex@ximian.com>
1825 * modules/vfolder/vfolder-method.c (do_unlink_unlocked): Call
1826 folder_remove_include() if the entry is user-private, so we don't
1827 leave old <Include> tags around.
1829 * modules/vfolder/vfolder-info.c (itemdir_free): g_slist_free()
1831 (vfolder_info_write_user): Check filename monitor exists before
1832 trying to freeze/thaw it. This should fix bug #90160.
1833 (integrate_entry): Skip <OnlyUnallocated> folders. Emit a monitor
1834 event based on the outcome here.
1835 (itemdir_monitor_handle): Update info->modification_time. Fix
1836 botched relative path handling on create events.
1837 (itemdir_monitor_cb): Fix typo causing double write lock instead
1838 of an unlock. Doh :)
1839 (copy_user_default_file): Call
1840 vfolder_make_directory_and_parents() before trying to copy the
1841 default .vfolder-info file.
1843 * modules/vfolder/vfolder-common.c (folder_emit_changed): Make
1846 Add some monitor-related debugging g_prints.
1848 2002-08-06 Alex Graveley <alex@ximian.com>
1850 * modules/vfolder/vfolder-util.c (vfolder_monitor_freeze): Use
1851 gnome_vfs_monitor_cancel instead of setting a freeze flag, because
1852 the events can arrive after the flag has been reset, causing
1853 unneccessary .vfolder-info reads.
1854 (vfolder_monitor_thaw): Use gnome_vfs_monitor_add() to add the
1857 * modules/vfolder/vfolder-method.c (do_create): Create entry with
1858 highest weight (1000).
1859 (dir_handle_new): Read lock info on DirHandle creation. Use new
1860 folder_list_children().
1861 (dir_handle_free): Read unlock info.
1862 (do_move): Only delete directory if source and destination folders
1864 (do_create_symbolic_link): Impl. Support creation of symbolic
1865 links to direcctories by creating a new directory with a
1867 (do_monitor_add): Use a read lock instead of write lock because we
1868 don't want to write out changes after creating a new monitor.
1869 (do_monitor_cancel): Ditto.
1871 * modules/vfolder/vfolder-info.c (folder_read): Escape <Parent>
1872 directories beginning with '~'. Unref the child folder after
1873 adding it as a subfolder.
1874 (read_vfolder_from_file): Ditto, but for ItemDir, MergeDir,
1875 WriteDir, and DesktopDir.
1876 (itemdir_new): Take weight and untimestamp_files parameters. The
1877 first is the weight which will be assigned to entries created from
1878 this folder, the second is for WriteDirs, so filenames are
1879 displayed without the timestamp. Add ourselves to the info's
1881 (itemdir_free): Free the list of monitors on subdirs of this
1883 (create_itemdir_entry): Refactor entry creation for <ItemDir>
1884 dirs. Add a monitor to the ItemDir struct if the child is a dir,
1885 so that we are informed of changes in subfolders.
1886 (create_mergedir_entry): Use create_itemdir_entry() to create the
1887 entries for <MergeDir> dirs, and add keywords by splitting up the
1888 relative path and matching against the known list of dir names.
1889 (create_entry_directory_visit_cb): directory_visit callback which
1890 creates entries based on the type of ItemDir.
1891 (vfolder_info_read_info): After reading .vfolder-info, foreach
1892 ItemDir call gnome_vfs_directory_visit() so we can create all the
1894 (vfolder_info_write_user): Write XML to temporary file then use
1895 gnome_vfs_move to move to the config filename, in order to
1896 minimize listeners getting libxml parse errors from empty
1897 .vfolder-info files.
1898 (find_replacement_for_delete): Impl. Look for a like-named
1899 replacement for a file which has been deleted.
1900 (integrate_entry): Impl. Conditionally traverse and replace all
1901 entries with the same name and a lower weight, after rechecking
1902 that the new entry matches the folder's query.
1903 (itemdir_monitor_handle): Impl. Handling monitor events on
1904 ItemDirs by either updating or replacing existing entires, then
1905 integrate with all folders using integrate_entry().
1906 (vfolder_info_find_filenames): Complexify the .vfolder-info
1907 filename finding code by first checking the standard user
1908 location, and then if it doesn't exist copying a system default
1909 file to the standard location. This allows for overrides and
1910 additions of things in the -all-users.vfolder-info file, such as
1911 preferences:// and favorites:///.
1913 (filename_monitor_cb): Correctly handle .vfolder-info filename
1914 events by looking at the requested monitors, and if they monitor a
1915 directory, constructing a list of that directory's children. Then
1916 free all the folder/entry resources and reread the .vfolder-info
1917 configuration file. Then trave trhough the list we created and
1918 check if the folders and their children still exist (if not,
1919 then send a DELETED event to the monitor), and then send CREATED
1920 events for any new children.
1922 * modules/vfolder/vfolder-common.h: Clean out specific monitors
1923 from VFolderInfo, as they are all handled as ItemDirs now.
1925 * modules/vfolder/vfolder-common.c (entry_new): Accept a weight,
1926 which can be used to tell if a given Entry is more important than
1927 another based on load order.
1928 (entry_reload_if_needed): Copy implicit keywords lists when
1929 reloading so we don't lose the MergeDir keywords.
1930 (entry_get_weight): Return weight.
1931 (entry_add_implicit_keyword): Add Quark to implicit_keywords as
1933 (folder_new): Take user_private as a parameter.
1934 (folder_extend_monitor_cb): Handle monitor events from our
1935 extend_uri correctly by refreshing, deleting, or creating child
1937 (create_dot_directory_entry): Move code to create a ".directory"
1938 entry here from vfolder-info.c
1939 (read_includes): Create entries with highest weight (1000).
1940 (read_one_extended_entry): Pass 900 as weight for created entries.
1941 Create folders as non-user-private.
1942 (folder_reload_if_needed): Start monitoring the extend_uri here,
1943 to cut down on unneeded events
1944 (folder_emit_changed): Take a child argument, which emits the
1945 given event with the uri of the named folder child.
1946 (folder_set_extend_uri): Cancel the extend_monitor here.
1947 (folder_set_desktop_file): Don't set the folder dirty.
1948 (folder_list_children): Impl. Copies all the folder children's
1949 names into a list, moved from vfolder-method.c.
1950 (folder_get_subfolder): Don't ref the returned folder.
1951 (folder_remove_subfolder): Don't modify includes/excludes here,
1952 but let the caller do it. Don't set the parent folder to dirty.
1953 (folder_add_subfolder): Don't emit monitor changes here, let our
1956 2002-07-29 Alex Graveley <alex@ximian.com>
1958 * modules/vfolder/vfolder-info.c: Add WordProcessing->Office and
1959 Toys->Utility keyword mapping. These are two top-level KDE menus.
1961 * modules/vfolder/applications-all-users.vfolder-info.in: Use
1962 <ParentLink/> for Preferences, so changes get written out to
1963 preferences-all-users:///.
1965 2002-07-29 Alex Graveley <alex@ximian.com>
1967 * modules/vfolder/vfolder-util.c (vfolder_escape_home): Impl,
1968 if the filename starts with '~', escape with home directory.
1970 * modules/vfolder/vfolder-method.c Support is_link folders
1971 thoughtout. Probably buggy.
1972 (do_create_symbolic_link): Impl, support creating "symbolic links"
1973 to directories using the <ParentLink> element.
1975 * modules/vfolder/vfolder-info.c (folder_read): Support ParentLink
1976 elements, which means all changes to a directory are forwarded to
1977 the parent, and not a private copy in the WriteDir.
1978 (itemdir_new): Use vfolder_escape_home().
1979 (read_vfolder_from_file): Ditto.
1980 (add_xml_tree_from_folder): Store parent as <ParentLink> if
1982 (vfolder_info_reset): Reset the flags.
1983 (copy_user_default_file): Impl. Copies the
1984 scheme.vfolder-info-default to scheme.vfolder-info in the user's
1986 (vfolder_info_init): Split filename choosing out to
1987 vfolder_info_find_filenames.
1989 * modules/vfolder/vfolder-common.h: Use one bit allocation for
1990 flags. Rename inhibit_write to loading in VFolderInfo. Add
1991 is_link to Folder. Turn off debugging.
1993 * modules/vfolder/vfolder-common.c (read_extended_entries): Call
1994 read_one_extended_entry() for each file.
1995 (read_info_entry_pool): Call read_one_info_entry_pool() for each
1996 entry in the entry pool.
1998 * modules/vfolder/Makefile.am (EXTRA_DIST): Installed vfolder-info
1999 files are now applications-all-users.vfolder-info,
2000 preferences-all-users.vfolder-info, and
2001 applications.vfolder-info-default.
2003 2002-07-26 Alex Graveley <alex@ximian.com>
2005 * modules/vfolder/test-vfolder.c (main): Use putenv() as setenv()
2006 is not portable to Solaris.
2008 2002-07-26 Alex Graveley <alex@ximian.com>
2010 * modules/vfolder/vfolder-util.c (monitor_timeout_cb): Fix
2011 reentrency by copying the stat_monitors list, and checking each
2012 VFolderMonitor is still in the list while iterating.
2014 * modules/vfolder/vfolder-method.c (do_open): Handle all-scheme by
2015 loading the FolderChild manually.
2016 (dir_handle_new_all): ret->list is a list of entry names, not
2018 (do_read_directory): Handle all-scheme.
2019 (do_get_file_info): Ditto. Also, handle a NULL parent folder for
2021 (do_remove_directory_unlocked): New, unlocked version of
2022 do_remove_directory.
2023 (do_remove_directory): Wrap do_remove_directory_unlocked() with a
2025 (do_unlink_unlocked): New, unlocked version of do_unlink.
2026 (do_unlink): Wrap do_unlink_unlocked() with a lock.
2027 (do_move): Fix some logic bugs, use _unlocked versions of unlink
2028 and remove_directory, only make the moved file user-private if the
2029 displayname has changed.
2031 * modules/vfolder/vfolder-info.c (vfolder_info_write_user): Freeze
2032 and thaw the filename_monitor while writing out the .vfolder-info,
2033 so we don't trigger our own reloads.
2034 (vfolder_info_set_dirty): just set info->dirty to true, instead of
2035 writing the .vfolder-info out every time.
2037 * modules/vfolder/vfolder-common.h (VFOLDER_INFO_WRITE_UNLOCK):
2038 Call vfolder_info_write_user() before unlocking, so we batch
2039 .vfoldeer-info file writes.
2041 * modules/vfolder/vfolder-common.c (entry_reload_if_needed): Add
2042 basic support for a "Deprecates" keyword, to allow differently
2043 named .desktop files to replace one-another.
2044 (read_includes): Read and load the explicit includes here, so we
2045 can support including arbitrary URLs, not just extended/pool
2047 (is_excluded): New, check the displayname and filename for
2049 (folder_reload_if_needed): Call read_includes.
2050 (folder_add_include): remove_exclude here.
2051 (folder_add_exclude): remove_include here.
2053 2002-07-25 Alex Graveley <alex@ximian.com>
2055 * modules/vfolder/test-vfolder.c (main): NULL term
2056 g_build_filename(). Use putenv() which is more portable than
2059 2002-07-24 jacob berkman <jacob@ximian.com>
2061 * modules/vfolder/Makefile.am (libvfolder_desktop_la_LIBADD):
2062 point to $(top_builddir) and not a relative path
2064 2002-07-24 Alex Graveley <alex@ximian.com>
2066 * modules/vfolder/vfolder-method.c (dir_handle_new): Match with
2067 folder query for OnlyUnallocated folders when listing contents.
2068 (do_make_directory): Handle existing but hidden folder by removing
2071 * modules/vfolder/vfolder-common.c (folder_is_hidden): Match with
2072 folder query for OnlyUnallocated folders, which clears out the
2073 Other menu somewhat.
2075 * modules/vfolder/vfolder-info.c (get_folder_for_path_list_n):
2076 return NULL if parent folder is hidden.
2078 * modules/vfolder/test-vfolder.c (test_vfolder_ops): Fix some bad
2079 args to gnome-vfs, implement test #6 and #7.
2081 2002-07-23 Alex Graveley <alex@ximian.com>
2083 * modules/vfolder/vfolder-util.c (vfolder_build_uri): Rip off of
2084 g_build_filename, but which handles the first element being a
2087 * modules/vfolder/vfolder-method.c: Use vfolder_build_uri().
2089 * modules/vfolder/vfolder-info.c: Use vfolder_build_uri().
2091 * modules/vfolder/vfolder-common.c: Use vfolder_build_uri().
2093 2002-07-22 Alex Graveley <alex@ximian.com>
2095 * modules/vfolder/vfolder-common.c (read_extended_entries): Use
2098 2002-07-22 Alex Graveley <alex@ximian.com>
2100 * modules/vfolder/vfolder-method.c (do_create): Uniquely timestamp
2101 filename if there is a writedir, otherwise use the folder's
2102 extended URI, otherwise give up. Ensure destination directory
2104 (do_get_file_info): Set permissions to read-only for ReadOnly
2107 * modules/vfolder/vfolder-info.c: Add some keywords so ximian
2108 menus get organized nicely.
2109 (create_entries_from_itemdir): Allow stripping of timestamp at
2110 beginning of file if we are reading from the WriteDir.
2111 (vfolder_info_read_info): Pass TRUE for user_private so folders
2112 are persisted correctly.
2113 (vfolder_info_read_info): Strip timestamps from filenames for
2114 WriteDir and not from ItemDir.
2115 (vfolder_info_write_user): Make directory and parents before
2117 (vfolder_info_init): Allow overwriting of WriteDir and directory
2118 containing .vfolder-info files from environment variables.
2120 * modules/vfolder/vfolder-common.c (entry_make_user_private):
2121 Ensure write directory is created before xferring file. Uniqueify
2122 filename, to avoid naming conflicts. Fail if there is no
2123 filename. Exclude the old displayname, and include the new
2124 timestamped one. Take the parent folder as an arg so we can
2125 manage the Includes/Excludes.
2126 (entry_set_filename): Free entry->uri on change.
2127 (read_extended_entries): Check include/exclude against full uri
2130 * modules/vfolder/test-vfolder.c: New, loads and performs
2131 operations on the test-vfolder:/// uri. Still needs a few more
2132 tests implemented to be complete.
2134 * modules/vfolder/test-vfolder.vfolder-info.in: New, .vfolder-info
2135 file used by test-vfolder.
2137 * modules/vfolder/test-vfolder-parent.vfolder-info.in: New,
2138 .vfolder-info file used by test-vfolder.
2140 * modules/vfolder/test-vfolder-modules.conf: Created, vfs module
2141 description used by test-vfolder.
2143 * modules/vfolder/applications.vfolder-info.in: Merge in ximian
2144 menus, as they add some sanity. On the root folder, Exclude gmc,
2145 nautilus-help, and gnome-help, Include evolution & galeon. Remove
2146 silly rule on root folder causing root entries from GNOME1 to not
2147 be shown. Remove silly rule about hiding "System" entries from
2148 the Accessories menu.
2150 * modules/vfolder/TODO: Update.
2152 * modules/vfolder/Makefile.am (test_vfolder_SOURCES): Build
2153 test-vfolder, and generate test-vfolder-parent.vfolder-info &
2154 test-vfolder.vfolder-info.
2156 2002-07-18 Damon Chaplin <damon@ximian.com>
2158 * modules/vfolder/vfolder-common.c (folder_emit_changed): for the
2159 root folder pass "/" as the uri rather than NULL.
2161 2002-07-18 Damon Chaplin <damon@ximian.com>
2163 * modules/vfolder/vfolder-common.c (entry_quick_read_keys): oops.
2164 didn't need to add '\0' to a GString. That was silly.
2166 2002-07-18 Damon Chaplin <damon@ximian.com>
2168 * modules/vfolder/vfolder-common.c (entry_quick_read_keys): init
2169 *result1 & *result2 to NULL, in case there is an error reading the
2170 .desktop file. (Some of my X11 .desktop files are not readable by me,
2171 so that caused a problem here.)
2172 Also append '\0' to the GString, so we can use it like a normal string.
2173 These 2 fixes seem to fix the corruption problems I was having.
2175 2002-07-18 Alex Graveley <alex@ximian.com>
2177 * modules/vfolder/vfolder-common.c (folder_get_child): Don't call
2178 vfolder_info_lookup_entry here for only_unallocated folders, let
2179 folder_get_entry() do it.
2181 2002-07-17 Alex Graveley <alex@ximian.com>
2183 * modules/vfolder/vfolder-info.c (vfolder_info_locate): Wrap
2184 load_folders in an inhibit_write, so the vfolder info file doesn't
2185 get written out as we create new extended folders.
2187 2002-07-17 Alex Graveley <alex@ximian.com>
2189 * modules/vfolder/vfolder-info.c (read_vfolder_from_file): Don't
2190 free default itemdirs/mergedirs since they are now pulled from
2193 * modules/vfolder/vfolder-common.c (read_extended_entries): Put
2194 the '/' in the right place between dirname and filename.
2195 (read_extended_entries): Remove extraneous entry_set_filename().
2197 2002-07-17 Damon Chaplin <damon@ximian.com>
2199 * modules/vfolder/vfolder-common.c (entry_reload_if_needed): store
2200 the value returned from g_slist_prepend(). Fixes bug #88132.
2202 2002-07-17 Alex Graveley <alex@ximian.com>
2204 * modules/vfolder/vfolder-method.c (do_create): If there is a
2205 write dir, then the parent folder's URI, otherwise read-only.
2207 * modules/vfolder/vfolder-common.c (entry_quick_read_keys): Free
2208 fullbuf even if empty.
2209 (entry_make_user_private): Use g_build_filename, not
2210 g_build_path. Return success if there is no WriteDir.
2211 (folder_unref): Dealloc entries as well as unref. Dealloc any
2212 entries which we Excluded.
2213 (read_info_entry_pool): Alloc excluded files.
2215 * modules/vfolder/applications.vfolder-info.in: Add some defaults,
2216 so we don't rely on mandatory defaults from vfolder_info_init().
2217 Spell "Accessories" correctly. Remove the duplication of the
2218 preferences-all-users:/// vfolder layout, and just make it the
2219 <Parent> of the Preferences folder.
2221 * modules/vfolder/vfolder-info.c (vfolder_info_init): Remove the
2222 default itemdir/writedir/desktopdir; just listen to the config
2223 file. Use GNOME2_PATH as a bunch of prefixes for itemdirs.
2225 2002-07-16 Alex Graveley <alex@ximian.com>
2227 * modules/vfolder/ABOUT: Add file describing the vfolder
2228 architecture somewhat.
2230 2002-07-15 Frederic Crozat <fcrozat@mandrakesoft.com>
2232 * test/test-uri.c: (main):
2233 Fix test, due to canonization change
2235 2002-07-13 Peteris Krisjanis <pecisk@inbox.lv>
2237 * configure.in - (ALL_LINGUAS) Added support for Latvian (lv) language.
2239 2002-07-12 Rohit R <rohit.raveendran@wipro.com>
2240 Laavanya K R <laavanya.gopalan@wipro.com>
2241 * modules/file-method.c
2242 (do_find_directory): modified the code so as to create the
2243 .Trash directory with permissions 0700 only.
2246 2002-07-12 Alex Graveley <alex@ximian.com>
2248 * modules/vfolder/vfolder-info.c (read_vfolder_from_file): Load
2249 mergedirs and itemdirs to the same list, so we retain load order.
2250 (itemdir_new): Add is_mergedir arg.
2252 2002-07-12 Alex Graveley <alex@ximian.com>
2254 * modules/vfolder/vfolder-method.c (do_unlink): Exclude based on
2255 displayname, not filename.
2256 (do_create): Include based on displayname, not filename.
2258 * modules/vfolder/vfolder-common.c (read_info_entry_pool): Check
2259 include/exclude against entry's displayname, note full filename.
2261 2002-07-12 Alex Graveley <alex@ximian.com>
2263 * modules/vfolder/vfolder-info.c (vfolder_info_destroy): Call
2265 (vfolder_info_reset): Implement. Free everything except scheme,
2266 requested_monitors, and rw_lock.
2267 (filename_monitor_cb): Call vfolder_info_reset() then
2268 vfolder_info_read_info() to reload everything from scratch.
2269 (write_dir_monitor_cb): Ditto.
2271 * modules/vfolder/vfolder-common.c (entry_quick_read_keys): Fix to
2272 not expect fgets() type strings.
2273 (entry_set_dirty): Set a dirty flag, instead of always reloading.
2274 (entry_set_filename): Set entry dirty.
2275 (entry_add_implicit_keyword): Set entry dirty.
2276 (entry_get_keywords): Call entry_reload_if_needed(), in case the
2279 2002-07-11 Alexander Larsson <alexl@redhat.com>
2281 * modules/file-method.c (get_stat_info, do_open):
2282 Correctly set O_TRUNC in do_open.
2283 Fix uninitialized memory read bug with symlinks in get_stat_info.
2285 2002-07-11 Alex Graveley <alex@ximian.com>
2287 * modules/vfolder/vfolder-info.c (vfolder_info_init): Free
2290 * modules/vfolder/vfolder-util.c (vfolder_monitor_cancel): Free
2293 * modules/vfolder/applcations.vfolder-info: Spell Accessories
2296 2002-07-10 Alex Graveley <alex@ximian.com>
2298 * modules/vfolder/vfolder-method.c (dir_handle_new): Fix typo,
2299 handle unallocated folders, sorting, and the entry display name
2300 being different from the source file's.
2302 * modules/vfolder/vfolder-common.c: Redo lots of things
2303 here. Notably fixes folder and entry dirtying, and dir loading
2306 * modules/vfolder/vfolder-info.c: Implement missing featues:
2307 like correct .directory file handling and, implicit mergedir
2308 keywords, and client monitors.
2310 * modules/default-modules.conf (all-applications): Add
2311 applications-all-users: and preferences-all-users: methods to
2312 allow access to system-global vfolders, to allow administrator
2313 changes and folder extension.
2315 === end merge changes from gnome-vfs-2-0-vfolder-rewrite branch ===
2317 2002-08-16 Arvind Samptur <arvind.samptur@wipro.com>
2319 * modules/cde-desktop-method.c: Removing Comment field
2320 from the desktop files. Fixes #88484
2321 Re-doing this patch as Hidetoshi's patch to fix
2322 menus to correctly translate to utf-8 had knocked it off.
2324 2002-08-15 Michael Meeks <michael@ximian.com>
2326 * modules/file-method.c
2327 (read_saved_cached_trash_entries): code should agree
2328 on the size of the buffer and how much to read into it.
2329 (find_trash_directory): hold a lock on the trash cache
2330 while operating on it. #10438
2332 Thu Aug 8 11:26:03 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
2334 * modules/cdemenu-desktop-method.c (expand_env_vars): get LC_CTYPE
2335 from setlocale when no LC_CTYPE environment variable is set. Fixes #86462
2336 * modules/cdemenu-desktop-method.c (get_icon_for_action): use
2337 /usr/dt/appconfig/icons/C for fallback to avoid returning
2338 "ICON=NONE" which makes gnome-panel crash in many locales.
2339 * modules/cdemenu-desktop-method.c (do_open): Patch to fix the cde
2340 menus to correctly translate to utf-8, originally by George Lebl
2341 <jirka@5z.com> Fixes #84074
2343 merged changes back from the gnome-2-0 branch
2345 2002-08-08 jacob berkman <jacob@ximian.com>
2347 * modules/Makefile.am (module_flags): add -module flag (fixes
2350 * modules/cdemenu-desktop-method.c (expand_env_vars): fix some
2351 broken logic to make cde menu work when $LANG is not set
2355 2002-08-07 Dave Camp <dave@ximian.com>
2357 * modules/fstype.c (filesystem_type): Use g_free to free
2358 the g_strduped string.
2360 2002-08-05 Federico Mena Quintero <federico@ximian.com>
2364 * modules/fstype.c (filesystem_type_uncached): Merged fix from GNU
2365 findutils-4.1.7; return a copied string instead of a pointer to a
2366 string on the stack...
2367 (filesystem_type): Free the string we got when we must cache a new
2370 2002-08-05 Michael Meeks <michael@ximian.com>
2372 * libgnomevfs/gnome-vfs-mime-info.c
2373 (reload_if_needed): forward port Jody's fix for the 5s
2376 2002-02-29 Arvind Samptur <arvind.samptur@wipro.com>
2378 * modules/cde-desktop-method.c: Removing Comment field
2379 from the desktop files. Fixes #88484
2381 * modules/cde-desktop-method.c (do_read_directory):
2382 REALLY ignore CDE specific actions that make no sense in GNOME
2383 Patch by Stephen Browne. Fixes #88483
2385 2002-07-27 Ian McKellar <yakk@yakk.net>
2387 * libgnomevfs/gnome-vfs-cancellable-ops.c:
2388 (gnome_vfs_read_cancellable), (gnome_vfs_write_cancellable):
2389 Check for NULL bytes_(read|written), pass in dummy pointer.
2391 2002-07-26 Ian McKellar <yakk@yakk.net>
2393 * libgnomevfs/gnome-vfs-xfer.c: (copy_file):
2394 Fixed up gnome-vfs-xfer problem pointed out by Josh Parsons. My fix
2395 is slightly different than his proposed fix but the spirits the same.
2397 2002-07-25 Dave Camp <dave@ximian.com>
2399 * libgnomevfs/gnome-vfs-inet-connection.c
2400 (gnome_vfs_inet_connection_read): Return EOF if 0 bytes were read.
2402 2002-07-25 Michael Meeks <michael@ximian.com>
2404 * libgnomevfs/gnome-vfs-init.c
2405 (gnome_vfs_pthread_init, gnome_vfs_init): init threads
2406 if we have to before taking the vfs_already_initialized
2407 lock - makes Valgrind happy; thanks to Julian Seward.
2409 2002-07-25 Laszlo Peter <laca@sun.com>
2411 reviewed by Michael Meeks
2413 * configure.in: added test for libpopt
2415 * test/Makefile.am: link libpopt to the test programs.
2417 2002-07-25 Pablo Saratxaga <pablo@mandrakesoft.com>
2419 * configure.in: Added Bosnian (bs) to ALL_LINGUAS
2421 2002-07-24 Frederic Crozat <fcrozat@mandrakesoft.com>
2424 add auto-test to EXTRA_DIST (otherwise make check
2427 2002-07-24 Michael Meeks <michael@ximian.com>
2429 * libgnomevfs/gnome-vfs-job.c (gnome_vfs_job_go): dump
2430 debug before scheduling the job, rather than when job
2432 (handle_cancelled_open): don't do daft things with
2433 re-using the original job, and trying to signal
2434 strangely to the caller.
2435 (dispatch_job_callback): expand switch for
2436 CREATE_SYMBOLIC_LINK test for a valid handle before
2437 destroying it here, since it wasn't killed at the
2438 exit of gnome-vfs-job-slave.c (thread_routine).
2439 (execute_read, execute_write): set the op type to
2440 READ_WRITE_DONE here before job might be invalid.
2441 (gnome_vfs_job_execute): and not here, when it may
2444 * libgnomevfs/gnome-vfs-async-ops.c
2445 (gnome_vfs_async_xfer): set handle_return before
2446 calling job_go [ which may invalidate job ]
2448 * libgnomevfs/gnome-vfs-job.c
2449 (job_notify): prune semaphore mess.
2450 (gnome_vfs_job_set): lock/unlock.
2452 2002-07-23 Michael Meeks <michael@ximian.com>
2454 * test/test-async-cancel.c (file_open_callback): move
2455 the async_read into the open_callback.
2457 * libgnomevfs/gnome-vfs-job.c
2458 (empty_close_callback): kill.
2460 * libgnomevfs/gnome-vfs-job-queue.c
2461 (job_queue_get_first): don't foreach a NULL job_queue.
2463 2002-07-23 Michael Meeks <michael@ximian.com>
2465 * libgnomevfs/gnome-vfs-async-job-map.c
2466 (async_job_callback_map_destroy): don't assert on the
2467 idly built async_job_callback_map.
2469 * libgnomevfs/gnome-vfs-job-slave.c (thread_routine):
2470 always destroy the VFS job, if we are complete, instead
2471 of checking for whether we have a callback still
2472 registered in the job map, therein lies a race.
2474 * libgnomevfs/gnome-vfs-job.c
2475 (job_oneway_notify, job_notify): don't leak on cancel.
2476 (gnome_vfs_job_destroy): blank the memory for good
2479 * libgnomevfs/gnome-vfs-async-job-map.c
2480 (gnome_vfs_async_job_map_unlock),
2481 (gnome_vfs_async_job_map_lock): cope with the
2482 recursive nature of this properly.
2484 * libgnomevfs/gnome-vfs-job-queue.c
2485 (gnome_vfs_job_queue_shutdown): try locking the
2486 job_queue lock before destroying the entire tree, sob.
2487 (gnome_vfs_job_queue_run): kill black magic with
2488 volatile 'gnome_vfs_quitting' stuff, we don't need
2489 that - just hold the job queue lock.
2491 * test/test-async-cancel.c (wait_until_vfs_jobs_gone):
2492 eliminate follow on error, so we can try and isolate
2493 problems more accurately.
2494 (test_get_file_info): don't leak URIs in lists.
2495 (main): if memprof is running, don't quit just loop.
2497 2002-07-19 Frederic Crozat <fcrozat@mandrakesoft.com>
2500 don't set OPENSSL_CFLAGS if it is "/usr/include",
2501 otherwise gcc >= 3.1 issues a warning.
2503 2002-07-19 Frederic Crozat <fcrozat@mandrakesoft.com>
2505 * modules/ssh-method.c: (ssh_connect):
2506 Fix bug 88539 (leaking ssh processes) by using
2507 g_spawn_async_with_pipes
2509 2002-07-17 Michael Meeks <michael@ximian.com>
2511 * test/auto-test: re-write.
2513 * test/Makefile.am: connect auto-test, upd env.
2515 * test/test-async-cancel.c
2516 (MAX_THREAD_WAIT): bump the thread wait for my poor
2519 2002-07-16 Michael Meeks <michael@ximian.com>
2521 * libgnomevfs/gnome-vfs-async-job-map.c:
2522 re-arrange to ensure the locks protect the bits
2523 they are supposed to. Kill the volatile things
2526 2002-07-16 Michael Meeks <michael@ximian.com>
2528 * libgnomevfs/gnome-vfs-thread-pool.c
2529 (thread_list_locks): don't use a recursive mutex.
2530 debug print thread pointer not pthread id.
2532 * libgnomevfs/gnome-vfs-method.c
2533 (init_hash_table, init_path_list): don't take fine
2535 (gnome_vfs_method_init): take a lock here instead.
2536 (gnome_vfs_add_module_to_hash_table): hold the lock
2537 for longer, to avoid nasty races, change sig.
2538 (gnome_vfs_method_get): upd / simplify / speedup.
2539 (gnome_vfs_transform_get): ditto.
2541 * libgnomevfs/gnome-vfs-module-callback.c
2542 (stack_keys_alloc): kill in favour of
2543 (gnome_vfs_module_callback_private_init): this.
2544 (initialize_per_thread_if_needed): upd.
2545 (async_callback_response): broadcast instead of
2546 signalling, there might be multiple threads waiting.
2548 * libgnomevfs/gnome-vfs-init.c
2549 (gnome_vfs_pthread_init): upd.
2550 (gnome_vfs_init): here.
2551 (gnome_vfs_postinit): ensure we do it here too & re-order.
2553 2002-07-15 Michael Meeks <michael@ximian.com>
2555 * libgnomevfs/gnome-vfs-thread-pool.c
2556 (gnome_vfs_thread_create): kill unused thread argument
2557 (new_thread_state): port to g_thread.
2559 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): use
2560 g_thread_init not gnome_vfs_pthread stuff.
2561 (gnome_vfs_postinit): ditto.
2563 * libgnomevfs/Makefile.am: remove gnome-vfs-pthread.[ch]
2565 * *.[ch]: switch pthread -> g_thread stuff, mostly a sed.
2567 2002-07-12 Michael Meeks <michael@ximian.com>
2569 * libgnomevfs/gnome-vfs-cancellation.c
2570 (gnome_vfs_cancellation_cancel),
2571 (gnome_vfs_cancellation_ack): only write if we have a pipe.
2572 (gnome_vfs_cancellation_get_fd): idly create the pipes,
2574 (gnome_vfs_cancellation_new): init the pipe fds to -1
2576 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init):
2577 move pthread_init up the order. If we don't do this
2578 we create a default main context, without the
2579 'wake_up_pipe' initialized, which means that anyone
2580 doing a plain gnome-init has a '0' wake_up_pipe by
2581 the time they need to write / read to it. This means
2582 you see an 'A' on the console and have to hit enter
2583 before getting any async callbacks.
2585 * libgnomevfs/gnome-vfs-job.h (JOB_DEBUG_PRINT):
2588 * test/test-async.c (async_queue_callback): impl.
2589 (main): hammer the async queue to test efficiency.
2590 re-hash lots of this.
2592 2002-07-15 Frederic Crozat <fcrozat@mandrakesoft.com>
2594 * libgnomevfs/gnome-vfs-uri.c: (set_uri_element):
2595 canonize NULL uri into "/". "start-here:" will now be
2596 canonized into "start-here:///", fixing some monitoring
2599 * test/test-uri.c: (main): Fix test due to canonization change
2601 2002-07-11 Michael Meeks <michael@ximian.com>
2603 * libgnomevfs/gnome-vfs-mime-info.c
2604 (load_type_info_from): use g_string_truncate
2606 (APPEND_CHAR): inline more for another 20%.
2608 * test/test-mime.c (main): add --speedTest
2609 for mime info reloading.
2611 2002-07-07 Seth Nickell <snickell@stanford.edu>
2613 * libgnomevfs/gnome-vfs-method.gob:
2615 Ahem. Getting built accidentally. Not a good thing.
2616 Replacing decent clean files.
2618 2002-07-05 Stephen Browne <stephen.browne@sun.com>
2620 * modules/cdemenu-desktop-method.c
2621 Patch from rohit.raveendran@wipro.com
2622 modified the code so that the function create_cde_icon_name_cache
2623 creates the file g-cdeiconnames with permissions 644 in .gnome
2624 directory in the users home directory.
2627 2002-06-27 Michael Meeks <michael@ximian.com>
2629 * modules/vfolder-desktop-method.c
2630 (try_free_file_monitors_create_files_unlocked): use
2631 ensure_folder_unlocked to avoid deadlock.
2632 (rescan_monitors): ditto. #84910
2634 2002-06-25 Jody Goldberg <jody@gnome.org>
2636 * libgnomevfs/gnome-vfs-mime.c (file_date_record_update_mtime) : track
2637 monitor files even if they do not exist at start up. That way we can
2638 notice the first user defined mime type is added.
2639 (mime_fill_from_file) : ditto.
2640 (mime_load) : don't ignore the unborn files just because their parent
2641 dir does not exist yet.
2643 2002-06-25 Damon Chaplin <damon@ximian.com>
2645 * libgnomevfs/gnome-vfs-async-job-map.c (gnome_vfs_async_job_map_init):
2646 initialize the async_job_callback_map_lock mutex here, instead of in
2647 gnome_vfs_async_job_add_callback(), so we can use it even when
2648 async_job_callback_map is NULL.
2649 (gnome_vfs_async_job_add_callback): lock the above mutex before
2650 checking & creating the async_job_callback_map hash table, to avoid
2651 a tiny race condition.
2652 (gnome_vfs_async_job_cancel_job_and_callbacks): lock the above mutex
2653 first and set job->cancelled. Previously it was just returning if
2654 async_job_callback_map was NULL, which meant that job->cancelled
2656 (async_job_callback_map_destroy): don't destroy the
2657 async_job_callback_map_lock mutex here. We keep it around forever.
2661 2002-06-21 Seth Nickell <snickell@stanford.edu>
2663 * doc/tmpl/gnome-vfs-method.sgml:
2664 * libgnomevfs/gnome-vfs-async-ops.h:
2665 * libgnomevfs/gnome-vfs-file-info.h:
2666 * libgnomevfs/gnome-vfs-mime-handlers.h:
2667 * libgnomevfs/gnome-vfs-standard-callbacks.h:
2668 * libgnomevfs/gnome-vfs-uri.h:
2669 * libgnomevfs/gnome-vfs-xfer.h:
2671 Pad every struct by at least two "void *"s to avoid
2672 future breaks in ABI compatibility.
2674 When we already know we're going to have to add
2675 fields to a struct, and can forsee needing extra,
2676 pad by a little more (notable GnomeVFSFileInfo).
2678 * modules/ssh-method.c:
2680 Fix compilation problem on Solaris.
2682 * libgnomevfs/gnome-vfs-types.h:
2683 * libgnomevfs/Makefile.am
2685 Add gnome-vfs-types.h back in.
2687 2002-06-21 Stephen Browne <stephen.browne@sun.com>
2689 * modules/cdemenu-desktop-method.c (find_all_included_files): fix for
2690 bug #84967. Patch from ghee.teo@sun.com
2692 2002-06-21 Michael Meeks <michael@ximian.com>
2694 * configure.in: bin GTK_REQUIRED, upd. BONOBO_REQUIRED
2695 and ORBIT_REQUIRED, bonobo-activation-required. #80244
2697 2002-06-13 Glynn Foster <glynn.foster@sun.com>
2699 * docs/vfolder-info-spec.dtd: Remove some confusing whitespace so
2700 you can see where the comments are directed.
2702 2002-06-17 Damon Chaplin <damon@ximian.com>
2704 * libgnomevfs/gnome-vfs-monitor.c (gnome_vfs_monitor_do_add): if
2705 the monitor_add call fails, return NULL as the handle. It was
2706 returning a pointer to freed memory before. Fixes bug #84693.
2707 Approved by Ian McKellar.
2709 2002-06-17 Seth Nickell <snickell@stanford.edu>
2711 * libgnomevfs/gnome-vfs-method.gob:
2713 Formatting improvements.
2715 2002-06-17 Seth Nickell <snickell@stanford.edu>
2717 * libgnomevfs/gnome-vfs-method.gob:
2719 Initial (non-working) pass at converting GnomeVFSMethods
2722 2002-06-17 Seth Nickell <snickell@stanford.edu>
2724 * doc/tmpl/gnome-vfs-context.sgml:
2726 Add a short description of GnomeVFSContext.
2728 * libgnomevfs/gnome-vfs-init.c:
2730 Fix documentation for gnome_vfs_is_primary_thread()
2732 * libgnomevfs/gnome-vfs-utils.c:
2734 Document several string escaping calls.
2736 2002-06-17 Seth Nickell <snickell@stanford.edu>
2740 Clean up the hacking file, add comments on making sure
2741 any API changes are reflected in the documentation.
2743 2002-06-17 Seth Nickell <snickell@stanford.edu>
2745 * libgnomevfs/gnome-vfs-application-registry.h:
2747 Document a few special key types.
2749 * libgnomevfs/gnome-vfs-async-ops.c:
2750 * libgnomevfs/gnome-vfs-async-ops.h:
2752 Document all the AsyncCallbacks.
2754 * libgnomevfs/gnome-vfs-mime-info.c:
2755 * libgnomevfs/gnome-vfs-mime-monitor.c:
2756 * libgnomevfs/gnome-vfs-mime-utils.h:
2758 Finish documenting these files.
2760 * libgnomevfs/gnome-vfs-uri.h:
2761 * libgnomevfs/gnome-vfs-utils.h:
2763 Add documentation for a few data types.
2765 * libgnomevfs/gnome-vfs-xfer.h:
2767 Improve documentation of Xfer data types
2770 2002-06-16 Seth Nickell <snickell@stanford.edu>
2772 * doc/tmpl/gnome-vfs-context.sgml:
2773 * libgnomevfs/gnome-vfs-context.c: (gnome_vfs_context_new),
2774 (gnome_vfs_context_free):
2775 * libgnomevfs/gnome-vfs-context.h:
2777 Remove "unref" and "ref" calls. Replace with "free".
2781 * doc/gnome-vfs-sections.txt:
2782 * libgnomevfs/gnome-vfs-async-ops.c:
2783 * libgnomevfs/gnome-vfs-file-info.h:
2784 * libgnomevfs/gnome-vfs-job.c: (gnome_vfs_op_destroy):
2785 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new_private):
2786 * libgnomevfs/gnome-vfs-uri.h:
2787 * libgnomevfs/gnome-vfs-xfer.h:
2789 Finish URI documentation, document xfer, and some enums
2792 2002-06-16 Seth Nickell <snickell@stanford.edu>
2794 * doc/tmpl/gnome-vfs-async-ops.sgml:
2795 * doc/tmpl/gnome-vfs-inet-connection.sgml:
2796 * libgnomevfs/gnome-vfs-async-ops.h:
2797 * libgnomevfs/gnome-vfs-standard-callbacks.h:
2798 * libgnomevfs/gnome-vfs-uri.h:
2802 2002-06-16 Seth Nickell <snickell@stanford.edu>
2804 * doc/gnome-vfs-sections.txt:
2805 * doc/tmpl/gnome-vfs-directory.sgml:
2806 * doc/tmpl/gnome-vfs-inet-connection.sgml:
2807 * doc/tmpl/gnome-vfs-iobuf.sgml:
2808 * doc/tmpl/gnome-vfs-socket-buffer.sgml:
2809 * libgnomevfs/Makefile.am:
2810 * libgnomevfs/gnome-vfs-application-registry.c:
2811 * libgnomevfs/gnome-vfs-async-ops.c:
2812 (gnome_vfs_async_get_file_info), (gnome_vfs_async_find_directory):
2813 * libgnomevfs/gnome-vfs-directory.c:
2814 (gnome_vfs_directory_visit_files):
2815 * libgnomevfs/gnome-vfs-directory.h:
2816 * libgnomevfs/gnome-vfs-inet-connection.c:
2817 (gnome_vfs_inet_connection_to_socket),
2818 (gnome_vfs_inet_connection_to_socket_buffer):
2819 * libgnomevfs/gnome-vfs-inet-connection.h:
2820 * libgnomevfs/gnome-vfs-job-queue.c:
2821 * libgnomevfs/gnome-vfs-mime-info.c:
2822 * libgnomevfs/gnome-vfs-module.h:
2823 * libgnomevfs/gnome-vfs-ops.c:
2824 * libgnomevfs/gnome-vfs-socket-buffer.c:
2825 (gnome_vfs_socket_buffer_destroy), (gnome_vfs_socket_buffer_peekc):
2826 * libgnomevfs/gnome-vfs-socket-buffer.h:
2827 * libgnomevfs/gnome-vfs-socket.c:
2828 * libgnomevfs/gnome-vfs-ssl.c: (gnome_vfs_ssl_create):
2829 * libgnomevfs/gnome-vfs-uri.c:
2830 * libgnomevfs/gnome-vfs-utils.c:
2832 Bunch more documentation :-)
2834 * libgnomevfs/gnome-vfs-iobuf.c:
2835 * libgnomevfs/gnome-vfs-iobuf.h:
2837 Remove from GnomeVFS as they have the same functions as GnomeVFSSocketBuffer.
2839 * modules/ftp-method.c: (read_response_line), (do_control_write),
2840 (do_transfer_command), (end_transfer), (ftp_connection_create),
2841 (ftp_connection_destroy), (do_read), (do_write),
2842 (internal_get_file_info), (do_open_directory):
2843 * modules/nntp-method.c: (read_response_line), (do_control_write),
2844 (nntp_connection_create), (nntp_connection_destroy):
2845 * modules/nntp-method.h:
2847 Convert from iobuf to socket_buffer.
2849 2002-06-16 Seth Nickell <snickell@stanford.edu>
2851 * libgnomevfs/gnome-vfs-metadata.gob:
2852 * libgnomevfs/gnome-vfs-monitor.h:
2853 * libgnomevfs/gnome-vfs-ops.c:
2855 Add some documentation for metadata and monitoring APIs.
2857 2002-06-16 Seth Nickell <snickell@stanford.edu>
2859 * doc/gnome-vfs-docs.sgml:
2860 * doc/gnome-vfs-sections.txt:
2861 * doc/tmpl/gnome-vfs-async-ops.sgml:
2862 * doc/tmpl/gnome-vfs-job-limit.sgml:
2863 * doc/tmpl/gnome-vfs-mime-monitor.sgml:
2864 * doc/tmpl/gnome-vfs-ops.sgml:
2866 Merge some needless categories into ops and
2869 2002-06-16 Seth Nickell <snickell@stanford.edu>
2871 * doc/gnome-vfs-docs.sgml:
2872 * doc/gnome-vfs-sections.txt:
2874 Re-organize documentation, move stuff more fluidly
2875 between sections rather than relying so heavily on
2876 the (rather poor) header file organization.
2878 * doc/tmpl/application-registry.sgml:
2879 * doc/tmpl/async-ops.sgml:
2880 * doc/tmpl/cancellation.sgml:
2881 * doc/tmpl/context.sgml:
2882 * doc/tmpl/directory.sgml:
2883 * doc/tmpl/file-info.sgml:
2884 * doc/tmpl/file-size.sgml:
2885 * doc/tmpl/find-directory.sgml:
2886 * doc/tmpl/gnome-vfs-application-registry.sgml:
2887 * doc/tmpl/gnome-vfs-async-ops.sgml:
2888 * doc/tmpl/gnome-vfs-cancellation.sgml:
2889 * doc/tmpl/gnome-vfs-context.sgml:
2890 * doc/tmpl/gnome-vfs-directory.sgml:
2891 * doc/tmpl/gnome-vfs-file-info.sgml:
2892 * doc/tmpl/gnome-vfs-file-size.sgml:
2893 * doc/tmpl/gnome-vfs-find-directory.sgml:
2894 * doc/tmpl/gnome-vfs-inet-connection.sgml:
2895 * doc/tmpl/gnome-vfs-init.sgml:
2896 * doc/tmpl/gnome-vfs-iobuf.sgml:
2897 * doc/tmpl/gnome-vfs-job-limit.sgml:
2898 * doc/tmpl/gnome-vfs-metadata.sgml:
2899 * doc/tmpl/gnome-vfs-method.sgml:
2900 * doc/tmpl/gnome-vfs-mime-database.sgml:
2901 * doc/tmpl/gnome-vfs-mime-monitor.sgml:
2902 * doc/tmpl/gnome-vfs-mime.sgml:
2903 * doc/tmpl/gnome-vfs-module-callback-module-api.sgml:
2904 * doc/tmpl/gnome-vfs-module-callback.sgml:
2905 * doc/tmpl/gnome-vfs-module-shared.sgml:
2906 * doc/tmpl/gnome-vfs-module.sgml:
2907 * doc/tmpl/gnome-vfs-monitor.sgml:
2908 * doc/tmpl/gnome-vfs-ops.sgml:
2909 * doc/tmpl/gnome-vfs-parse-ls.sgml:
2910 * doc/tmpl/gnome-vfs-result.sgml:
2911 * doc/tmpl/gnome-vfs-socket-buffer.sgml:
2912 * doc/tmpl/gnome-vfs-socket.sgml:
2913 * doc/tmpl/gnome-vfs-ssl.sgml:
2914 * doc/tmpl/gnome-vfs-standard-callbacks.sgml:
2915 * doc/tmpl/gnome-vfs-transform.sgml:
2916 * doc/tmpl/gnome-vfs-unused.sgml:
2917 * doc/tmpl/gnome-vfs-uri.sgml:
2918 * doc/tmpl/gnome-vfs-utils.sgml:
2919 * doc/tmpl/gnome-vfs-xfer.sgml:
2920 * doc/tmpl/gnome-vfs.sgml:
2921 * doc/tmpl/handle.sgml:
2922 * doc/tmpl/inet-connection.sgml:
2923 * doc/tmpl/init.sgml:
2924 * doc/tmpl/iobuf.sgml:
2925 * doc/tmpl/method.sgml:
2926 * doc/tmpl/mime-handlers.sgml:
2927 * doc/tmpl/mime-info.sgml:
2928 * doc/tmpl/mime-monitor.sgml:
2929 * doc/tmpl/mime.sgml:
2930 * doc/tmpl/module-callback-module-api.sgml:
2931 * doc/tmpl/module-callback.sgml:
2932 * doc/tmpl/module-shared.sgml:
2933 * doc/tmpl/module.sgml:
2934 * doc/tmpl/ops.sgml:
2935 * doc/tmpl/parse-ls.sgml:
2936 * doc/tmpl/result.sgml:
2937 * doc/tmpl/ssl.sgml:
2938 * doc/tmpl/standard-callbacks.sgml:
2939 * doc/tmpl/types.sgml:
2940 * doc/tmpl/uri.sgml:
2941 * doc/tmpl/utils.sgml:
2942 * doc/tmpl/xfer.sgml:
2944 New templates... woo hoo.
2946 2002-06-16 Seth Nickell <snickell@stanford.edu>
2949 * doc/gnome-vfs-docs.sgml:
2950 * doc/gnome-vfs-sections.txt:
2951 * doc/tmpl/cancellable-ops.sgml:
2952 * doc/tmpl/configuration.sgml:
2953 * doc/tmpl/gnome-vfs-unused.sgml:
2954 * doc/tmpl/handle.sgml:
2955 * doc/tmpl/mime-magic.sgml:
2956 * doc/tmpl/mime-sniff-buffer.sgml:
2957 * doc/tmpl/module.sgml:
2958 * doc/tmpl/process.sgml:
2959 * doc/tmpl/uri.sgml:
2960 * doc/tmpl/xfer.sgml:
2962 Remove some unused sections, add labels to others.
2964 * doc/writing-modules.txt:
2966 Remove since its outdated by the SGML version.
2968 * libgnomevfs/gnome-vfs-handle-private.h:
2969 * libgnomevfs/gnome-vfs-handle.c:
2970 * libgnomevfs/gnome-vfs-handle.h:
2972 Split handle into a type declaration and a GnomeVFS-internal
2973 function declaration. The type needs to be installed (since
2974 a number of ops use Handles) but the functions for manipulating
2975 handles shouldn't be needed by either modules or library users.
2977 * libgnomevfs/gnome-vfs-cancellable-ops.c:
2978 * libgnomevfs/gnome-vfs-file-info.c:
2979 * libgnomevfs/gnome-vfs-file-info.h:
2980 * libgnomevfs/gnome-vfs-method.c:
2981 * libgnomevfs/gnome-vfs-mime-info.c:
2982 * libgnomevfs/gnome-vfs-mime-magic.c:
2983 * libgnomevfs/gnome-vfs-module.h:
2984 * libgnomevfs/gnome-vfs-ops.c:
2985 * libgnomevfs/gnome-vfs-result.c: (gnome_vfs_result_to_string):
2986 * libgnomevfs/gnome-vfs-utils.c:
2988 Document a bunch of functions.
2990 * libgnomevfs/Makefile.am:
2991 * libgnomevfs/check-headers.pl:
2993 Use noinst_HEADERS instead of including non-installed
2994 headers in the source. This makes it easier to find headers
2995 that should not be included in documentation.
2997 * libgnomevfs/gnome-vfs-types.h:
2998 Remove deprecated header.
3000 2002-06-15 Seth Nickell <snickell@stanford.edu>
3002 * doc/tmpl/ops.sgml:
3003 * doc/tmpl/uri.sgml:
3004 * doc/tmpl/utils.sgml:
3005 * libgnomevfs/gnome-vfs-file-info.h:
3006 * libgnomevfs/gnome-vfs-init.c:
3007 * libgnomevfs/gnome-vfs-mime-info.c:
3008 * libgnomevfs/gnome-vfs-ops.c:
3009 * libgnomevfs/gnome-vfs-ops.h:
3010 * libgnomevfs/gnome-vfs-uri.c:
3011 * libgnomevfs/gnome-vfs-uri.h:
3012 * libgnomevfs/gnome-vfs-utils.c:
3013 * libgnomevfs/gnome-vfs-utils.h:
3014 * libgnomevfs/gnome-vfs-xfer.c:
3016 Document some 30 GnomeVFS functions, bringing our coverage to
3019 2002-06-15 Seth Nickell <snickell@stanford.edu>
3022 * libgnomevfs/.cvsignore:
3024 Don't pay attention to weird GOB crap.
3026 * test/test-metadata.c: (main):
3028 Oops, forgot a cvs add.
3030 2002-06-15 Seth Nickell <snickell@stanford.edu>
3032 * libgnomevfs/gnome-vfs-metadata.gob:
3034 Load XML properly using GnomeVFS rather than just from local files.
3036 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_read_entire_file):
3037 * libgnomevfs/gnome-vfs-utils.h:
3039 Add convenience function for reading in entire files (very useful for
3042 2002-06-15 James Henstridge <james@daa.com.au>
3044 * modules/Makefile.am: link modules back against libgnomevfs-2.la
3046 2002-06-15 Seth Nickell <snickell@stanford.edu>
3050 Clarify checkin policies.
3052 2002-06-15 Seth Nickell <snickell@stanford.edu>
3054 Semi-working metadata code, landed as requested by commodore Yakk.
3059 Add included GOB into the build.
3061 * libgnomevfs/Makefile.am:
3063 Build the metadata code, and install the header.
3065 * libgnomevfs/gnome-vfs.h:
3067 Pull in the metadata header.
3069 * libgnomevfs/gnome-vfs-metadata.gob:
3072 The metadata code itself.
3074 2002-06-13 Alex Graveley <alex@ximian.com>
3076 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): Always ensure
3077 ~/.gnome exists before initializing.
3078 (ensure_dot_gnome_exists): Create ~/.gnome if it does not exist.
3080 2002-06-13 Damon Chaplin <damon@ximian.com>
3082 * modules/file-method.c (do_find_directory): always use 0700 (S_IRWXU)
3083 when creating trash directories outside of $HOME, so other users can't
3084 see your files. Fixes bug #46475.
3086 2002-06-13 Glynn Foster <glynn.foster@sun.com>
3088 * docs/vfolder-info-spec.dtd: Initial version of the vfolder-info
3091 -------------------2.0.0------------------------
3092 2002-06-10 Seth Nickell <snickell@stanford.edu>
3097 Release the big 2.0.0.
3099 Thu Jun 06 15:17:01 2002 George Lebl <jirka@5z.com>
3101 * modules/vfolder-desktop-method.c: some more monitors tinkering,
3102 this time it makes file create and delete monitors work as they
3105 Thu Jun 06 14:34:30 2002 George Lebl <jirka@5z.com>
3107 * modules/vfolder-desktop-method.c: Actually return the method
3108 handle on add and don't crash on NULL on cancel for file monitors.
3110 Thu Jun 06 14:16:27 2002 George Lebl <jirka@5z.com>
3112 * modules/vfolder-desktop-method.c: implement file monitors
3113 as per the 2.0.0 bug #81670. The bug is not closed even though
3114 it seems to be that we are emitting monitors correctly, but
3115 nautilus isn't catching them. This also fixes some errors
3116 in the directory monitors as well.
3118 2002-06-06 Jacob Berkman <jacob@ximian.com>
3120 * modules/ssh-method.c: include <signal.h>
3122 Wed Jun 05 12:31:10 2002 George Lebl <jirka@5z.com>
3124 * modules/vfolder-desktop-method.c: implement directory monitors
3125 as per the 2.0.0 bug #81670. Still not completely finished since
3126 according to test-monitor we are getting changes, but nautilus
3127 refuses to update. So I think there is some problem in nautilus,
3128 perhaps it doesn't like the fact that it has dir monitors but
3131 2002-06-05 Yanko Kaneti <yaneti@declera.com>
3133 * configure.in: (ALL_LINGUAS) Added Bulgarian (bg).
3135 2002-06-04 Jody Goldberg <jody@gnome.org>
3137 * libgnomevfs/gnome-vfs-mime-info.c (reload_if_needed) : honour
3138 gnome_vfs_is_frozen.
3139 (gnome_vfs_is_frozen) : rename from should_write_file_back.
3141 2002-06-04 Kristian Rietveld <kris@gtk.org>
3143 * libgnomevfs/gnome-vfs-standard-callbacks.h: add
3144 http:send-additional-headers and http:received-headers hooks.
3146 * modules/http-method.c (create_handle): invoke headers received
3147 callback after receiving full header,
3148 (make_request): invoke send additional headers callback and add
3149 extra headers if needed,
3150 (invoke_callback_headers_received): new function,
3151 (invoke_callback_send_additional_headers): new function
3153 2002-06-03 Ian McKellar <yakk@yakk.net>
3155 * modules/ssh-method.c: Big improvement to the ssh method from
3156 Robert Migues <mibus@bigpond.com>
3158 2002-06-02 Alex Graveley <alex@ximian.com>
3160 * modules/desktop-method.c (do_get_file_info): Set mime_type to
3161 "x-directory/vfolder-desktop", to allow launcher creation from
3163 (do_get_file_info_from_handle): Ditto.
3165 Fri May 31 10:23:01 2002 George Lebl <jirka@5z.com>
3167 * modules/applications.vfolder-info.in,
3168 modules/preferences.vfolder-info.in: Handle both kewords
3169 'Sawfish' and 'X-GNOME-Sawfish' to make a clear transition,
3170 in case someone has an older install of sawfish.
3172 Thu May 30 17:11:04 2002 George Lebl <jirka@5z.com>
3174 * modules/preferences.vfolder-info.in: arghh! we have two places
3175 where preference menus are defined. Ok fix the bug here as well.
3177 Thu May 30 17:04:48 2002 George Lebl <jirka@5z.com>
3179 * modules/applications.vfolder-info.in: don't put sawfish capplets
3180 in the advanced dir fixes #77772
3182 Thu May 30 10:03:03 2002 George Lebl <jirka@5z.com>
3184 * modules/vfolder-desktop-method.c: the directories are of type
3185 x-directory/vfolder-desktop
3187 2002-05-28 Jody Goldberg <jody@gnome.org>
3189 * libgnomevfs/gnome-vfs-application-registry.c
3190 (gnome_vfs_application_registry_init) : initialize before we load the
3191 applications so that things do not loop.
3193 Tue May 28 15:04:17 2002 George Lebl <jirka@5z.com>
3195 * modules/vfolder-desktop-method.c: fix adding/removing of includes
3196 to remove inconsistencies between the has and the list
3198 2002-05-27 Ian McKellar <yakk@yakk.net>
3201 Don't make libgnomevfs depend on libbonobo. It doesn't need it and
3202 it isn't in the .pc file anyway.
3204 2002-05-26 Alex Graveley <alex@ximian.com>
3206 * configure.in (FAM_LIBS): Don't use C++ compiler to compile FAM
3207 test, as the problem is really with a miscompiled libfam which
3208 doesn't pull in the needed libstdc++.so, and hence won't link.
3209 Removing as per alexl's suggestion on bug #80826.
3211 2002-05-24 Alex Graveley <alex@ximian.com>
3213 * modules/applications.vfolder-info.in: Remove explicit
3214 cddb-capplet exclusion, so it will shot up in the Advanced
3215 settings menu. Fixes bug #74767.
3217 2002-05-24 Jody Goldberg <jody@gnome.org>
3219 http://bugzilla.gnome.org/show_bug.cgi?id=80776
3220 * libgnomevfs/gnome-vfs-application-registry.c
3221 (application_lookup_or_create) : make sure to load the app db before
3222 trying to store something.
3224 2002-05-24 Seth Nickell <snickell@stanford.edu>
3228 Bump version number & release.
3230 2002-05-24 Seth Nickell <snickell@stanford.edu>
3232 * modules/vfolder-desktop-method.c:
3233 (vfolder_info_read_items_merge):
3235 Add filters for the "Office" sub-directory (which KDE uses).
3237 2002-05-22 Alex Graveley <alex@ximian.com>
3239 * modules/desktop-method.c (do_monitor_add): Implement monitoring,
3240 by registering a monitor with the parent method, and changing the
3241 destination uri for events to start with the proper prefix for
3242 this method before sending on to the real destination.
3244 2002-05-22 Alex Graveley <alex@ximian.com>
3246 * configure.in (FAM_MISSING_WARNING): Print a warning if FAM is
3249 * modules/file-method.c (fam_callback): Handle FAMEvent pathnames
3250 that can be either relative or absolute. Clean up the code a
3253 2002-05-20 Laszlo Peter <laca@sun.com>
3255 * modules/vfolder-desktop-method.c: (VFOLDER_URI_PARSE): remove
3256 unnecessary ( )'s that break the build on Solaris.
3257 (do_create): basename is undefined, use vuri.file.
3259 Mon May 20 10:51:32 2002 George Lebl <jirka@5z.com>
3261 * modules/vfolder-desktop-method.c: make note if we have had a slash
3262 on the end of a path, and in that case don't allow the 'file'
3263 specific operations on it
3265 Mon May 20 10:41:17 2002 George Lebl <jirka@5z.com>
3267 * modules/vfolder-desktop-method.c: fix root path reading (case where
3268 we read something like all-applications:/ rather then
3269 all-applications: This fixes the panel run box and should fix
3270 the rest of issues of #82187
3272 2002-05-20 Alex Graveley <alex@ximian.com>
3274 * modules/vfolder-desktop-method.c (vfolder_uri_parse_internal):
3275 Set file to start of path if there are no slashes.
3277 2002-05-20 Alex Graveley <alex@ximian.com>
3279 * modules/vfolder-desktop-method.c (vfolder_uri_parse_internal):
3280 Set vuri->file to the basename of the URL, strip trailing slashes.
3281 (resolve_folder): Simplify lookup as trailing slashes are now
3283 (get_entry_unlocked): Don't call any_subdir, just let the lookup
3285 (get_entry_unlocked): Resolve optinal leading path for
3288 2002-05-20 Mark McLoughlin <mark@skynet.ie>
3290 * modules/vfolder-desktop-method.c:
3291 (vfolder_uri_parse_internal): band aid for crasher. Work out
3293 (vfolder_desktop_dir_monitor), (vfolder_user_desktop_dir_monitor),
3294 (do_open), (do_read_directory): remove debug info.
3296 2002-05-17 Alex Graveley <alex@ximian.com>
3298 * modules/vfolder-desktop-method.c (VFOLDER_URI_PARSE): New
3299 macro/internal function to populate on-stack VFolderURI with
3300 unescaped copy of vfs uri. Used throughout instead of
3301 get_basename() and broken path handling.
3303 2002-05-17 Alex Graveley <alex@ximian.com>
3305 * libgnomevfs/gnome-vfs-xfer.c
3306 (gnome_vfs_destination_is_writable): Handle
3307 GNOME_VFS_ERROR_INVALID_URI when creating .vfs-write.tmp, and
3310 2002-05-17 Michael Meeks <michael@ximian.com>
3312 * test/test-mime.c (main): do a debug_shutdown.
3314 * test/mime-test-files/small-file: add as regression test,
3315 causes the crash below.
3317 * libgnomevfs/gnome-vfs-mime-magic.c
3318 (gnome_vfs_mime_try_one_magic_pattern): check vs. the
3319 range_end + pattern_length, not the range_start + pattern_length,
3320 otherwise for small files eg. 66 bytes and GnomeMagicEntry of
3321 nautilus_link ( range_end == 256, pattern_length == 13), we
3322 fairly soon segv in try_one_pattern_on_buffer.
3324 2002-05-17 Anders Carlsson <andersca@gnu.org>
3326 * libgnomevfs/gnome-vfs-mime-magic.c:
3327 (gnome_vfs_mime_try_one_magic_pattern):
3328 Don't try to check the buffer if it's not long enough.
3329 Fixes #82027, reported by Jacob Berkman.
3331 2002-05-16 Jody Goldberg <jody@gnome.org>
3333 * libgnomevfs/gnome-vfs-application-registry.c (application_sync) :
3334 add some safety. Just in case.
3336 2002-05-16 Michael Meeks <michael@ximian.com>
3338 * libgnomevfs/gnome-vfs-mime-handlers.c
3339 (gnome_vfs_mime_edit_user_file_full): don't dup (leak)
3342 * modules/file-method.c (fam_callback): unref the
3345 2002-04-19 Mark McLoughlin <mark@skynet.ie>
3347 * modules/http-method.c: (construct_gl_http_proxy),
3348 (set_proxy_auth): split these methods out from
3349 sig_gconf_value_changed.
3350 (notify_gconf_value_changed): rename from
3351 sig_gconf_value_changed
3352 (vfs_module_init): don't use gconf_init. Also use
3353 gconf_client_notify_add instead of the 'value-changed' signal
3354 on GConfClient so that we don't get notified of other user
3357 2002-05-15 Mark McLoughlin <mark@skynet.ie>
3359 * schema/system_http_proxy.schemas: set default for
3360 all string keys so that the PropertyEditor doesn't
3363 2002-05-14 Seth Nickell <snickell@stanford.edu>
3365 * modules/applications.vfolder-info.in:
3366 * modules/preferences.vfolder-info.in:
3368 Tweak merging so we don't get so much crap from GNOME 1.4
3370 2002-05-14 Jody Goldberg <jody@gnome.org>
3372 From ali.akcaagac@stud.fh-wilhelmshaven.de (Ali Akcaagac)
3373 http://bugzilla.gnome.org/show_bug.cgi?id=80826
3374 * configure.in : improve FAM test.
3376 Mon May 13 17:35:39 2002 Jonathan Blandford <jrb@redhat.com>
3378 * modules/tarpet.h (TARPET_TYPE_FIFO): Modify to make match tar
3379 documentation better.
3381 2002-05-13 Anders Carlsson <andersca@gnu.org>
3383 * modules/applications.vfolder-info.in:
3384 * modules/http-method.c: (strip_semicolon), (set_content_type),
3385 (process_propfind_propstat):
3386 Always try to strip off text after the semicolon when looking
3387 for the mime type. Fixes #81561, reported by Rene Seindal.
3389 2002-05-12 Rachel Hestilow <hestilow@ximian.com>
3391 * modules/Makefile.am:
3392 * modules/default-modules.conf: Add tar module.
3394 * modules/tar-method.c:
3396 Added. Many thanks to Abi Brady for
3397 her cleanroom tar header implementation.
3399 * docs/tarpet: Added: tar format documentation used for
3402 2002-05-10 Naba Kumar <kh_naba@users.sourceforge.net>
3404 * configure.in: Added "hi" to ALL_LINGUAS.
3406 Wed May 8 15:04:05 2002 Jonathan Blandford <jrb@redhat.com>
3408 * Makefile.am: new supdir
3409 * configure.in: Add GConf testing
3410 * modules/cdda-method.c: Fix http proxy keys
3411 * modules/http-method.c: ditto
3412 * modules/ftp-method.c: ditto, though they seem to be effectively unused
3413 * schemas/.cvsignore: shut up, cvs
3414 * schemas/Makefile.am: Install new proxy schemas
3415 * schemas/system_http_proxy.schemas: new proxy schemas
3417 2002-05-07 Seth Nickell <snickell@stanford.edu>
3421 Bump version number to 1.9.15 and release.
3423 2002-05-07 Seth Nickell <snickell@stanford.edu>
3425 * modules/vfolder-desktop-method.c:
3426 (vfolder_info_read_items_merge):
3428 Inherit all keywords to lower level directories, allowing
3429 nested directories (not common, but they exist) to figure
3430 out their main category name unless they match a "closer"
3433 Flag merged .desktop files with "Merged" so we can optionally
3434 handle them specially in the vfolder.
3436 * modules/applications.vfolder-info.in:
3438 Merge "Merged" capplets into Advanced by default.
3440 2002-05-06 Seth Nickell <snickell@stanford.edu>
3442 * modules/vfolder-desktop-method.c:
3443 (vfolder_info_read_items_merge), (vfolder_info_read_items):
3445 Handle knowledge of settings directory recursively so it covers
3446 things like Settings/Sawfish too.
3448 2002-05-06 Seth Nickell <snickell@stanford.edu>
3450 * modules/applications.vfolder-info.in:
3452 Merge in .desktop files installed into /usr PREFIX.
3454 * modules/vfolder-desktop-method.c:
3455 (vfolder_info_read_items_merge):
3457 Do not set "Applications" category flag on merged
3458 .desktop files that come from the Settings directory.
3460 * modules/fstype.c: (fstype_internal_error):
3464 2002-05-03 David Emory Watson <dwatson@cs.ucr.edu>
3466 * libgnomevfs/gnome-vfs-uri.c:
3467 (gnome_vfs_uri_extract_dirname): Should return URI_PATH_STR whenever
3468 there is only one URI_PATH_CHR in the uri (and it occurs at the
3469 begining), not just when the string equals URI_PATH_CHR.
3471 (test_uri_extract_dirname): New.
3474 2002-05-03 jacob berkman <jacob@ximian.com>
3476 * doc/Makefile.am $(TARGET_DIR): don't conflict with the gnome-vfs
3479 2002-05-02 Bastien Nocera <hadess@hadess.net>
3481 * test/test-directory.c: (show_result):
3482 print error before exiting
3483 * test/vfs-test: new "all-in-one" automatic tester
3485 2002-05-02 Bastien Nocera <hadess@hadess.net>
3487 * test/test-monitor.c: (timeout_cb), (callback), (main):
3488 make the test be automatic, by exiting after 2 events,
3489 add in an timeout function 1 file create and 1 file deletion
3491 2002-05-02 Bastien Nocera <hadess@hadess.net>
3493 * test/test-mime-info.c: (main): fixup for current gnome2
3494 removed test for default_component_iid, change test for
3495 gnome_vfs_mime_set_registered_type_key as the behaviour
3498 2002-05-02 James Henstridge <james@daa.com.au>
3500 * modules/fstype.c: get rid of some warnings that were preventing
3501 it from compiling due to -Werror
3503 2002-05-01 Jody Goldberg <jody@gnome.org>
3505 * test/test-info.c (main) : add a test for is_local.
3507 * modules/Makefile.am : add fstype.c from gnu/findutils
3509 * modules/file-method.c (do_is_local) : implement.
3511 * configure.in : Add afs option and check for some utilities required
3512 for the fstype code from gnu/findutils.
3514 2002-04-26 Jody Goldberg <jody@gnome.org>
3516 * libgnomevfs/gnome-vfs-application-registry.c (application_add_key) :
3517 Store supported_uri_schemes as a key in addition to the internal
3520 Wed May 01 16:49:01 2002 George Lebl <jirka@5z.com>
3522 * modules/vfolder-desktop-method.c: reverted fix for #75150 and
3523 fixed this correctly. Do not reload the entire info structure,
3524 all we need to do is to invalidate the root folder. Also
3525 in unrelated revert, g_build_filename already takes care of the '/'.
3527 Wed May 1 19:12:02 2002 Jonathan Blandford <jrb@redhat.com>
3529 * libgnomevfs/gnome-vfs-mime-info.c:
3530 (_gnome_vfs_mime_info_mark_gnome_mime_dir_dirty),
3531 (_gnome_vfs_mime_info_mark_user_mime_dir_dirty),
3532 (reload_if_needed), (gnome_vfs_mime_info_reload): Only reload the
3533 data if it is needed to be reloaded.
3535 * libgnomevfs/gnome-vfs-mime-monitor.c:
3536 (gnome_vfs_mime_monitor_init), (mime_dir_changed_callback),
3537 (gnome_vfs_mime_monitor_finalize): Let the data know that it needs
3540 * libgnomevfs/gnome-vfs-mime-private.h: add
3541 _gnome_vfs_mime_info_mark_gnome_mime_dir_dirty and
3542 _gnome_vfs_mime_info_mark_user_mime_dir_dirty.
3544 2002-05-01 Stephen Browne <stephen.browne@sun.com>
3547 * modules/Makefile.am:
3549 Made compile of cdemenu module conditional on solaris.
3551 2002-04-30 Pablo Saratxaga <pablo@mandrakesoft.com>
3553 * configure.in (ALL_LINGUAS): added Vietnamese (vi)
3555 2002-04-30 Stephen Browne <stephen.browne@sun.com>
3557 * modules/Makefile.am
3558 * modules/default-modules.conf
3559 * modules/cdemenu-desktop-method.c
3560 Added new 'read-only' module to read CDE (dtwmrc) menus.
3561 This is used by the gnome-panel on Solaris systems.
3563 2002-04-29 Pablo Saratxaga <pablo@mandrakesoft.com>
3565 * configure.in (ALL_LINGUAS): added Basque (eu)
3567 2002-04-29 Seth Nickell <snickell@stanford.edu>
3571 Bump version number to 1.9.14, release, rinse, repeat.
3573 Mon Apr 29 15:54:45 2002 Jonathan Blandford <jrb@redhat.com>
3575 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_info_reload):
3576 remove FIXME that's now fixed.
3578 * libgnomevfs/gnome-vfs-mime-monitor.c:
3579 (gnome_vfs_mime_monitor_class_init), (gnome_vfs_mime_monitor_init),
3580 (mime_dir_changed_callback), (gnome_vfs_mime_monitor_monitor_dir),
3581 (gnome_vfs_mime_monitor_finalize), (gnome_vfs_mime_monitor_get),
3582 (gnome_vfs_mime_monitor_get_type): Let the user know if any
3583 directory we care about changes.
3585 2002-04-26 Benedikt Roth <Benedikt.Roth@gmx.net>
3587 * modules/applications.vfolder-info.in:
3588 Added <Desktop> entry for the Applications folder so that nautilus
3589 will display applications:/// information in the sidebar (#72718).
3590 Moved all <DontShowIfEmpty/> before </Folder> and added one to the
3591 Accessibility folder.
3593 * modules/vfolder-desktop-method.c: (get_entry_unlocked):
3594 If the user made a request for 'applications:' (which would fail)
3595 use 'applications:/' to be consistent witch eg 'start-here:' (#75033)
3597 * modules/vfolder-desktop-method.c: (vfolder_info_recheck):
3598 Fix monitoring of directories so that eg newly installed
3599 .desktop files will show up. (#75150)
3601 * modules/vfolder-desktop-method.c: (vfolder_info_init),
3602 (make_file_private):
3603 Changed ~/.gnome2vfolders/ to ~/.gnome2/vfolders (#78065).
3605 2002-04-25 Jody Goldberg <jody@gnome.org>
3607 * libgnomevfs/gnome-vfs-application-registry.c
3608 (cb_application_collect) : fix.
3610 2002-04-24 Iain <iain@ximian.com>
3612 * modules/preferences.vfolder-info.in: Allow the CDDB capplet in the
3615 2002-04-24 Anders Carlsson <andersca@gnu.org>
3617 * libgnomevfs/gnome-vfs-mime.c (add_to_key):
3618 NULL out the key and list if we don't find the
3621 2002-04-22 Jody Goldberg <jody@gnome.org>
3623 * configure.in : post release version bump.
3625 2002-04-22 Jody Goldberg <jody@gnome.org>
3629 2002-04-22 Jody Goldberg <jody@gnome.org>
3631 * configure.in : bump version number in preparation for release.
3633 2002-04-21 Jody Goldberg <jody@gnome.org>
3635 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_icon_path_from_filename) :
3636 See if this is an absolute path.
3638 2002-04-21 Jody Goldberg <jody@gnome.org>
3640 * libgnomevfs/gnome-vfs-application-registry.c
3641 (gnome_vfs_application_registry_get_applications) : add a hook for the
3642 file-type capplet such that passing NULL as the mime type returns
3645 2002-04-21 Anders Carlsson <andersca@gnu.org>
3647 * libgnomevfs/gnome-vfs-mime-handlers.c:
3648 (gnome_vfs_mime_do_short_list_processing),
3649 (gnome_vfs_mime_get_short_list_applications),
3650 (gnome_vfs_mime_get_short_list_components),
3651 (gnome_vfs_mime_set_short_list_applications),
3652 (gnome_vfs_mime_set_short_list_components), (copy_str_list),
3653 (gnome_vfs_mime_maybe_get_user_level_value):
3654 Don't look at the user level for components, just use
3655 "short_list_component_iids". We do the same thing for
3656 applications, except that we fall back to the advanced
3657 user level if we don't find any items at first.
3659 * libgnomevfs/gnome-vfs-mime.c: (add_to_key):
3662 2002-04-16 Jody Goldberg <jody@gnome.org>
3664 * modules/file-method.c (do_monitor_cancel) : really cancel things.
3666 2002-04-12 Jody Goldberg <jody@gnome.org>
3668 * libgnomevfs/gnome-vfs-mime-info.c (set_value_real) : just use
3669 g_hash_table_replace. Avoid double freeing memory.
3671 2002-04-10 Seth Nickell <snickell@stanford.edu>
3673 * modules/applications.vfolder-info.in:
3675 Hide search tool since it will be in actions (we'd
3676 still like it to show up in non-gnome-panel situations
3677 so we leave the .desktop file as installed)
3679 * modules/file-method.c: (do_monitor_cancel):
3683 2002-04-02 Jody Goldberg <jody@gnome.org>
3685 * modules/file-method.c (fam_callback) : Alex pointed out the
3686 Acknowledged event. I'll use that, it is much cleaner.
3687 Ignore events that are tagged as cancelled, and delete cancelled
3688 handlers when an ack comes in.
3689 (do_monitor_add) : init cancelled.
3690 (do_monitor_cancel) : watch out for double cancels.
3692 2002-04-06 Zbigniew Chyla <cyba@gnome.pl>
3694 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init):
3695 Set textdomain's encoding to UTF-8 using bind_textdomain_codeset.
3697 2002-04-07 Michael Meeks <michael@ximian.com>
3699 * test/test-performance.c (main): upd.
3701 * libgnomevfs/gnome-vfs-mime-info.c
3702 (context_new): use g_hash_table_new_full.
3703 (context_add_key): make the logic more sane,
3704 don't do stupid things keeping 'previous_key'
3705 around, since it's always the same (current) key.
3706 (load_mime_list_info_from, load_mime_type_info_from):
3707 expunge previous_key inefficiency.
3708 (load_mime_type_info_from): don't keep dupping stuff
3709 we don't need to, instead build the several strings
3710 we need in the GString.
3711 (load_mime_list_info_from): ditto.
3712 (release_key_and_value): kill.
3713 (context_destroy): upd.
3714 use g_string_insert_c instead of append_char.
3715 (load_mime_type_info_from): rename to
3716 (load_type_info_from): and unify from giant ugly cut and paste
3717 (load_mime_list_info_from): kill junk.
3718 use defines to map to old names.
3719 (load_type_info_from): ignore lines that don't have the
3720 right lang before doing much slower parsing on them.
3722 2002-03-30 Jody Goldberg <jody@gnome.org>
3724 http://bugzilla.gnome.org/show_bug.cgi?id=71391
3725 * modules/file-method.c (do_monitor_cancel) : add a comment
3726 explaining the issue here.
3727 (fam_callback) : and here. Then patch the problem by not accessing
3728 the uri unless we really need to.
3730 2002-03-31 Murray Cumming <murrayc@usa.net>
3732 * monikers/bonobo-stream-fs.c & monikers/bonobo-stream-vfs.c:
3733 Changed use of e.g. Bonobo_Stream_SEEK_CUR to
3734 Bonobo_Stream_SeekCur, due to recent change in libbonobo.
3736 2002-03-28 Kevin Vandersloot <kfv101@psu.edu>
3738 * modules/http-method.c: bind to the "value_changed" gconf
3739 signal for the proxy settings so that changes made by the user
3740 are updated instantly. Fixes bug # 73578 incidentally.
3742 2002-03-27 Seth Nickell <snickell@stanford.edu>
3746 Bump version number to 1.9.11
3748 2002-03-27 Seth Nickell <snickell@stanford.edu>
3750 * modules/applications.vfolder-info.in:
3752 Add accesibility category to applications: too.
3754 2002-03-25 Seth Nickell <snickell@stanford.edu>
3756 * modules/applications.vfolder-info.in:
3758 Change "Applications" to "Other", since lots of people are seeing this
3759 category and its weird to have Applications->Applications.
3761 2002-03-18 Jody Goldberg <jody@gnome.org>
3763 * modules/preferences.vfolder-info.in : add an Accessibility category.
3765 Fri Mar 22 11:13:30 2002 Owen Taylor <otaylor@redhat.com>
3767 * test/test-async.c (main): Fix includes and
3768 g_type_init (0) [ g_type_init() hasn't taken
3769 arguments for a long time. ]
3771 2002-03-22 jacob berkman <jacob@ximian.com>
3773 * modules/extfs/Makefile.am (extfsdir):
3774 * modules/extfs-method.c (EXTFS_COMMAND_DIR): move into a 2.0
3775 subdirectory for parallel install
3777 2002-03-14 Seth Nickell <snickell@stanford.edu>
3782 Build sherrif commits, bump version number to deal with
3783 tarball that built wrong.
3785 2002-03-11 James Henstridge <james@daa.com.au>
3787 * configure.in: shell doesn't need semicolons to terminate
3788 statements. In fact it can be harmful if an m4 expansion leaves a
3789 semicolon on a line alone, as that is a syntax error.
3791 2002-03-09 Darin Adler <darin@bentspoon.com>
3793 * test/.cvsignore: Ignore test-performance.
3795 2002-03-08 Seth Nickell <snickell@stanford.edu>
3801 2002-03-08 Seth Nickell <snickell@stanford.edu>
3803 * modules/applications.vfolder-info.in:
3805 Update applications vfolder for capplet movement too.
3807 2002-03-05 jacob berkman <jacob@ximian.com>
3809 * modules/preferences.vfolder-info.in: the capplets apparently
3812 2002-02-25 Laszlo Peter <laca@ireland.sun.com>
3814 * modules/file-method.c: (do_read_directory): work around a Solaris
3815 bug where readdir64_r returns -1 instead of 0 at EOF.
3817 2002-02-25 Hasbullah Bin Pit <sebol@ikhlas.com>
3819 * configure.in: REALLY Added ms (Malay) at ALL_LINGUAS.
3821 2002-02-25 Seth Nickell <snickell@stanford.edu>
3828 2002-02-23 Andy Hertzfeld <andy@differnet.com>
3830 * modules/nntp-method.c: (do_basic_command), (get_auth_info),
3831 (get_files_from_newsgroup), (add_file_to_folder),
3832 (do_get_file_info), (do_open_directory):
3833 added password interrogation when necessary, using the standard
3834 gnome-vfs facilities. Also, added some checks to avoid crashing
3835 with badly formed urls.
3837 * modules/default-modules.conf:
3838 removed the "news" protocol variant since it's supposed to get the
3839 servername from preferences; I'll put it back when that's implemented
3841 2002-02-20 Seth Nickell <snickell@stanford.edu>
3843 * modules/applications.vfolder-info.in:
3844 * modules/preferences.vfolder-info.in:
3848 2002-02-20 Michael Meeks <michael@ximian.com>
3850 * test/test-performance.c: add.
3852 * test/Makefile.am: upd.
3854 * libgnomevfs/gnome-vfs-mime-info.c
3855 (fast_file_getc, fast_file_open, fast_file_close): impl.
3856 (hack_getc): expunge the crack smoking evil.
3857 (load_mime_type_info_from),
3858 (load_mime_list_info_from): adapt to not need
3859 hack_getc, these parsers sucked - they couldn't cope with
3860 two lines starting with '#', remove need for ungetc.
3861 switch to the faster read methods.
3863 * test/test-shell.c: dump the mime type.
3865 Tue Feb 19 17:11:41 2002 George Lebl <jirka@5z.com>
3867 * tests/test-monitor.c: when printing out value of a pointer use
3868 %p and not %d to fix compilation on alpha
3870 2002-02-18 Seth Nickell <snickell@stanford.edu>
3872 * libgnomevfs/gnome-vfs-mime-magic.c:
3873 (gnome_vfs_sniff_buffer_looks_like_gzip):
3874 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_get_mime_type_internal):
3876 Prioritize suffix matching over gzip sniffing. Not
3877 very elegant, but the number of gzip'd documents misidentified
3878 as gzip files far exceeds the number of improperly suffixed
3881 * modules/applications.vfolder-info.in:
3882 * modules/preferences.vfolder-info.in:
3886 2002-02-17 Alexander Larsson <alla@lysator.liu.se>
3888 * modules/vfolder-desktop-method.c (vfolder_info_insert_entry):
3889 Use g_hash_table_replace instead of g_hash_table_insert, so we don't
3890 keep a pointer to the old key which eventually got freed.
3891 Seems to fix a startup segfault in the panel.
3893 2002-02-14 Tõivo Leedjärv <leedjarv@interest.ee>
3895 * configure.in: Added et to ALL_LINGUAS.
3897 2002-02-12 Morten Welinder <terra@diku.dk>
3899 * libgnomevfs/gnome-vfs-method.h, libgnomevfs/gnome-vfs-job.h,
3900 libgnomevfs/gnome-vfs-mime.h, gnome-vfs-parse-ls.h: Fix Solaris
3903 2002-02-11 Seth Nickell <snickell@stanford.edu>
3910 2002-02-08 Mark McLoughlin <mark@skynet.ie>
3912 * modules/vfolder-desktop-method.c:
3913 (invalidate_folder_T): impl lock taken version.
3914 (invalidate_folder): split out subfolder stuff to
3915 (invalidate_folder_subfolders): here.
3916 (do_close): use _T here to avoid deadlock.
3918 2002-02-09 Darin Adler <darin@bentspoon.com>
3920 * libgnomevfs/gnome-vfs-file-info.h: Oops. Missed that inode
3921 numbers also are 64 bits when _FILE_OFFSET_BITS=64.
3923 2002-02-09 Bastien Nocera <hadess@hadess.net>
3925 reviewed by: Darin Adler <darin@bentspoon.com>
3927 * configure.in: check for bzlib.h, bomb if it's not there
3928 * modules/Makefile.am: use BZ2_LIBS and CDDA_LIBS defines
3930 2002-02-09 Jon K Hellan <hellan@acm.org>
3932 * configure.in: s/OPENSSL_LDFLAGS/OPENSSL_LIBS/
3934 2002-02-09 Darin Adler <darin@bentspoon.com>
3936 Fix some 64-bit problems by setting flags properly.
3938 * libgnomevfs/Makefile.am:
3939 * modules/Makefile.am:
3940 GNOME_VFS_CONFDIR -> SYSCONFDIR
3941 GNOME_VFS_DATADIR -> DATADIR
3942 GNOME_VFS_PREFIX -> PREFIX
3943 Define _FILE_OFFSET_BITS=64; needed to get large file
3945 Define _BSD_SOURCE; previous defined in some source files,
3946 but it does no harm to define it consistently.
3947 Define _LARGEFILE64_SOURCE; previously defined in some
3948 source files, but affects the stat structure, so needs to
3949 be consistent across more files.
3951 * libgnomevfs/gnome-vfs-application-registry.c:
3952 (gnome_vfs_application_registry_init): GNOME_VFS_DATADIR -> DATADIR
3953 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_init):
3954 GNOME_VFS_DATADIR -> DATADIR
3955 * libgnomevfs/gnome-vfs-mime-magic.c: Remove the _BSD_SOURCE define
3956 now that it's handled on the command line.
3957 (gnome_vfs_mime_get_magic_table): GNOME_VFS_CONFDIR -> SYSCONFDIR
3958 * libgnomevfs/gnome-vfs-mime.c: (mime_init): GNOME_VFS_DATADIR ->
3960 * libgnomevfs/gnome-vfs-module-shared.c: Remove the _BSD_SOURCE and
3961 _LARGEFILE64_SOURCE defines, not that they are handled on the
3963 * libgnomevfs/gnome-vfs-module-shared.h: Add a check so that we fail
3964 to compile if there are incompatibilities in the definition of the
3966 * libgnomevfs/gnome-vfs-utils.c:
3967 (gnome_vfs_icon_path_from_filename): GNOME_VFS_PREFIX -> PREFIX
3968 * modules/file-method.c: Remove the _LARGEFILE64_SOURCE define, now
3969 that it's handled on the command line.
3971 2002-02-05 Havoc Pennington <hp@redhat.com>
3973 * configure.in (HAVE_OPENSSL): don't AC_SUBST OPENSSL_CFLAGS
3974 OPENSSL_LIBS; don't put -L/usr/lib in the ldflags, only
3975 /otherplace/lib. Put OPENSSL_CFLAGS OPENSSL_LIBS in
3976 LIBGNOMEVFS_CFLAGS LIBGNOMEVFS_LIBS
3978 * libgnomevfs/Makefile.am (INCLUDES, libgnomevfs_2_la_LIBADD):
3979 remove OPENSSL_* variables from makefile; instead merge them on
3980 configure script level.
3982 2002-02-04 Seth Nickell <snickell@stanford.edu>
3989 2002-02-02 Seth Nickell <snickell@stanford.edu>
3991 * modules/applications.vfolder-info.in:
3993 Start re-arranging categories.
3995 Fri Feb 01 16:54:02 2002 George Lebl <jirka@5z.com>
3997 * modules/vfolder-desktop-method.c: correctly save DontShowIfEmpty
3999 2002-01-31 John Harper <jsh@unfactored.org>
4001 * libgnomevfs/Makefile.am: install gnome-vfs-cancellable-ops.h
4002 in the module-only header directory
4004 2002-01-31 Jeff Waugh <jdub@perkypants.org>
4006 * gnome-vfs-2.0.pc.in:
4007 * gnome-vfs-module-2.0.pc.in:
4009 Fix specifics in pc.in files for 'non-standard' builds.
4010 Permission from Seth to commit.
4012 2002-01-30 Seth Nickell <snickell@stanford.edu>
4020 Bump version number to 1.9.5
4022 2002-01-29 Seth Nickell <snickell@stanford.edu>
4024 * libgnomevfs/gnome-vfs-monitor.c: (gnome_vfs_monitor_do_add):
4025 * test/test-monitor.c: (main):
4027 Fix a bug in the monitor code... wasn't returning the method
4030 * modules/applications.vfolder-info.in:
4031 * modules/preferences.vfolder-info.in:
4032 * modules/vfolder-desktop-method.c: (invalidate_folder),
4035 Add rudimentary monitoring support to the vfolder method.
4036 Its currently wildly overzealous (basically notifies
4037 everyone anytime anything changes), but the menu structure
4038 shouldn't be jumping around that often, and rereading the
4039 entire menu structure ain't that costly.
4041 Currently doesn't work for deletions.
4043 2002-01-28 Seth Nickell <snickell@stanford.edu>
4045 * modules/applications.vfolder-info.in:
4046 * modules/preferences.vfolder-info.in:
4048 More exciting updates to the vfolders.
4050 2002-01-28 Darin Adler <darin@bentspoon.com>
4052 * gnome-vfs.spec.in: Remove man page.
4054 2002-01-28 Darin Adler <darin@bentspoon.com>
4056 * libgnomevfs/gnome-vfs-configuration.c:
4057 (gnome_vfs_configuration_get_module_path): Patch from
4058 Alvaro Lopez Ortega <alvaro@godsmaze.org> to fix crash
4059 instead of warning when configuration is not set up.
4061 * modules/nntp-method.c: Misc. cleanup.
4063 2002-01-27 Seth Nickell <snickell@stanford.edu>
4065 * modules/applications.vfolder-info.in:
4066 * modules/preferences.vfolder-info.in:
4068 And Systems folder for XST.
4070 2002-01-27 Seth Nickell <snickell@stanford.edu>
4072 * modules/preferences.vfolder-info.in:
4074 Add Advanced folder.
4076 2002-01-27 Seth Nickell <snickell@stanford.edu>
4078 * modules/applications.vfolder-info.in:
4080 Change where we look for capplets.
4082 2002-01-27 Seth Nickell <snickell@stanford.edu>
4084 * modules/preferences.vfolder-info.in:
4086 Change where we look for capplets.
4088 2002-01-27 Anders Carlsson <andersca@gnu.org>
4090 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_delete_items): Call
4091 count_Items_and_size with move set to FALSE. Fixes #46777.
4092 Approved by Seth Nickell.
4094 2002-01-22 jacob berkman <jacob@ximian.com>
4097 * configure.in (AC_OUTPUT):
4098 * Makefile.am (SUBDIRS): remove man page
4100 2002-01-21 Alexander Larsson <alla@lysator.liu.se>
4102 * modules/file-method.c (monitor_setup):
4103 Fix deadlock when fam connection failed twice.
4105 2002-01-21 jacob berkman <jacob@ximian.com>
4107 * modules/Makefile.am (libnntp_la_SOURCES): include nntp-method.h
4109 2002-01-20 Seth Nickell <snickell@stanford.edu>
4111 * modules/Makefile.am:
4112 * modules/default-modules.conf:
4113 * modules/nntp-method.c: (nntp_response_to_vfs_result),
4114 (read_response_line), (get_response), (do_control_write),
4115 (nntp_connection_reset_buffer), (do_basic_command),
4116 (nntp_connection_create), (nntp_connection_destroy), (my_str_hash),
4117 (my_str_equal), (nntp_connection_uri_hash),
4118 (nntp_connection_uri_equal), (nntp_connection_acquire),
4119 (nntp_connection_release), (is_number_or_space),
4120 (all_numbers_or_spaces), (remove_numbers_between_dashes),
4121 (remove_number_at_end), (trim_nonalpha_chars),
4122 (remove_of_expressions), (filter_folder_name), (remove_commas),
4123 (is_number), (parse_date_string), (parse_header),
4124 (nntp_fragment_new), (nntp_fragment_destroy), (map_slashes),
4125 (nntp_file_new), (nntp_file_destroy), (nntp_file_look_up_fragment),
4126 (nntp_file_get_total_size), (nntp_file_add_part), (look_up_file),
4127 (start_loading_article), (uu_decode_text), (base_64_map),
4128 (base_64_decode_text), (line_in_decode_range), (load_from_article),
4129 (load_file_fragment), (bytes_in_buffer), (copy_bytes_from_buffer),
4130 (nntp_file_read), (free_nntp_file_list),
4131 (get_files_from_newsgroup), (strip_slashes),
4132 (extract_newsgroup_and_filename), (nntp_file_from_uri),
4133 (has_all_fragments), (add_file_fragment), (remove_partial_files),
4134 (update_file_sizes), (add_file_to_folder), (remove_file_from_list),
4135 (remove_contained_files), (calculate_folder_mod_date),
4136 (generate_folder_from_element), (generate_folders),
4137 (destroy_element), (destroy_folder_hash), (assemble_folders),
4138 (assemble_files_from_overview), (do_is_local),
4139 (prepare_to_read_file), (do_open), (do_close), (do_read),
4140 (do_get_file_info), (do_get_file_info_from_handle),
4141 (do_open_directory), (do_close_directory), (do_read_directory),
4142 (do_check_same_fs), (vfs_module_init), (vfs_module_shutdown):
4143 * modules/nntp-method.h:
4145 Port of Andy's NNTP module from GnomeVFS1.
4147 2002-01-19 Hasbullah Bin Pit <sebol@ikhlas.com>
4149 * configure.in: Added ms (Malay) at ALL_LINGUAS.
4150 * po/ms.po: Added Malay Translation by
4151 Mohamad Afifi Omar (App) <mr_mohd_afifi@yahoo.com> and me..
4153 Thu Jan 17 16:31:31 2002 George Lebl <jirka@5z.com>
4155 * modules/vfolder-desktop-method.c: Fix some memory leaks and
4156 fix memory corruption when duplicate filenames are found
4158 2002-01-17 Darin Adler <darin@bentspoon.com>
4160 * libgnomevfs/gnome-vfs-async-ops.h: Remove unneeded includes.
4161 * libgnomevfs/gnome-vfs-init.h: Remove unneeded includes.
4162 * libgnomevfs/gnome-vfs-mime-handlers.h: Remove unneeded includes.
4164 * libgnomevfs/gnome-vfs-mime-handlers.c: Add includes.
4166 2002-01-17 Darin Adler <darin@bentspoon.com>
4168 * libgnomevfs/gnome-vfs-mime.h: Removed all sorts of extra
4169 include statements that somehow got in here.
4171 * libgnomevfs/gnome-vfs-mime.c:
4172 * modules/ftp-method.c:
4173 * modules/pipe-method.c:
4174 * modules/translate-method.c:
4176 Added includes as necessary to files that were depending on
4179 Thu Jan 17 01:55:23 2002 George Lebl <jirka@5z.com>
4181 * modules/vfolder-desktop-method.c: Fix open_directory with
4182 NULL path and treat it just like "/". Also a ref fix in
4183 insert_entry (probably just being anal though)
4185 2002-01-17 Anders Carlsson <andersca@gnu.org>
4187 * test/test-mime.c (main): Ugh, don't try to free argv.
4189 Fri Jan 11 02:22:26 2002 George Lebl <jirka@5z.com>
4191 * modules/vfolder-desktop-method.c: define structure fields for
4192 monitors, start support for monitoring the desktop_dir's and
4193 use .gnome2 and not .gnome for user vfolder storage
4195 Thu Jan 10 23:17:41 2002 George Lebl <jirka@5z.com>
4197 * modules/file-method.c: don't do g_warning on the last 4 fam events,
4198 they do come (except for FAMMoved) this was causing everything
4199 to spew tons of warnings
4201 * modules/default-methods.conf: fix for all-applications: and add
4204 Thu Jan 10 11:12:24 2002 Owen Taylor <otaylor@redhat.com>
4206 * libgnomevfs/Makefile.am (libgnomevfs_2_la_LIBADD): Reorder
4207 to get -ldl in the right place wrt. OPENSSL libs. (Probably
4210 * configure.in (HAVE_OPENSSL): Omit -ldl here, since we have
4211 it already from gmodule.
4213 Tue Jan 08 23:28:27 2002 George Lebl <jirka@5z.com>
4215 * test/test-shell.c: make things run in a main loop so that we can
4216 test things that require it (such as the vfolder monitoring)
4218 * modules/vfolder-desktop-method.c: make threadsafe (hopefully),
4219 add ctime/mtime for most entries (somewhat fake for directories,
4220 but good enough for noticing changes). When we notice a change
4221 there is a hack so that we read in stuff about 200ms later (this
4222 is a HACK! but it makes it work for now). Fix moving files.
4224 2002-01-04 Havoc Pennington <hp@pobox.com>
4226 * modules/http-method.c (vfs_module_init): preload the GConfClient
4227 cache, since we immediately get all the values from it.
4229 2002-01-03 Darin Adler <darin@bentspoon.com>
4231 * libgnomevfs/gnome-vfs-xfer.c: (move_items), (link_items):
4232 Update count when moving and linking too. Not 100% sure this
4233 makes the count perfect, but it shoudl be better than before.
4235 Wed Jan 02 20:45:09 2002 George Lebl <jirka@5z.com>
4237 * modules/vfolder-desktop-method.c: organize a todo/fixme list
4238 at the top of the file. Implement vfolder file rereading.
4239 Implement stating of things that we can't monitor otherwise.
4240 So that we notice changes on disk. This stuff is now mostly
4241 finished, modulo the .directory files. Though this is not
4244 Sun Dec 30 01:40:40 2001 George Lebl <jirka@5z.com>
4246 * modules/vfolder-desktop-method.c: Start working on monitoring. For
4247 now it monitors the item directories for added directories plus
4248 there is a few more FIXMEs around. There are still many open
4249 questions of how to do things without being a slow pig. For
4250 example we need to update at least somewhat if there are is no fam
4253 2001-12-16 Duarte Loreto <happyguy_pt@hotmail.com>
4255 * configure.in: Added Portuguese locale to ALL_LINGUAS.
4257 2001-12-15 Ross Golder <rossg@golder.org>
4259 * gnome-vfs.spec.in (Name): was gnome_vfs, now @PACKAGE@.
4260 * configure.in: Updated RPM dependency versions
4262 2001-12-12 Michael Meeks <michael@ximian.com>
4264 * libgnomevfs/gnome-vfs-mime-handlers.c
4265 (unref_gconf_engine): kill.
4266 (get_user_level): kill atexit handler & use the gconf_client
4267 API instead of the gconf_engine one.
4269 2001-12-14 Seth Nickell <snickell@stanford.edu>
4271 * modules/applications.vfolder-info.in:
4273 Rename Settings folder to Preferences.
4275 2001-12-14 Seth Nickell <snickell@stanford.edu>
4277 * modules/preferences.vfolder-info.in:
4279 Fix stupid typo that was breaking substitution
4282 2001-12-14 Seth Nickell <snickell@stanford.edu>
4284 * modules/Makefile.am:
4285 * modules/default-modules.conf:
4286 * modules/desktop-method.c: (vfs_module_init):
4287 * modules/preferences.vfolder-info.in:
4289 Switch the "preferences:/" URI over to using the vfolder
4290 method and create a vfolder for preferences.
4292 2001-12-14 Seth Nickell <snickell@stanford.edu>
4294 * modules/Makefile.am:
4295 * modules/applications.vfolder-info.in:
4296 * modules/default-modules.conf:
4297 * modules/programs.vfolder-info.in:
4299 Change from "programs:/" to "applications:/"
4301 2001-12-05 ERDI Gergo <cactus@cactus.rulez.org>
4303 * libgnomevfs/gnome-vfs-context.h: balance G_END_DECLS with
4306 Sun Dec 02 11:55:57 2001 George Lebl <jirka@5z.com>
4308 * modules/vfolder-desktop-method.c, modules/programs.vfolder-info.in:
4309 change the Unallocated query type to an OnlyUnallocated flag on
4310 the folder. This way we can have multiple onlyunallocated folders,
4311 though that may lead to some operations not being very efficent.
4312 Also it fixes some ugly corner cases with that being a query type
4313 and cleans up the code somewhat. Also write all 3 folder flags
4314 to disk when writing the user vfolder-info file.
4316 * test/test-shell.c: when getting file info, always get the mime
4319 Wed Nov 28 13:16:06 2001 George Lebl <jirka@5z.com>
4321 * modules/vfolder-desktop-method.c: Fix set_file_info, fix
4322 a few leaks, some possible crashes, and add cancellation
4323 checks to a bunch of places (not everywhere yet)
4325 2001-11-28 Seth Nickell <snickell@stanford.edu>
4327 * modules/vfolder-desktop-method.c: (get_entry),
4328 (desktop_uri_to_file_uri), (do_open):
4330 Track down a couple bugs that were preventing
4331 .directory files from being read... Folders should
4332 now have directory info... woo hoo!
4334 * modules/programs.vfolder-info.in:
4336 Add <Desktop> specs to all folders.
4338 2001-11-28 Seth Nickell <snickell@stanford.edu>
4340 * modules/programs.vfolder-info.in:
4342 Add <DesktopDir> specification
4344 2001-11-27 Seth Nickell <snickell@stanford.edu>
4346 * modules/programs.vfolder-info.in:
4348 And Unallocated query works! :-)
4350 Turn it on for the Applications folder.
4352 Tue Nov 27 20:06:00 2001 George Lebl <jirka@5z.com>
4354 * modules/vfolder-desktop-method.c: add the Unallocated query.
4355 that is a special query which can only be used once in a
4356 vfolder-info file which matches all the elsewhere unallocated
4359 2001-11-27 Seth Nickell <snickell@stanford.edu>
4361 * modules/vfolder-desktop-method.c: (readitem_entry):
4363 Fix incorrect boolean comparison, makes readitem_entry
4366 2001-11-27 Seth Nickell <snickell@stanford.edu>
4368 * modules/vfolder-desktop-method.c:
4369 (vfolder_info_read_items_merge):
4371 Change "Utility" to "Utilities" looking for
4372 vfolders based on current location.
4374 2001-11-27 Seth Nickell <snickell@stanford.edu>
4380 * modules/programs.vfolder-info.in:
4382 Use <DontShowIfEmpty/> on standard folders
4383 except for Settings. If there's nothing in
4384 Settings, its an actual problem, and we
4385 shouldn't just have the folder disappear.
4388 Tue Nov 27 16:55:34 2001 George Lebl <jirka@5z.com>
4390 * modules/vfolder-desktop-method.c: implement ReadOnly and
4391 DontShowIfEmpty flags on folders and a ReadOnly flag on
4392 the main info xml tree.
4394 2001-11-27 Seth Nickell <snickell@stanford.edu>
4396 * modules/programs.vfolder-info.in:
4398 Add/Remove/Rename categories to comply with current
4401 Mon Nov 26 21:52:01 2001 George Lebl <jirka@5z.com>
4403 * modules/vfolder-desktop-method.c: always avoid mime-type checks
4404 on real file and just force the right mime types. If a scheme
4405 starts with 'all-', then this is just a flat listing of all
4406 the .desktops in that scheme. And fix a leak or two.
4408 * modules/default-modules.conf: add all-programs: scheme for
4409 vfolder-desktop-method
4411 2001-11-26 Seth Nickell <snickell@stanford.edu>
4417 2001-11-26 Seth Nickell <snickell@stanford.edu>
4421 Bump version to 1.9.4, tag, release (rinse repeat).
4423 2001-11-22 Seth Nickell <snickell@stanford.edu>
4425 * doc/gnome-vfs-docs.sgml
4427 Add reference to section on "installing MIME data"
4429 * doc/installing-mime-data.sgml
4431 Blurb moved from the HIG.
4433 2001-11-21 Wang Jian <lark@linux.net.cn>
4435 * configure.in(ALL_LINGUAS): Added zh_CN for Simplified Chinese.
4437 Tue Nov 20 19:32:11 2001 Owen Taylor <otaylor@redhat.com>
4439 * configure.in (FAM_LIBS): Add some more quoting that
4440 is needed for some autoconf versions.
4442 * libgnomevfs/gnome-vfs-mime-monitor.c: Remove gobject/gsignal.h.
4444 2001-11-18 Miles Lane <miles@megapathdsl.net>
4446 * libgnomevfs/gnome-vfs-mime-monitor.h:
4447 replace include of gobject/gobject.h
4448 with glib-object.h, due to a change in gobject/gobject.h
4449 that forces an #error for all direct includes.
4450 This checkin was approved by Havoc.
4452 2001-11-13 Frederic Crozat <fcrozat@mandrakesoft.com>
4456 Fix default detection of OpenSSL libraries
4459 2001-11-08 Maciej Stachowiak <mjs@noisehavoc.org>
4461 * libgnomevfs/gnome-vfs-helpers.c,
4462 libgnomevfs/gnome-vfs-helpers.h, libgnomevfs/Makefile.am: Removed
4463 because we don't want to lock in this messy API and there is no
4464 time for proper cleanup. Some eel functions will probably migrate
4467 2001-11-06 Maciej Stachowiak <mjs@noisehavoc.org>
4469 * libgnomevfs/Makefile.am: Make gnome-vfs-mime.h a module header
4472 * libgnomevfs/gnome-vfs-mime-utils.h: New public header.
4473 * libgnomevfs/gnome-vfs-mime-handlers.h: Include
4474 gnome-vfs-mime-utils.h
4476 * libgnomevfs/gnome-vfs-mime.h, libgnomevfs/gnome-vfs-mime.c:
4477 Rename gnome_vfs_get_mime_type to
4478 gnome_vfs_get_mime_type_common. Add new gnome_vfs_get_mime_type
4479 function which takes a string URI and uses gnome_vfs_get_file_info
4482 2001-11-05 Seth Nickell <snickell@stanford.edu>
4484 * doc/tmpl/gnome-vfs-unused.sgml:
4485 * libgnomevfs/Makefile.am:
4487 Make gnome-vfs-mime-monitor.h a public header.
4489 Make gnome-vfs-mime.h a public header, maybe only
4490 temporarily but a number of the functions declared
4491 here should be public. For now just make sure we
4492 aren't breaking Nautilus needlessly.
4494 2001-11-05 Maciej Stachowiak <mjs@noisehavoc.org>
4496 * test/test-shell.c: Add a header now needed due to the below
4498 * doc/tmpl/gnome-vfs-unused.sgml: More mystery changes.
4500 2001-11-05 Maciej Stachowiak <mjs@noisehavoc.org>
4502 * libgnomevfs/check-headers.pl: New script to check that module
4503 API headers do not include private headers, and public headers do
4504 not include private or module API headers.
4506 * libgnomevfs/Makefile.am: Run check-headers.pl on `make check'.
4508 * libgnomevfs/Makefile.am,
4509 libgnomevfs/gnome-vfs-cancellable-ops.c,
4510 libgnomevfs/gnome-vfs-context.h, libgnomevfs/gnome-vfs-handle.c,
4511 libgnomevfs/gnome-vfs-handle.h, libgnomevfs/gnome-vfs-method.h,
4512 libgnomevfs/gnome-vfs-ops.h, libgnomevfs/gnome-vfs-types.h,
4513 libgnomevfs/gnome-vfs-uri.c, libgnomevfs/gnome-vfs.h: Fix problems
4514 found by check-headers.pl
4516 * doc/tmpl/gnome-vfs-unused.sgml: the mystery of gtk-doc strikes
4519 2001-11-03 Darin Adler <darin@bentspoon.com>
4521 * .cvsignore: Ignore gnome-vfs-module-2.0.pc.
4523 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4525 * NEWS, configure.in: Updated for 1.9.3.
4527 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4529 * libgnomevfs/Makefile.am: Fix module header install location.
4531 * Makefile.am, configure.in: install gnome-vfs-module-2.0.pc (I
4532 think Darin made the same changes, but I forgot to commit, too
4533 tired to untangle it now)
4535 2001-11-02 Darin Adler <darin@bentspoon.com>
4537 * configure.in: We need to generate gnome-vfs-module-2.0.pc, if
4538 we're going to install it. Sorry for the 3 check-ins in a row.
4540 2001-11-02 Darin Adler <darin@bentspoon.com>
4542 * Makefile.am: Oops. ".pc" not ".pc.in".
4544 2001-11-02 Darin Adler <darin@bentspoon.com>
4546 * Makefile.am: Install gnome-vfs-module-2.0.pc.
4547 * libgnomevfs/gnome-vfs.h: One file was out of alphabetical order.
4549 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4551 * NEWS, configure.in: Updated for 1.9.2.
4553 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4555 * libgnomevfs/gnome-vfs-uri.h, libgnomevfs/gnome-vfs-uri.c: Remove
4556 gnome_vfs_get_basename, fixing bug 40822
4558 Remove a bunch of uses of gnome_vfs_uri_get_basename and replace
4559 mostly with extract_short_path_name. All appeared to be buggy as
4562 * libgnomevfs/gnome-vfs-mime.c:
4563 (gnome_vfs_get_mime_type_from_uri_internal),
4564 (gnome_vfs_get_mime_type):
4565 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_private):
4566 * modules/cdda-method.c: (cdda_set_file_info_for_root),
4567 (get_track_index_from_uri), (do_open), (is_file_is_on_disc),
4568 (do_get_file_info), (do_open_directory), (get_data_size_from_uri):
4569 * modules/nfs-method.c: (fhandle_recurse_lookup), (nfs_create),
4570 (nfs_export_list), (do_get_file_info),
4571 (do_get_file_info_from_handle), (nfs_mkdir), (nfs_rmdir),
4572 (nfs_unlink), (nfs_rename):
4573 * modules/vfolder-desktop-method.c: (get_basename, do_create,
4574 do_move, do_unlink):
4576 * doc/tmpl/gnome-vfs-unused.sgml, doc/tmpl/process.sgml,
4577 doc/tmpl/uri.sgml: gtk-doc works its magic.
4579 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4581 * libgnomevfs/Makefile.am: Move a few more headers into the module
4584 2001-11-02 Seth Nickell <snickell@stanford.edu>
4588 Build gnome-vfs-module-2.0.pc
4590 * libgnomevfs/Makefile.am:
4592 Start splitting header files between private, public and module
4595 * gnome-vfs-module-2.0.pc.in:
4597 Add a new .pc file for modules.
4599 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4601 * doc/Makefile.am: Ignore new private headers in libgnomevfs
4604 2001-11-02 Maciej Stachowiak <mjs@noisehavoc.org>
4608 * doc/tmpl/gnome-vfs-unused.sgml:
4609 * libgnomevfs-pthread/Makefile.am:
4610 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
4611 * libgnomevfs-pthread/gnome-vfs-async-job-map.h:
4612 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
4613 * libgnomevfs-pthread/gnome-vfs-job-queue.c:
4614 * libgnomevfs-pthread/gnome-vfs-job-queue.h:
4615 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
4616 * libgnomevfs-pthread/gnome-vfs-job-slave.h:
4617 * libgnomevfs-pthread/gnome-vfs-job.c:
4618 * libgnomevfs-pthread/gnome-vfs-job.h:
4619 * libgnomevfs-pthread/gnome-vfs-pthread.c:
4620 * libgnomevfs-pthread/gnome-vfs-pthread.h:
4621 * libgnomevfs-pthread/gnome-vfs-thread-pool.c:
4622 * libgnomevfs-pthread/gnome-vfs-thread-pool.h:
4623 * libgnomevfs/Makefile.am:
4624 * libgnomevfs/gnome-vfs-async-ops.c:
4625 * libgnomevfs/gnome-vfs-init.c:
4626 * test/test-async-cancel.c:
4627 * test/test-queue.c: Move contents of libgnomevfs-pthread into
4630 * modules/Makefile.am, modules/default-modules.conf,
4631 modules/gconf-method.c, modules/gconf-method.h: Remove gconf
4634 2001-11-01 Seth Nickell <snickell@stanford.edu>
4636 * data/mime/WHERE_IS_THE_MIME_REGISTRY?:
4638 Add file informing the unwashed of the new location
4643 * data/mime/ChangeLog:
4644 * data/mime/Makefile.am:
4645 * data/mime/gnome-vfs-mime-magic:
4646 * data/mime/gnome-vfs.applications:
4647 * data/mime/gnome-vfs.keys.in:
4648 * data/mime/gnome-vfs.mime:
4650 Remove the mime registry.
4654 * gnome-vfs.spec.in:
4656 Remove references to the mime registry.
4658 * doc/tmpl/gnome-vfs-unused.sgml:
4660 Apparently gtk-doc had some changes it wanted
4661 to make, don't look at me ;-)
4663 2001-10-30 Laszlo Peter <laca@ireland.sun.com>
4664 * libgnomevfs/gnome-vfs.h: remove duplicated include line
4666 2001-10-29 jacob berkman <jacob@ximian.com>
4668 * libgnomevfs/gnome-vfs-i18n.h (_): use GETTEXT_PACAKGE
4670 * configure.in: set GETTEXT_PACKAGE and use AM_GLIB_GNU_GETTEXT
4672 * acconfig.h: add GETTEXT_PACAKGE
4674 2001-10-27 jacob berkman <jacob@ximian.com>
4676 * libgnomevfs/gnome-vfs-async-ops.h:
4677 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
4678 * libgnomevfs-pthread/gnome-vfs-job-queue.c: rename
4679 GNOME_VFS_*_PRIORITY to GNOME_VFS_PRIORITY_*
4681 2001-10-26 Laszlo Peter <laca@ireland.sun.com>
4683 * modules/vfolder-desktop-method.c: fix undefined symbol.
4685 2001-10-24 Havoc Pennington <hp@redhat.com>
4687 * modules/file-method.c (get_stat_info): fix memory leak of
4688 file_info->symlink_name for multiply-nested symlinks, and avoid
4689 infinite loop for symlink cycles. Bug #62494
4691 Mon Oct 22 23:18:38 2001 George Lebl <jirka@5z.com>
4693 * modules/vfolder-desktop-method.c: fix reading of keywords,
4694 preserve implicit keywords on privatize, reread keywords
4695 after we changed the file, when keywords may have changed,
4696 invalidate the entire directory strucutre.
4698 Mon Oct 22 21:47:00 2001 George Lebl <jirka@5z.com>
4700 * modules/vfolder-desktop-method.c: fix creation of files, fix usage
4701 of basenames, fix long moving, don't write vfolder more then once on
4702 long move, fix quick moves. Actually this makes moves actually
4703 work. Also add some FIXMEs which I didn't think of before.
4705 Mon Oct 22 19:01:21 2001 George Lebl <jirka@5z.com>
4707 * modules/vfolder-desktop-method.c: implement long_move and folder
4710 Mon Oct 22 19:10:57 2001 George Lebl <jirka@5z.com>
4712 * modules/test-method.c: add includes for sys/time and sys/types
4714 Sun Oct 21 16:14:33 2001 George Lebl <jirka@5z.com>
4716 * modules/vfolder-desktop-method.c: implement saving of the vfolder
4717 info, and fix locations for saving per-user files.
4719 2001-10-21 Gregory Leblanc <gleblanc@linuxweasel.com>
4721 * gnome-vfs.spec.in: Bunch of updates, still not quite right.
4722 Asked for some help from the gnome-vfs hackers.
4724 Sun Oct 21 02:52:48 2001 George Lebl <jirka@5z.com>
4726 * modules/vfolder-desktop-method.c: implement create and some
4727 fixes to saving vfolder doc (though of course that bit isn't
4730 Fri Oct 19 23:24:06 2001 George Lebl <jirka@5z.com>
4732 * modules/vfolder-desktop-method.c: implement make/remove_directory,
4733 do proper checking of schemes as a way to do "same fs" check
4735 Thu Oct 18 20:14:02 2001 George Lebl <jirka@5z.com>
4737 * modules/vfolder-desktop-method.c: Rewrite the path resolution bits,
4738 rewrite the move method to be saner, but still incomplete,
4739 implement open for write and sanitized things all over.
4741 2001-10-17 jacob berkman <jacob@ximian.com>
4743 * configure.in: remove gdk dependency
4745 * modules/file-method.c (monitor_setup):
4746 (fam_callback): use GIOChannels directly rather than through
4747 gdk_input calls (removes an unnecessary gdk dependency)
4749 Tue Oct 16 00:30:27 2001 George Lebl <jirka@5z.com>
4751 * modules/vfolder-desktop-method.c: not all systems have the
4752 d_type dirent thingie, so don't use it, implement unlink and
4753 move (mostly), though changes are not yet written to disk,
4754 add a bunch of fixmes and some more code to the writing functions.
4755 also remove some debugging output.
4757 2001-10-15 Laszlo Peter <laca@ireland.sun.com>
4759 Patch for 48545 - add prioritized versions of all async calls
4761 * libgnomevfs/gnome-vfs-async-ops.h,
4762 libgnomevfs-pthread/gnome-vfs-async-ops.c,
4763 libgnomevfs/gnome-vfs-helpers.h,
4764 libgnomevfs/gnome-vfs-helpers.c:
4765 added a new argument to all async operations, the job priority,
4766 which comes just before the callback. Priority is an int, valid
4767 range is GNOME_VFS_MIN_PRIORITY (-10) to GNOME_VFS_MAX_PRIORITY
4768 (+10). Use GNOME_VFS_DEFAULT_PRIORITY (0) if you don't care.
4770 * libgnomevfs-pthread/gnome-vfs-job-queue.h,
4771 libgnomevfs-pthread/gnome-vfs-job-queue.c: (new files)
4772 Put async jobs in a queue if the number of concurrent jobs
4773 exceeds a limit. Start jobs based on the priority.
4774 Public functions gnome_vfs_async_{get,set}_job_limit can be
4775 used to change the default job limit.
4777 * libgnomevfs/gnome-vfs-job-limit.h: (new file) public prototypes
4778 of the functions to get/set the job limit.
4780 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
4781 (gnome_vfs_thread_backend_shutdown): shut down the job queue
4783 * libgnomevfs-pthread/gnome-vfs-job.h: added the priority to
4786 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_new):
4787 added the priority argument. (gnome_vfs_job_go): call the
4788 job scheduler instead of starting the job immediately.
4790 * libgnomevfs-pthread/gnome-vfs-pthread.c: (gnome_vfs_pthread_init):
4791 initialize the job queue.
4793 * libgnomevfs-pthread/gnome-vfs-thread-pool.c (thread_entry):
4794 check the job queue when a job is finished.
4796 * modules/test-method.c: (vfs_module_init): take the config file
4797 from GNOME_VFS_TEST_CONFIG_FILE env. variable if defined.
4798 (start_operation): use select() instead of usleep().
4800 * test/test-async-cancel.c, test/test-async-directory.c,
4801 test/test-async.c, test/test-callback.c, test/test-channel.c,
4802 test/test-symlinks.c: added 0 priority to all async calls.
4804 * test/test-queue.c: (new file): test program for the job queue.
4806 * queue-test-config.xml: (new file): config file for the test
4807 method. Used by test-queue.
4809 * doc/tmpl/async-ops.sgml: added docs on priority and scheduling.
4811 * libgnomevfs/Makefile.am, libgnomevfs-pthread/Makefile.am,
4812 test/Makefile.am: added the new files.
4814 Sun Oct 14 23:25:41 2001 George Lebl <jirka@5z.com>
4816 * modules/Makefile.am, modules/programs.vfolder-info.in,
4817 modules/default-modules.conf: Make the vfolder-desktop-method
4818 the default for programs: and install the programs.vfolder-info
4819 file which now is basically the same as the current scheme
4820 of directories. It needs to be modified to be like nils's
4821 proposal which is cooler.
4823 * modules/vfolder-desktop-method.c: Change to use
4824 <scheme>.vfolder-info, to make it possible to use it for other
4825 schemes then programs:. Read override vfolder-info from users
4826 directory if it exists in preparation for writing. Implement
4827 SortOrder. Fix reading 'Not' queries.
4829 Sun Oct 14 02:31:58 2001 George Lebl <jirka@5z.com>
4831 * modules/vfolder-desktop-method.c: Implement most of the read-only
4832 functionality, the only thing missing is understanding sort order.
4833 Still not added to the build, however it now actually works.
4835 Sat Oct 13 01:47:44 2001 George Lebl <jirka@5z.com>
4837 * modules/vfolder-desktop-method.c: A piece of not-yet-working
4838 code to do the "programs:" scheme but with vfolders. Aimed
4839 to complement the desktop-method, not to replace it for
4840 everything. Doesn't even compile, but I'm paranoid so I want
4843 2001-10-07 Maciej Stachowiak <mjs@noisehavoc.org>
4845 * modules/nfs-method.c: (rpc_init_tcp): Fix bug 55805 (mistake in
4846 gnome-vfs/modules/nfs-method.c), patch from Martin Pool
4849 2001-10-02 Darin Adler <darin@bentspoon.com>
4851 * modules/http-method.c: (build_request), (make_request):
4852 * test/test-shell.c: (do_cd):
4853 g_string_printfa -> g_string_append_printf
4855 2001-10-02 Darin Adler <darin@bentspoon.com>
4860 Changed from xml-i18n-tools to intltool.
4862 * doc/tmpl/gnome-vfs-unused.sgml: Regenerated by gtk-doc.
4863 (Do we have a version mismatch?)
4865 2001-09-30 Anders Carlsson <andersca@gnu.org>
4867 * libgnomevfs/gnome-vfs-module-callback.c:
4868 (gnome_vfs_module_callback_free_stack_info): Free the stack info
4871 2001-09-28 Darin Adler <darin@bentspoon.com>
4873 * modules/file-method.c: (do_read_directory):
4874 Add back MIME type code that we accidentally removed when
4875 we removed directory filtering.
4877 2001-09-26 Maciej Stachowiak <mjs@noisehavoc.org>
4879 * configure.in, NEWS: updated for 1.9.1
4881 2001-09-26 Maciej Stachowiak <mjs@noisehavoc.org>
4883 * doc/tmpl/gnome-vfs-unused.sgml: Regenerated by gtk-doc
4885 Merged some changes from the stable branch:
4887 2001-09-10 Maciej Stachowiak <mjs@noisehavoc.org>
4889 * libgnomevfs/gnome-vfs-uri.h, libgnomevfs/gnome-vfs-uri.c
4890 (gnome_vfs_uri_resolve_relative): Renamed from
4891 gnome_vfs_uri_relative_new; reversed argument order.
4893 2001-09-08 Maciej Stachowiak <mjs@noisehavoc.org>
4897 * libgnomevfs/gnome-vfs-configuration.c: (configuration_load),
4898 (install_path_list), (gnome_vfs_configuration_init):
4899 * test/Makefile.am: Set environment variables so that `make check'
4900 can find the uninstalled modules and configuration.
4902 2001-09-25 Darin Adler <darin@bentspoon.com>
4904 * modules/cdda-cddb.c: (CDDBProcessLine):
4905 * modules/http-authn.c: (http_authn_glist_find_header),
4906 (http_authn_parse_response_header_basic):
4907 * modules/nfs-method.c: (server_connection_acquire):
4908 Switched to new ascii version of strcasecmp family.
4910 2001-09-25 Darin Adler <darin@bentspoon.com>
4912 * configure.in: Require glib 1.3.9.
4914 * libgnomevfs/gnome-vfs-mime.c:
4915 (gnome_vfs_mime_type_from_name_or_default):
4916 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri),
4917 (get_method_string):
4918 Fix for changed signature of g_ascii_strup/strdown.
4920 2001-09-25 Darin Adler <darin@bentspoon.com>
4922 * modules/gzip-method.c: (skip):
4923 * modules/translate-method.c: (my_poptParseArgvString),
4925 Use g_alloca instead of alloca for better portability.
4927 2001-09-20 Havoc Pennington <hp@redhat.com>
4929 * modules/file-method.c (find_trash_in_hierarchy): remove the
4931 (create_trash_near): ditto
4933 * modules/Makefile.am, desktop-method.c, desktop-module.conf: Add
4934 desktop method for desktop URIs such as start-here
4936 2001-09-18 Havoc Pennington <hp@redhat.com>
4938 * libgnomevfs/gnome-vfs-private.h: update modules locations
4940 * modules/Makefile.am (modulesdir): put modules in a new directory
4941 (modulesconfdir): put modules conf in a new directory
4943 * gnome-vfs-2.0.pc.in (Cflags): update
4945 * libgnomevfs/Makefile.am (libgnomevfsincludedir): move headers
4946 into gnome-vfs-2.0 subdir
4948 2001-09-10 Frank Belew <frb@ximian.com>
4950 * configure.in: add check for librt for semaphore functions
4951 (fixes undefined references on solaris)
4953 2001-09-07 Darin Adler <darin@bentspoon.com>
4955 * libgnomevfs-pthread/gnome-vfs-job.c: Remove a stray include.
4957 2001-09-07 Maciej Stachowiak <mjs@noisehavoc.org>
4959 * doc/Makefile.am: Fix stamp creation so the docs get built only
4960 when something actually changes, not every single time.
4962 2001-09-06 Darin Adler <darin@bentspoon.com>
4964 * modules/ftp-method.c: (do_path_command): Fix leak.
4965 (do_transfer_command): Simplify code.
4966 (do_path_transfer_command): Fix leak.
4967 (ftp_connection_create): Fix leak of uri in many cases and of
4968 response_buffer in one case.
4969 (my_str_hash): Simplify code.
4970 (my_str_equal): Simplify code.
4971 (ftp_connection_acquire): Formatting tweak.
4972 (do_get_file_info): Fix leak in the ERROR_NOT_FOUND case.
4973 (vfs_module_init): Remove gconf initialization since this module
4976 2001-09-07 Maciej Stachowiak <mjs@noisehavoc.org>
4978 Fixed many problems in the in-line and out-of-line docs that were
4979 causing doc build warnings (most indicative of problems in the
4980 genrated docs). Recategorize things a bit.
4984 * doc/gnome-vfs-docs.sgml:
4985 * doc/gnome-vfs-sections.txt:
4986 * doc/tmpl/backend.sgml:
4987 * doc/tmpl/directory.sgml:
4988 * doc/tmpl/find-directory.sgml:
4989 * doc/tmpl/fnmatch.sgml:
4990 * doc/tmpl/gnome-vfs-unused.sgml:
4991 * doc/tmpl/init.sgml:
4992 * doc/tmpl/mime-info.sgml:
4993 * doc/tmpl/module-callback-private.sgml:
4994 * doc/tmpl/seekable.sgml:
4995 * doc/tmpl/standard-callbacks.sgml:
4996 * doc/tmpl/xfer.sgml:
4997 * doc/writing-modules.sgml:
4998 * libgnomevfs/gnome-vfs-application-registry.c:
4999 * libgnomevfs/gnome-vfs-directory.c:
5000 * libgnomevfs/gnome-vfs-directory.h:
5001 * libgnomevfs/gnome-vfs-file-info.c:
5002 * libgnomevfs/gnome-vfs-find-directory.c:
5003 * libgnomevfs/gnome-vfs-mime-info.c:
5004 * libgnomevfs/gnome-vfs-mime-info.h:
5005 * libgnomevfs/gnome-vfs-mime.c:
5006 * libgnomevfs/gnome-vfs-module-callback.c:
5008 2001-09-03 Maciej Stachowiak <mjs@noisehavoc.org>
5010 Simplification of the callback API, in the process fixing bugs
5011 8447 ([API] Authentication callback API is not threadsafe) and
5012 8448 ([API] Authentication callbacks require explicit threading
5013 when using async API) and documenting all of it.
5015 * libgnomevfs/gnome-vfs-module-callback.h,
5016 libgnomevfs/gnome-vfs-module-callback.c:
5017 (gnome_vfs_module_callback_set_default,
5018 gnome_vfs_module_callback_push, gnome_vfs_module_callback_pop):
5019 New callback interface, replacing gnome-vfs-app-context.
5020 (gnome_vfs_async_module_callback_set_default,
5021 gnome_vfs_async_module_callback_push,
5022 gnome_vfs_async_module_callback_pop): Calls for managing async
5024 (gnome_vfs_module_callback_invoke): Function to be used by modules
5025 to invoke a callback.
5026 (gnome_vfs_module_callback_get_stack_info,
5027 gnome_vfs_module_callback_free_stack_info,
5028 gnome_vfs_module_callback_use_stack_info,
5029 gnome_vfs_module_callback_clear_stacks,
5030 gnome_vfs_module_callback_set_in_async_thread): Private calls used
5031 by gnome-vfs-job to make sure async jobs are called with the same
5032 set of callbacks as the thread that launches them.
5033 (callback_info_new, callback_info_ref, callback_info_unref,
5034 async_callback_response, async_callback_invoke,
5035 async_callback_destroy, async_callback_info_new,
5036 insert_callback_into_table, push_callback_into_stack_table,
5037 pop_stack_table, copy_one_callback, copy_one_stack_top,
5038 copy_one_callback_to_stack, duplicate_callback_table,
5039 copy_callback_stack_tops, copy_callback_table_to_stack_table,
5040 callback_info_unref_x, remove_one_stack, remove_one_callback,
5041 clear_stack_table, clear_callback_table, stack_table_destroy,
5042 stack_keys_alloc, free_default_callbacks,
5043 initialize_global_if_needed, initialize_per_thread_if_needed):
5044 Helper functions for the above.
5045 * libgnomevfs/gnome-vfs-module-callback-module-api.h: Prototypes
5046 for module-only calls relating to callbacks.
5047 * libgnomevfs/gnome-vfs-module-callback-private.h: Prototypes
5048 for internal calls relating to callbacks.
5049 * libgnomevfs/gnome-vfs-module-callback-private.c,
5050 libgnomevfs/gnome-vfs-module-callback-module-api.c: Files that
5051 only include the corresponding headers to make sure they are
5052 standalone includable.
5053 * libgnomevfs/gnome-vfs-standard-callbacks.h: Changed some names
5054 to fit better with the new API.
5056 * libgnomevfs/gnome-vfs-app-context.c,
5057 libgnomevfs/gnome-vfs-app-context.h,
5058 libgnomevfs/gnome-vfs-callbacks.c,
5059 libgnomevfs/gnome-vfs-callbacks.h,
5060 libgnomevfs/gnome-vfs-context.h,
5061 libgnomevfs/gnome-vfs-module-api.c,
5062 libgnomevfs/gnome-vfs-module-api.h: Removed.
5064 * libgnomevfs/gnome-vfs-private-types.h,
5065 libgnomevfs/gnome-vfs-private.h, libgnomevfs/gnome-vfs-types.h,
5066 libgnomevfs/gnome-vfs.h: Pull in new headers where appropriate.
5067 * libgnomevfs/gnome-vfs-backend-private.h,
5068 libgnomevfs/gnome-vfs-backend.c
5069 (gnome_vfs_backend_dispatch_module_callback): Adjust for new
5070 interface of async module callbacks.
5071 * libgnomevfs/gnome-vfs-context.c: (gnome_vfs_context_new,
5072 gnome_vfs_context_unref,
5073 gnome_vfs_context_check_cancellation_current): Remove app-context
5075 * libgnomevfs/gnome-vfs-messages.h: Move typedef of
5076 GnomeVFSStatusCallback here.
5077 * libgnomevfs/Makefile.am: Add new files to build, remove ones
5080 * libgnomevfs-pthread/gnome-vfs-job.h,
5081 libgnomevfs-pthread/gnome-vfs-job.c:
5082 (gnome_vfs_job_set, set_current_job, clear_current_job,
5083 gnome_vfs_op_destroy): Copy callback state so async jobs get the
5084 same set of callbacks as the calling thread.
5085 (gnome_vfs_job_execute,
5086 pthread_gnome_vfs_dispatch_module_callback,
5087 dispatch_module_callback, dispatch_sync_job_callback): Adjust for
5088 new interface of module callbacks.
5090 * modules/http-method.c
5092 invoke_callback_basic_authn): Adjusted for above API changes.
5093 * modules/http-authn.c:
5094 (http_authentication_test_flush_credentials): Renamed to
5095 authentication from authn.
5096 * modules/Makefile.am: Remove a stray trailing slash (caused
5097 problems with newer automake).
5099 * test/test-callback.c: (authentication_callback,
5100 destroy_notify, main): Adjusted for API changes.
5102 * configure.in: Don't check gtk-doc version (I have an older
5103 version, it seems to work fine) and remove redundant checks.
5105 * doc/gnome-vfs-docs.sgml, doc/gnome-vfs-sections.txt: Add new
5106 module callback stuff.
5108 * doc/tmpl/module-callback-module-api.sgml,
5109 doc/tmpl/module-callback-private.sgml,
5110 doc/tmpl/module-callback.sgml, doc/tmpl/standard-callbacks.sgml,
5111 doc/tmpl/context.sgml: New and updated out-of-line part of the
5112 docs for the module callback interface.
5114 * doc/tmpl/app-context.sgml, doc/tmpl/constants.sgml,
5115 doc/tmpl/module-api.sgml: Removed (corresponding sections are
5118 * doc/tmpl/gnome-vfs-unused.sgml, doc/tmpl/list-sort.sgml,
5119 doc/tmpl/shellpattern-filter.sgml, doc/tmpl/types.sgml,
5120 doc/tmpl/xfer.sgml: Mysteriously changed by gtk-doc.
5122 * doc/Makefile.am, doc/about.sgml, doc/gnome-vfs-docs.sgml,
5123 doc/gnome-vfs-sections.txt, doc/tmpl/app-context.sgml,
5124 doc/tmpl/async-ops.sgml, doc/tmpl/cancellable-ops.sgml,
5125 doc/tmpl/constants.sgml, doc/tmpl/context.sgml,
5126 doc/tmpl/directory-filter.sgml, doc/tmpl/directory.sgml,
5127 doc/tmpl/gnome-vfs-unused.sgml, doc/tmpl/list-sort.sgml,
5128 doc/tmpl/regexp-filter.sgml, doc/tmpl/shellpattern-filter.sgml,
5129 doc/tmpl/standard-callbacks.sgml, doc/tmpl/types.sgml,
5130 doc/tmpl/xfer.sgml: Rescanned, cleaned up assorted doc problems,
5131 removed docs for APIs that are gone.
5133 2001-09-04 Darin Adler <darin@bentspoon.com>
5135 Remove more of the obsolete back-end machinery.
5137 * Makefile.am: Build libgnomevfs-pthread first, so we can link
5138 it into libgnomevfs.
5140 * libgnomevfs-pthread/Makefile.am: Make a convenience library
5141 instead of a shared library. Also put all the headers in
5142 SOURCES instead of noinst_HEADERS, as recommended by automake
5145 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
5146 * libgnomevfs-pthread/gnome-vfs-job.c:
5147 Remove pthread_ prefix from all the names of entry points since we
5148 now link to these directly.
5150 * libgnomevfs/Makefile.am: Link in the new convenience library
5151 and remove gnome-vfs-backend.c.
5153 * libgnomevfs/gnome-vfs-app-context.c:
5154 (gnome_vfs_callback_call_hook), (dispatch_destroy_notify):
5155 * libgnomevfs/gnome-vfs-context.c:
5156 (gnome_vfs_context_peek_current):
5157 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init),
5158 (gnome_vfs_shutdown), (gnome_vfs_loadinit), (gnome_vfs_preinit),
5159 (gnome_vfs_postinit):
5160 Call functions by their real names in the pthread library,
5161 rather than using back-end wrapper names.
5163 * libgnomevfs/gnome-vfs-backend.c: Removed.
5164 * libgnomevfs/gnome-vfs-backend.h: Removed most of the
5165 contents of this file. Later we can delete it completely.
5167 * test/Makefile.am: Removed the environment setup that made it
5168 so tests could find the back end.
5170 * test/test-async-cancel.c: Renamed things to reflect the fact
5171 that we count "jobs" not "threads".
5173 * libgnomevfs/gnome-vfs-async-ops.h: Get rid of "const GList *".
5175 * libgnomevfs-pthread/gnome-vfs-pthread.c: Formatting tweak.
5177 2001-09-04 jacob berkman <jacob@ximian.com>
5179 * modules/*.conf: remove lib prefix and .so suffix from the
5180 libraries as g_module_build_path() will add these for us
5182 * libgnomevfs/gnome-vfs-method.c (load_module_in_path_list): use
5183 g_module_build_path() to correctly get library suffix
5185 2001-09-03 Maciej Stachowiak <mjs@noisehavoc.org>
5187 Put gnome-vfs-backend stuff all in one header and make it private.
5189 * libgnomevfs/Makefile.am:
5190 * libgnomevfs/gnome-vfs-app-context.c:
5191 * libgnomevfs/gnome-vfs-backend-private.h:
5192 * libgnomevfs/gnome-vfs-backend.c:
5193 * libgnomevfs/gnome-vfs-backend.h:
5195 2001-09-03 Maciej Stachowiak <mjs@noisehavoc.org>
5197 Fix bug 8514 ([API] kill gnome-vfs-seekable)
5199 * libgnomevfs/Makefile.am:
5200 * libgnomevfs/gnome-vfs-handle.c: (gnome_vfs_handle_new):
5201 * libgnomevfs/gnome-vfs-seekable.c:
5202 * libgnomevfs/gnome-vfs-seekable.h:
5204 2001-09-02 Maciej Stachowiak <mjs@noisehavoc.org>
5206 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init): Don't warn on
5207 re-init (it's a harmless no-op)
5208 * libgnomevfs/gnome-vfs-init.h: Remove gnome_vfs_options
5209 declaration, since it's not defined anywhere anyway.
5211 2001-09-01 Darin Adler <darin@bentspoon.com>
5213 * idl/.cvsignore: Remove this now that this directory is empty.
5214 * libgnomevfs/.cvsignore: No need to ignore metafile-related
5215 generated files since those files are gone.
5216 * libgnomevfs/Makefile.am: Remove more code that was part of
5217 the metafile support.
5219 * libgnomevfs/eel-cut-n-paste.c:
5220 * libgnomevfs/eel-cut-n-paste.h:
5221 * libgnomevfs/stolen-glib-extensions.c:
5222 * libgnomevfs/stolen-glib-extensions.h:
5225 2001-09-01 Maciej Stachowiak <mjs@noisehavoc.org>
5227 * OUTSTANDING_API_ISSUES: Updated.
5229 2001-09-01 Maciej Stachowiak <mjs@noisehavoc.org>
5234 * idl/gnome-vfs-metafile-server.idl:
5235 * libgnomevfs/Makefile.am:
5236 * libgnomevfs/gnome-vfs-metadata.c:
5237 * libgnomevfs/gnome-vfs-metadata.h:
5238 * libgnomevfs/gnome-vfs-metafile-backend.c:
5239 * libgnomevfs/gnome-vfs-metafile-backend.h:
5240 * libgnomevfs/gnome-vfs-metafile-factory.c:
5241 * libgnomevfs/gnome-vfs-metafile-factory.h:
5242 Remove metadata code from HEAD, with Seth's approval.
5244 2001-08-31 Darin Adler <darin@bentspoon.com>
5246 * libgnomevfs/Makefile.am:
5247 * libgnomevfs/fnmatch.c:
5248 * libgnomevfs/fnmatch.h:
5249 Remove this unused code.
5251 * libgnomevfs/eel-cut-n-paste.c:
5252 * libgnomevfs/gnome-vfs-application-registry.c:
5253 (strip_trailing_whitespace):
5254 * libgnomevfs/gnome-vfs-configuration.c: (parse_line):
5255 * libgnomevfs/gnome-vfs-helpers.c:
5256 * libgnomevfs/gnome-vfs-i18n.c:
5257 * libgnomevfs/gnome-vfs-mime-info.c:
5258 * libgnomevfs/gnome-vfs-mime-magic.c: (read_string_val),
5259 (read_num_val), (eat_white_space), (gnome_vfs_mime_magic_parse),
5260 (print_escaped_string), (gnome_vfs_sniff_buffer_looks_like_text):
5261 * libgnomevfs/gnome-vfs-mime.c: (add_to_key),
5262 (mime_fill_from_file):
5263 * libgnomevfs/gnome-vfs-mime.h:
5264 * libgnomevfs/gnome-vfs-private-utils.c: (check_end):
5265 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri):
5266 * libgnomevfs/gnome-vfs-utils.c:
5267 * libgnomevfs/stolen-glib-extensions.c:
5268 * modules/cdda-cddb.c: (ChopWhite):
5269 * modules/cdda-method.c:
5270 * modules/ftp-method.c: (get_response), (do_read_directory):
5271 * modules/http-method.c: (parse_status), (header_value_to_number),
5272 (unescape_unreserved_chars):
5273 * modules/translate-method.c: (my_poptParseArgvString):
5274 * test/test-shell.c:
5275 Get rid of any use of <ctype.h> and replace with the new g_ascii_*
5278 2001-08-31 Darin Adler <darin@bentspoon.com>
5280 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_list_parse):
5281 Use g_ascii_isspace instead of isspace. This fixes the char
5282 subscript problem in an even better way, and makes sure we don't
5283 interpret spaces with locale-specific rules.
5285 * test/.cvsignore: Ignore this.
5287 2001-08-27 Sander Vesik <sander.vesik@sun.com>
5289 * libgnomevfs/gnome-vfs-uri.c: cast argument to isspace so -Werror
5290 does not cause breakage on solaris - using char as a subscript
5291 generates a warning.
5293 2001-08-27 Martin Baulig <baulig@suse.de>
5295 * modules/file-method.c: Only #include <fam.h> if we HAVE_FAM.
5297 2001-08-26 Maciej Stachowiak <mjs@noisehavoc.org>
5299 * OUTSTANDING_API_ISSUES: Added the rest of the bugs.
5301 2001-08-26 Maciej Stachowiak <mjs@noisehavoc.org>
5303 * OUTSTANDING_API_ISSUES: Added a bunch of entries for bug reports
5304 in the gnome-vfs bug database that have API impact, and bug
5305 numbers for some things I filed.
5307 2001-08-27 Abel Cheung <maddog@linux.org.hk>
5309 * configure.in(ALL_LINGUAS): Rename zh_TW.Big5 to zh_TW.
5311 2001-08-25 Ian McKellar <yakk@yakk.net>
5316 * libgnomevfs/Makefile.am:
5317 * libgnomevfs/gnome-vfs-method.h:
5318 * libgnomevfs/gnome-vfs-monitor-private.h:
5319 * libgnomevfs/gnome-vfs-monitor.c: (init_hash_table),
5320 (gnome_vfs_monitor_do_add), (destroy_monitor_handle),
5321 (gnome_vfs_monitor_do_cancel), (actually_dispatch_callback),
5322 (gnome_vfs_monitor_callback):
5323 * libgnomevfs/gnome-vfs-monitor.h:
5324 * libgnomevfs/gnome-vfs-ops.c: (gnome_vfs_monitor_add),
5325 (gnome_vfs_monitor_cancel):
5326 * libgnomevfs/gnome-vfs-ops.h:
5327 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_relative_new):
5328 * libgnomevfs/gnome-vfs.h:
5329 Added a file/directory monitoring API based off the FAM api.
5331 * modules/Makefile.am:
5332 * modules/file-method.c: (fam_callback), (monitor_setup),
5333 (do_monitor_add), (do_monitor_cancel):
5334 Added monitoring support to the file method using FAM.
5337 * test/test-monitor.c: (show_result), (callback), (main):
5338 Test program for monitoring support.
5340 * test/test-directory.c: (main):
5343 2001-08-25 Darin Adler <darin@bentspoon.com>
5345 * libgnomevfs/Makefile.am: No such thing as $(builddir), so it
5346 makes no sense to pass -I$(builddir).
5348 2001-08-25 Jim Garrison <garrison@users.sourceforge.net>
5350 * doc/tmpl/async-ops.sgml: documented most commonly used
5353 Fri Aug 24 22:17:25 2001 George Lebl <jirka@5z.com>
5355 * libgnomevfs/gnome-vfs-uri.[ch]: Add function
5356 gnome_vfs_uri_list_parse, which is like the original gnome
5357 function gnome_uri_list_extract_uris. It parses text/uri-list
5358 and returns a GList of GnomeVFSURIs. Actually it is not just
5359 like that function it is basically exactly that function thanks
5360 to CutAndPaste(tm) technology.
5362 Thu Aug 23 11:33:48 2001 George Lebl <jirka@5z.com>
5364 * test/test-channel.c (io_channel_callback): Another s/guint/gsize/
5367 Thu Aug 23 11:12:36 2001 George Lebl <jirka@5z.com>
5369 * libgnomevfs/gnome-vfs-process.c (wake_up),
5370 libgnomevfs-pthread/gnome-vfs-job.c (serve_channel_read)
5371 (serve_channel_write): 64bitness issues fixed. GIOChannel
5372 functions have size done in 'gsize' (64bit) and not 'guint' (32bit)
5374 2001-08-21 Maciej Stachowiak <mjs@noisehavoc.org>
5376 * OUTSTANDING_API_ISSUES: Removed the filtering item, added one
5377 for renaming gnome-vfs-method.
5379 All changes below: removed the non-working and undesirable
5380 directory filtering feature.
5382 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
5383 (async_load_directory), (pthread_gnome_vfs_async_load_directory),
5384 (pthread_gnome_vfs_async_load_directory_uri):
5385 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_op_destroy),
5386 (load_directory_details), (execute_load_directory):
5387 * libgnomevfs-pthread/gnome-vfs-job.h:
5388 * libgnomevfs/Makefile.am:
5389 * libgnomevfs/gnome-vfs-async-ops.h:
5390 * libgnomevfs/gnome-vfs-backend.c:
5391 (gnome_vfs_async_load_directory_uri),
5392 (gnome_vfs_async_load_directory):
5393 * libgnomevfs/gnome-vfs-cancellable-ops.h:
5394 * libgnomevfs/gnome-vfs-directory-filter.c:
5395 * libgnomevfs/gnome-vfs-directory-filter.h:
5396 * libgnomevfs/gnome-vfs-directory.c:
5397 (gnome_vfs_directory_handle_new), (open_from_uri), (open),
5398 (gnome_vfs_directory_open), (gnome_vfs_directory_open_from_uri),
5399 (gnome_vfs_directory_open_from_uri_cancellable),
5400 (directory_visit_internal), (gnome_vfs_directory_visit_uri),
5401 (gnome_vfs_directory_visit),
5402 (gnome_vfs_directory_visit_files_at_uri),
5403 (gnome_vfs_directory_visit_files), (gnome_vfs_directory_list_load):
5404 * libgnomevfs/gnome-vfs-directory.h:
5405 * libgnomevfs/gnome-vfs-method.h:
5406 * libgnomevfs/gnome-vfs-regexp-filter.c:
5407 * libgnomevfs/gnome-vfs-regexp-filter.h:
5408 * libgnomevfs/gnome-vfs-shellpattern-filter.c:
5409 * libgnomevfs/gnome-vfs-shellpattern-filter.h:
5410 * libgnomevfs/gnome-vfs-types.h:
5411 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory),
5412 (non_recursive_empty_directory), (gnome_vfs_visit_list),
5413 (directory_add_items_and_size), (create_directory),
5415 * libgnomevfs/gnome-vfs.h:
5416 * modules/cdda-method.c: (do_open), (do_open_directory):
5417 * modules/extfs-method.c: (do_open_directory), (do_get_file_info):
5418 * modules/file-method.c: (directory_handle_new),
5419 (do_open_directory), (do_read_directory):
5420 * modules/ftp-method.c: (do_get_file_info), (do_open_directory):
5421 * modules/gconf-method.c: (directory_handle_new),
5422 (do_open_directory), (do_read_directory):
5423 * modules/http-method.c: (do_open_directory):
5424 * modules/ssh-method.c: (do_open_directory):
5425 * modules/test-method.c: (do_open_directory):
5426 * modules/translate-method.c: (tr_do_open_directory):
5427 * monikers/bonobo-storage-vfs.c: (vfs_list_contents):
5428 * test/test-async-cancel.c: (test_load_directory_cancel),
5429 (test_load_directory_fail):
5430 * test/test-async-directory.c: (main):
5431 * test/test-directory-visit.c: (main):
5432 * test/test-directory.c: (main):
5433 * test/test-shell.c: (do_ls), (validate_path), (get_regexp_name):
5435 2001-08-21 Theo van Klaveren <t.vanklaveren@student.utwente.nl>
5437 * libgnomevfs/gnome-vfs-inet-connection.c,
5438 libgnomevfs/gnome-vfs-mime.h, libgnomevfs/gnome-vfs-ls-parse.c,
5439 modules/file-method.c, modules/ftp-method.c, modules/http-method.c:
5440 Fix includes on FreeBSD by adding <sys/types.h> where needed,
5441 moving <net*> includes to below <sys/types.h>, moving
5442 <netinet/in.h> above <arpa/inet.h> and replacing <malloc.h> by
5445 2001-08-20 Maciej Stachowiak <mjs@noisehavoc.org>
5447 * configure.in: Check for bonobo-activation's IDL directory, not
5450 * idl/Makefile.am, idl/gnome-vfs-slave.idl,
5451 idl/gnome-vfs-types.idl: Remove obsolete idl files.
5453 * idl/gnome-vfs-metafile-server.idl: Include Bonobo_Unknown.idl,
5454 not all of Bonobo.idl.
5456 2001-08-19 Sri Ramkrishna <sri@aracnet.com>
5458 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_private),
5459 (gnome_vfs_xfer_uri):
5461 Added new API docs to gnome-vfs-xfer.
5463 2001-08-14 Michael Meeks <michael@ximian.com>
5465 * configure.in (BONOBO_ACTIVATION_REQUIRED): require 0.9.1
5467 2001-08-10 Abel Cheung <maddog@linux.org.hk>
5469 * configure.in: added zh_TW.Big5 to ALL_LINGUAS. (Please tell me
5470 if there is problem, the file is checked against gettext >= 0.10.36,
5471 and will produce error if gettext <= 0.10.35 is used)
5473 2001-08-07 Martin Baulig <baulig@suse.de>
5475 * configure.in: Fix all the PKG_CHECK_MODULES checks.
5476 You need to check for all dependencies for any given target in a
5477 single PKG_CHECK_MODULES command, otherwise you'll get duplicate
5478 -ldl etc. into your *.la files.
5480 * */Makefile.am: Use the correct _LIBS and _CFLAGS.
5482 2001-08-06 jacob berkman <jacob@ximian.com>
5484 * modules/ftp-method.c (do_open_directory): do a CWD command so we
5485 can correctly return an error code when trying to open a file.
5487 2001-08-06 Frederic Crozat <fcrozat@mandrakesoft.com>
5489 * libgnomevfs/gnome-vfs-mime-magic.c:
5490 (gnome_vfs_sniff_buffer_looks_like_gzip):
5491 Fix detection of Koffice files (ie seen as gzipped files)
5493 2001-08-03 Darin Adler <darin@bentspoon.com>
5495 * libgnomevfs/gnome-vfs.h: Remove extern "C" guards.
5496 The individual files take care of this.
5498 2001-08-03 Darin Adler <darin@bentspoon.com>
5500 Made builds noticeably faster by not using catch-all includes
5501 like <gnome-vfs.h> inside gnome-vfs sources.
5503 * libgnomevfs/Makefile.am: Add gnome-vfs-i18n.h, add
5504 G_DISABLE_DEPRECATED, get rid of unneeded -I directives.
5506 * libgnomevfs-pthread/Makefile.am: Add G_DISABLE_DEPRECATED, get
5507 rid of unneeded -I directives.
5509 * modules/Makefile.am: Add G_DISABLE_DEPRECATED, get rid of
5510 unneeded -I directives. Remove cdda-method.h, extfs-method.h,
5511 file-method.h, ssh-method.h, test-method.h, ftp-method.h,
5512 gconf-method.h, pipe-method.h, efs-method.h.
5514 * test/Makefile.am: Add G_DISABLE_DEPRECATED, get rid of unneeded
5517 * libgnomevfs/gnome-vfs-app-context.c: (inherit_from_current):
5518 Don't use obsolete g_hash_table_freeze/thaw.
5520 * libgnomevfs/eel-cut-n-paste.c: (stolen_strcasecmp),
5521 (stolen_istr_has_prefix):
5522 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_backend_name),
5523 (gnome_vfs_backend_loadinit):
5524 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_matches):
5525 * libgnomevfs/gnome-vfs-helpers.c: (istr_has_prefix),
5526 (is_valid_scheme_character), (gnome_vfs_x_make_uri_canonical):
5527 * libgnomevfs/gnome-vfs-mime-handlers.c:
5528 (gnome_vfs_mime_get_default_action_type), (sort_application_list):
5529 * libgnomevfs/gnome-vfs-mime-info.c: (does_string_contain_caps):
5530 * libgnomevfs/gnome-vfs-mime-magic.c: (read_hex_byte),
5532 * libgnomevfs/gnome-vfs-mime.c: (list_find_type),
5533 (gnome_vfs_mime_type_from_name_or_default):
5534 * libgnomevfs/gnome-vfs-private-utils.c:
5535 (gnome_vfs_istr_has_prefix), (gnome_vfs_istr_has_suffix):
5536 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri),
5537 (get_method_string):
5538 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_get_volume_free_space):
5539 * modules/http-method.c: (check_header),
5540 (proxy_should_for_hostname), (connect_to_uri), (build_request),
5541 (make_request), (process_propfind_propstat):
5542 * modules/test-method.c: (get_operation_settings),
5543 (parse_result_text), (load_settings):
5544 * modules/translate-method.c: (tr_args_parse):
5545 * test/test-mime-handlers-set.c: (str_to_action_type),
5547 * test/test-shell.c: (simple_regexp), (do_cd), (main):
5548 Use new g_ascii calls instead of locale-sensitive ones from the
5549 standard library or the old deprecated glib ones.
5551 * libgnomevfs/gnome-vfs-process.c: (wake_up):
5552 * libgnomevfs-pthread/gnome-vfs-job.c: (serve_channel_read),
5553 (serve_channel_write):
5554 * test/test-channel.c: (io_channel_callback):
5555 Use g_io_channel_write_chars, g_io_channel_shutdown, and
5556 g_io_channel_read_chars instead of g_io_channel_write,
5557 g_io_channel_close, and g_io_channel_read.
5559 * libgnomevfs/gnome-vfs-private.h: Remove everything but the two
5560 path defines in here.
5562 * libgnomevfs/gnome-vfs-i18n.h:
5563 New file, contains i18n funtions that were previously in
5564 gnome-vfs-private.h. (They are still private.)
5566 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
5567 (gnome_vfs_thread_backend_shutdown):
5568 Use g_main_context_iteration instead of g_main_iteration.
5570 * modules/extfs-method.c: (get_basename):
5571 * modules/ftp-method.c: (ls_to_file_info):
5572 Use g_path_get_basename instead of g_basename.
5574 * libgnomevfs/eel-cut-n-paste.c:
5575 * libgnomevfs/gnome-vfs-application-registry.c:
5576 * libgnomevfs/gnome-vfs-backend.c:
5577 * libgnomevfs/gnome-vfs-cancellable-ops.c:
5578 * libgnomevfs/gnome-vfs-cancellation.c:
5579 * libgnomevfs/gnome-vfs-configuration.c:
5580 * libgnomevfs/gnome-vfs-directory-filter.c:
5581 * libgnomevfs/gnome-vfs-directory.c:
5582 * libgnomevfs/gnome-vfs-file-info.c:
5583 * libgnomevfs/gnome-vfs-find-directory.c:
5584 * libgnomevfs/gnome-vfs-handle.c:
5585 * libgnomevfs/gnome-vfs-helpers.c:
5586 * libgnomevfs/gnome-vfs-i18n.c:
5587 * libgnomevfs/gnome-vfs-inet-connection.c:
5588 * libgnomevfs/gnome-vfs-init.c:
5589 * libgnomevfs/gnome-vfs-iobuf.c:
5590 * libgnomevfs/gnome-vfs-method.c:
5591 * libgnomevfs/gnome-vfs-ops.c:
5592 * libgnomevfs/gnome-vfs-parse-ls.c:
5593 * libgnomevfs/gnome-vfs-process.c:
5594 * libgnomevfs/gnome-vfs-regexp-filter.c:
5595 * libgnomevfs/gnome-vfs-result.c:
5596 * libgnomevfs/gnome-vfs-seekable.c:
5597 * libgnomevfs/gnome-vfs-shellpattern-filter.c:
5598 * libgnomevfs/gnome-vfs-ssl.c:
5599 * libgnomevfs/gnome-vfs-uri.c:
5600 * libgnomevfs/gnome-vfs-utils.c:
5601 * libgnomevfs/gnome-vfs-xfer.c:
5602 * libgnomevfs/stolen-glib-extensions.c:
5603 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
5604 * libgnomevfs-pthread/gnome-vfs-async-job-map.h:
5605 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
5606 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
5607 * libgnomevfs-pthread/gnome-vfs-job.c:
5608 * libgnomevfs-pthread/gnome-vfs-job.h:
5609 * libgnomevfs-pthread/gnome-vfs-thread-pool.c:
5610 * modules/bzip2-method.c:
5611 * modules/cdda-cddb.c:
5612 * modules/cdda-cddb.h:
5613 * modules/cdda-method.c:
5614 * modules/efs-method.c:
5615 * modules/extfs-method.c:
5616 * modules/file-method.c:
5617 * modules/ftp-method.c:
5618 * modules/gconf-method.c:
5619 * modules/gzip-method.c:
5620 * modules/http-authn.c:
5621 * modules/http-cache.c:
5622 * modules/http-method.c:
5623 * modules/http-method.h:
5624 * modules/nfs-method.c:
5625 * modules/pipe-method.c:
5626 * modules/ssh-method.c:
5627 * modules/test-method.c:
5628 * modules/translate-method.c:
5629 * test/test-async-cancel.c:
5630 * test/test-async-directory.c:
5631 * test/test-async.c:
5632 * test/test-callback.c:
5633 * test/test-channel.c:
5634 * test/test-directory-visit.c:
5635 * test/test-directory.c:
5636 * test/test-dirop.c:
5637 * test/test-escape.c:
5638 * test/test-find-directory.c:
5640 * test/test-mime-handlers-set.c:
5641 * test/test-mime-handlers.c:
5642 * test/test-mime-info.c:
5644 * test/test-module-selftest.c:
5646 * test/test-shell.c:
5648 * test/test-symlinks.c:
5649 * test/test-sync-create.c:
5650 * test/test-sync-write.c:
5652 * test/test-unlink.c:
5657 * modules/cdda-method.h: Removed.
5658 * modules/efs-method.h: Removed.
5659 * modules/extfs-method.h: Removed.
5660 * modules/file-method.h: Removed.
5661 * modules/ftp-method.h: Removed.
5662 * modules/gconf-method.h: Removed.
5663 * modules/pipe-method.h: Removed.
5664 * modules/ssh-method.h: Removed.
5666 2001-08-02 Darin Adler <darin@bentspoon.com>
5669 Added the test directory back in. Got rid of the cases for GNOME
5670 1, removed vfsConf.sh and gnome-vfs-config. Remove intl directory.
5672 * OUTSTANDING_API_ISSUES: Added some new issues.
5674 * acconfig.h: Removed HAVE_GCONF.
5675 * configure.in: Removed the EAZEL_VERSION macros since we use
5676 pkgconfig now. Removed the GNOME platform autodetect. Removed all
5677 the GNOME 1 cases. Use PKG_CHECK_MODULES instead of
5678 GNOME_PKGCONFIG_CHEC_MODULES. Remove lots of unused CFLAGS and
5679 LIBS defines. Remove intl directory. Removed HAVE_GCONF.
5681 * gnome-vfs-config.in: Removed.
5682 * vfsConf.sh.in: Removed.
5684 * libgnomevfs/Makefile.am: Put non-installed headers into
5685 SOURCES rather than noinst_HEADERS as recommended by automake
5688 * libgnomevfs-pthread/gnome-vfs-pthread.h:
5689 * libgnomevfs/eel-cut-n-paste.h:
5690 * libgnomevfs/gnome-vfs-app-context.h:
5691 * libgnomevfs/gnome-vfs-application-registry.h:
5692 * libgnomevfs/gnome-vfs-async-ops.h:
5693 * libgnomevfs/gnome-vfs-backend.h:
5694 * libgnomevfs/gnome-vfs-callbacks.h:
5695 * libgnomevfs/gnome-vfs-cancellable-ops.h:
5696 * libgnomevfs/gnome-vfs-cancellation.h:
5697 * libgnomevfs/gnome-vfs-configuration.h:
5698 * libgnomevfs/gnome-vfs-context.h:
5699 * libgnomevfs/gnome-vfs-directory-filter.h:
5700 * libgnomevfs/gnome-vfs-directory.h:
5701 * libgnomevfs/gnome-vfs-file-info.h:
5702 * libgnomevfs/gnome-vfs-find-directory.h:
5703 * libgnomevfs/gnome-vfs-handle.h:
5704 * libgnomevfs/gnome-vfs-helpers.h:
5705 * libgnomevfs/gnome-vfs-inet-connection.h:
5706 * libgnomevfs/gnome-vfs-init.h:
5707 * libgnomevfs/gnome-vfs-iobuf.h:
5708 * libgnomevfs/gnome-vfs-method.h:
5709 * libgnomevfs/gnome-vfs-mime-handlers.h:
5710 * libgnomevfs/gnome-vfs-mime-info.h:
5711 * libgnomevfs/gnome-vfs-mime-magic.h:
5712 * libgnomevfs/gnome-vfs-mime-private.h:
5713 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
5714 * libgnomevfs/gnome-vfs-mime.h:
5715 * libgnomevfs/gnome-vfs-module-api.h:
5716 * libgnomevfs/gnome-vfs-module-shared.h:
5717 * libgnomevfs/gnome-vfs-module.h:
5718 * libgnomevfs/gnome-vfs-ops.h:
5719 * libgnomevfs/gnome-vfs-parse-ls.h:
5720 * libgnomevfs/gnome-vfs-private-utils.h:
5721 * libgnomevfs/gnome-vfs-private.h:
5722 * libgnomevfs/gnome-vfs-process.h:
5723 * libgnomevfs/gnome-vfs-regexp-filter.h:
5724 * libgnomevfs/gnome-vfs-result.h:
5725 * libgnomevfs/gnome-vfs-seekable.h:
5726 * libgnomevfs/gnome-vfs-shellpattern-filter.h:
5727 * libgnomevfs/gnome-vfs-socket-buffer.h:
5728 * libgnomevfs/gnome-vfs-socket.h:
5729 * libgnomevfs/gnome-vfs-ssl-private.h:
5730 * libgnomevfs/gnome-vfs-ssl.h:
5731 * libgnomevfs/gnome-vfs-standard-callbacks.h:
5732 * libgnomevfs/gnome-vfs-transform.h:
5733 * libgnomevfs/gnome-vfs-types.h:
5734 * libgnomevfs/gnome-vfs-uri.h:
5735 * libgnomevfs/gnome-vfs-utils.h:
5736 * libgnomevfs/gnome-vfs-xfer.h:
5737 * libgnomevfs/stolen-glib-extensions.h:
5738 Added G_BEGIN_DECLS and G_END_DECLS to all public headers.
5739 Removed unnecessary includes.
5741 * libgnomevfs/gnome-vfs-app-context.c:
5742 * libgnomevfs/gnome-vfs-helpers.c:
5743 * libgnomevfs/gnome-vfs-mime-magic.c:
5744 * libgnomevfs/gnome-vfs-private-utils.c:
5745 * libgnomevfs/gnome-vfs-socket-buffer.c:
5746 * libgnomevfs/gnome-vfs-socket.c:
5747 * libgnomevfs/stolen-glib-extensions.c:
5748 * modules/bzip2-method.c:
5749 * modules/cdda-cddb.c:
5750 * modules/gzip-method.c:
5751 * modules/http-authn.c:
5752 * modules/http-authn.h:
5753 * modules/http-cache.c:
5754 * modules/pipe-method.c:
5755 * modules/ssh-method.c:
5756 Added includes that are needed now that headers drag fewer of them
5759 * modules/cdda-cddb.h:
5760 * modules/cdda-method.h:
5761 Got rid of include of gtk.h.
5763 * libgnomevfs/gnome-vfs-mime-handlers.c: (unref_gconf_engine),
5765 * modules/ftp-method.c: (vfs_module_init):
5768 * modules/file-method.c:
5769 * modules/http-method.c:
5770 * modules/test-method.c:
5771 Removed GNOME_PLATFORM_VERSION.
5774 Removed VFS_GNOMEUI_CFLAGS and VFS_GNOMEGNORBA_LIBS.
5776 * test/test-async-cancel.c: (wait_for_boolean),
5777 (wait_until_vfs_threads_gone), (wait_until_file_descriptors_gone),
5779 * test/test-async-directory.c: (directory_load_callback), (main):
5780 * test/test-async.c: (close_callback), (read_callback),
5781 (open_callback), (main):
5782 * test/test-callback.c: (main):
5783 * test/test-channel.c: (io_channel_callback), (main):
5784 * test/test-directory-visit.c:
5785 * test/test-directory.c: (main):
5786 * test/test-escape.c:
5788 * test/test-mime-handlers-set.c: (main):
5789 * test/test-mime-handlers.c: (print_component), (main):
5790 * test/test-mime-info.c:
5791 * test/test-shell.c: (main):
5792 * test/test-symlinks.c: (create_link_callback), (main):
5794 * test/test-xfer.c: (main):
5795 Converted tests so they no longer require gtk+ or libgnomeui.
5797 2001-08-02 Maciej Stachowiak <mjs@noisehavoc.org>
5799 * OUTSTANDING_API_ISSUES: Add a fe bug numbers.
5800 * doc/outstanding-api-issues.txt: Actually remove this.
5802 ==== gnome-vfs 1.1 ====
5804 2001-08-02 Seth Nickell <snickell@stanford.edu>
5806 * OUTSTANDING_API_ISSUES:
5808 Add more descriptive text so application developers have
5809 a better idea what to avoid using.
5811 * modules/cdda-cddb.h:
5812 * modules/cdda-method.h:
5814 Remove gtk includes.
5817 2001-08-02 Seth Nickell <snickell@stanford.edu>
5819 * OUTSTANDING_API_ISSUES:
5820 * doc/outstanding-api-issues.txt:
5822 Move outstanding-api-issues.txt to the main directory.
5826 Contain notice of OUTSTANDING_API_ISSUES.
5828 2001-08-02 Seth Nickell <snickell@stanford.edu>
5830 * libgnomevfs/gnome-vfs-metafile-backend.c: (corba_get_list),
5831 (corba_set_list), (find_monitor_node), (corba_register_monitor),
5832 (corba_unregister_monitor),
5833 (gnome_vfs_metafile_notify_metafile_ready),
5834 (call_metafile_changed), (file_list_filler_ghfunc),
5835 (call_metafile_changed_for_all_files_mentioned_in_metafile),
5836 (call_metafile_changed_for_one_file):
5837 * libgnomevfs/gnome-vfs-metafile-backend.h:
5839 Sigh. Compile happily...(rename to new idl namespace).
5841 2001-08-02 Michael Meeks <michael@ximian.com>
5843 * doc/Makefile.am (dist-hook): fix directory creation
5846 * modules/ssh-method.c: kill gtk include.
5848 * modules/ftp-method.c: ditto.
5850 * modules/cdda-method.c: kill gtk crud.
5852 * modules/http-method.c: ditto.
5854 * modules/gconf-method.c (vfs_module_init): kill curious gtk
5855 type inits - gconf doesn't use gtk anymore.
5856 (vfs_module_shutdown): ditto.
5858 * libgnomevfs-pthread/gnome-vfs-job-slave.c: kill gtk include
5859 (gnome_vfs_thread_backend_shutdown): and gtk cruft.
5861 * libgnomevfs/gnome-vfs-metafile-backend.c: basic port to GObject,
5862 try and contain the madness a little.
5864 * libgnomevfs/gnome-vfs-mime-info.c: don't include gtkmain.h
5866 * libgnomevfs/gnome-vfs-mime-monitor.c: remove curious unused
5867 parent class setting, port to GObject, clean hard core cruft.
5869 * libgnomevfs/gnome-vfs-mime-monitor.h: include a class structure,
5870 what was someone smoking here ?
5872 * configure.in: don't depend on Gtk+ - that's just broken.
5874 * libgnomevfs/Makefile.am (noinst_HEADERS): add eel-cut-n-paste.h,
5875 stolen-glib-extensions.h and gnome-vfs-metafile-backend.h
5876 (libgnomevfsinclude_HEADERS): install gnome-vfs-metafile.h
5878 * Makefile.am (SUBDIRS): add 'intl'.
5880 2001-08-01 Seth Nickell <snickell@stanford.edu>
5882 * idl/gnome-vfs-metafile-server.idl:
5884 Change from GnomeVFS_ namespace to GNOME_VFS_.
5886 * libgnomevfs/gnome-vfs-metadata.c: (get_factory),
5887 (gnome_vfs_metafile_load), (gnome_vfs_metafile_unref),
5888 (gnome_vfs_metadata_get_string), (gnome_vfs_metadata_get_integer),
5889 (gnome_vfs_metadata_get_boolean), (gnome_vfs_metadata_set_string),
5890 (gnome_vfs_metadata_set_integer), (gnome_vfs_metadata_set_boolean):
5891 * libgnomevfs/gnome-vfs-metadata.h:
5893 Add an initial cut at a Metadata API. DO NOT DEPEND ON THIS
5894 API, IT IS NOT FROZEN (and won't even work right now, so you
5895 won't get very far, headers are not installed and it is not
5896 compiled in...checking in so Ian and I can work together better).
5897 Known changes will occur in the API. Also, the IDL file will
5898 be renamed to better match its module scopes (changes suggested
5901 2001-08-02 Michael Meeks <michael@ximian.com>
5903 * port to bonobo-activation.
5905 2001-08-01 Jonas Borgström <jonas@codefactory.se>
5907 * libgnomevfs/gnome-vfs-ssl.c (gnome_vfs_ssl_create):
5908 Split the HAVE_OPENSSL #ifdef into two. So
5909 the function gnome_vfs_ssl_create_from_fd will exist
5910 (but only return GNOME_VFS_ERROR_NOT_SUPPORTED) even if
5911 HAVE_OPENSSL isn't defined. Or else we will get
5912 unresolved symbols in libhttp.so
5914 2001-07-29 Maciej Stachowiak <mjs@noisehavoc.org>
5916 * doc/outstanding-api-issues.txt: Added a few more issues.
5918 2001-07-29 Maciej Stachowiak <mjs@noisehavoc.org>
5920 * doc/outstanding-api-issues.txt: Add list of outstnading API
5921 issues (perhaps not all of these are for GNOME 2).
5923 2001-07-29 Seth Nickell <snickell@stanford.edu>
5925 * bonobo-storage-fs.c:
5926 * bonobo-storage-vfs.c:
5927 * bonobo-stream-fs.c:
5928 * bonobo-stream-vfs.c:
5930 Make it actually compile ;-) Still had includes to parts
5933 2001-07-29 Seth Nickell <snickell@stanford.edu>
5935 * libgnomevfs/Makefile.am:
5937 Remove link and include variables that were no longer in use.
5939 2001-07-29 Seth Nickell <snickell@stanford.edu>
5943 Change some of the text a little, add a few programming
5946 2001-07-29 Michael Meeks <michael@ximian.com>
5948 * Makefile.am (SUBDIRS_GNOME): add monikers.
5950 * configure.in: add monikers/
5952 2001-07-27 Darin Adler <darin@bentspoon.com>
5954 Get things compiling again.
5956 * idl/gnome-vfs-metafile-server.idl: Don't use a typedef for URI,
5957 just use "string" directly. The IDL compiler doesn't handle the
5958 typedef case properly.
5960 * libgnomevfs/.cvsignore: Ignore the new generated files.
5962 * libgnomevfs/eel-cut-n-paste.c: Add missing <string.h> include.
5964 * libgnomevfs/gnome-vfs-metafile-backend.h: Change xml includes to
5965 use <libxml/*>, not <gnome-xml/*>.
5967 * libgnomevfs/gnome-vfs-metafile-backend.c: Add missing <string.h>
5968 include. Change xml includes to use <libxml/*>, not <gnome-xml/*>.
5969 (destroy), (gnome_vfs_metafile_get), (corba_get_list),
5970 (corba_copy), (metadata_value_new_list), (metadata_value_destroy),
5971 (metadata_value_equal), (get_metadata_list_from_table),
5972 (can_use_public_metafile),
5973 (metafile_read_check_for_directory_callback),
5974 (metafile_read_restart), (metafile_read_start),
5975 (directory_request_write_metafile):
5976 Put code that's not ready yet inside "#ifdef METAFILE_CODE_READY".
5978 * configure.in: Turn -Werror back on and get rid of lame old
5981 * libgnomevfs-pthread/Makefile.am:
5982 * libgnomevfs/Makefile.am:
5983 * modules/Makefile.am:
5985 Get rid of the lame old $(WERROR) hack.
5987 2001-07-26 Seth Nickell <snickell@stanford.edu>
5991 Add Bonobo dependency. Comment out -Werror because ORBit2
5992 or libidl is generating stubs with a few warnings. Should
5993 be the only warnings though, so watch carefully when you
5996 * doc/tmpl/gnome-vfs-unused.sgml:
5997 * doc/tmpl/shellpattern-filter.sgml:
5998 * doc/tmpl/xfer.sgml:
6000 Ask the documentation system!
6004 Add gnome-vfs-metafile-server.idl
6006 * idl/gnome-vfs-metafile-server.idl:
6008 err. Add gnome-vfs-metafile-server.idl
6010 * libgnomevfs/Makefile.am:
6012 Add the eel cut-n-paste code, and the new metafile
6013 stuff, as well as actually using the idl file.
6015 * libgnomevfs/gnome-vfs-metafile-backend.c:
6016 (gnome_vfs_metafile_class_init), (gnome_vfs_metafile_init),
6017 (destroy), (construct_private_metafile_vfs_uri),
6018 (gnome_vfs_metafile_set_directory_uri), (gnome_vfs_metafile_new),
6019 (gnome_vfs_metafile_make_uri_canonical), (gnome_vfs_metafile_get),
6020 (schedule_next_read), (async_read_start), (async_read_done),
6021 (async_read_cancel), (corba_is_read), (corba_get),
6022 (corba_get_list), (corba_set), (corba_set_list), (corba_copy),
6023 (corba_remove), (corba_rename), (corba_rename_directory),
6024 (find_monitor_node), (corba_register_monitor),
6025 (corba_unregister_monitor),
6026 (gnome_vfs_metafile_notify_metafile_ready),
6027 (call_metafile_changed), (file_list_filler_ghfunc),
6028 (call_metafile_changed_for_all_files_mentioned_in_metafile),
6029 (call_metafile_changed_for_one_file), (get_metadata_from_node),
6030 (get_metadata_list_from_node), (create_metafile_root),
6031 (get_file_node), (get_metadata_string_from_metafile),
6032 (get_metadata_list_from_metafile),
6033 (set_metadata_string_in_metafile), (set_metadata_list_in_metafile),
6034 (metadata_value_new), (metadata_value_new_list),
6035 (metadata_value_destroy), (metadata_value_equal),
6036 (set_metadata_in_metafile), (get_metadata_string_from_table),
6037 (get_metadata_list_from_table), (str_or_null_hash),
6038 (str_or_null_equal), (set_metadata_eat_value),
6039 (free_file_table_entry), (free_directory_table_entry),
6040 (destroy_metadata_changes_hash_table), (destroy_xml_string_key),
6041 (metafile_free_metadata), (get_file_metadata),
6042 (get_file_metadata_list), (set_file_metadata),
6043 (set_file_metadata_list), (rename_file_metadata),
6044 (apply_one_change), (apply_file_changes), (apply_one_file_changes),
6045 (gnome_vfs_metafile_apply_pending_changes), (copy_file_metadata),
6046 (remove_file_metadata), (gnome_vfs_metafile_set_metafile_contents),
6047 (metafile_read_cancel), (can_use_public_metafile),
6048 (metafile_read_mark_done), (metafile_read_done),
6049 (metafile_read_try_public_metafile),
6050 (metafile_read_check_for_directory_callback),
6051 (metafile_read_check_for_directory), (metafile_read_failed),
6052 (metafile_read_done_callback), (metafile_read_restart),
6053 (metafile_read_start), (metafile_write_done),
6054 (metafile_write_failed), (metafile_write_failure_close_callback),
6055 (metafile_write_success_close_callback), (metafile_write_callback),
6056 (metafile_write_create_callback), (metafile_write_start),
6057 (metafile_write), (metafile_write_idle_callback),
6058 (directory_request_write_metafile):
6059 * libgnomevfs/gnome-vfs-metafile-backend.h:
6061 Add the metafile backend from Nautilus and hack it up so
6062 it works in GnomeVFS. Interfaces should be the same, and
6063 it shouldn't depend on eel (whew, that was a pile of boring
6066 * libgnomevfs/gnome-vfs-metafile-factory.c:
6067 (nautilus_metafile_factory_class_init),
6068 (nautilus_metafile_factory_init), (destroy),
6069 (nautilus_metafile_factory_new), (free_factory_instance),
6070 (nautilus_metafile_factory_get_instance), (corba_open):
6071 * libgnomevfs/gnome-vfs-metafile-factory.h:
6073 Add the metafile factory from Nautilus and hack it up so
6074 it works in GnomeVFS. Interfaces should be the same, and
6075 it shouldn't depend on eel (whew, that was a pile of boring
6078 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_list_free),
6079 (is_uri_partial), (gnome_vfs_uri_make_full_from_relative):
6080 * libgnomevfs/gnome-vfs-uri.h:
6082 Add some code that was formerly in eel-vfs-extensions but
6083 really belongs in GnomeVFSURI.
6087 * libgnomevfs/eel-cut-n-paste.c: (stolen_strcasecmp),
6088 (stolen_strcmp_case_breaks_ties), (stolen_strcoll),
6089 (stolen_xml_remove_node), (stolen_str_has_prefix),
6090 (stolen_istr_has_prefix), (stolen_str_strip_trailing_chr),
6091 (stolen_strcmp), (stolen_str_is_empty),
6092 (stolen_xml_get_root_children), (stolen_xml_get_children),
6093 (stolen_xml_get_property_for_children):
6094 * libgnomevfs/eel-cut-n-paste.h:
6096 Functions snitched from eel to make the metafile backend
6099 * libgnomevfs/gnome-vfs-helpers.c: (stolen_strcmp), (str_is_equal),
6100 (str_has_prefix), (istr_has_prefix),
6101 (gnome_vfs_x_read_entire_file), (read_file_close_callback),
6102 (read_file_close), (read_file_succeeded), (read_file_failed),
6103 (read_file_read_callback), (read_file_read_chunk),
6104 (read_file_open_callback),
6105 (pthread_gnome_vfs_x_read_file_callback_idle_binder),
6106 (pthread_gnome_vfs_x_read_file_callback_common),
6107 (pthread_gnome_vfs_x_read_file_synchronous_callback),
6108 (pthread_gnome_vfs_x_read_file_asynchronous_callback),
6109 (pthread_gnome_vfs_x_read_file_thread_entry),
6110 (pthread_gnome_vfs_x_read_file_async),
6111 (pthread_gnome_vfs_x_read_file_async_cancel),
6112 (gnome_vfs_x_read_file_async),
6113 (gnome_vfs_x_read_entire_file_async),
6114 (gnome_vfs_x_read_file_cancel), (gnome_vfs_x_uri_is_trash),
6115 (gnome_vfs_x_uri_is_trash_folder), (gnome_vfs_x_uri_is_in_trash),
6116 (gnome_vfs_x_format_uri_for_display), (is_valid_scheme_character),
6117 (has_valid_scheme), (gnome_vfs_x_make_uri_from_input),
6118 (file_uri_from_local_relative_path),
6119 (gnome_vfs_x_make_uri_from_shell_arg),
6120 (gnome_vfs_x_uri_get_basename), (gnome_vfs_x_uri_get_scheme),
6121 (gnome_vfs_x_uri_is_local_scheme),
6122 (gnome_vfs_x_handle_trailing_slashes),
6123 (gnome_vfs_x_make_uri_canonical),
6124 (gnome_vfs_x_make_uri_canonical_strip_fragment),
6125 (gnome_vfs_x_make_uri_from_half_baked_uri), (uris_match),
6126 (gnome_vfs_x_uris_match),
6127 (gnome_vfs_x_uris_match_ignore_fragments),
6128 (gnome_vfs_x_is_remote_uri),
6129 (gnome_vfs_x_make_directory_and_parents),
6130 (gnome_vfs_x_copy_uri_simple):
6131 * libgnomevfs/gnome-vfs-helpers.h:
6133 GnomeVFSHelpers used to be eel-vfs-extensions. Now moved into
6134 GnomeVFS. It needs to have the checks re-enabled...but I'm
6137 * libgnomevfs/stolen-glib-extensions.c:
6138 (stolen_g_list_exactly_one_item),
6139 (stolen_g_list_more_than_one_item), (stolen_g_list_equal),
6140 (stolen_g_list_copy), (stolen_g_str_list_equal),
6141 (stolen_g_str_list_copy), (stolen_g_str_list_alphabetize),
6142 (stolen_g_list_free_deep_custom), (stolen_g_list_free_deep),
6143 (stolen_g_list_safe_for_each), (stolen_g_list_sort_merge),
6144 (stolen_g_list_is_already_sorted), (stolen_g_list_sort_custom),
6146 (stolen_g_lists_sort_and_check_for_intersection),
6147 (stolen_g_list_partition), (print_key_string),
6148 (free_hash_tables_at_exit), (stolen_g_hash_table_new_free_at_exit),
6149 (flatten_hash_table_element), (stolen_g_hash_table_safe_for_each),
6150 (stolen_g_hash_table_remove_deep_custom),
6151 (stolen_g_hash_table_remove_deep), (destroy_deep_helper),
6152 (stolen_g_hash_table_destroy_deep_custom),
6153 (stolen_g_hash_table_destroy_deep):
6154 * libgnomevfs/stolen-glib-extensions.h:
6156 Snitched some necessary hash table and list glib extensions
6157 from eel and made them work without the rest of eel. :-P
6159 2001-07-25 Maciej Stachowiak <mjs@noisehavoc.org>
6161 Fix bug 8296 (News Sidebar crashes when not connected to network),
6162 a bunch of other News panel instability, and a bug where Nautilus
6163 would totally crash on entering an invalid http URI in the
6166 * modules/http-method.c: (make_request): initialize socket_buffer
6167 to NULL; if this is not done it will be left set to garbage if
6168 `connect_to_uri' fails so that subsequent attempts to close the
6169 destroy the socket buffer will crash.
6171 2001-07-18 Martin Baulig <baulig@suse.de>
6173 * libgnomevfs/gnome-vfs-module-shared.c: Move the #include
6174 "gnome-vfs-module-shared.h" after the #define of _BSD_SOURCE
6175 and _LARGEFILE64_SOURCE.
6177 * libgnomevfs/gnome-vfs-utils.c: #include <sys/param.h> before
6180 2001-07-17 Chema Celorio <chema@celorio.com>
6182 * configure.in: add a message that displays the target
6183 GNOME platform, either 1.x or 2.0
6185 2001-07-16 Darin Adler <darin@bentspoon.com>
6187 Finished deprecating gnome-vfs-types.h.
6189 * libgnomevfs/fnmatch.c:
6190 * libgnomevfs/gnome-vfs-app-context.c:
6191 * libgnomevfs/gnome-vfs-app-context.h:
6192 * libgnomevfs/gnome-vfs-application-registry.c:
6193 * libgnomevfs/gnome-vfs-application-registry.h:
6194 * libgnomevfs/gnome-vfs-async-ops.h:
6195 * libgnomevfs/gnome-vfs-backend-private.h:
6196 * libgnomevfs/gnome-vfs-backend.c:
6197 * libgnomevfs/gnome-vfs-callbacks.h:
6198 * libgnomevfs/gnome-vfs-cancellable-ops.c:
6199 * libgnomevfs/gnome-vfs-cancellable-ops.h:
6200 * libgnomevfs/gnome-vfs-cancellation.c:
6201 * libgnomevfs/gnome-vfs-context.c:
6202 * libgnomevfs/gnome-vfs-directory-filter.c:
6203 * libgnomevfs/gnome-vfs-directory-filter.h:
6204 * libgnomevfs/gnome-vfs-directory.c:
6205 * libgnomevfs/gnome-vfs-directory.h:
6206 * libgnomevfs/gnome-vfs-file-info.c:
6207 * libgnomevfs/gnome-vfs-file-info.h:
6208 * libgnomevfs/gnome-vfs-file-size.h.in:
6209 * libgnomevfs/gnome-vfs-find-directory.c:
6210 * libgnomevfs/gnome-vfs-find-directory.h:
6211 * libgnomevfs/gnome-vfs-handle.c:
6212 * libgnomevfs/gnome-vfs-handle.h:
6213 * libgnomevfs/gnome-vfs-inet-connection.c:
6214 * libgnomevfs/gnome-vfs-inet-connection.h:
6215 * libgnomevfs/gnome-vfs-init.c:
6216 * libgnomevfs/gnome-vfs-init.h:
6217 * libgnomevfs/gnome-vfs-iobuf.c:
6218 * libgnomevfs/gnome-vfs-iobuf.h:
6219 * libgnomevfs/gnome-vfs-method-type.h:
6220 * libgnomevfs/gnome-vfs-method.c: (load_module):
6221 * libgnomevfs/gnome-vfs-method.h:
6222 * libgnomevfs/gnome-vfs-mime-handlers.h:
6223 * libgnomevfs/gnome-vfs-mime-info.c:
6224 * libgnomevfs/gnome-vfs-mime-info.h:
6225 * libgnomevfs/gnome-vfs-mime-magic.c:
6226 * libgnomevfs/gnome-vfs-mime-private.h:
6227 * libgnomevfs/gnome-vfs-mime-sniff-buffer-private.h:
6228 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
6229 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
6230 * libgnomevfs/gnome-vfs-mime.c:
6231 * libgnomevfs/gnome-vfs-mime.h:
6232 * libgnomevfs/gnome-vfs-module-api.h:
6233 * libgnomevfs/gnome-vfs-module-shared.c:
6234 * libgnomevfs/gnome-vfs-module.h:
6235 * libgnomevfs/gnome-vfs-ops.c:
6236 * libgnomevfs/gnome-vfs-ops.h:
6237 * libgnomevfs/gnome-vfs-parse-ls.c:
6238 * libgnomevfs/gnome-vfs-parse-ls.h:
6239 * libgnomevfs/gnome-vfs-private-utils.c:
6240 * libgnomevfs/gnome-vfs-private-utils.h:
6241 * libgnomevfs/gnome-vfs-private.h:
6242 * libgnomevfs/gnome-vfs-process.c:
6243 * libgnomevfs/gnome-vfs-process.h:
6244 * libgnomevfs/gnome-vfs-regexp-filter.c:
6245 * libgnomevfs/gnome-vfs-result.c:
6246 * libgnomevfs/gnome-vfs-seekable.c:
6247 * libgnomevfs/gnome-vfs-seekable.h:
6248 * libgnomevfs/gnome-vfs-shellpattern-filter.c:
6249 * libgnomevfs/gnome-vfs-shellpattern-filter.h:
6250 * libgnomevfs/gnome-vfs-socket-buffer.c:
6251 * libgnomevfs/gnome-vfs-socket.c:
6252 * libgnomevfs/gnome-vfs-socket.h:
6253 * libgnomevfs/gnome-vfs-ssl.c:
6254 * libgnomevfs/gnome-vfs-ssl.h:
6255 * libgnomevfs/gnome-vfs-standard-callbacks.h:
6256 * libgnomevfs/gnome-vfs-transform.h:
6257 * libgnomevfs/gnome-vfs-types.h:
6258 * libgnomevfs/gnome-vfs-uri.c:
6259 * libgnomevfs/gnome-vfs-uri.h:
6260 * libgnomevfs/gnome-vfs-utils.c:
6261 * libgnomevfs/gnome-vfs-utils.h:
6262 * libgnomevfs/gnome-vfs-xfer.c:
6263 * libgnomevfs/gnome-vfs-xfer.h:
6264 * libgnomevfs/gnome-vfs.h:
6265 * modules/Makefile.am:
6266 * modules/bzip2-method.c:
6267 * modules/cdda-method.c:
6268 * modules/ftp-method.c:
6269 * modules/gzip-method.c:
6270 * modules/http-authn.h:
6271 * modules/http-cache.h:
6272 * modules/translate-method.c:
6273 * test/test-module-selftest.c:
6275 More changes to includes so that nothing inside gnome-vfs itself
6276 ever includes gnome-vfs-types.h. Also make sure that all .c files
6277 include the corresponding .h file first, so we know that the
6278 files have enough includes to stand alone. Also switched from
6279 size_t and ssize_t to gsize and gssize in most places.
6281 * libgnomevfs/gnome-vfs-async-ops.c:
6282 * libgnomevfs/gnome-vfs-callbacks.c:
6283 * libgnomevfs/gnome-vfs-module-api.c:
6284 * libgnomevfs/gnome-vfs-module.c:
6285 * libgnomevfs/gnome-vfs-private.c:
6286 * libgnomevfs/gnome-vfs-transform.c:
6287 For testing purposes, made files that just include a particular
6288 header for public headers that have no corresponding .c file. This
6289 tests that the headers have enough includes to stand alone.
6291 * libgnomevfs/gnome-vfs-configuration.c: (configuration_load):
6292 Change code to not use alloca any more, and handle a too-big
6293 configuration file without resulting in buffer overflow.
6295 * libgnomevfs/gnome-vfs-method-type.h:
6296 * libgnomevfs/gnome-vfs-private-types.h:
6297 * libgnomevfs/gnome-vfs-socket-private.h:
6298 * modules/bzip2-method.h:
6299 * modules/gzip-method.h:
6300 Removed some unneeded files.
6302 * libgnomevfs/Makefile.am:
6303 Updated to reflect changes above.
6305 2001-07-16 Darin Adler <darin@bentspoon.com>
6307 * modules/gconf-method.c: Fix const bug in code that was not
6308 being compiled because HAVE_GCONF was off.
6310 2001-07-16 Darin Adler <darin@bentspoon.com>
6312 * modules/Makefile.am: Had to remove HAVE_GCONF from here to
6313 make things build again.
6315 * AUTHORS: Updated my email address.
6317 2001-07-15 Darin Adler <darin@bentspoon.com>
6319 The checks for gconf were always coming out false due to
6320 differences in name (gconf vs. gconf-2, etc.). So I re-enabled
6321 the dependency on gconf. Since gconf seems to be working for
6322 GNOME 2 now I hope this is not a problem.
6324 * configure.in: Always require GCONF and define HAVE_GCONF.
6326 2001-07-14 Anders Carlsson <andersca@codefactory.se>
6328 * libgnomevfs/gnome-vfs-mime-handlers.c (join_str_list): Remove a
6329 duplicate call to g_new.
6331 2001-07-12 Darin Adler <darin@bentspoon.com>
6333 * .cvsignore: Ignore sgml directory too.
6335 2001-07-12 Laszlo Peter <laca@ireland.sun.com>
6337 Fix some portability issues.
6339 * libgnomevfs/gnome-vfs-ssl.c: a struct needs to have a member.
6341 * libgnomevfs/gnome-vfs-context.c: use G_GNUC_FUNCTION instead
6344 2001-07-11 Martin Baulig <baulig@suse.de>
6346 We now require autoconf 2.50b on the GNOME 2 platform.
6347 You can get it from either alpha.gnu.org or
6348 ftp://master.gnome.org/people/martin/vicious-bootstraps.
6350 * acinclude.m4: Make this work with autoconf 2.50b.
6352 * configure.in: Require autoconf 2.50b.
6354 2001-07-06 Havoc Pennington <hp@redhat.com>
6356 * libgnomevfs/gnome-vfs-uri.c (uri_matches_as_parent): handle case
6357 where uri->text is NULL
6359 2001-07-09 Ramiro Estrugo <ramiro@fateware.com>
6361 * libgnomevfs/gnome-vfs-file-info.h:
6362 Include some needed dependencies to fix breakage caused by the
6363 last bunch of checkins.
6365 2001-07-07 Seth Nickell <snickell@stanford.edu>
6367 * libgnomevfs/gnome-vfs-method.h:
6368 * libgnomevfs/gnome-vfs-types.h:
6370 Tweak includes a little more.
6372 * modules/pipe-method.c:
6373 * modules/ssh-method.c:
6375 Make modules include more cleanly.
6377 2001-07-07 Seth Nickell <snickell@stanford.edu>
6379 Deprecate (other than a couple structs I didn't find a home
6380 for) gnome-vfs-types.h in favour of having types distributed
6381 throughout corresponding .h files. The primary motivation for
6382 this is to achieve better docs: rather than clustering all the
6383 type declarations into a big muddy section called "Types",
6384 types are defined in relavent sections. Secondary effects are
6385 a more obvious include path and the ability to include more
6386 files independently.
6388 * doc/tmpl/gnome-vfs-unused.sgml:
6389 * doc/tmpl/types.sgml:
6390 * doc/tmpl/uri.sgml:
6391 * doc/tmpl/utils.sgml:
6392 * doc/tmpl/xfer.sgml:
6394 gtk-doc has updated the base sgml files to deal with the new
6395 locations of declarations.
6397 * libgnomevfs/Makefile.am:
6399 Add gnome-vfs-callbacks.h, gnome-vfs-transform.h, and
6400 gnome-vfs-method-type.h to the include header list.
6402 * libgnomevfs/gnome-vfs-app-context.c:
6403 * libgnomevfs/gnome-vfs-app-context.h:
6404 * libgnomevfs/gnome-vfs-application-registry.h:
6405 * libgnomevfs/gnome-vfs-async-ops.h:
6406 * libgnomevfs/gnome-vfs-backend.c:
6407 * libgnomevfs/gnome-vfs-callbacks.h:
6408 * libgnomevfs/gnome-vfs-cancellable-ops.h:
6409 * libgnomevfs/gnome-vfs-cancellation.h:
6410 * libgnomevfs/gnome-vfs-context.c:
6411 * libgnomevfs/gnome-vfs-context.h:
6412 * libgnomevfs/gnome-vfs-directory-filter.h:
6413 * libgnomevfs/gnome-vfs-file-info.h:
6414 * libgnomevfs/gnome-vfs-find-directory.h:
6415 * libgnomevfs/gnome-vfs-handle.h:
6416 * libgnomevfs/gnome-vfs-inet-connection.h:
6417 * libgnomevfs/gnome-vfs-iobuf.h:
6418 * libgnomevfs/gnome-vfs-method-type.h:
6419 * libgnomevfs/gnome-vfs-method.c:
6420 * libgnomevfs/gnome-vfs-method.h:
6421 * libgnomevfs/gnome-vfs-mime-info.h:
6422 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
6423 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
6424 * libgnomevfs/gnome-vfs-mime.h:
6425 * libgnomevfs/gnome-vfs-module-shared.h:
6426 * libgnomevfs/gnome-vfs-ops.h:
6427 * libgnomevfs/gnome-vfs-private-types.h:
6428 * libgnomevfs/gnome-vfs-private-utils.h:
6429 * libgnomevfs/gnome-vfs-regexp-filter.h:
6430 * libgnomevfs/gnome-vfs-result.h:
6431 * libgnomevfs/gnome-vfs-shellpattern-filter.h:
6432 * libgnomevfs/gnome-vfs-socket.h:
6433 * libgnomevfs/gnome-vfs-transform.h:
6434 * libgnomevfs/gnome-vfs-types.h:
6435 * libgnomevfs/gnome-vfs-uri.c:
6436 * libgnomevfs/gnome-vfs-uri.h:
6437 * libgnomevfs/gnome-vfs-utils.h:
6438 * libgnomevfs/gnome-vfs-xfer.h:
6439 * libgnomevfs/gnome-vfs.h:
6441 Shuffling around includes and struct declerations
6442 to achieve the cleanest arrangement that also minimizes
6443 changes to applications like Nautilus that already heavily
6446 2001-07-05 Darin Adler <darin@bentspoon.com>
6448 * libgnomevfs/gnome-vfs-ssl.c: Added missing <string.h>
6451 2001-07-04 Ramiro Estrugo <ramiro@fateware.com>
6454 Dont use 'glib-config-2.0' when building in the GNOME2 platform.
6455 There is no such config script anymore because these are history
6456 in the GNOME2 platform. Use pkgconfig technology instead.
6457 Continue to use 'glib-config' for the GNOME1 platform.
6459 2001-07-02 Seth Nickell <snickell@stanford.edu>
6463 Fix ORBit configuration problem on GNOME1 platform.
6466 Long live stupid gettext.
6468 2001-06-26 Darin Adler <darin@bentspoon.com>
6470 * .cvsignore: Ignore ABOUT-NLS, but not obsolete *Conf.sh files.
6471 * Makefile.am: Eliminate vfspthreadConf.sh.
6472 * vfscorbaConf.sh.in: Remove.
6473 * vfspthreadConf.sh.in: Remove.
6474 * devel-docs/.cvsignore: Remove since this is now an empty directory.
6475 * devel-docs/gnome-vfs/.cvsignore: Remove since this is now an empty
6478 * libgnomevfs/gnome-vfs-ops.h: Add include of gnome-vfs-types.h so
6479 you can include this header on its own.
6481 2001-06-25 Sri Ramkrishna <sri@aracnet.com>
6483 Rolled changes from HEAD.
6485 * libgnomevfs/gnome-vfs-application-registry.c:
6486 Added gtkdocs for gnome_vfs_application_registry_*
6488 2001-06-20 Peter Williams <peterw@ximian.com>
6490 * configure.in (autodetected_gnome_2): Fix a syntax error in the test
6493 2001-06-19 Peter Williams <peterw@ximian.com>
6495 * gnome-vfs-2.0.pc.in (prefix): Fix totally
6496 broken prefix=/gnome/head/INSTALL. Whoops.
6498 2001-06-15 Havoc Pennington <hp@redhat.com>
6500 * modules/gconf-method.c (do_get_file_info): fix one mem leak and
6501 one use of uninitialized memory.
6502 (do_open_directory): compensate for GConf's
6503 list-absolute-paths-in-directories braindamage
6505 2001-06-15 Martin Baulig <baulig@suse.de>
6507 If we ever need to revert this (for instance, when GConf is fixed for GNOME 2),
6508 the patch is at http://cip.uni-trier.de/baulig/misc/gnome-vfs.optional-gconf.patch.
6510 * configure.in: Made the GConf dependency optional. At least temporarily,
6511 we need to make GConf optional in the GNOME 2.0 core libraries as it blocks
6512 testing on a GNOME 1.x desktop.
6513 (HAVE_GCONF): New automake conditional.
6515 * libgnomevfs/gnome-vfs-mime-handlers.c (get_user_level): Always return "novice"
6516 if we don't HAVE_GCONF.
6518 * modules/Makefile.am: Only compile the gconf and http modules if we HAVE_GCONF.
6520 * modules/ftp-method.c (vfs_module_init): Don't initialize GConf if we don't have it.
6522 2001-06-11 Carlos Perelló Marín <carlos@gnome-db.org>
6524 * modules/cdda-method.c: Fixed to compile with Gtk 2.0
6526 2001-06-10 Ian McKellar <yakk@yakk.net>
6528 * libgnomevfs/gnome-vfs-standard-callbacks.h:
6529 Initial work to add a status-message callback.
6531 * libgnomevfs/gnome-vfs-uri.c: (is_uri_relative),
6532 (remove_internal_relative_components),
6533 (make_full_uri_from_relative), (gnome_vfs_uri_relative_new):
6534 * libgnomevfs/gnome-vfs-uri.h:
6535 Added gnome_vfs_uri_relative_new which does relative URI resolution.
6537 * modules/Makefile.am:
6538 * modules/default-modules.conf:
6539 * modules/ssh-method.c: (ssh_connect), (ssh_destroy), (ssh_read),
6540 (ssh_write), (ssh_escape), (ssh_send), (do_open), (do_create),
6541 (do_close), (do_read), (do_write), (do_open_directory),
6542 (do_close_directory), (do_read_directory), (do_get_file_info),
6543 (do_get_file_info_from_handle), (do_is_local), (vfs_module_init),
6544 (vfs_module_shutdown):
6545 * modules/ssh-method.h:
6546 Added ssl-method. Its currently quite primitive and only works if you
6547 don't need password authentication (ie: you are running ssh-agent and
6548 have your key in the remote machine's authorized keys)
6550 * modules/ssl-modules.conf:
6551 I forgot to upload this before :( Thanks Robin.
6553 * test/test-callback.c: (main):
6554 Allow the test URI to be specified.
6556 2001-06-07 Robin * Slomkowski <pretender@rslomkow.org>
6558 * modules/ssl-modules.conf: created this so the build would
6561 2001-06-06 Glynn Foster <glynn.foster@sun.com>
6563 * libgnomevfs/gnome-vfs-directory.c:
6564 gnome_vfs_directory_list_load (..) Add a petty code comment
6565 so that people looking at the API's don't have to root around
6566 the code trying to figure what is returned in the GList
6568 2001-06-06 Seth Nickell <snickell@stanford.edu>
6571 * doc/tmpl/gnome-vfs-unused.sgml:
6573 <sheepish look> ... thanks Havoc.
6575 2001-06-03 Maciej Stachowiak <mjs@eazel.com>
6577 * libgnomevfs/gnome-vfs-socket-buffer.h,
6578 libgnomevfs/gnome-vfs-socket-buffer.c (buffer_init,
6579 gnome_vfs_socket_buffer_new, gnome_vfs_socket_buffer_destroy,
6580 refill_input_buffer, gnome_vfs_socket_buffer_read,
6581 gnome_vfs_socket_buffer_peekc, flush,
6582 gnome_vfs_socket_buffer_write, gnome_vfs_socket_buffer_flush):
6583 Completed reverse-engineering.
6585 * libgnomevfs/gnome-vfs-socket.h,
6586 libgnomevfs/gnome-vfs-socket.c (gnome_vfs_socket_write,
6587 (gnome_vfs_socket_read: Related cleanups.
6589 * modules/http-method.c (xmit_request, http_handle_close): Style
6592 2001-06-03 Maciej Stachowiak <mjs@eazel.com>
6594 * libgnomevfs/gnome-vfs-socket.h, libgnomevfs/gnome-vfs-socket.c
6595 (gnome_vfs_socket_new, gnome_vfs_socket_write,
6596 gnome_vfs_socket_close, gnome_vfs_socket_read): Continued Seth's
6597 reverse-engineering of the missing pieces of Ian's SSL code.
6599 * libgnomevfs/gnome-vfs-inet-connection.c
6600 (gnome_vfs_inet_connection_destroy,
6601 gnome_vfs_inet_connection_close): Minor tweaks.
6602 * libgnomevfs/gnome-vfs-ssl.c (gnome_vfs_ssl_destroy): Likewise.
6604 * ABOUT-NLS: Removed (this is added by autogen).
6606 2001-06-03 Seth Nickell <snickell@stanford.edu>
6609 * doc/gnome-vfs-docs.sgml:
6610 * doc/gnome-vfs-sections.txt:
6611 * doc/tmpl/uri.sgml:
6612 * doc/writing-modules.sgml:
6614 Start writing more "tutorial like" documentation for basic
6617 * libgnomevfs/gnome-vfs-socket-buffer.c:
6618 (gnome_vfs_socket_buffer_new), (gnome_vfs_socket_buffer_read),
6619 (gnome_vfs_socket_buffer_peekc), (gnome_vfs_socket_buffer_write),
6620 (gnome_vfs_socket_buffer_flush), (gnome_vfs_socket_buffer_destroy):
6621 * libgnomevfs/gnome-vfs-socket-buffer.h:
6622 * libgnomevfs/gnome-vfs-socket.c: (gnome_vfs_socket_write),
6623 (gnome_vfs_socket_close), (gnome_vfs_socket_read):
6624 * libgnomevfs/gnome-vfs-socket.h:
6626 Write skeletons for functions to get http-method to compile.
6627 ***WARNING*** - http is probably broken at this point!!!
6629 2001-06-02 Seth Nickell <snickell@stanford.edu>
6631 * doc/gnome-vfs-docs.sgml:
6632 * doc/gnome-vfs-sections.txt:
6633 * doc/tmpl/directory.sgml:
6634 * doc/tmpl/find-directory.sgml:
6635 * doc/tmpl/gnome-vfs-unused.sgml:
6636 * doc/tmpl/ssl.sgml:
6637 * doc/tmpl/types.sgml:
6638 * doc/tmpl/uri.sgml:
6640 Add some more descrptions, shuffle functions around
6641 between files to reduce the number of sections.
6643 * libgnomevfs/gnome-vfs-constants.h:
6645 Move the four constants contained in this file to
6646 gnome-vfs-uri.h (which is a better home anyway) and
6649 * libgnomevfs/gnome-vfs-uri.h:
6651 Move some constants here from gnome-vfs-constants.h
6653 * libgnomevfs/gnome-vfs.h:
6654 * libgnomevfs/gnome-vfs-private-utils.c:
6655 * libgnomevfs/Makefile.am:
6657 Change includes and build to remove gnome-vfs-constants.h.
6659 2001-06-02 Seth Nickell <snickell@stanford.edu>
6661 * libgnomevfs/gnome-vfs-socket-buffer.c:
6662 * libgnomevfs/gnome-vfs-socket-buffer.h:
6663 * libgnomevfs/gnome-vfs-socket-private.h:
6664 * libgnomevfs/gnome-vfs-socket.c: (gnome_vfs_socket_new):
6665 * libgnomevfs/gnome-vfs-socket.h:
6667 I think Ian forgot these in his checkin. WARNING!!! These
6668 are not the actual files but skeleton with enough declarations
6669 to get GnomeVFS compiling again. Must get the real things
6672 2001-06-01 Seth Nickell <snickell@stanford.edu>
6676 Removed cruft directories.
6678 2001-05-31 Ian McKellar <yakk@yakk.net>
6680 * libgnomevfs/Makefile.am:
6681 * libgnomevfs/gnome-vfs-inet-connection.c:
6682 (gnome_vfs_inet_connection_create),
6683 (gnome_vfs_inet_connection_get_iobuf),
6684 (gnome_vfs_inet_connection_get_fd),
6685 (gnome_vfs_inet_connection_read),
6686 (gnome_vfs_inet_connection_write),
6687 (gnome_vfs_inet_connection_to_socket):
6688 * libgnomevfs/gnome-vfs-inet-connection.h:
6689 * libgnomevfs/gnome-vfs-iobuf.c: (gnome_vfs_iobuf_flush):
6690 * libgnomevfs/gnome-vfs-result.c:
6691 * libgnomevfs/gnome-vfs-ssl.c: (gnome_vfs_ssl_create),
6692 (gnome_vfs_ssl_create_from_fd), (gnome_vfs_ssl_write),
6693 (gnome_vfs_ssl_destroy), (gnome_vfs_ssl_to_socket):
6694 * libgnomevfs/gnome-vfs-ssl.h:
6695 * libgnomevfs/gnome-vfs-types.h:
6696 * modules/Makefile.am:
6697 * modules/file-method.c: (do_read):
6698 * modules/http-method.c: (http_file_handle_new), (get_header),
6699 (create_handle), (https_proxy), (connect_to_uri), (xmit_request),
6700 (make_request), (http_handle_close), (do_open), (do_read),
6701 (propfind_href_to_vfs_uri), (do_open_directory):
6702 * test/test-ssl.c: (show_result), (main):
6703 Added SSL and HTTPS support.
6705 2001-05-31 Robin * Slomkowski <rslomkow@rslomkow.org>
6707 * gnome-vfs.spec.in:removed html/*.txt line as it doesn't seem
6710 2001-05-30 Seth Nickell <snickell@stanford.edu>
6712 * devel-docs/gnome-vfs/tmpl/libgnome-vfs.sgml:
6714 Get a stray file that missed the delet.
6716 2001-05-30 Seth Nickell <snickell@stanford.edu>
6718 * devel-docs/Makefile.am:
6719 * devel-docs/gnome-vfs/Makefile.am:
6720 * devel-docs/gnome-vfs/gnome-vfs-docs.sgml:
6721 * devel-docs/gnome-vfs/gnome-vfs-sections.txt:
6722 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime-info.sgml:
6723 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime.sgml:
6725 Nix the duplicate api docs since we've been actively working
6728 2001-05-30 Seth Nickell <snickell@stanford.edu>
6730 * doc/gnome-vfs-docs.sgml:
6732 Start organizing higher level documentation structure
6733 and preparing sections on the most common parts application
6734 developers will have to use. Hopefully at this point
6735 somebody could use the docs as an API reference to the
6736 POSIX like synchronous calls.
6738 * doc/tmpl/application-registry.sgml:
6739 * doc/tmpl/async-ops.sgml:
6740 * doc/tmpl/directory.sgml:
6741 * doc/tmpl/find-directory.sgml:
6742 * doc/tmpl/mime-handlers.sgml:
6743 * doc/tmpl/mime-magic.sgml:
6744 * doc/tmpl/mime-sniff-buffer.sgml:
6745 * doc/tmpl/mime.sgml:
6746 * doc/tmpl/ops.sgml:
6747 * doc/tmpl/result.sgml:
6748 * doc/tmpl/types.sgml:
6749 * doc/tmpl/uri.sgml:
6750 * doc/tmpl/utils.sgml:
6751 * doc/tmpl/xfer.sgml:
6753 Write descriptions, titles, and short descriptions as
6754 well as perform some re-organization of the documentation.
6756 2001-05-28 Seth Nickell <snickell@stanford.edu>
6758 * doc/gnome-vfs-docs.sgml:
6760 Fix entities so all subcategories are generated, and in alphabetical order.
6762 * doc/tmpl/mime-handlers.sgml:
6764 Add a better title (yah, whatever).
6766 Mon May 28 15:49:55 2001 Jonathan Blandford <jrb@redhat.com>
6768 * doc/gnome-vfs-docs.sgml: fix case problem.
6770 2001-05-27 Seth Nickell <snickell@stanford.edu>
6772 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime-info.sgml:
6773 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime.sgml:
6774 * doc/tmpl/gnome-vfs-unused.sgml:
6775 * doc/tmpl/list-sort.sgml:
6776 * doc/tmpl/mime-handlers.sgml:
6778 gtk-doc apparently wants to change these files from its
6779 auto-scans (found some new functions). Owen thinks I should
6780 just check in the changes. I don't know gtk-doc procedure, so
6781 I'm trusting his judgement.
6783 * libgnomevfs/gnome-vfs-mime-handlers.c:
6785 Documented all public functions.
6787 * libgnomevfs/gnome-vfs-mime-handlers.h:
6789 Changed some arguments to match their name/usage within the
6790 corresponding declarations within gnome-vfs-mime-handlers.c.
6792 2001-05-27 Maciej Stachowiak <mjs@noisehavoc.org>
6794 reviewed by: Seth Nickell <snickell@stanford.edu>
6796 * modules/http-method.c (parse_status): Handle technically invalid
6797 http replies from ShoutCast and IceCast.
6799 2001-05-25 Seth Nickell <snickell@stanford.edu>
6801 * HACKING: Fix typos, bring it up-to-date.
6803 * TODO: Started a preliminary GnomeVFS 2.0 TODO list.
6804 Removed some crufty TODO items.
6806 2001-05-23 Robin * Slomkowski <rslomkow@rslomkow.org>
6808 * data/mime/gnome-vfs.keys.in: changed non-ascii mu to "mu"
6838 changed non-ascii mu to "mu" in the msgid
6840 2001-05-23 Chema Celorio <chema@celorio.com>
6842 * autogen.sh (PKG_NAME): typo
6844 2001-05-17 Robin * Slomkowski <rslomkow@rslomkow.org>
6846 * libgnomevfs/gnome-vfs-private.h: removed #include for
6847 gnome-vfs-list-sort.h
6849 2001-05-17 Robin * Slomkowski <rslomkow@rslomkow.org>
6852 (dist-hook): checked for the existence of dirs
6853 before creating them.
6854 (dist-hook-local): commented out this whole section
6855 as it broke make dist as there are no TEXT dirs.
6857 2001-05-17 Jonathan Blandford <jrb@redhat.com>
6862 Initial support for gtk-doc documentation.
6864 2001-05-17 Darin Adler <darin@eazel.com>
6866 * libgnomevfs/Makefile.am:
6867 * libgnomevfs/gnome-vfs-list-sort.c:
6868 * libgnomevfs/gnome-vfs-list-sort.h:
6869 Removed the unused gnome_vfs_list_sort function. The good news
6870 is that glib 2 has this same function (g_list_sort_with_data).
6872 * test/.cvsignore: Ignore the new test-ssl test program.
6874 2001-05-14 Ian McKellar <yakk@yakk.net>
6876 * libgnomevfs/Makefile.am:
6879 2001-05-14 Ian McKellar <yakk@yakk.net>
6884 * libgnomevfs/Makefile.am:
6885 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init):
6886 * libgnomevfs/gnome-vfs-ssl-private.h:
6887 * libgnomevfs/gnome-vfs-ssl.c:
6888 (gnome_vfs_ssl_init), (gnome_vfs_ssl_enabled), (gnome_vfs_ssl_new),
6889 (gnome_vfs_ssl_new_from_uri), (gnome_vfs_ssl_read),
6890 (gnome_vfs_ssl_write), (gnome_vfs_ssl_destroy):
6891 * libgnomevfs/gnome-vfs-ssl.h:
6892 Added an OpenSSL based SSL abstraction to gnome-vfs. This is so that
6893 modules (particularly the http module) will be able to implement SSL
6897 * test/test-ssl.c: (show_result), (main):
6898 Added a very simple test program for the SSL routines.
6900 2001-05-16 Michael K. Fleming <mfleming@eazel.com>
6902 gnome_vfs_app_context_get_current was not addref'ing
6903 the context it returned if it had to create a default context.
6904 This caused crashes in async operations in apps that do not use
6905 the app context mechanism.
6907 * libgnomevfs/gnome-vfs-app-context.c:
6908 (gnome_vfs_app_context_peek_current_internal),
6909 (gnome_vfs_app_context_peek_current),
6910 (gnome_vfs_app_context_get_current):
6912 2001-05-16 Darin Adler <darin@eazel.com>
6914 * libgnomevfs/gnome-vfs-app-context.c:
6915 (gnome_vfs_app_context_unref): Fix double-free.
6917 2001-05-15 Maciej Stachowiak <mjs@eazel.com>
6919 * libgnomevfs-pthread/gnome-vfs-async-ops.c,
6920 libgnomevfs/gnome-vfs-app-context.c,
6921 libgnomevfs/gnome-vfs-app-context.h, libgnomevfs/gnome-vfs-init.c,
6922 libgnomevfs/gnome-vfs-module-api.h, modules/http-authn.h,
6923 test/test-ssl.c: Add trailing newlines to files that didn't have
6924 them, and include headers needed to compile on my system.
6926 2001-05-14 Michael K. Fleming <mikef@praxis.etla.net>
6928 reviewed by: Ian McKellar <yakk@yakk.net>
6930 GnomeVFSAppContext and GnomeVFSCallback implementation.
6932 Allows application to register for module-defined synchronous callbacks.
6934 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
6935 (gnome_vfs_async_job_add_callback):
6936 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
6937 * libgnomevfs-pthread/gnome-vfs-job.c:
6938 (dispatch_callback_callback), (dispatch_sync_job_callback),
6939 (gnome_vfs_job_execute), (gnome_vfs_job_module_cancel),
6940 (set_current_job), (clear_current_job),
6941 (pthread_gnome_vfs_get_current_context),
6942 (pthread_gnome_vfs_dispatch_callback):
6943 * libgnomevfs-pthread/gnome-vfs-job.h:
6944 * libgnomevfs/Makefile.am:
6945 * libgnomevfs/gnome-vfs-app-context.c:
6946 * libgnomevfs/gnome-vfs-app-context.h:
6947 * libgnomevfs/gnome-vfs-async-ops.h:
6948 * libgnomevfs/gnome-vfs-backend-private.h:
6949 * libgnomevfs/gnome-vfs-backend.c:
6950 (gnome_vfs_backend_get_current_context),
6951 (gnome_vfs_backend_dispatch_callback):
6952 * libgnomevfs/gnome-vfs-cancellation.c:
6953 (gnome_vfs_cancellation_cancel):
6954 * libgnomevfs/gnome-vfs-context.c: (gnome_vfs_context_new),
6955 (gnome_vfs_context_ref), (gnome_vfs_context_unref),
6956 (gnome_vfs_context_get_cancellation),
6957 (gnome_vfs_context_peek_current),
6958 (gnome_vfs_context_check_cancellation_current),
6959 (gnome_vfs_context_peek_app_context),
6960 (gnome_vfs_context_peek_app_context_current):
6961 * libgnomevfs/gnome-vfs-context.h:
6962 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init),
6963 (gnome_vfs_is_primary_thread):
6964 * libgnomevfs/gnome-vfs-messages.c:
6965 * libgnomevfs/gnome-vfs-messages.h:
6966 * libgnomevfs/gnome-vfs-module-api.h:
6967 * libgnomevfs/gnome-vfs-module-shared.h:
6968 * libgnomevfs/gnome-vfs-private.h:
6969 * libgnomevfs/gnome-vfs-standard-callbacks.h:
6970 * libgnomevfs/gnome-vfs-types.h:
6971 * libgnomevfs/gnome-vfs-utils.h:
6972 * modules/Makefile.am:
6973 * modules/http-authn.c:
6974 * modules/http-authn.h:
6975 * modules/http-cache.c:
6976 * modules/http-cache.h:
6977 * modules/http-method.c:
6978 * modules/http-method.h:
6980 Split http module into 3 files; implemented basic and proxy
6981 authentication callbacks and a simple authentication jar.
6985 * test/test-callback.c: (authn_callback),
6986 (app_context_destroy_notify), (open_callback), (close_callback),
6987 (stop_after_log), (make_asserts_break), (main):
6988 * test/test-module-selftest.c: (stop_after_log),
6989 (make_asserts_break), (main):
6991 2001-05-13 Maciej Stachowiak <mjs@eazel.com>
6993 * modules/http-method.c: Cleaned up formatting, minor style
6994 issues; fixed a bug in `do_check_same_fs'.
6996 2001-05-12 Maciej Stachowiak <mjs@eazel.com>
6998 * devel-docs/gnome-vfs/Makefile.am: Fix build for people who don't
6999 have gtk-doc installed.
7001 2001-05-09 Darin Adler <darin@eazel.com>
7003 * libgnomevfs-pthread/gnome-vfs-job.h: Added dummy member to
7004 avoid having an empty struct.
7006 2001-05-08 Ian McKellar <ian@eazel.com>
7008 * devel-docs/gnome-vfs/Makefile.am:
7009 * devel-docs/gnome-vfs/gnome-vfs-decl.txt:
7010 * devel-docs/gnome-vfs/gnome-vfs-docs.sgml:
7011 * devel-docs/gnome-vfs/gnome-vfs-sections.txt:
7012 Told gtkdoc to pick up (almost) all the header files.
7014 * libgnomevfs/gnome-vfs-process.h:
7015 Made some changes to make gtkdoc happy.
7017 ==== gnome-vfs 1.0.1 ====
7019 2001-05-07 Darin Adler <darin@eazel.com>
7021 reviewed by: Ramiro Estrugo <ramiro@eazel.com>
7023 * modules/Makefile.am:
7025 Removed some dead code and fixed build so that CDDA module source
7026 files are included in the tarball even if it's made on a system
7027 without CDDA installed.
7029 2001-05-07 Darin Adler <darin@eazel.com>
7031 * libgnomevfs/gnome-vfs-mime-info.c: (write_back_mime_user_file):
7032 Remove message that threatens users with death.
7034 2001-05-03 John Sullivan <sullivan@eazel.com>
7036 reviewed by: Darin Adler <darin@eazel.com>
7038 Fixed bug 8240 (Help document viewing is broken)
7040 * modules/pipe-method.c: (do_open): Added more characters
7041 to the "safe characters" set.
7043 2001-05-02 Ian McKellar <ian@eazel.com>
7045 reviewed by: Darin Adler <darin@eazel.com>
7047 * modules/pipe-method.c: (do_open):
7048 Only pass known safe characters to popen.
7050 2001-05-02 Ramiro Estrugo <ramiro@eazel.com>
7053 Cant use pkgconfig for detecting libxml unless we are sure that
7054 the libxml we are using exports libxml.pc. Currently
7055 gnome-vfs/nautilus hackers use libxml 1.8.10 which doesnt export
7056 libxml.pc. Do the libxml check the "old fashioned" way for now.
7058 2001-05-01 Darin Adler <darin@eazel.com>
7060 Fixes to make documentation work again after the "pipe" method
7063 * libgnomevfs/gnome-vfs-private-utils.h:
7064 * libgnomevfs/gnome-vfs-uri.c: (set_uri_element): Add more methods
7065 to the list that are allowed to have ? characters in them. This is
7066 required to make help work right now that we don't translate so
7067 early. I'm starting to think it should be "file" that's special
7069 (gnome_vfs_uri_new): Allow transformation.
7070 (gnome_vfs_uri_new_private): Add a flag to control whether
7071 transformation can happen.
7073 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_make_uri_canonical):
7074 Don't do any transformation.
7076 * modules/translate-method.c: (tr_handle_exec),
7077 (tr_uri_translate): Allow transformation.
7079 2001-05-01 Darin Adler <darin@eazel.com>
7081 reviewed by: Mike Fleming <mfleming@eazel.com>
7083 Plugged the security hole created by the "pipe" method. It's now
7084 only allowed indirectly through the translate method.
7086 * libgnomevfs/gnome-vfs-private-utils.h:
7087 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new): Don't allow
7089 (gnome_vfs_uri_new_private): Take a parameter which determines if
7090 unsafe URIs are allowed, and don't allow any "pipe" URIs unless
7091 unsafe ones are explicitly allowed.
7092 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_make_uri_canonical):
7094 * modules/translate-method.c: (tr_handle_exec),
7095 (tr_uri_translate): Call gnome_vfs_uri_new_private so that the
7096 result of a translate is allowed to be an unsafe URI.
7098 * libgnomevfs/gnome-vfs-mime-info.c: (does_string_contain_caps):
7099 Renamed from does_string_contains_caps.
7101 * test/test-uri.c: (main): Updated tests affected by the fact that
7102 gnome_vfs_uri_new won't accept "pipe" URIs any more.
7104 * doc/mime-data-specification.txt: Remove trailing keys.
7106 2001-05-01 Seth Nickell <snickell@stanford.edu>
7108 * test/mime-test-files/somepage.php:
7109 * test/mime-test-files/
7111 Add a directory for placing files for doing checks on how
7112 GnomeVFS recognizes their MIME type.
7114 Fri Apr 27 13:32:32 2001 Jonathan Blandford <jrb@webwynk.net>
7116 * libgnomevfs/gnome-vfs-configuration.c
7117 (gnome_vfs_configuration_init): load from GNOME_VFS_MODULE_CFGDIR,
7118 and ~/.gnome/vfs/modules.
7119 (configuration_load): Change behaviour to not create the
7120 configuration anymore, but just load it.
7121 (maybe_reload): potentially reload the config files if they
7124 2001-04-25 Darin Adler <darin@eazel.com>
7126 * check-mime.pl: Check that the applications file entries are in
7129 2001-04-25 Darin Adler <darin@eazel.com>
7131 reviewed by: Pavel Cisler <pavel@eazel.com>
7133 * modules/file-method.c: (get_stat_info): Fix bug where it would
7134 return GNOME_VFS_NOT_FOUND for broken links, even though it went
7135 to the trouble of handling them properly.
7137 2001-04-17 Darin Adler <darin@eazel.com>
7139 * libgnomevfs/gnome-vfs-utils.c:
7140 (gnome_vfs_get_local_path_from_uri): Loosen rule so that URLs that
7141 say "file:/etc/passwd" will be accepted.
7142 * test/test-uri.c: (main): Update test to match.
7144 2001-04-14 Dan Winship <danw@ximian.com>
7146 * libgnomevfs/gnome-vfs-mime-info.c (get_value_real): Plug a
7149 * libgnomevfs/gnome-vfs-mime-handlers.c
7150 (gnome_vfs_mime_get_short_list_applications): Ditto.
7152 2001-04-14 Maciej Stachowiak <mjs@eazel.com>
7154 * modules/translate-method.c (tr_uri_translate): Be less tricky so
7155 that translate patterns that include a hostname, port, user, etc
7158 2001-04-13 Darin Adler <darin@eazel.com>
7160 * gnome-vfs.spec.in: Remove the slave program from the spec
7161 file, now that we don't use it any more.
7163 2001-04-13 Darin Adler <darin@eazel.com>
7165 * configure.in: Missed Makefile list.
7167 2001-04-13 Darin Adler <darin@eazel.com>
7171 Eliminate --disable-libefs, --with-default-backend, and
7172 GNOME_VFS_DEFAULT_BACKEND.
7174 * libgnomevfs/gnome-vfs-xfer.c: (init_progress): Initialize the
7175 file index to 0, since we now increment before each item.
7176 (at_end): Helper function.
7177 (call_progress_often_internal): Shared code for the two "often"
7178 versions of the call_progress function. The only change is to
7179 always send out progress once at the end.
7180 (call_progress_often), (call_progress_with_uris_often): Use new
7181 function to share most of the code.
7182 (remove_file): Bump the file index before dealing with the file.
7183 (remove_directory): Bump the file index before dealing with the
7185 (copy_file): Don't bump the file index, because that's now the
7186 caller's responsibility.
7187 (copy_directory): Don't bump the file index for the directory
7188 itself, because that's now the caller's responsibility, but do
7189 bump the file index before calling copy_file, copy_directory,
7191 (copy_items): Bump the file index before calling copy_file,
7192 copy_directory, or copy_symlink.
7193 (gnome_vfs_xfer_uri_internal): Reset the file index to 0, since we
7194 now increment before each item.
7196 * libgnomevfs/gnome-vfs-mime.h:
7197 * libgnomevfs/gnome-vfs-mime.c: Removed gnome_uri functions that
7198 were in here without gnome_vfs-prefixed names. No one was using
7202 * libgnomevfs-corba/.cvsignore:
7203 * libgnomevfs-corba/Makefile.am:
7204 * libgnomevfs-corba/gnome-vfs-async-ops.c:
7205 * libgnomevfs-corba/gnome-vfs-corba.c:
7206 * libgnomevfs-corba/gnome-vfs-corba.h:
7207 * libgnomevfs-corba/gnome-vfs-slave-launch.c:
7208 * libgnomevfs-corba/gnome-vfs-slave-launch.h:
7209 * libgnomevfs-corba/gnome-vfs-slave-notify.c:
7210 * libgnomevfs-corba/gnome-vfs-slave-notify.h:
7211 * libgnomevfs-corba/gnome-vfs-slave-process.c:
7212 * libgnomevfs-corba/gnome-vfs-slave-process.h:
7213 * libgnomevfs-corba/gnome-vfs-slave.c:
7214 Remove CORBA back end.
7216 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_backend_loadinit):
7217 Hard-code "pthread" instead of using GNOME_VFS_DEFAULT_BACKEND.
7218 Soon we might get rid of the separate backend completely.
7222 Remove special cases for tests that used to run on both back ends,
7223 and make them build in a normal simple way instead.
7225 * mime-type-capplet/.cvsignore:
7226 * mime-type-capplet/Makefile.am:
7227 * mime-type-capplet/file-types-capplet.desktop.in:
7228 * mime-type-capplet/libuuid/.cvsignore:
7229 * mime-type-capplet/libuuid/Makefile.am:
7230 * mime-type-capplet/libuuid/clear.c:
7231 * mime-type-capplet/libuuid/compare.c:
7232 * mime-type-capplet/libuuid/copy.c:
7233 * mime-type-capplet/libuuid/gen_uuid.c:
7234 * mime-type-capplet/libuuid/gen_uuid_nt.c:
7235 * mime-type-capplet/libuuid/isnull.c:
7236 * mime-type-capplet/libuuid/pack.c:
7237 * mime-type-capplet/libuuid/parse.c:
7238 * mime-type-capplet/libuuid/tst_uuid.c:
7239 * mime-type-capplet/libuuid/unpack.c:
7240 * mime-type-capplet/libuuid/unparse.c:
7241 * mime-type-capplet/libuuid/uuid.h:
7242 * mime-type-capplet/libuuid/uuidP.h:
7243 * mime-type-capplet/libuuid/uuid_time.c:
7244 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
7245 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h:
7246 * mime-type-capplet/nautilus-mime-type-capplet.c:
7247 * mime-type-capplet/nautilus-mime-type-capplet.h:
7248 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
7249 * mime-type-capplet/nautilus-mime-type-icon-entry.h:
7250 Remove this code. It's already been moved to the control center
7251 and we don't need to keep two copies of it.
7253 * test/gnome-file-selection/.cvsignore:
7254 * test/gnome-file-selection/Makefile.am:
7255 * test/gnome-file-selection/dir-close.xpm:
7256 * test/gnome-file-selection/dir-open.xpm:
7257 * test/gnome-file-selection/gicon.c:
7258 * test/gnome-file-selection/gicon.h:
7259 * test/gnome-file-selection/gnome-file-selection-history.c:
7260 * test/gnome-file-selection/gnome-file-selection-history.h:
7261 * test/gnome-file-selection/gnome-file-selection.c:
7262 * test/gnome-file-selection/gnome-file-selection.h:
7263 * test/gnome-file-selection/listing-iconic.xpm:
7264 * test/gnome-file-selection/main.c:
7265 Remove the file selector (which was not compiled). This is now
7266 being developed elsewhere.
7269 Remove file names from CORBA back end and file selector.
7271 * libgnomevfs/gnome-vfs-private-types.h: Fix includes.
7272 * libgnomevfs/gnome-vfs-private-utils.c: Fix includes.
7273 * libgnomevfs/gnome-vfs-private-utils.h: Fix includes.
7274 * libgnomevfs/gnome-vfs-process.c: Fix includes.
7276 * NEWS: Remove long-obsolete news.
7279 * TODO: Tweak words a bit.
7281 * libgnomevfs/Makefile.am: Tweaks.
7283 2001-04-12 Darin Adler <darin@eazel.com>
7285 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_uri_internal):
7286 Fix bug where it file indices start from 1 during the preflight
7287 but from 0 during the actual copy.
7289 2001-03-30 Michael K. Fleming <mfleming@eazel.com>
7291 reviewed by: Pavel Cisler <pavel@eazel.com>
7293 Portion of bug 4832: Add support for HTTP proxies that require
7296 Note that if an HTTP proxy is set, but the proxy credentials are
7297 configured incorrectly, the application will get a
7298 GNOME_VFS_ERROR_ACCESS_DENIED, which isn't very descriptive
7300 Also expunged some of my bad coding habits
7301 (constant-on-left-side-of-compare)
7303 * modules/http-method.c: (cache_shutdown), (cache_entry_new),
7304 (cache_check_directory), (cache_add_uri_and_children),
7305 (sig_gconf_value_changed), (http_proxy_for_host_port),
7306 (make_request), (vfs_module_init):
7308 2001-03-29 Darin Adler <darin@eazel.com>
7310 reviewed by: Pavel Cisler <pavel@eazel.com>
7312 * libgnomevfs/gnome-vfs-cancellable-ops.c:
7313 (gnome_vfs_move_uri_cancellable): Make a move where both the from
7314 and to are identical succeed without involving the module.
7315 * libgnomevfs/gnome-vfs-xfer.c: (handle_name_conflicts): Don't
7316 treat a file that's being moved on top of itself as a conflict.
7318 2001-03-24 Martin Baulig <baulig@suse.de>
7320 * gnomevfs-2.0.pc.in: Renamed to gnome-vfs-2.0.pc.in.
7322 2001-03-24 Martin Baulig <baulig@suse.de>
7324 * modules/file-method.c: Only #include <libgnome/gnome-defs.h>
7325 and <libgnome/gnome-i18n.h> for GNOME 1.x. Define `_' and `N_'
7326 to be a noop for GNOME 2.0 [FIXME: need a better solution for this].
7328 * libgnomevfs-corba/*.[ch]: #include <orb/orbit.h> for GNOME 1.x
7329 and <orbit/orbit.h> for GNOME 2.0.
7331 2001-03-24 Martin Baulig <baulig@suse.de>
7333 * autogen.sh: Check whether gnome-autogen.sh is in the PATH
7334 and print an error message otherwise.
7336 * configure.in: Unconditionally require OAF on both platforms;
7337 for GNOME 2.0: check for GTK+, but don't check for ORBit.
7339 2001-03-23 Martin Baulig <baulig@suse.de>
7341 Added support for the GNOME 2.0 platform.
7343 We try to autodetect the GNOME Platform in configure.in, but
7344 you may need to use the --enable-platform-gnome-2 or
7345 --disable-platform-gnome-2 argument if this fails.
7347 * autogen.sh: Use gnome-common.
7349 * configure.in: Use pkg-config to check for things; removed
7350 the USING_OAF conditional.
7352 * Makefile.am: Removed the USING_OAF conditional.
7354 * libgnomevfs/gnome-vfs-i18n.c: New file.
7355 (gnome_vfs_i18n_get_language_list): Moved the implementation of
7356 this function from gnome-libs/libgnome/gnome-i18n.c here.
7358 * libgnomevfs/gnome-vfs-private-utils.c
7359 (gnome_vfs_i18n_get_language_list): Moved to gnome-vfs-i18n.c.
7361 2001-03-23 Darin Adler <darin@eazel.com>
7363 * test/test-uri.c: (main): Added some tests to demonstrate
7364 behavior when a URI starting with "." or ".." is passed to
7367 2001-03-22 Pavel Cisler <pavel@eazel.com>
7369 reviewed by: Darin Adler <darin@eazel.com>
7371 * modules/file-method.c: (get_stat_info):
7372 Fix a bug that caused symlink_name to never be read.
7373 Add support for retrieving the symlink_name for a multi-level
7376 2001-03-17 Gene Z. Ragan <gzr@eazel.com>
7378 * modules/Makefile.am:
7379 I am clueless. Maybe adding this header file
7380 to the list of files in the cdda module listing
7383 2001-03-17 Gene Z. Ragan <gzr@eazel.com>
7385 * modules/Makefile.am:
7386 Another attempt to fix tinderbox.
7388 2001-03-16 Gene Z. Ragan <gzr@eazel.com>
7391 Another try to get this right. Check for the presence of the
7392 cdparanoia headers instead of the library. The use of an
7393 underscore in the library name seems to confuse the AM_CHECK_LIB
7396 2001-03-15 Gene Z. Ragan <gzr@eazel.com>
7399 Fix tinderbox breakage. This is what happens when I pretend to be a build
7402 * modules/cdda-method.c: (do_open), (do_close), (do_get_file_info),
7403 (do_close_directory):
7404 Removed some debug messages.
7406 2001-03-15 Gene Z. Ragan <gzr@eazel.com>
7408 * modules/cdda-cddb.c:
7409 Added a workaround for the strangely defined, but unused,
7410 static arrays of chars in cdparanoia headers that causes
7411 a compiler error due to our strict error checking.
7413 2001-03-15 Gene Z. Ragan <gzr@eazel.com>
7415 * modules/cdda-module.conf:
7416 Add new cdda configuration file to build.
7418 2001-03-15 Gene Z. Ragan <gzr@eazel.com>
7421 * modules/Makefile.am:
7422 * modules/cdda-cddb.c:
7423 * modules/cdda-method.c: (cdda_context_new):
7424 * modules/default-modules.conf:
7425 Add cdda module to build using configure conditionals that depend
7426 on the presence of libcdparanoia.
7428 2001-03-15 John Sullivan <sullivan@eazel.com>
7430 reviewed by: Darin Adler <darin@eazel.com>
7432 * libgnomevfs/gnome-vfs-types.h: Reverted this part of
7433 my eralier checkin after Darin convinced me that the
7434 change I made here could actually make things worse.
7435 Added a FIXME about how it should be changed later.
7437 2001-03-14 Pavel Cisler <pavel@eazel.com>
7439 Fix 7339: (dragging file inside ftp window causes "replace self"
7441 * libgnomevfs/gnome-vfs-uri.c: (uri_matches_as_parent),
7442 (gnome_vfs_uri_is_parent):
7443 Fix a problem where ftp://foo.com and ftp://foo.com/ were
7444 not both considered the parent of ftp://foo.com/bar
7446 * test/test-uri.c: (test_uri_is_parent_common),
7447 (test_uri_is_parent_deep), (test_uri_is_parent_shallow), (main):
7448 Add tests for the above change.
7450 * test/test-find-directory.c: (main):
7451 Add some error handling.
7453 * libgnomevfs-pthread/gnome-vfs-job.c: (job_notify),
7454 (gnome_vfs_job_set), (gnome_vfs_op_destroy):
7455 Add some asserts and fix some debugging messages.
7457 2001-03-14 John Sullivan <sullivan@eazel.com>
7459 reviewed by: Pavel Cisler <pavel@eazel.com>
7461 Fixed bug 3337 (Sticky bit doesn't display correctly)
7463 * libgnomevfs/gnome-vfs-types.h: Set the sticky bit
7464 mask to 0 if S_ISVTX isn't defined, so we don't stomp
7465 on other unknown uses of this bit.
7466 * libgnomevfs/gnome-vfs-module-shared.c:
7467 (gnome_vfs_stat_to_file_info): Use GNOME_VFS style
7468 constants; #define _BSD_SOURCE so the sticky bit
7471 2001-03-07 Maciej Stachowiak <mjs@eazel.com>
7473 reviewed by: Robin Slomkowski <rslomkow@eazel.com>
7475 * gnome-vfs-config.in: Tweak so output is 1.1, not gnome-vfs-1.1
7476 to be consistent with other -config scripts and stop confusing
7477 control-center's configure; fixes tinderbox.
7479 2001-03-07 Maciej Stachowiak <mjs@eazel.com>
7481 * gnome-vfs.spec.in: Add gnome-vfs-config to silence tinderbox.
7483 2001-03-07 Darin Adler <darin@eazel.com>
7485 * gnome-vfs.spec.in: Remove file-types-capplet too.
7487 2001-03-07 Maciej Stachowiak <mjs@eazel.com>
7489 reviewed by: Darin Adler <darin@eazel.com>
7490 Gene Z. Ragan <gzr@eazel.com>
7492 Part of the fix for bugzilla.eazel.com bug 588 (Remove old "MIME
7493 types" capplet from control center)
7495 * Makefile.am: Remove mime-type-capplet subdir.
7497 * configure.in: Don't create mime-type-capplet Makefiles or check
7500 * gnome-vfs.spec.in: remove control-center dependency.
7502 * mime-type-capplet/*: removed.
7504 * po/POTFILES.in: Remove mime-type-capplet files
7506 2001-03-07 Pavel Cisler <pavel@eazel.com>
7508 reviewed by: Darin Adler <darin@eazel.com> (reluctantly)
7510 Fixed 7495 (Need to test condition after pthread_cond_wait)
7512 * libgnomevfs-pthread/gnome-vfs-thread-pool.c:
7513 (gnome_vfs_thread_pool_wait_for_work), (thread_entry):
7514 Work around what is described as a spurious wakeup of
7515 condition variables in the Pthread standard.
7516 Added a while loop around pthread_cond_wait checking if
7517 an entry_point is lined up.
7519 2001-03-06 Darin Adler <darin@eazel.com>
7521 * configure.in: Updated version number to 1.1.
7523 2001-03-06 Darin Adler <darin@eazel.com>
7525 Created the gnome-vfs-1-0 branch, for 1.0 development.
7526 HEAD is now for post-1.0.
7528 2001-03-06 Darin Adler <darin@eazel.com>
7530 Merged all changes back here from the gnome-vfs-1 branch.
7532 === start of changes from gnome-vfs-1 branch ===
7534 2001-03-04 Dan Winship <danw@ximian.com>
7536 reviewed by: Maciej Stachowiak <mjs@eazel.com>
7538 * mime-type-capplet/libuuid/Makefile.am (NULL): Remove "SUBDIRS="
7539 line, which causes automake (1.4 at least) to generate a Makefile
7540 containing invalid sh script that bash (2.03.0(1) at least) won't
7543 2001-03-04 Ramiro Estrugo <ramiro@eazel.com>
7545 reviewed by: Pavel Cisler <pavel@eazel.com>
7547 * data/mime/gnome-vfs-mime-magic:
7548 Make Postscript Fonts magic work for all fonts versioned 1.x, not
7551 2001-03-04 Pavel Cisler <pavel@eazel.com>
7553 reviewed by: Darin Adler <darin@eazel.com>
7555 Fixed 7333: leak in gnome_vfs_mime_get_default_component
7557 * libgnomevfs/gnome-vfs-mime-handlers.c:
7558 (gnome_vfs_mime_get_default_component):
7559 Fix a leak by adding a missing
7560 gnome_vfs_mime_component_list_free.
7562 2001-02-28 Maciej Stachowiak <mjs@eazel.com>
7564 reviewed by: Darin Adler <darin@eazel.com>
7566 * Makefile.am, configure.in: Include macros dir in dist tarball
7567 for the benefit of those building the module with
7568 --enable-maintainer-mode
7570 2001-03-02 Eric Fischer <eric@eazel.com>
7572 reviewed by: Gregory Leblanc <gleblanc@cu-portland.edu>
7575 Add version-checking macros from nautilus's configure.in
7576 Add check for control-center version number
7577 Parameterize checks for glib, oaf, gconf
7579 * gnome-vfs.spec.in:
7580 Substitute prerequisite version numbers from configure script
7582 2001-03-01 Don Melton <don@eazel.com>
7584 reviewed by: Pavel Cisler <pavel@eazel.com>
7586 * libgnomevfs/gnome-vfs-mime-magic.c: (get_mp3_frame_length),
7587 (get_4_byte_value), (gnome_vfs_sniff_buffer_looks_like_mp3):
7589 Re-fixed bug 6612 (Non-music files misidentified as MP3)
7590 Fixed bug 7212 (".sys" file misidentified as MP3)
7591 Fixed bug 7213 (".ico" file misidentified as MP3)
7592 Fixed bug 7214 (".1st" file misidentified as MP3)
7594 Rewrote "gnome_vfs_sniff_buffer_looks_like_mp3" to narrow MP3
7595 sniffing to streams containing AT LEAST TWO frames of layer 3 MPEG
7596 audio. Note: free format and MPEG version 2.5 MP3s are ignored,
7598 Removed the hack to ignore StarOffice and Microsoft Office files
7599 which contain seemingly valid (but totally false) MPEG audio
7600 headers starting 68 bytes into the file, because the new sniffing
7601 code makes this unnecessary.
7603 2001-03-01 Gene Z. Ragan <gzr@eazel.com>
7605 reviewed by: Mike Engber <engber@eazel.com>
7607 Fixed bug 6964, gtv not associated with video/mpeg
7609 * data/mime/gnome-vfs.applications:
7610 * data/mime/gnome-vfs.keys.in:
7611 Add gtv to the short list of applications for
7614 2001-03-01 Rebecca Schulman <rebecka@eazel.com>
7616 reviewed by: Robin Slomkowski <rslomkow@eazel.com>
7618 * gnome-vfs.spec.in:
7619 Attempt to fix tinderbox -- install the moved
7620 desktop file to the new location in the spec file
7623 2001-03-01 Mike Fleming <mfleming@eazel.com>
7625 reviewed by: <pavel@eazel.com>
7627 Bug 7192: split_toplevel_uri now allows URI's with a username
7628 but no hostname in the authority field. In the future, we should
7629 figure out how to avoid having split_toplevel_uri involved with
7630 made-up URI schemes like eazel-install:
7632 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri):
7633 * test/test-uri.c: (main):
7635 2001-03-01 Gene Z. Ragan <gzr@eazel.com>
7637 reviewed by: Pavel Cisler <pavel@eazel.com>
7639 * mime-type-capplet/Makefile.am:
7640 The capplet .desktop should be copied to the Documents
7641 directory of the control-center .desktop files directory,
7644 2001-02-28 Andy Hertzfeld <andy@eazel.com>
7646 * data/mime/gnome-vfs.keys.in:
7647 fixed bug 7179, lots of text files are missing their embedded text;
7648 fixed by deleting the icon-filename entry for around a dozen types.
7650 2001-02-28 Eric Fischer <eric@eazel.com>
7652 reviewed by: Robin * Slomkowski <rslomkow@eazel.com>
7654 * gnome-vfs.spec.in: (Bug 7166)
7655 Add dependency for control-center 1.2.3, because the mime-type
7656 capplet will crash without the latest version. I think this can
7657 go away once the capplet gets moved into control-center where it
7658 belongs, but it's necessary for the moment.
7660 2001-02-28 Darin Adler <darin@eazel.com>
7662 Moved the ChangeLog entries into data/mime/ChangeLog.
7664 2001-02-27 Pavel Cisler <pavel@eazel.com>
7666 reviewed by: Gene Z. Ragan <gzr@eazel.com>
7668 * modules/file-method.c: (do_find_directory):
7669 Fix a bug where calling gnome_vfs_find_directory near
7670 a cross-file system symlink would return Trash corresponding
7671 to the link target not the link itself, causing an error when
7672 trying to delete the link.
7674 2001-02-27 Josh Barrow <josh@eazel.com>
7679 2001-02-27 Pavel Cisler <pavel@eazel.com>
7684 Getting these ready for a release.
7686 2001-02-27 Maciej Stachowiak <mjs@eazel.com>
7688 another unreviewed change to fix tinderox
7690 * mime-type-capplet/Makefile.am: Install .desktop file in both the
7691 places the .spec file expects it. Not sure if it was removed
7692 intentionally or not.
7694 2001-02-27 Maciej Stachowiak <mjs@eazel.com>
7696 unreviewed change to fix tinderox
7698 * mime-type-capplet/Makefile.am: Add .desktop.in file to
7701 2001-02-27 Maciej Stachowiak <mjs@eazel.com>
7703 reviewed by: Kjartan Maraas <kmaraas@gnu.org>
7705 * po/POTFILES.in: Remove entries spuriously added by
7708 2001-02-26 Rebecca Schulman <rebecka@eazel.com>
7710 Fixed bugzilla.eazel.com bug 7010, that the
7711 file types capplet should use .desktop.in
7712 xml-i18-tools stuff.
7714 reviewed by: Maciej Stachowiak <mjs@eazel.com>
7716 * libgnomevfs/gnome-vfs-mime.c:
7717 * libgnomevfs/gnome-vfs-mime.h:
7718 Add a FIXME and a comment about functions
7719 in this file; no code changes
7721 * mime-type-capplet/.cvsignore:
7722 Add file-types-capplet.desktop
7723 * mime-type-capplet/file-types-capplet.desktop.in:
7724 Add this with new nifty xml-18n technology
7725 * mime-type-capplet/file-types-capplet.desktop:
7728 * mime-type-capplet/Makefile.am:
7729 Fix the build to build and install the new desktop file
7730 instead of the old one
7732 2001-02-26 Gene Z. Ragan <gzr@eazel.com>
7734 reviewed by: Rebecca Schulman <rebecka@eazel.com>
7736 Forgot to add libuuid/Makefile
7740 2001-02-26 Robin * Slomkowski <rslomkow@rslomkow.org>
7742 * configure.in: upped version to 0.6.2.0 for development
7744 2001-02-26 Robin * Slomkowski <rslomkow@rslomkow.org>
7746 * configure.in: upped version to 0.6.2 for release
7748 2001-02-26 Gene Z. Ragan <gzr@eazel.com>
7750 reviewed by: Pavel Cisler <pavel@eazel.com>
7752 Fixed bug 7039, User-entered application that matches
7753 built-in application can't be deleted
7755 Fixed bug 7040, User-entered application that matches built-in
7756 application doesn't go away when "all user changes" reverted
7758 Fixed bug 7064, New mime types added by user using the capplet
7759 do not appear when capplet is launched again.
7761 * mime-type-capplet/Makefile.am:
7762 Add libuuid to build.
7764 * mime-type-capplet/libuuid/Makefile.am:
7765 * mime-type-capplet/libuuid/clear.c: (uuid_clear):
7766 * mime-type-capplet/libuuid/compare.c: (uuid_compare):
7767 * mime-type-capplet/libuuid/copy.c: (uuid_copy):
7768 * mime-type-capplet/libuuid/gen_uuid.c: (get_random_bytes),
7769 (get_node_id), (get_clock), (uuid_generate_time),
7770 (uuid_generate_random), (uuid_generate):
7771 * mime-type-capplet/libuuid/gen_uuid_nt.c: (Nt5), (uuid_generate):
7772 * mime-type-capplet/libuuid/isnull.c: (uuid_is_null):
7773 * mime-type-capplet/libuuid/pack.c: (uuid_pack):
7774 * mime-type-capplet/libuuid/parse.c: (uuid_parse):
7775 * mime-type-capplet/libuuid/tst_uuid.c: (main):
7776 * mime-type-capplet/libuuid/unpack.c: (uuid_unpack):
7777 * mime-type-capplet/libuuid/unparse.c: (uuid_unparse):
7778 * mime-type-capplet/libuuid/uuid.h:
7779 * mime-type-capplet/libuuid/uuidP.h:
7780 * mime-type-capplet/libuuid/uuid_time.c: (uuid_time), (uuid_type),
7781 (uuid_variant), (variant_string), (main):
7782 Add libuuid to capplet and link statically. This is sort of sad. It would
7783 be nice if gnome had a uuid library, but at this time it does not.
7785 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
7786 (nautilus_mime_type_capplet_show_new_mime_window):
7787 Call proper API to ensure that new mime type is added to the database.
7789 (add_or_update_application), (add_item_to_application_list),
7790 (run_edit_or_new_application_dialog):
7791 Create and assign a uuid to user defined application so that we never
7792 conflict with system defined types that use the application name
7793 as the application id.
7795 2001-02-26 Darin Adler <darin@eazel.com>
7797 reviewed by: Ramiro Estrugo <ramiro@eazel.com>
7799 * check-mime.pl: Added more checks, including a check for
7800 unexpected keys, check for repeated keys, check for key format in
7801 .mime file, check for icon names mentioned against icon files, and
7802 code to make it communicate failure to the shell with "exit 1".
7804 2001-02-25 John Sullivan <sullivan@eazel.com>
7806 reviewed by: Gene Ragan <gzr@eazel.com>
7808 Fixed bug 6675 (Capplet allows user to add application for
7809 non-existent program (or not in path).
7811 * libgnomevfs/gnome-vfs-utils.h:
7812 * libgnomevfs/gnome-vfs-utils.c: (strdup_to), (is_executable_file),
7813 (executable_in_path), (get_executable_name_from_command_string),
7814 (gnome_vfs_is_executable_command_string): Moved code that tests
7815 for executable commands from -mime-handlers.c to here. Made
7816 gnome_vfs_is_executable_command_string public. Added FIXMEs
7817 and tweaked full-path handling code to work in more cases.
7819 * libgnomevfs/gnome-vfs-mime-handlers.c:
7820 (application_known_to_be_nonexistent): Replaced the code testing
7821 for executable commands with call to
7822 gnome_vfs_is_executable_command_string.
7824 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
7825 (initialize_edit_applications_dialog): Added FIXME.
7826 (handle_invalid_application_input): New function, handles bad
7827 name or command string with explanatory error message.
7828 (run_edit_or_new_application_dialog): New function, guts of both
7829 show_ and edit_new_application_window, which formerly had nearly
7830 identical copy/pasted code. Now doesn't close dialog if input
7831 is bad and user clicks OK; other minor cleanup.
7832 (show_new_application_window), (show_edit_application_window):
7833 Each of these now calls run_edit_or_new_application_dialog.
7835 * mime-type-capplet/nautilus-mime-type-capplet.c:
7836 (add_mime_clicked), (update_mime_list_action),
7837 (populate_mime_list): Added tests for missing icon files to
7838 avoid zillions of GTK-CRITICALs from gdk_pixbuf if you run
7839 the capplet without installing Nautilus firt (discovered during
7840 clean rebuild); fixed a couple of leaking strings.
7842 2001-02-24 Marius Andreiana <mandreiana@yahoo.com>
7844 * configure.in: Added ro (Romanian) to ALL_LINGUAS.
7846 2001-02-24 Gene Z. Ragan <gzr@eazel.com>
7848 reviewed by: John Harper <jsh@eazel.com>
7850 Fixed bug 6904, Full paths can't be used when adding
7851 applications in capplet (and failure is silent)
7853 I fixed the full paths issue. The failure is silent issue
7854 is reflected in a soon to be closed bug.
7856 * libgnomevfs/gnome-vfs-mime-handlers.c:
7857 (application_known_to_be_nonexistent):
7858 Check and see if the command string store in the
7859 mime database is actually a full path to an
7862 2001-02-23 Pavel Cisler <pavel@eazel.com>
7864 reviewed by: Mike Fleming <mfleming@eazel.com>
7866 Fix 6391 nautilus crashes on any \ in the homedir preference
7868 * test/test-uri.c: (main):
7869 Add a test that broke before the fix.
7871 * libgnomevfs/gnome-vfs-private-utils.c: (find_next_slash):
7872 Remove the confused '\' unescaping.
7874 2001-02-23 Pavel Cisler <pavel@eazel.com>
7876 reviewed by: Gene Ragan <gzr@eazel.com>
7878 Fixed 5786 the sequence of async open->read->cancel->close
7881 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
7882 (pthread_gnome_vfs_async_close):
7883 Before scheduling a close, wait for read/write to complete. If
7884 read/write is still executing, wait for a tiny bit.
7886 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_complete),
7887 (gnome_vfs_op_destroy), (gnome_vfs_job_execute):
7888 * libgnomevfs-pthread/gnome-vfs-job.h:
7889 Add a new job op state - GNOME_VFS_OP_READ_WRITE_DONE.
7890 Set it when read/write is done so that close can tell it can
7893 2001-02-23 Don Melton <don@eazel.com>
7895 reviewed by: Maciej Stachowiak <mjs@eazel.com>
7897 Fixed bug 6831 (extensions shouldn't take precedence over MP3 files)
7898 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_get_mime_type_internal):
7899 Removed call to "gnome_vfs_mime_type_from_name_or_default" after
7900 call to "gnome_vfs_sniff_buffer_looks_like_mp3" so filename
7901 extensions don't take precendence over actual MPEG audio content.
7903 Re-fixed bug 6612 (".doc", ".sdw", etc. are not MP3 files)
7904 * libgnomevfs/gnome-vfs-mime-magic.c:
7905 (gnome_vfs_sniff_buffer_looks_like_mp3):
7906 Added hack to ignore StarOffice and Microsoft Office files which
7907 contain seemingly valid (but totally false) MPEG audio headers
7908 starting 68 bytes into the file. Do this here because adding mime
7909 magic entry is really, really hard.
7911 Re-fixed bug 5477 ("linux-2.4.0.tar.bz2" is not MP3 file)
7912 * data/mime/gnome-vfs-mime-magic:
7913 Corrected string pattern to detect bzip2 files. Changed "Bzh" to
7916 2001-02-22 Mike Fleming <mfleming@eazel.com>
7918 * modules/default-modules.conf:
7920 Removed nfs from default-modules.conf (see bug 6666)
7922 2001-02-22 John Sullivan <sullivan@eazel.com>
7924 reviewed by: Gene Ragan <gzr@eazel.com>
7926 Fixed bug 6524 (No default icons for MIME types)
7928 Fixed bug 6525 (capplet will only let you pick icons
7929 from a single directory)
7931 Fixed bug 6596 ("We need a good explanation here"
7932 isn't a good explanation)
7934 I didn't fix all the fundamental brokenness about Nautilus
7935 themes vs. the MIME database, but I fixed the most obvious
7936 problems and added some FIXMEs to help clarify some of the
7937 remaining issues. I also did a tiny fraction of the cleanup
7938 that could be done in this code. Users can now browse around
7939 to choose icons from anywhere, and they will all work in
7940 Nautilus (no change required in Nautilus).
7942 * mime-type-capplet/files-types-capplet.desktop:
7943 Replaced placeholder description string with Vera's.
7945 * mime-type-capplet/nautilus-mime-type-capplet.c:
7946 Removed bogus but relatively harmless initial slashes
7947 from two DEFAULT_REGULAR_ICON and DEFAULT_ACTION_ICON.
7948 (really_change_icon): Handle full as well as relative
7949 filenames; update displayed info here instead of relying
7950 on the icon_entry widget doing it.
7951 (icon_chosen_callback): Renamed from gil_icon_selected_cb;
7952 hide the dialog here so we can eliminate the almost-identical
7953 code in nautilus-mime-type-icon-entry.c that did that one
7955 (change_icon_clicked_cb_real): use GNOME_OK instead of 0
7956 (change_icon_clicked): Update for name change.
7957 (is_full_path): Little bitty helper function that checks for
7958 initial slash, mainly separated for clarity.
7959 (capplet_get_icon_path): New function used to get a full icon
7960 path from a file name, icon name, relative path, or
7961 possibly non-existent full path.
7962 (nautilus_mime_type_capplet_update_info): Simplify logic,
7963 use capplet_get_icon_path.
7964 (add_mime_clicked), (update_mime_list_action),
7965 (populate_mime_list):
7966 Use capplet_get_icon_path; use generic
7967 executable icon for app instead of repeating MIME-type icon.
7968 (capplet_get_icon_pixbuf): Simplify logic; use capplet_get_icon_path;
7969 Add FIXME about future code cleanup
7971 * mime-type-capplet/nautilus-mime-type-icon-entry.h:
7972 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
7973 (nautilus_mime_type_icon_entry_get_full_filename): Renamed from
7974 _get_filename for clarity
7975 (entry_activated): Made behavior match comment (act like OK
7977 (icon_selected_cb): Removed this function; this was redundant with
7978 code in nautilus-mime-type-capplet.c.
7979 (gil_icon_selected_cb): Removed this function; it was redundant
7980 with a function in nautilus-mime-type-capplet.c except that this one
7981 hid the dialog and that one didn't (now that one does).
7982 (nautilus_mime_type_show_icon_selection): Remove commented-out
7983 line that implemented the Browse button that let the user choose
7984 from different directories; removed redundant signal handlers;
7986 (nautilus_mime_type_icon_entry_get_relative_filename): Simplify
7987 logic; made it return NULL instead of "" and a g_warning when
7988 it can't create a relative path from the full path.
7990 * libgnomevfs/gnome-vfs-utils.c: Added FIXME
7992 2001-02-22 Gene Z. Ragan <gzr@eazel.com>
7994 reviewed by: John Sullivan <sullivan@eazel.com>
7996 Fixed bug 6568, Closing capplet right away warns
7997 about uncommitted changes
7999 * mime-type-capplet/nautilus-mime-type-capplet.c:
8000 (init_mime_capplet):
8001 Use new winterface that I added to control-center
8002 that informs the control center that changes are immediate.
8003 The control center now behaves properly.
8005 2001-02-21 Pavel Cisler <pavel@eazel.com>
8007 reviewed by: Darin Adler <darin@eazel.com>
8009 Fixed 5633: MIME type for gzipped XML formats such as gnumeric
8011 Fixed 6803: gcc complaining about mktemp and suggesting mkstemp.
8013 * libgnomevfs/gnome-vfs-mime.c:
8014 (gnome_vfs_get_mime_type_internal):
8015 Rework to get rid of duplicated logic. Add a new call that
8016 covers both the data and suffix based file type recognition,
8017 optionally accepting NULL for either of the two. Add a call to
8018 the special gzip handler. For now hardcode gnumeric.gz and
8019 pdf.gz, we may add more later.
8021 * libgnomevfs/gnome-vfs-mime.c:
8022 (gnome_vfs_get_mime_type),
8023 (gnome_vfs_get_file_mime_type),
8024 (gnome_vfs_get_mime_type_from_file_data),
8025 (gnome_vfs_get_mime_type_for_data):
8026 Make it call the new common routine.
8028 * libgnomevfs/gnome-vfs-mime-sniff-buffer-private.h:
8029 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
8030 * libgnomevfs/gnome-vfs-mime-magic.c:
8031 (gnome_vfs_mime_get_type_from_magic_table),
8032 (gnome_vfs_get_mime_type_for_buffer),
8033 (file_name_ends_with),
8034 (gnome_vfs_sniff_buffer_looks_like_gzip):
8035 Add a special-case recognizer for gzip files that considers
8036 file names before identifying a file as gzip and leaving a
8037 hard-coded set of types to fall back on the suffix based type
8040 * libgnomevfs/gnome-vfs-mime.c: (get_priority), (list_find_type),
8041 (add_to_key), (mime_fill_from_file), (mime_load),
8042 (gnome_vfs_mime_type_from_name_or_default),
8043 (gnome_vfs_get_mime_type_from_uri_internal),
8044 (gnome_vfs_get_mime_type_internal),
8045 (gnome_vfs_mime_type_is_supertype), (extract_prefix_add_suffix),
8046 (gnome_uri_list_extract_uris), (gnome_uri_list_extract_filenames),
8047 (gnome_uri_extract_filename):
8050 * libgnomevfs/gnome-vfs-mime-magic.c:
8051 (gnome_vfs_sniff_buffer_looks_like_mp3):
8054 * data/mime/gnome-vfs-mime-magic:
8055 Remove the magic pattern for gzip.
8057 * libgnomevfs/gnome-vfs-private-utils.c:
8058 (gnome_vfs_i18n_get_language_list), (gnome_vfs_istr_has_prefix),
8059 (gnome_vfs_istr_has_suffix):
8060 * libgnomevfs/gnome-vfs-private-utils.h:
8061 Copy-paste these from Nautilus.
8063 * libgnomevfs-corba/gnome-vfs-slave.c: (setup_and_serve_channel):
8064 Switch to using mkstemp.
8066 2001-02-22 Seth Nickell <snickell@stanford.edu>
8068 reviewed by: Mathieu Lacage <mathieu@gnu.org>
8070 * modules/test-method.c: (load_settings), (vfs_module_init):
8072 Fix test module to look in the PREFIX for its configuration file
8073 rather than hardcoding. Deal with missing or invalid settings files
8074 gracefully, returning a sane error rather than segfaulting :-)
8076 2001-02-22 Seth Nickell <seth@eazel.com>
8078 reviewed by: Pavel Císler <pavel@eazel.com>
8080 * libgnomevfs/gnome-vfs-application-registry.c:
8081 (strip_trailing_whitespace):
8082 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri):
8083 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8084 (nautilus_mime_type_capplet_show_new_mime_window):
8086 Add casts to is* functions as necessary when chars are
8087 used to fix Solaris warnings.
8089 2001-02-21 Mike Fleming <mfleming@eazel.com>
8091 reviewed by: <delete if not using a buddy>
8093 * data/mime/gnome-vfs.applications:
8094 * data/mime/gnome-vfs.keys.in:
8096 added x-directory/webdav-prefer-directory to gnome-vfs.keys.in
8097 I must have edited the wrong file before :)
8099 2001-02-21 Darin Adler <darin@eazel.com>
8101 reviewed by: Pavel Cisler <pavel@eazel.com>
8103 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri): Move code
8104 to lower-case the host name down so it's always run, even in
8105 cases that exit via "goto done".
8106 * test/test-uri.c: (main): Fix test cases that were broken by
8109 2001-02-21 John Sullivan <sullivan@eazel.com>
8111 reviewed by: Pavel Cisler <pavel@eazel.com>
8113 Fixed bug 6654 (after deleting MIME type from database,
8114 info about that MIME type still appears in Nautilus)
8116 Turns out the support for MIME type deletion was skin deep.
8117 The info was stored, but the only place respecting it was
8118 the code to return a complete list of MIME types.
8120 * libgnomevfs/gnome-vfs-mime-info.c:
8121 (is_mime_type_deleted): New function, extracted from
8123 (get_key_name): Now calls extracted function
8124 (get_value_from_hash_table): New function, holds some code
8125 that was repeated 4 times in get_value_real
8126 (get_value_real): Return NULL if MIME type is deleted (unless
8127 we're checking DELETED_KEY itself); use get_value_from_hash_table
8130 2001-02-21 Gene Z. Ragan <gzr@eazel.com>
8132 reviewed by: John Sullivan<sullivan@eazel.com>
8134 Fixed bug 6626, Applications deleted from the
8135 short list reappear (unchecked)
8137 The original intent of this dialog button was to allow the user to
8138 delete their custom added applications. The logic has been
8139 added to handle this and update the control properly.
8140 There is a larger issue that if the user wants to delete system
8141 level applications, the current API makes it impossible to do
8144 * libgnomevfs/gnome-vfs-application-registry.c:
8145 * libgnomevfs/gnome-vfs-application-registry.h:
8146 (application_lookup_or_create), (application_lookup),
8147 (application_remove), (gnome_vfs_application_registry_init),
8148 (gnome_vfs_application_registry_clear),
8149 (gnome_vfs_application_registry_shutdown),
8150 (gnome_vfs_application_registry_sync),
8151 (gnome_vfs_application_registry_save_mime_application):
8152 Renamed a potentially confusing global variable.
8155 (gnome_vfs_application_is_user_owned_application):
8156 New function that returns a value indicating if this
8157 is a user owned or system owned application.
8159 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8160 (create_application_list_item),
8161 (populate_default_applications_list),
8162 (initialize_edit_applications_dialog),
8163 (show_new_application_window), (delete_selected_application),
8164 (add_or_update_application), (add_item_to_application_list):
8165 Determine if application data is user owned and act accordingly.
8167 (check_button_status):
8168 Remove delete button handling in certain cases and use new
8169 update_delete_button function instead.
8171 (update_delete_button):
8172 New function to that sensitizes the delete button
8173 based on user ownership of the selected application item.
8175 2001-02-20 Pavel Cisler <pavel@eazel.com>
8177 reviewed by: Mike Fleming <mfleming@eazel.com>
8178 (except for build breakage fixes)
8180 Fix 5798 Cancelling a slow medusa search locks up nautilus
8181 Fix 6309 Stopping Nautilus while navigating to an unreachable
8182 http server can block nautilus indefinitely.
8184 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
8185 (gnome_vfs_async_job_add_callback),
8186 (gnome_vfs_async_job_cancel_job_and_callbacks):
8187 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
8188 (pthread_gnome_vfs_async_cancel):
8189 Switch from using the job->access_lock to make setting
8190 job->cancelled and cancelling the callbacks in the callback map
8191 atomic to using the async_job_callback_map_lock.
8193 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
8194 (pthread_gnome_vfs_async_cancel):
8195 No need to acquire job->access_lock -- this makes the cancellation
8196 not block while the async job is executing.
8198 * libgnomevfs-pthread/gnome-vfs-async-job-map.h:
8199 * libgnomevfs-pthread/gnome-vfs-job.c: (job_oneway_notify),
8201 Use the result of gnome_vfs_async_job_add_callback to handle getting cancelled
8202 while scheduling an idle callback.
8204 * libgnomevfs-pthread/gnome-vfs-job.c: (job_notify):
8205 Fix a mistake where gnome_vfs_async_job_add_callback was being called twice.
8207 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_module_cancel):
8208 * libgnomevfs-pthread/gnome-vfs-job.h:
8209 Rename to make things clearer.
8211 * libgnomevfs-pthread/gnome-vfs-job.c: (execute_read), (execute_xfer):
8215 * libgnomevfs/gnome-vfs-method.c:
8216 * libgnomevfs/gnome-vfs-method.h:
8217 * libgnomevfs/gnome-vfs-module-shared.c:
8218 * libgnomevfs/gnome-vfs-module.h:
8219 * libgnomevfs/gnome-vfs-private-types.h:
8220 * libgnomevfs/gnome-vfs-types.h:
8221 * modules/file-method.c:
8222 * modules/ftp-method.c:
8223 * modules/gconf-method.c:
8224 * modules/pipe-method.c:
8225 * modules/translate-method.c:
8227 Fix build breakage, part 2.
8229 2001-02-20 Mike Fleming <mfleming@eazel.com>
8231 reviewed by: Pavel Cisler<pavel@eazel.com>
8233 Bug 6770 -- URI's with @'s in the path break split_toplevel_uri
8234 Fixed and added test cases
8236 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri):
8237 * test/test-uri.c: (main):
8239 2001-02-20 Pavel Cisler <pavel@eazel.com>
8241 reviewed by: Rebecca Schulman <rebecka@eazel.com>
8243 * libgnomevfs/gnome-vfs-cancellable-ops.h:
8244 * libgnomevfs/gnome-vfs-context.h:
8245 * libgnomevfs/gnome-vfs-private-types.h:
8246 * libgnomevfs/gnome-vfs-types.h:
8248 Fix Medusa build breakage, part 1.
8250 2001-02-20 Darin Adler <darin@eazel.com>
8252 reviewed by: Mike Fleming <mfleming@eazel.com>
8254 * libgnomevfs/gnome-vfs-process.c: (sigchld_handler): Fix
8255 uninitialized variable problem (reported by danw I think).
8256 * libgnomevfs/gnome-vfs-utils.c:
8257 (gnome_vfs_get_local_path_from_uri): Simplify function and make it
8258 return NULL with # characters.
8260 * test/test-uri.c: (main): Update tests to match the change to
8261 gnome_vfs_get_local_path_from_uri.
8263 * libgnomevfs-pthread/gnome-vfs-job.c: Improve a variable name.
8265 * mime-type-capplet/.cvsignore: Ignore the executable under its
8266 new name, not its old name.
8268 2001-02-20 John Sullivan <sullivan@eazel.com>
8270 * mime-type-capplet/nautilus-mime-type-capplet.c:
8271 (init_mime_capplet): Changed "Delete this MIME type..."
8272 to "Delete This MIME Type" because that follows the
8273 capitalization rules, and because there's no dialog
8274 involved so the "..." is a lie.
8276 2001-02-20 John Sullivan <sullivan@eazel.com>
8278 reviewed by: Seth Nickell <seth@eazel.com>
8280 Fixed various small capplet bugs while pondering the
8281 big scary icon-related ones, including:
8283 Fixed bug 4768 (hardcoded icon file name in
8284 nautilus-mime-type-capplet.c)
8286 Fixed bug 6636 (Text descenders clipped for selected item in mime list)
8288 Fixed bug 6641 (Icons clipped in mime list)
8290 Fixed bug 6647 ("Change Icon" dialog has silly title)
8292 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8293 (nautilus_mime_type_capplet_show_new_mime_window): Simplified
8294 widgetry, tweaked layout and wording to look halfway decent and
8297 * mime-type-capplet/nautilus-mime-type-capplet.c:
8298 Added constants for icon height/width in list. Added FIXME for
8299 huge hunks of copy/pasted code.
8300 (init_mime_capplet): Removed two set_usize calls; replaced one
8301 with a gtk_misc_set_padding call so "Edit List" button isn't
8304 (nautilus_mime_type_capplet_update_mime_list_icon_and_description):
8305 Use icon size constants instead of magic numbers.
8306 (update_mime_list_action), (populate_mime_list):
8307 Use icon size constants; use
8308 gnome_vfs_icon_path_from_filename to avoid hard-coded path.
8309 (mime_list_reset_row_height): New function, sets the row height
8310 based on font size and image height.
8311 (create_mime_list_and_scroller): Reset row height at the right time.
8313 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
8314 (nautilus_mime_type_show_icon_selection): Set icon selection window
8315 title; add FIXME for (at long last discovered) code that prevents
8316 user from choosing icons in arbitrary directories.
8318 2001-02-20 Rebecca Schulman <rebecka@eazel.com>
8319 Fix build issues caused by making gnome-vfs-process.h
8322 reviewed by: Darin Adler <darin@eazel.com>
8324 * libgnomevfs/gnome-vfs.h:
8325 Remove gnome-vfs-process.h, which is now private
8326 * libgnomevfs/gnome-vfs-private-utils.h:
8327 Add gnome-vfs-process.h
8328 * test/test-escape.c: Add a signal.h which
8329 was needed after remove gnome-vfs-process.h
8332 2001-02-20 Mike Fleming <mfleming@eazel.com>
8334 reviewed by: <ian@eazel.com>
8336 Bug 5325: Eazel Vault directories default to icon view, but other
8339 Added "x-directory/webdav-prefer-directory" mime type to allow this
8342 Also added checking of the multistatus "status" value for
8345 * data/mime/gnome-vfs.applications:
8346 * modules/http-method.c: (process_propfind_propstat),
8347 (find_child_node_named), (get_propstat_status),
8348 (process_propfind_response), (make_propfind_request),
8351 2001-02-20 Ian McKellar <ian@eazel.com>
8353 reviewed by: Pavel Cisler <pavel@eazel.com>
8355 * libgnomevfs/gnome-vfs-xfer.c: (copy_file_data), (move_items),
8357 Don't add overhead to the transfer total for each file.
8358 This fixes bug 6769.
8361 Fix a compile problem with the Debian compiler.
8363 2001-02-20 John Sullivan <sullivan@eazel.com>
8365 reviewed by: Darin Adler <darin@eazel.com>
8367 Finished bug 5777 (Nautilus doesn't pick up MIME database
8368 changes right away). It still requires a Refresh or a visit
8369 to another directory, but it no longer requires a relaunch.
8371 Fixed bug 4798 (Nautilus doesn't update icons right away). This
8372 was a special case of bug 5777, but worth verifying separately so
8373 not marked duplicate.
8375 To fix these two bugs, I made a new set of calls that let a client
8376 check whether the mod date of any file from a set has changed
8377 "recently". There was code to do this (copy & pasted in two places)
8378 but it didn't correctly handle changes in existing files, only
8379 new files added/removed.
8381 * libgnomevfs/Makefile.am: Moved gnome-vfs-process.h and
8382 gnome-vfs-mime-sniff-buffer-private.h to noinst_HEADERS
8383 where they belonged (unrelated to bug fixes).
8385 * libgnomevfs/gnome-vfs-mime-private.h: Added prototypes for
8386 new FileDateTracker operations.
8388 * libgnomevfs/gnome-vfs-mime.c:
8389 (file_date_record_update_mtime), (file_date_record_new),
8390 (file_date_record_free): New functions, keep track of a single
8391 file and its last recorded mod date.
8392 (gnome_vfs_file_date_tracker_new): New function, returns a
8393 new FileDateTracker struct.
8394 (release_key_and_value): New function, used when freeing
8396 (gnome_vfs_file_date_tracker_free): New function.
8397 (gnome_vfs_file_date_tracker_start_tracking_file): New function,
8398 remembers a file (if not already known) and records its current
8400 (check_and_update_one): New hashtable iterator, checks whether
8401 a file's mod date has changed since last recorded.
8402 (gnome_vfs_tracked_date_has_changed): New function, checks whether
8403 any tracked file's date has changed since last recorded.
8405 (mime_fill_from_file): start tracking the mod date of the file we
8407 (mime_load): start tracking the mod date of the directory we just
8409 (maybe_reload): replace old date-checking code with call to
8410 gnome_vfs_tracked_date_has_changed.
8411 (mime_init): create global hash table for mime data date tracker.
8412 (gnome_vfs_mime_shutdown): free global hash table.
8414 * libgnomevfs/gnome-vfs-application-registry.c:
8415 (remove_mime_type_for_application): Fixed crashing bug (part of
8416 bug 5777) by reordering code to avoid accessing freed string.
8417 (load_application_info_from): start tracking the mod date of the
8418 file we just loaded.
8419 (application_info_load): start tracking the mod date of the
8420 directory we just iterated through.
8421 (maybe_reload): replace old date-checking code with call to
8422 gnome_vfs_tracked_date_has_changed
8423 (gnome_vfs_application_registry_init): create global hash table for
8424 registry date tracker.
8425 (gnome_vfs_application_registry_shutdown): free global hash table.
8427 2001-02-20 Robin * Slomkowski <rslomkow@rslomkow.org>
8429 * gnome-vfs.spec.in: changed nautilus-mime-type-capplet
8430 to file-types-capplet
8432 2001-02-16 Michael K. Fleming <mfleming@eazel.com>
8434 reviewed by: <darin@eazel.com>
8436 * libgnomevfs/gnome-vfs-types.h:
8437 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_get_parent):
8438 * libgnomevfs/gnome-vfs-utils.c:
8439 (gnome_vfs_get_local_path_from_uri):
8440 * test/test-uri.c: (main):
8442 Part of 2057: URI's with fragments behave oddly
8444 gnome_vfs_uri_get_parent no longer copies the child's fragment
8445 onto the parent (which certainly makes no sense to do)
8447 Added a warning for gnome_vfs_unescape_string_for_display, since
8448 it can cause bug 6694
8450 gnome_vfs_get_local_path_from_uri now strips fragments from the
8453 Added test cases for new behaviour
8455 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
8456 (gnome_vfs_mime_sniff_buffer_new_from_existing_data):
8457 * libgnomevfs/gnome-vfs-types.h:
8459 Fixed crasher in mime sniff buffer that can happen when
8460 gnome_vfs_mime_sniff_buffer_new_from_existing_data is used
8461 with a buffer too small for some of the magic number patterns.
8462 By setting "read_whole_file" to TRUE, no further attempts will be
8463 made to read from the buffer (which doesn't have a read function
8466 * modules/Makefile.am:
8468 Bug 6666, removed nfs module from build for nautilus v1
8470 2001-02-20 Gene Z. Ragan <gzr@eazel.com>
8472 Fix bug 6384, Nautilus program chooser uses
8473 "nautilus-mime-type-capplet" to launch capplet
8475 * mime-type-capplet/Makefile.am:
8476 * mime-type-capplet/files-types-capplet.desktop:
8477 * mime-type-capplet/nautilus-mime-type.desktop:
8478 Rename the capplet binary and change the name and
8479 contents of the .desktop file to reflect the new name.
8481 2001-02-19 Don Melton <don@eazel.com>
8483 reviewed by: Maciej Stachowiak <mjs@eazel.com>
8485 * libgnomevfs/gnome-vfs-mime-magic.c:
8486 (gnome_vfs_get_mime_type_for_buffer):
8487 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_get_mime_type),
8488 (gnome_vfs_get_file_mime_type),
8489 (gnome_vfs_get_mime_type_from_file_data):
8491 Fixed bug 5477 ("linux-2.4.0.tar.bz2" is not MP3 file)
8492 Fixed bug 6612 (".doc", ".sdw", etc. are not MP3 files)
8494 Now call "gnome_vfs_sniff_buffer_looks_like_mp3" just like its text
8495 sniffing counterpart so that it is _not_ called only on failure of
8496 "gnome_vfs_mime_try_one_magic_pattern".
8498 2001-02-19 Ian McKellar <ian@eazel.com>
8500 reviewed by: Eskil Olsen <eskil@eazel.com>
8502 * modules/file-method.c: (do_find_directory):
8503 Changed lstat to stat so that the device ID can be correctly
8504 determined (fixing bug 4980).
8506 2001-02-16 Gene Z. Ragan <gzr@eazel.com>
8508 reviewed by: Mike Enger <engber@eazel.com>
8510 Fixed bug 6624, Selected mime type/description displayed
8511 below the list is incorrect after reverting to system defaults.
8513 Fixed bug 6644, List sorting after using "revert to system defaults"
8516 * mime-type-capplet/nautilus-mime-type-capplet.c:
8518 Sort the list using current sort column and select the
8519 first item to force an update of the dialog contents.
8520 Also freeze and thaw list to avoid annoying flicker while
8521 list is being repopulated.
8523 2001-02-16 John Sullivan <sullivan@eazel.com>
8525 reviewed by: Gene Z. Ragan <gzr@eazel.com>
8527 Fixed bug 6635 (in MIME capplet, descriptions can't be
8528 edited though they look editable)
8530 * libgnomevfs/gnome-vfs-mime-handlers.c:
8531 * libgnomevfs/gnome-vfs-mime-handlers.h:
8532 (gnome_vfs_mime_set_description): New function,
8533 just like existing _set_icon.
8535 * mime-type-capplet/nautilus-mime-type-capplet.h:
8536 * mime-type-capplet/nautilus-mime-type-capplet.c:
8537 (nautilus_mime_type_capplet_update_mime_list_icon_and_description):
8538 Changed name to add the _and_description part. It already handled
8539 the description properly but the name was misleading.
8540 (really_change_icon): Updated for name change.
8541 (update_description_from_input): New function, sets the description
8542 in database and UI (list) from what's in the field.
8543 (description_entry_changed): Set dirty flag.
8544 (description_entry_activate), (description_entry_lost_focus):
8545 If dirty flag set, update.
8546 (init_mime_capplet): Hook up text field signal handlers, make
8547 field editable, remove "No Description" case since putting status
8548 text in editable field is wrong.
8549 (nautilus_mime_type_capplet_update_info): Clear dirty flag
8550 when description is updated due to selection change.
8552 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
8553 (icon_selected_cb): Updated for name change.
8555 2001-02-16 Gene Z. Ragan <gzr@eazel.com>
8557 reviewed by: John Sullivan <sullivan@eazel.com>
8559 Fixed bug 6648, Able to add mime type even if "mime type"
8560 and description fields are blank.
8562 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8563 (validate_text_and_update_button),
8564 (nautilus_mime_type_capplet_show_new_mime_window):
8565 Set sensitive state of OK button based on content of
8566 text entry item in dialog box.
8568 * mime-type-capplet/nautilus-mime-type-capplet.c:
8569 (nautilus_mime_type_capplet_add_extension), (init_mime_capplet),
8571 Check for '\0' instead of ' ' to avoid empty strings
8573 2001-02-16 Rebecca Schulman <rebecka@eazel.com>
8574 Fixed bugzilla.eazel.com 6220, that incorrect
8575 file counts messed up the progress bar during FTP
8578 reviewed by: Gene Regan <gzr@eazel.com>
8580 * libgnomevfs/gnome-vfs-directory.c: (lookup_ancestor),
8581 (directory_visit_internal):
8582 Only rely on valid inodes to determine if a link is
8583 circular. Otherwise, use a hard limit for symbolic links
8584 of 256, which should be greater than or equal too all
8585 systems we'll work with.
8586 * libgnomevfs/gnome-vfs-xfer.c: Fix spelling error in a comment
8587 * modules/ftp-method.c: (ls_to_file_info):
8588 Don't rely on inode and device information being valid.
8591 2001-02-15 John Sullivan <sullivan@eazel.com>
8593 reviewed by: No one explicitly, but Darin said this change was
8596 Addressed part of bug 6666 (Nautilus crashes when you type "nfs://"
8597 in the location bar)
8599 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_matches):
8600 Added g_return_val_if_fails so it won't crash when fed a NULL
8601 file_info, or a file_info with a NULL name.
8603 2001-02-15 John Sullivan <sullivan@eazel.com>
8605 reviewed by: Gene Ragan <gzr@eazel.com>
8607 Fixed some problems and cleaned up some code
8608 that I ran into while investigating bug 5777 (Nautilus
8609 does not pick up MIME preferences right away)
8611 * libgnomevfs/gnome-vfs-mime-handlers.c:
8612 (gnome_vfs_mime_get_short_list_applications):
8613 Prune user's short list additions of nonexistent
8614 applications (already pruned other lists); removed
8615 mysteriously incorrect FIXME; deployed
8616 gnome_vfs_mime_type_is_supertype() one more place.
8618 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8619 (insert_item), (create_application_list_item):
8620 New helper functions used for dialogs showing lists
8621 of applications, extracted and simplified from existing
8623 (populate_default_applications_list): Use helper functions
8624 instead of repeating all the code here.
8625 (initialize_edit_applications_dialog): Swapped order of two
8626 lines for clarity & slight efficiency gain.
8627 (add_item_to_application_list): Use helper functions instead
8628 of repeating all the code here; select newly-added item.
8629 (show_new_application_window): Removed two initialized but
8630 never used variables.
8631 (show_edit_applications_dialog), (show_edit_components_dialog),
8632 (nautilus_mime_type_capplet_show_new_mime_window),
8633 (nautilus_mime_type_capplet_show_change_extension_window),
8634 (nautilus_mime_type_capplet_show_new_extension_window),
8635 (show_new_application_window), (show_edit_application_window):
8636 Cleaned up all callers of gnome_dialog_run; some were not
8637 handling the close box properly; others were just using more
8638 lines of code than needed; none were using GNOME_OK for clarity.
8640 * mime-type-capplet/nautilus-mime-type-capplet.c:
8641 (revert_mime_clicked): Improved some error message text a little.
8643 2001-02-15 John Sullivan <sullivan@eazel.com>
8645 reviewed by: Darin Adler <darin@eazel.com>
8647 Fixed bug 6660 (list of all apps for text/xml
8648 doesn't include text/* handlers)
8650 * libgnomevfs/gnome-vfs-mime.h:
8651 * libgnomevfs/gnome-vfs-mime.c:
8652 (gnome_vfs_mime_type_is_supertype): New public function.
8653 (extract_prefix_add_suffix): Utility function used
8654 by _get_supertype_from_mime_type, moved from another file.
8655 (gnome_vfs_get_supertype_from_mime_type): New public
8656 function (formerly private in mime-handlers.c under
8657 the name "mime_type_from_supertype".
8659 * libgnomevfs/gnome-vfs-mime-handlers.c:
8660 (gnome_vfs_mime_get_default_component),
8661 (gnome_vfs_mime_get_short_list_applications),
8662 (gnome_vfs_mime_get_short_list_components),
8663 (gnome_vfs_mime_get_all_components),
8664 (gnome_vfs_mime_component_list_free):
8665 Update for renaming; remove mime_type_from_supertype.
8667 * libgnomevfs/gnome-vfs-application-registry.c:
8668 (gnome_vfs_application_registry_get_applications):
8669 Use new functions to fix completely broken code to
8670 get supertype's list of apps.
8672 (add_application_to_mime_type_table),
8673 (remove_application_from_mime_type_table): Use
8674 new is_supertype function instead of using strstr.
8676 2001-02-14 Gene Z. Ragan <gzr@eazel.com>
8678 Fixed bug 6629, Default action icon disappears when switching
8679 from application->viewer->application
8681 Fixed bug 6630, Default action icon not drawn when changing
8682 the default application
8684 * mime-type-capplet/nautilus-mime-type-capplet.c:
8685 (init_mime_capplet), (update_mime_list_action):
8686 Call handy utility function to get custom or default
8687 action icon based on mime tpye and type of action.
8690 Remove some debugging cruft.
8692 2001-02-14 Gene Z. Ragan <gzr@eazel.com>
8694 Fixed bug 6570, Initial tab order in "Add application"
8697 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8698 (nautilus_mime_type_capplet_show_new_mime_window),
8699 (add_extension_clicked),
8700 (nautilus_mime_type_capplet_show_new_extension_window),
8701 (show_new_application_window), (show_edit_application_window):
8702 Set focus to proper widget in all of these functions.
8704 2001-02-13 Gene Z. Ragan <gzr@eazel.com>
8706 Fixed bug 6579, Clicking on a column for sorting performs
8707 descending sort first.
8709 * mime-type-capplet/nautilus-mime-type-capplet.c:
8710 (init_mime_capplet):
8711 Create a global array that tracks the initial first time click
8712 state of the columns.
8715 Check click state of column and decide initial sort mode based
8718 2001-02-13 Gene Z. Ragan <gzr@eazel.com>
8720 Fixed bug 6577, New mime type isn't highlighted after creation.
8722 * mime-type-capplet/nautilus-mime-type-capplet.c:
8723 (find_row_for_mime_type):
8724 Return index of row if mime type is found in list
8727 (init_mime_capplet):
8728 Call find_row_for_mime_type()
8730 (nautilus_mime_type_capplet_update_info), (add_mime_clicked):
8731 Sort, select and scroll to new mime type.
8733 2001-02-13 Ian McKellar <ian@eazel.com>
8735 * modules/http-method.c: (do_close):
8736 Added mime-sniffing to PUT to resolve bug 4102.
8738 2001-02-12 Don Melton <don@eazel.com>
8740 reviewed by: Maciej Stachowiak <mjs@eazel.com>
8742 * libgnomevfs/gnome-vfs-mime-magic.c:
8743 (gnome_vfs_sniff_buffer_looks_like_mp3):
8745 Fixed bug 5570 (bmp file sometimes appears as an mp3 file)
8747 Basically I re-wrote the entire function to be much smarter
8748 about detecting an MPEG audio header and it now also checks
8749 for the existence of an ID3 version 2 tag.
8751 2001-02-12 Gene Z. Ragan <gzr@eazel.com>
8753 Fixed bug 6447, "Change file extensions" erases all extensions
8755 * mime-type-capplet/nautilus-mime-type-capplet.c:
8756 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h:
8757 (nautilus_mime_type_capplet_show_change_extension_window):
8758 Add a variable to function that tells if returned list
8759 is to be used to replace existing extension mapping for
8762 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8763 (add_extension_clicked), (change_file_extensions_clicked):
8764 Do some sanity checking for empty or NULL new extensions
8766 2001-02-12 Gene Z. Ragan <gzr@eazel.com>
8768 Fixed bug 6471, wrong text in "add extension" dialog
8770 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8771 (nautilus_mime_type_capplet_show_new_extension_window):
8772 Update text using new language from Vera.
8774 2001-02-12 John Sullivan <sullivan@eazel.com>
8776 reviewed by: Gene Z. Ragan <gzr@eazel.com> (under protest,
8777 since Gene hates the use of "MIME")
8779 Changed all uses of "Mime" or "mime" in the UI to be
8780 "MIME". Also improved the wording for the "revert"
8781 dialog, though it still could use Verafication. Also,
8782 using "MIME" in the UI at all rather sucks. It would
8783 be nice if we could avoid this nerd terminology someday.
8785 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
8786 (initialize_edit_applications_dialog),
8787 (initialize_edit_components_dialog),
8788 (nautilus_mime_type_capplet_show_new_mime_window):
8789 * mime-type-capplet/nautilus-mime-type-capplet.c:
8790 (init_mime_capplet), (revert_mime_clicked),
8791 (create_mime_list_and_scroller):
8793 2001-02-08 Gene Z. Ragan <gzr@eazel.com>
8795 Fixed bug 6329, Typing gconf: and pressing ENTER in the
8796 navigation bar crashes Nautilus.
8798 * modules/gconf-method.c:
8800 Replace dangerous macro with a function that error checks.
8803 (set_stat_info_value), (do_open_directory), (do_read_directory),
8804 (do_get_file_info), (vfs_module_shutdown):
8807 2001-02-08 Robey Pointer <robey@eazel.com>
8809 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_get_volume_free_space):
8811 Fix build bustage (declare 'ret').
8813 2001-02-08 Michael K. Fleming <mfleming@eazel.com>
8815 Bug 6451: Copying file into folder with space in it fails with
8816 "out of space" error.
8818 gnome_vfs_get_volume_free_space was calling statfs() with escaped
8819 paths and returning the wrong error code.
8821 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_get_volume_free_space):
8823 2001-02-08 Ian McKellar <ian@eazel.com>
8825 reviewed by: Robey Pointer <robey@eazel.com>
8827 * libgnomevfs/gnome-vfs-parse-ls.c: (gnome_vfs_parse_ls_lga):
8828 Fixing bug 6214 - the ls parser now correctly handles filenames
8829 with spaces in them.
8831 === end of changes from gnome-vfs-1 branch ===
8833 2001-02-28 Gene Z. Ragan <gzr@eazel.com>
8835 reviewed by: Pavel Cisler <pavel@eazel.com>
8837 Fixed bug 7148, Flash files identified as mp3
8839 * data/mime/gnome-vfs-mime-magic:
8840 * data/mime/gnome-vfs.keys.in:
8841 * data/mime/gnome-vfs.mime:
8842 Add application/x-shockwave-flash information.
8844 2001-02-24 Marius Andreiana <mandreiana@yahoo.com>
8846 * configure.in: Added ro (Romanian) to ALL_LINGUAS.
8848 2001-02-16 Seth Nickell <snickell@stanford.edu>
8850 * modules/test-method.c: (translate_uri):
8852 Make test-method.c not bite ass on "test://"
8854 2001-02-13 Dan Winship <danw@ximian.com>
8856 * libgnomevfs/gnome-vfs-process.c (sigchld_handler): Initialize
8859 2001-02-07 Robin * Slomkowski <rslomkow@eazel.com>
8861 * configure.in: Changed version to 2.0
8862 FIRST COMMIT AFTER BRANCHING gnome-vfs-1
8864 2001-02-06 Pavel Cisler <pavel@eazel.com>
8866 reviewed by: Mike Fleming <mfleming@eazel.com>
8868 Fix 3451 (Loading a directory with a circular symbolic link
8869 causes the load to be interrupted)
8871 Fix 6221 (Nautilus shows only 6 of the 56 items in my home directory)
8873 * libgnomevfs/gnome-vfs-types.h:
8874 * modules/file-method.c: (get_stat_info),
8875 (get_stat_info_from_handle), (read_directory), (do_get_file_info),
8876 (do_get_file_info_from_handle):
8877 Make erors while obtaining stat info and mime type not interrupt
8879 Make do_get_file_info not give up as easily when dealing with
8882 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_empty_directories):
8883 Fix a problem where an error in directory emptying preflight or
8884 emptying itself would cause the operation to stop rather than
8885 continue with deleting the remaining items.
8887 2001-02-06 Gene Z. Ragan <gzr@eazel.com>
8889 Fixed bug 6258, Determine initial capplet sort column
8891 * mime-type-capplet/nautilus-mime-type-capplet.c:
8892 (init_mime_capplet):
8893 Sort based on first column in list.
8895 2001-02-06 Maciej Stachowiak <mjs@eazel.com>
8897 * Makefile.am, .cvsignore: Updated for new xml-i18n-tools.
8899 2001-02-05 Pavel Cisler <pavel@eazel.com>
8901 reviewed by: Seth Nickell <seth@eazel.com>
8903 Fix 5930 (Copy dialog often shows "1" as total number of
8904 fields in operation)
8905 Fix a ton of problems with the progress calculation.
8907 * libgnomevfs/gnome-vfs-xfer.c: (remove_file), (remove_directory),
8908 (count_each_file_size_one), (gnome_vfs_xfer_empty_directories),
8909 (gnome_vfs_xfer_delete_items), (gnome_vfs_xfer_uri_internal),
8910 (gnome_vfs_xfer_private):
8911 When removing during a copy conflict, do not update the progress.
8912 Store and retireve the preflight results when doing a conflict
8913 handling during copy.
8914 Properly calculate removed file size -- use a nominal per-file
8915 overhead rather than the file size.
8916 Properly calculate progress for files with zero or near-zero
8918 Fix numerous wrong uses of total_bytes_copied and bytes_total.
8921 Bump GnomeVFS version.
8923 2001-02-05 Gene Z. Ragan <gzr@eazel.com>
8925 Work done to improve the mime tpye capplet.
8926 Enable the capplet to be launched with a mime type.
8927 If a mime type is an argument, have the capplet scroll
8928 to that item in the list before the user begins interaction.
8930 * mime-type-capplet/nautilus-mime-type-capplet.c: (main),
8931 (list_move_vertical), (list_moveto), (list_reveal_row),
8932 (init_mime_capplet), (populate_mime_list):
8934 2001-02-05 Rebecca Schulman <rebecka@eazel.com>
8935 Fix problem that the mozilla view was the default for webdav
8936 directories (should be icon view) and that the music view was
8937 always first on the short list. The problem was that the default
8938 component for the supertype to the short list was first on the
8939 short list, instead of being after all of the regular mime type's
8940 short list components. We now only use the supertype's default
8941 if it is explicitly set by the user.
8943 reviewed by: Mike Fleming <mfleming@eazel.com>
8945 * libgnomevfs/gnome-vfs-mime-handlers.c:
8946 (gnome_vfs_mime_get_default_component):
8947 Only use the supertype's default if it is explicitly added
8948 by the user. Otherwise add the supertype shortlist components
8949 to the end of the short list.
8951 2001-02-05 Rebecca Schulman <rebecka@eazel.com>
8953 reviewed by: Maciej Stachowiak <mjs@eazel.com>
8955 * data/mime/gnome-vfs-mime-magic:
8956 Add bzip as a magic pattern
8957 * libgnomevfs/gnome-vfs-mime-handlers.c:
8958 (gnome_vfs_mime_get_default_component),
8959 (gnome_vfs_mime_get_short_list_components):
8960 Return short list components in order of
8961 their appearance on the short list rather than
8962 in alphabetical order
8964 2001-02-05 Michael K. Fleming <mfleming@eazel.com>
8966 * modules/http-method.c: (vfs_module_init):
8968 Bug 6303: GError was potentially being re-used after being free'd
8970 2001-02-03 Michael K. Fleming <mfleming@eazel.com>
8972 reviewed by: <pavel@eazel.com>
8974 Bug 6299: gnome_vfs_get_volume_free_space has never worked=
8976 But it works now, as cheesy as it is.
8978 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_get_volume_free_space):
8980 2001-02-03 Pavel Cisler <pavel@eazel.com>
8982 reviewed by: <delete if not using a buddy>
8984 * modules/http-method.c: (cache_check_directory),
8985 (vfs_module_init), (vfs_module_shutdown):
8986 Use an explicit mutex initializer instead of a static initializer to make
8987 things more portable.
8989 2001-02-03 Rolf Grossmann <grossman@securitas.net>
8991 reviewed by: Pavel Cisler <pavel@eazel.com>
8993 Make it build on FreeBSD.
8995 * modules/ftp-method.c:
8998 * modules/nfs-method.c: (nfs_clnt_call):
8999 #ifdef an unsupported define
9001 2001-02-03 Pavel Cisler <pavel@eazel.com>
9003 reviewed by: Mike Fleming <mfleming@eazel.com>
9005 Fix 3075 (gnome-vfs dumps core on FreeBSD 4.1-STABLE when you start
9007 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
9008 (gnome_vfs_async_job_map_init):
9009 * libgnomevfs-pthread/gnome-vfs-async-job-map.h:
9010 * libgnomevfs-pthread/gnome-vfs-pthread.c:
9011 (gnome_vfs_pthread_init), (gnome_vfs_pthread_recursive_mutex_init):
9012 * libgnomevfs-pthread/gnome-vfs-pthread.h:
9013 * libgnomevfs-pthread/gnome-vfs-thread-pool.c:
9014 (gnome_vfs_thread_pool_init):
9015 * libgnomevfs-pthread/gnome-vfs-thread-pool.h:
9016 Get rid of recursive mutex static initialization. Add an
9017 initializer call that is called during backend init.
9019 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9020 (pthread_gnome_vfs_async_cancel):
9021 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
9022 * libgnomevfs-pthread/gnome-vfs-job.c: (job_notify),
9023 (gnome_vfs_job_set), (gnome_vfs_job_new), (gnome_vfs_job_destroy),
9025 * libgnomevfs-pthread/gnome-vfs-job.h:
9026 Get rid of using "fast" pthread_mutex as a semaphore, use a real
9029 * libgnomevfs/gnome-vfs-xfer.c: (copy_file_data):
9030 Fix a bug with not respecting "Retry" properly.
9032 2001-02-02 Rebecca Schulman <rebecka@eazel.com>
9033 Fix bugs 6241 and 6171, that the default viewer
9034 was wrong for various types of files
9036 reviewed by: Gene Regan <gzr@eazel.com>
9038 * libgnomevfs/gnome-vfs-mime-handlers.c:
9039 (gnome_vfs_mime_get_short_list_components):
9040 Use the new oaf query that will preserve iid list
9041 order in the short list.
9042 Also remove a fixme for bug 1142 that has now been fixed.
9044 2001-02-02 Darin Adler <darin@eazel.com>
9046 reviewed by: Mike Fleming <mfleming@eazel.com>
9048 * libgnomevfs/gnome-vfs-result.h: Add include so you can include
9050 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_get_volume_free_space):
9051 Change "file" check to check for scheme == "file" instead of any
9052 scheme that starts with file. Also got rid of the case-sensitive
9053 version of "str_has_prefix" since the one case that was using it
9054 could use the case-insensitive one instead.
9056 2001-02-01 Ramiro Estrugo <ramiro@eazel.com>
9058 reviewed by: Maciej Stachowiak <mjs@eazel.com>
9060 * data/mime/gnome-vfs.keys.in:
9061 * doc/mime-data-specification.txt:
9062 * libgnomevfs/gnome-vfs-mime-handlers.c: (get_user_level):
9063 * test/test-mime-info.c: (main):
9064 Change 'hacker' to 'advanced' for the advanced user level so that
9065 the names used for storage match those used for display.
9067 2001-02-01 Ian McKellar <ian@eazel.com>
9069 reviewed by: Eskil Olsen <eskil@eazel.com>
9071 * modules/ftp-method.c: (do_path_command),
9072 (do_path_transfer_command):
9073 Decode path before doing operations.
9075 (do_open_directory):
9076 Removed debugging output.
9079 * test/test-sync-create.c: (main):
9080 Fixed bugs in test code.
9082 2001-01-31 Maciej Stachowiak <mjs@eazel.com>
9084 reviewed by: Rebecca Schulman <rebecka@eazel.com>
9086 * libgnomevfs/gnome-vfs-mime-handlers.c
9087 (gnome_vfs_mime_get_default_component): Remove FIXME 1142 (OAF
9088 queries don't precisely match those used in Nautilus), upon
9089 further review I decided this was OK.
9091 2001-01-31 Pavel Cisler <pavel@eazel.com>
9093 reviewed by: Gene Z. Ragan <gzr@eazel.com>
9095 Fix 5324 (Should get rid of stack-based GnomeVFSFileInfo)
9097 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9098 (pthread_gnome_vfs_async_set_file_info):
9099 * libgnomevfs-pthread/gnome-vfs-job.c:
9100 (dispatch_set_file_info_callback),
9101 (gnome_vfs_job_destroy_notify_result), (gnome_vfs_op_destroy),
9102 (execute_set_file_info):
9103 * libgnomevfs-pthread/gnome-vfs-job.h:
9104 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_ref),
9105 (gnome_vfs_file_info_unref), (gnome_vfs_file_info_clear):
9106 * libgnomevfs/gnome-vfs-file-info.h:
9107 * libgnomevfs/gnome-vfs-ops.c: (gnome_vfs_uri_exists):
9108 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory),
9109 (non_recursive_empty_directory), (gnome_vfs_visit_list),
9110 (handle_name_conflicts), (copy_directory), (copy_items),
9111 (gnome_vfs_xfer_delete_items_common):
9112 * test/test-info.c: (main):
9113 Get rid of gnome_vfs_file_info_init.
9114 Replace all instances of stack-based GnomeVFSFileInfo
9115 structures, replace all calls to gnome_vfs_file_info_init
9116 with gnome_vfs_file_info_new.
9117 Replace most calls to gnome_vfs_file_info_clear with
9118 gnome_vfs_file_info_unref.
9120 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_ref),
9121 (gnome_vfs_file_info_unref):
9122 Get rid of FILE_INFO_REFCOUNT_STACK.
9125 2001-01-30 John Sullivan <sullivan@eazel.com>
9127 reviewed by: Darin Adler <darin@eazel.com>
9129 Fixed bug 5842 ("file://home" converted to "home")
9131 Now "file://home" is left as "file://home". There's a
9132 related bug where "file://home" isn't recognized as
9133 an invalid URI, which I'll write up and fix separately.
9135 * libgnomevfs/gnome-vfs-utils.c:
9136 (gnome_vfs_get_local_path_from_uri):
9137 Only strip "file://" if uri starts with "file:///"
9139 * modules/file-method.c: (get_path_from_uri):
9140 Take out evil code that was prepending a "/" to file:
9141 URIs that were missing the initial "/".
9143 2001-01-30 Darin Adler <darin@eazel.com>
9145 reviewed by: John Sullivan <sullivan@eazel.com>
9147 * data/mime/gnome-vfs-mime-magic: Change magic so it recognizes
9148 Nautilus links with lower-case XML tags instead of upper-case.
9150 2001-01-30 Rebecca Schulman <rebecka@eazel.com>
9151 Removed all instances of "default_application_id"
9152 and "default_component_id" from the system
9153 gnome-vfs keys file, and fixed short list ordering
9154 where the current order would incorrectly determine the
9155 correct default application.
9156 Added documentation to the mime data specification about
9157 how exactly user and system configuration .keys files
9158 are used. We need to record this information about
9159 other mime data files as well.
9161 * data/mime/gnome-vfs.keys.in:
9162 * doc/mime-data-specification.txt:
9164 2001-01-29 Mike Fleming <mfleming@eazel.com>
9166 reviewed by: <pavel@eazel.com>
9168 Bug 5011: New versionable GnomeVFS module interface
9170 The GnomeVFSMethod now has a "method_table_size" as its first
9171 member, which should be set to sizeof (GnomeVFSMethod) so that
9172 GnomeVFS knows what version of the interface the method is using.
9174 Old modules will get compile-time warnings and will more than likely
9175 be not loaded at runtime. (If they do manage to load, they will break)
9177 Also: fixed cdda module to use new gconf HTTP proxy format
9179 * libgnomevfs/gnome-vfs-cancellable-ops.c:
9180 (gnome_vfs_open_uri_cancellable),
9181 (gnome_vfs_create_uri_cancellable),
9182 (gnome_vfs_get_file_info_uri_cancellable),
9183 (gnome_vfs_truncate_uri_cancellable),
9184 (gnome_vfs_make_directory_for_uri_cancellable),
9185 (gnome_vfs_find_directory_cancellable),
9186 (gnome_vfs_remove_directory_from_uri_cancellable),
9187 (gnome_vfs_unlink_from_uri_cancellable),
9188 (gnome_vfs_create_symbolic_link_cancellable),
9189 (gnome_vfs_move_uri_cancellable),
9190 (gnome_vfs_check_same_fs_uris_cancellable),
9191 (gnome_vfs_set_file_info_cancellable):
9192 * libgnomevfs/gnome-vfs-directory.c:
9193 * libgnomevfs/gnome-vfs-handle.c: (gnome_vfs_handle_new):
9194 * libgnomevfs/gnome-vfs-method.c: (load_module):
9195 * libgnomevfs/gnome-vfs-module.h:
9196 * libgnomevfs/gnome-vfs-private-types.h:
9197 * libgnomevfs/gnome-vfs-seekable.c: (gnome_vfs_seek_emulate):
9198 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_is_local):
9199 * modules/bzip2-method.c:
9200 * modules/cdda-method.c: (cdda_context_new):
9201 * modules/efs-method.c:
9202 * modules/extfs-method.c:
9203 * modules/file-method.c:
9204 * modules/ftp-method.c:
9205 * modules/gconf-method.c:
9206 * modules/gzip-method.c:
9207 * modules/http-method.c:
9208 * modules/nfs-method.c:
9209 * modules/pipe-method.c:
9210 * modules/test-method.c:
9211 * modules/translate-method.c: (vfs_module_init),
9212 (vfs_module_shutdown):
9214 2001-01-17 Mike Fleming <mfleming@eazel.com>
9216 * modules/http-method.c: (sig_gconf_value_changed),
9219 Changed gconf http proxy format
9223 /system/gnome-vfs/use-http-proxy (bool)
9224 /system/gnome-vfs/http-proxy (string; host:port)
9227 /system/gnome-vfs/use-http-proxy (bool)
9228 /system/gnome-vfs/http-proxy-host (string)
9229 /system/gnome-vfs/http-proxy-port (int)
9231 2001-01-29 Pavel Cisler <pavel@eazel.com>
9233 reviewed by: Gene Z. Ragan <gzr@eazel.com>
9235 Fixed 5781 (results of load_directory must be passed in chunks
9236 instead of the entire list)
9237 Fixed 1438 (use plain GList instead of GnomeVFSDirectoryList)
9239 * libgnomevfs/Makefile.am:
9240 Got rid of gnome-vfs-directory-list.c and gnome-vfs-directory-list.h
9242 * idl/gnome-vfs-slave.idl:
9243 * libgnomevfs-corba/gnome-vfs-async-ops.c:
9244 (corba_gnome_vfs_async_load_directory),
9245 (corba_gnome_vfs_async_load_directory_uri):
9246 * libgnomevfs-corba/gnome-vfs-slave-notify.c:
9247 (impl_Notify_load_directory):
9248 * libgnomevfs-corba/gnome-vfs-slave-process.h:
9249 * libgnomevfs-corba/gnome-vfs-slave.c: (load_directory),
9250 (impl_Request_load_directory):
9251 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9252 (async_load_directory), (pthread_gnome_vfs_async_load_directory),
9253 (pthread_gnome_vfs_async_load_directory_uri):
9254 * libgnomevfs-pthread/gnome-vfs-job.c:
9255 (dispatch_load_directory_callback),
9256 (gnome_vfs_job_destroy_notify_result), (gnome_vfs_op_destroy),
9257 (load_directory_details), (execute_load_directory):
9258 * libgnomevfs-pthread/gnome-vfs-job.h:
9259 * libgnomevfs/gnome-vfs-async-ops.h:
9260 * libgnomevfs/gnome-vfs-backend.c:
9261 (gnome_vfs_async_load_directory_uri),
9262 (gnome_vfs_async_load_directory):
9263 * libgnomevfs/gnome-vfs-directory-list.c:
9264 * libgnomevfs/gnome-vfs-directory-list.h:
9265 * libgnomevfs/gnome-vfs-directory.c: (load_from_handle),
9266 (gnome_vfs_directory_list_load):
9267 * libgnomevfs/gnome-vfs-directory.h:
9268 * libgnomevfs/gnome-vfs-file-info.c:
9269 * libgnomevfs/gnome-vfs-file-info.h:
9270 * libgnomevfs/gnome-vfs-types.h:
9271 * libgnomevfs/gnome-vfs.h:
9272 * test/gnome-file-selection/gnome-file-selection.c:
9273 (populate_callback), (start_populating):
9274 * test/test-async-cancel.c: (directory_load_callback),
9275 (directory_load_failed_callback), (test_load_directory_cancel),
9276 (test_load_directory_fail):
9277 * test/test-async-directory.c: (directory_load_callback), (main):
9278 * test/test-directory.c: (print_list), (main):
9279 * test/test-shell.c: (do_ls), (validate_path), (get_regexp_name):
9280 Switched all the users of GnomeVFSDirectoryList to use a GList
9281 instead. Got rid of gnome_vfs_load_directory_sorted. Got rif of
9282 sorting rules. Move gnome_vfs_directory_list_load to gnome-vfs-directory.c
9283 and change it to use a GList.
9285 2001-01-29 Rebecca Schulman <rebecka@eazel.com>
9286 Change the value of the "expects_uris" attribute
9287 of applications to have 3 possible values:
9288 "yes", "no", and "non-file". This change will
9289 allow applications to understand how to launch programs
9290 that expect local paths for local files, but uris
9291 for non-file locations.
9293 reviewed by: Darin Adler <darin@eazel.com>
9295 * data/mime/gnome-vfs.applications:
9296 Change expects_uris to "non-file" where appropriate
9297 (for now mpg123), and added supported_uri_schemes
9298 in places where "expects_uris" was "yes" but no
9299 supported uri schemes were listed. This information
9300 is not yet complete.
9302 * doc/mime-data-specification.txt: Remove the "[to be
9303 implemented]" tag from fields that are now fully implemented
9304 (supported_uri_schemes and expects_uris)
9306 * libgnomevfs/gnome-vfs-mime-handlers.h:
9307 * libgnomevfs/gnome-vfs-application-registry.h:
9308 * libgnomevfs/gnome-vfs-application-registry.c: (application_new),
9309 (value_looks_true), (get_bool_value), (application_add_key),
9310 (gnome_vfs_application_registry_get_mime_application),
9311 (gnome_vfs_application_registry_save_mime_application):
9312 Parse, set and get the new "expects_uris"
9313 attribute, and represent its set of possible values using
9314 an enum, rather than a gboolean.
9316 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
9317 (show_new_application_window), (show_edit_application_window):
9318 Add the right bug number to fixmes about updates need in the capplet
9319 to reflect the new application attributes
9321 * test/test-mime-handlers.c:
9322 (format_mime_application_argument_type_for_display),
9323 (print_application):
9324 Print the "expects_uris" attribute as part of the test
9325 program for application information parsing.
9327 2001-01-29 Gene Z. Ragan <gzr@eazel.com>
9329 Fixed bug 5847, MIME type capplet alphabetical order case sensitive
9331 * mime-type-capplet/nautilus-mime-type-capplet.c:
9332 (sort_case_insensitive), (column_clicked),
9333 (create_mime_list_and_scroller):
9334 Create a sort routine that is not case sensitive.
9336 2001-01-29 Rebecca Schulman <rebecka@eazel.com>
9338 * test/test-mime-handlers.c: (print_application):
9339 Remove changes that won't work until the new
9340 type GnomeVFSMimeApplicationArgumentType is added.
9342 2001-01-29 Rebecca Schulman <rebecka@eazel.com>
9343 Add new test output, first to debug the
9344 mime info test, that fails, and second
9345 to add a descrption test to the mime handlers
9346 test. The mime info test needs to
9347 be updated so that it works independent of
9350 * test/test-mime-info.c: (main):
9351 * test/test-mime-handlers.c:
9352 (format_mime_application_argument_type_for_display),
9353 (print_application), (main):
9355 2001-01-29 Robin * Slomkowski <rslomkow@eazel.com>
9357 * configure.in: upped version to 0.5.0
9359 2001-01-27 Robin * Slomkowski <rslomkow@eazel.com>
9361 * Makefile.am: added xml-i18n files to EXTRA_DISTS
9363 2001-01-26 Rebecca Schulman <rebecka@eazel.com>
9364 Add support for the "supported_uri_schemes"
9365 attributes in the mime applications file,
9366 and changed can_open_uris to "expects_uris"
9367 because this attribute is more about
9368 the way arguments should be specified than
9369 about its capabilities of understanding
9371 The supported uri schemes attributes is
9372 optional, and if it is not included, the
9373 value is assumed to be file.
9375 reviewed by: Pavel Cisler <pavel@eazel.com>
9377 * libgnomevfs/gnome-vfs-application-registry.h:
9378 Add the new function
9379 gnome_vfs_application_registry_supports_uri_scheme to the
9382 * libgnomevfs/gnome-vfs-application-registry.c: (application_new),
9383 (add_application_to_mime_type_table),
9384 (add_mime_type_to_application),
9385 (add_supported_uri_scheme_to_application),
9386 (remove_application_from_mime_type_table),
9387 (remove_mime_type_for_application),
9388 (supported_uri_scheme_list_copy),
9389 (gnome_vfs_application_registry_supports_uri_scheme),
9390 (gnome_vfs_application_registry_supports_mime_type),
9391 (gnome_vfs_application_registry_add_mime_type),
9392 (gnome_vfs_application_registry_remove_mime_type),
9393 Add supported uri schemes functions to complement
9394 the current mime type functions
9395 and refactor the mime_type functions to share code with
9396 the new supported_uri_schemes functions where
9398 (application_clear_mime_types),
9399 (application_add_key),
9400 Add ability to parse the supported_uri_schemes attribute
9401 (gnome_vfs_application_registry_get_mime_application),
9402 (gnome_vfs_application_registry_save_mime_application):
9403 Add supported_uri_schemes to these functions
9405 * libgnomevfs/gnome-vfs-mime-handlers.h:
9406 * libgnomevfs/gnome-vfs-mime-handlers.c:
9407 (gnome_vfs_mime_get_short_list_applications),
9408 (gnome_vfs_mime_application_copy),
9409 (gnome_vfs_mime_application_free),
9411 Add supported_uri_schemes to the MimeApplication
9414 * data/mime/gnome-vfs.applications:
9415 Add some new "supported_uri_schemes".
9416 What I have added is not complete.
9417 * doc/mime-data-specification.txt:
9418 Add information about how user files can augment, but
9419 not replace information about applications' accepted mime
9420 types and supported uri schemes. Add FIXMEs about
9421 how this isn't clearly correct.
9423 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
9424 (add_or_update_application), (show_new_application_window),
9425 (show_edit_application_window):
9426 Change can_open_uris to "Expects URIs"
9428 * test/test-mime-handlers-set.c: (main):
9429 * test/test-mime-handlers.c: (append_comma_and_scheme),
9430 (format_supported_uri_schemes_for_display), (print_application):
9431 Update tests, by adding new attribute
9433 2001-01-26 Seth Nickell <seth@eazel.com>
9435 reviewed by: Gene Z. Ragan <gzr@eazel.com>
9437 * modules/efs-method.h:
9438 * modules/file-method.h:
9439 Fix messed up header guards.
9441 2001-01-25 Pavel Cisler <pavel@eazel.com>
9443 reviewed by: Gene Z. Ragan <gzr@eazel.com>
9445 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_private):
9446 Make new folder operation call GNOME_VFS_XFER_PHASE_COMPLETED like
9447 the other file operations to make it easier for callers to clean
9451 2001-01-25 Darin Adler <darin@eazel.com>
9453 * test/test-uri.c: (main): Added some tests to
9454 help demonstrate aspects of bug 6022.
9456 2001-01-24 Rebecca Schulman <rebecka@eazel.com>
9458 * doc/mime-data-specification.txt:
9459 Add documentation about new features we
9460 plan to add for 1.0. Most of them
9461 were already in the document, but I've
9462 also cleaned it up and added a new
9463 possible feature addition for the future
9464 that takes care of a few of our design
9465 concerns: the "handled_uri_schemes"
9466 attribute that will list uri schemes
9467 that an application can handle regardless of
9468 mime types. This will allow applications
9469 to accept uris that are not necessarily
9470 understood by gnome-vfs
9472 2001-01-22 Darin Adler <darin@eazel.com>
9474 * check-mime.pl: Added lots of white space checks.
9476 2001-01-22 Darin Adler <darin@eazel.com>
9478 * check-mime.pl: Added check for i-regular.
9480 2001-01-22 Rebecca Schulman <rebecka@eazel.com>
9482 Fixed bugzilla.eazel.com bug 5498 about
9483 symbolic links across file systems caused
9484 copies instead of drags in nautilus.
9485 This change makes the order uris are
9486 passed to check_same_fs important.
9487 The first uri is now the "source
9488 uri," and the second is the "target uri."
9490 reviewed by: Pavel Cisler <pavel@eazel.com>
9492 * libgnomevfs/gnome-vfs-ops.h:
9493 Change the argument names of check_same_fs to
9494 reflect the new argument names
9495 * modules/file-method.c: (do_check_same_fs):
9496 Do a stat on the "target uri" but an lstat
9498 * doc/mime-data-specification.txt:
9499 Added bug number references to the
9500 problems that we list in the specification
9502 2001-01-20 Pavel Cisler <pavel@eazel.com>
9504 reviewed by: Rebecca Schulman <rebecka@eazel.com>
9506 Work on making Search cancellable.
9508 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9509 (pthread_gnome_vfs_async_cancel), (gnome_vfs_job_cancel):
9510 Move the job cancellation outside the job->access_lock to avoid
9511 having to have the load_directory call completely finish before
9512 cancellation takes effect. Move the setting of the cancelled
9513 flag outside gnome_vfs_job_cancel and into the access_lock so that
9514 cancellation of the job and cancellation of the callbacks is atomic.
9516 * libgnomevfs/gnome-vfs-cancellable-ops.h:
9517 * libgnomevfs/gnome-vfs-directory.c:
9518 (gnome_vfs_directory_open_from_uri_cancellable),
9519 (gnome_vfs_directory_read_next_cancellable):
9520 Add new cancellable versions of gnome_vfs_directory_open and
9521 gnome_vfs_directory_read_next.
9523 * libgnomevfs-pthread/gnome-vfs-job.c:
9524 (execute_load_directory_not_sorted),
9525 Use the new cancellable open and read_next calls in
9526 execute_load_directory_not_sorted. Pass in the cancellation context.
9528 2001-01-19 Darin Adler <darin@eazel.com>
9530 * check-mime.pl: Update so it works with the new keys.in file.
9532 2001-01-19 Pavel Cisler <pavel@eazel.com>
9534 reviewed by: Michael Engber <engber@eazel.com>
9536 Fix 1200: count_items_and_size needs to deal with errors.
9537 Fix 4577: File copying that fills a partition will cause an unescapable
9538 loop of error dialogs.
9539 Fix 5518: Nautilus hits assert in build_error_string during some
9540 large copy operation.
9542 * libgnomevfs/gnome-vfs-xfer.c: (handle_name_conflicts),
9543 (copy_file_data), (gnome_vfs_xfer_delete_items),
9544 (gnome_vfs_xfer_uri_internal):
9545 Make copy loop in copy_file_data properly bail when an error happens
9546 and retry is not requested.
9547 Make count_item_and_size ignore any errors except for cancellations of
9548 the copy -- we will deal with all the errors nicely either in the other
9549 parts of the preflight or during the copy itself.
9550 Pass in the target directory uri to the error handling code that reports
9551 that we have no space on the destination.
9554 Add some more comments.
9556 2001-01-19 Darin Adler <darin@eazel.com>
9558 reviewed by: John Sullivan <sullivan@eazel.com>
9560 Fix bug 5816 (Clicking "Refresh" in View as Image crashes
9561 Nautilus) by getting rid of a "free non-malloc'd memory" problem.
9563 * libgnomevfs/gnome-vfs-mime-handlers.c:
9564 (gnome_vfs_mime_get_all_applications): Fixed problem where the
9565 prune function was freeing application IDs that we don't own.
9566 (prune_ids_for_nonexistent_applications): Used g_list_free_1 for
9567 clarity. The old code used g_list_free, which will also work,
9568 since the removed node is a list of length 1.
9570 2001-01-19 Darin Adler <darin@eazel.com>
9572 reviewed by: John Sullivan <sullivan@eazel.com>
9574 * .cvsignore: Ignore the xml-i18n-tools files.
9575 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
9576 (callback_map_cancel_one), (gnome_vfs_async_job_cancel_callbacks):
9577 Use %u instead of %d to format unsigned ints.
9578 * libgnomevfs/gnome-vfs-process.c: (gnome_vfs_process_init): Take
9579 advantage of defaults for the hash and key comparison functions.
9580 * test/gnome-file-selection/gicon.c: (gicon_init): Take advantage
9581 of defaults for the hash and key comparison functions.
9583 2001-01-19 Pavel Cisler <pavel@eazel.com>
9585 reviewed by: Ramiro Estrugo <ramiro@eazel.com>
9587 Fix 5430: Duplicate a link -> Nautilus won't display without refresh.
9589 * libgnomevfs/gnome-vfs-xfer.c: (copy_symlink), (copy_directory),
9591 Replaced a call to gnome_vfs_create_link to a new copy_symlink call
9592 that properly updates progress and sends notifications about the
9595 2001-01-18 Kenneth Christiansen <kenneth@gnu.org>
9597 * configure.in: Added AM_PROG_XML_I18N_TOOLS to support
9598 my changes to the i18n system. Requires cvs release of
9601 2001-01-18 John Sullivan <sullivan@eazel.com>
9603 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_expand_initial_tilde):
9604 Made this new function never return NULL, after discussing with
9605 Darin. Now it just returns (a copy of) the original path if it
9606 can't expand ~some_user_name/xxx.
9608 2001-01-18 Pavel Cisler <pavel@eazel.com>
9610 * libgnomevfs/gnome-vfs-directory-list.c:
9611 (gnome_vfs_directory_list_new):
9612 Get rid of an unused field.
9614 2001-01-18 Pavel Cisler <pavel@eazel.com>
9616 Part of fix to 4221 (Pressing Cancel button does not cancel)
9617 * libgnomevfs-pthread/gnome-vfs-job.c: (job_notify),
9618 (dispatch_xfer_callback), (dispatch_sync_job_callback):
9619 Make the xfer job notify callback return the same result
9620 when it gets cancelled by gnome_vfs_async_cancel as if
9621 the callback requested a cancellation.
9623 * libgnomevfs/gnome-vfs-xfer.c: (call_progress),
9624 (call_progress_with_current_names), (call_progress_uri),
9625 (call_progress_with_uris_often), (remove_file), (empty_directory),
9627 Fixed a lot of white space.
9629 2001-01-18 Mike Fleming <mfleming@eazel.com>
9631 reviewed by: Ramiro Estrugo <ramiro@eazel.com>
9633 * modules/http-method.c: (sig_gconf_value_changed),
9635 Proxy preferences are now split into host and port rather than
9638 2001-01-17 Pavel Cisler <pavel@eazel.com>
9640 * test/test-async-cancel.c: (test_load_directory_cancel),
9641 (test_find_directory_callback), (test_find_directory), (main):
9642 Add more async tests.
9644 2001-01-17 Pavel Cisler <pavel@eazel.com>
9646 reviewed by: Rebecca Schulman <rebecka@eazel.com>
9648 Fix 5732 (Cancelling a File Copy dialog crashes Nautilus)
9649 * libgnomevfs-pthread/gnome-vfs-job.c: (job_notify):
9650 Fix a deadlock and a crash when xfer notify callback gets called
9651 repeatedly after the copy operation was cancelled (a separate
9654 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
9655 (gnome_vfs_async_job_cancel_callbacks):
9656 Fix a debug build problem.
9658 * libgnomevfs-pthread/gnome-vfs-job.h:
9659 Removed an unused field.
9661 2001-01-17 John Sullivan <sullivan@eazel.com>
9663 reviewed by: Rebecca Schulman <rebecka@eazel.com>
9665 Fixed problems that were part of bug 5581 (Can't make
9666 StarOffice the default application for file types). There
9667 were three problems, of which two are now fixed:
9668 (1) Installing StarOffice (at least using Sun's installer)
9669 doesn't add its directory to $PATH, and it isn't installed
9670 in a directory already in $PATH. This is not fixed.
9671 (2) Applications not in $PATH were not stripped from the
9672 complete list, but should be since they can't be used (the
9673 same reason they are stripped from the short list and
9674 default). This is fixed.
9675 (3) The code that checked whether applications were in $PATH
9676 didn't handle paths starting with ~. This is fixed.
9678 * libgnomevfs/gnome-vfs-utils.h:
9679 * libgnomevfs/gnome-vfs-utils.c:
9680 (gnome_vfs_expand_initial_tilde): Function moved here and
9681 renamed from expand_tilde in nautilus-file-utilities.c. Next
9682 I'll make Nautilus use this function.
9684 * libgnomevfs/gnome-vfs-mime-handlers.c:
9685 (gnome_vfs_mime_get_all_applications): Prune nonexistent
9686 applications (including ones not in the path) from here
9687 also, since they can't be used by Nautilus.
9688 (executable_in_path): Handle parts of $PATH that start with ~
9690 2001-01-17 Ian McKellar <ian@eazel.com>
9692 * test/test-dirop.c: (main):
9693 Allow the initial permissions for a directory to be
9694 specified on the test tool command line.
9696 2001-01-17 Pavel Cisler <pavel@eazel.com>
9698 reviewed by: Darin Adler <darin@eazel.com>
9700 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9701 (pthread_gnome_vfs_async_cancel):
9702 Fix a typo (g_mutex_lock->g_mutex_unlock) that caused a race
9703 condition where async callbacks could have been scheduled after
9706 * libgnomevfs-pthread/gnome-vfs-job.c:
9707 (execute_load_directory_not_sorted):
9710 2001-01-16 Pavel Cisler <pavel@eazel.com>
9712 * libgnomevfs-pthread/gnome-vfs-job.c:
9713 (dispatch_load_directory_callback),
9714 (gnome_vfs_shared_directory_list_unref),
9715 (execute_load_directory_not_sorted):
9716 Fix several crashes when load directory hits an error and ends
9717 up with an empty directory list.
9719 * test/test-async-cancel.c: (directory_load_failed_callback),
9720 (test_load_directory_fail), (main):
9721 Add a test to the test rig that catches the bug I fixed.
9724 2001-01-16 Seth Nickell <seth@eazel.com>
9726 reviewed by: Pavel Cisler <pavel@eazel.com>
9728 * libgnomevfs/gnome-vfs-application-registry.c: (get_keys_foreach),
9729 (gnome_vfs_application_registry_get_applications):
9730 * libgnomevfs/gnome-vfs-mime-info.c: (mime_list_sort):
9732 Add casts to strcmp's performed on gpointers so they will
9733 not generate warnings.
9735 2001-01-16 Pavel Cisler <pavel@eazel.com>
9737 reviewed by: Darin Adler <darin@eazel.com>
9739 Fix 5399: Callbacks need a better way to find out if they are still needed.
9740 Fix 5401: Decouple async jobs and callbacks.
9741 Fix 5402: DGnomeVFSAsyncJob cleanup needs to be simplified.
9742 Fix 5677: File copy operation crashes Nautilus.
9743 Fix 1129: Storage leak while cancelling an async operation.
9745 * libgnomevfs-pthread/Makefile.am:
9746 * libgnomevfs-pthread/gnome-vfs-async-job-map.c:
9747 (gnome_vfs_async_job_map_get_job),
9748 (gnome_vfs_async_job_map_add_job),
9749 (gnome_vfs_async_job_map_remove_job),
9750 (gnome_vfs_async_job_map_destroy), (gnome_vfs_async_job_completed),
9751 (gnome_vfs_async_job_map_shutdown), (gnome_vfs_async_job_map_lock),
9752 (gnome_vfs_async_job_map_unlock),
9753 (gnome_vfs_async_job_map_assert_locked),
9754 (gnome_vfs_async_job_callback_valid),
9755 (gnome_vfs_async_job_add_callback),
9756 (gnome_vfs_async_job_remove_callback), (callback_map_cancel_one),
9757 (gnome_vfs_async_job_cancel_callbacks),
9758 (async_job_callback_map_destroy):
9759 * libgnomevfs-pthread/gnome-vfs-async-job-map.h:
9760 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9761 Move gnome_vfs_async_job_map calls to their new file.
9762 Add a async job callback map.
9763 Switch to using a static recursive mutext for locking the job map.
9764 Add support for cancelling callbacks.
9767 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
9768 (pthread_gnome_vfs_async_cancel): Handle cancelling of
9769 both the job and it's callbacks.
9771 (async_open_as_channel), (async_create),
9772 (pthread_gnome_vfs_async_create_as_channel),
9773 (pthread_gnome_vfs_async_close), (pthread_gnome_vfs_async_read),
9774 (pthread_gnome_vfs_async_write),
9775 (pthread_gnome_vfs_async_create_symbolic_link),
9776 (pthread_gnome_vfs_async_get_file_info),
9777 (pthread_gnome_vfs_async_set_file_info),
9778 (pthread_gnome_vfs_async_find_directory), (copy_sort_rules),
9779 (async_load_directory), (pthread_gnome_vfs_async_xfer),
9780 (pthread_gnome_vfs_async_add_status_callback),
9781 (pthread_gnome_vfs_async_remove_status_callback):
9782 gnome_vfs_job_new now gets called with parameters for the op.
9783 Cache the job handle before starting the job to avoid accessing
9784 the job structure after it has been unlocked and possibly deleted.
9785 Get rid of gnome_vfs_async_job_expired, use gnome_vfs_async_job_completed
9788 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine),
9789 (gnome_vfs_job_create_slave):
9790 Redo the way jobs are destroyed after they complete. Pass the
9791 job handle instead of the job structure itself to the thread_routine
9792 and check for the job being invalid by the time the thread_routine
9795 * libgnomevfs-pthread/gnome-vfs-job.h:
9796 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_complete),
9797 (job_oneway_notify), (job_notify), (dispatch_open_callback),
9798 (dispatch_create_callback), (dispatch_open_as_channel_callback),
9799 (dispatch_create_as_channel_callback), (dispatch_close_callback),
9800 (dispatch_read_callback), (dispatch_write_callback),
9801 (dispatch_load_directory_callback),
9802 (dispatch_get_file_info_callback),
9803 (dispatch_find_directory_callback),
9804 (dispatch_set_file_info_callback), (dispatch_xfer_callback),
9805 (empty_close_callback), (handle_cancelled_open),
9806 (free_get_file_info_notify_result),
9807 (free_find_directory_notify_result),
9808 (gnome_vfs_job_destroy_notify_result),
9809 (dispatch_sync_job_callback), (dispatch_job_callback),
9810 (gnome_vfs_job_set), (gnome_vfs_job_new), (gnome_vfs_job_destroy),
9811 (gnome_vfs_op_destroy), (gnome_vfs_job_go), (serve_channel_read),
9812 (execute_open), (execute_open_as_channel), (execute_create),
9813 (execute_create_symbolic_link), (execute_create_as_channel),
9814 (execute_close), (execute_read), (execute_write),
9815 (execute_load_directory_not_sorted),
9816 (execute_load_directory_sorted), (execute_get_file_info),
9817 (execute_set_file_info), (execute_find_directory),
9818 (execute_load_directory), (xfer_callback), (execute_xfer),
9819 (gnome_vfs_job_execute), (gnome_vfs_job_cancel):
9820 Remove most of the synchronization between the async thread and the
9821 callbacks, now that the two share no state.
9822 Add a mechanism to figure out if a job is to expire after completing the
9824 Switch to using g_idle_add for scheduling calbacks instead of g_io_channel.
9825 Get rid of tons of casts in the notify callback routines.
9826 dispatch_job_callback now deals with notify_results that belong to operations
9827 that have been canceled while the notification was being dispatched.
9828 Handle job cancellation in execute_xfer.
9830 * test/test-async-cancel.c: (make_asserts_break),
9831 (directory_load_callback), (test_open_read_close),
9832 (test_open_close), (my_yield), (test_load_directory_cancel),
9836 * libgnomevfs-pthread/gnome-vfs-thread-pool.c:
9837 (gnome_vfs_thread_pool_wait_for_work):
9838 Augument profiler results a bit.
9840 * libgnomevfs/gnome-vfs-directory-list.c:
9843 2001-01-15 Michael K. Fleming <mfleming@eazel.com>
9845 reviewed by: <pavel@eazel.com>
9847 * libgnomevfs/gnome-vfs-xfer.c: (move_items),
9848 (gnome_vfs_xfer_uri_internal):
9850 More fun with bug 5250. Same-filesystem moves that failed from an error
9851 during a move would be deleted even if the user "skipped" them.
9853 move_items no longer gives progress callback GNOME_VFS_XFER_PHASE_MOVING
9854 for URI's that are skipped (prevents faulty copying of metadata)
9856 gnome_vfs_xfer_uri_internal returns an error if both move and link conditions
9857 are indicated (obvious contradiction)
9859 GNOME_VFS_XFER_PHASE_CLEANUP and associated item deletion no longer occurs
9860 for move or link case. I confirmed that this didn't mess up the Nautilus
9861 sync_transfer_callback metadata copying and update mechanism.
9864 2001-01-12 Gene Z. Ragan <gzr@eazel.com>
9866 Fixed bug 3229, Clean up appearance of File Types and Programs capplet
9868 * mime-type-capplet/nautilus-mime-type-capplet.c:
9869 (init_mime_capplet):
9870 Adjust positions of widgets for better look and feel.
9872 2001-01-12 Gene Z. Ragan <gzr@eazel.com>
9874 Fix bug 4797, user can choose an icon anywhere on his filesystem
9875 to associate it to a given mime type but the icon will not be used.
9877 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
9878 (entry_changed), (ientry_destroy), (browse_clicked),
9879 (nautilus_mime_type_show_icon_selection),
9880 (nautilus_mime_type_icon_entry_init),
9881 (nautilus_mime_type_icon_entry_set_pixmap_subdir):
9882 Remove ability to navigate to directories outside of the
9885 2001-01-09 Pavel Cisler <pavel@eazel.com>
9887 * libgnomevfs-pthread/gnome-vfs-job.h:
9888 Oops, turn off spew that I enabled and checked in by accident.
9890 2001-01-09 Pavel Cisler <pavel@eazel.com>
9892 reviewed by: Darin Adler <darin@eazel.com>
9894 Fixed 5398 (Async callbacks need to be passed over ownership of data)
9896 * libgnomevfs-pthread/gnome-vfs-async-ops.c: (async_open),
9897 (async_open_as_channel), (async_create),
9898 (pthread_gnome_vfs_async_create_as_channel),
9899 (pthread_gnome_vfs_async_read), (pthread_gnome_vfs_async_write),
9900 (pthread_gnome_vfs_async_create_symbolic_link),
9901 (pthread_gnome_vfs_async_get_file_info),
9902 (pthread_gnome_vfs_async_set_file_info),
9903 (pthread_gnome_vfs_async_find_directory), (async_load_directory),
9904 (pthread_gnome_vfs_async_xfer):
9905 * libgnomevfs-pthread/gnome-vfs-job.c: (wakeup),
9906 (job_oneway_notify), (job_notify), (job_oneway_notify_and_close),
9907 (job_notify_and_close), (dispatch_open_callback),
9908 (dispatch_create_callback), (dispatch_open_as_channel_callback),
9909 (dispatch_create_as_channel_callback), (dispatch_close_callback),
9910 (dispatch_read_callback), (dispatch_write_callback),
9911 (dispatch_load_directory_callback),
9912 (free_get_file_info_notify_result),
9913 (dispatch_get_file_info_callback),
9914 (free_find_directory_notify_result),
9915 (dispatch_find_directory_callback),
9916 (dispatch_set_file_info_callback), (dispatch_xfer_callback),
9917 (gnome_vfs_job_destroy_notify_result), (dispatch_job_callback),
9918 (gnome_vfs_job_destroy), (gnome_vfs_op_destroy),
9919 (serve_channel_read), (serve_channel_write), (execute_open),
9920 (execute_open_as_channel), (execute_create),
9921 (execute_create_symbolic_link), (execute_create_as_channel),
9922 (execute_close), (execute_read), (execute_write),
9923 (execute_load_directory_not_sorted),
9924 (execute_load_directory_sorted), (execute_get_file_info),
9925 (execute_set_file_info), (execute_find_directory),
9926 (execute_load_directory), (xfer_callback), (execute_xfer):
9927 * libgnomevfs-pthread/gnome-vfs-job.h:
9928 Allocate a new struct for notification results for all async callbacks
9929 except for xfer. Pass the notification results as data when waking up
9930 the notification callback. Delete the notification results once the
9931 callback is done. Remove notification result fields from the different
9934 2001-01-09 Aaron Brick <aaron@eazel.com>
9936 * added MIME description guidelines in
9937 doc/mime-descriptions-guidelines.txt, superceding old rules
9938 in data/mime/gnome-vfs.keys.
9940 * referred to the new file twice in mime-data-specification.txt
9941 and in the comments of data/mime/gnome-vfs.keys.
9943 2001-01-08 Ian McKellar <ian@eazel.com>
9945 reviewed by: mfleming@eazel.com
9947 * modules/ftp-method.h:
9948 * modules/ftp-method.c: (ftp_response_to_vfs_result),
9949 (get_response), (do_basic_command), (do_path_command_completely),
9950 (ftp_connection_release), (do_open), (do_make_directory),
9951 (do_remove_directory), (do_move), (do_unlink):
9952 The meaning of an FTP 550 response depends on what call was made.
9953 The GnomeVFSError to be returned for a 550 may now be specified
9956 (ftp_connection_create), (ftp_connection_destroy),
9957 (internal_get_file_info), (do_open_directory):
9958 Store the response of SYST (operating system) for each connection.
9959 Don't request server-side symlink expansion for MacOS servers,
9960 because they get confused.
9962 (do_read_directory):
9963 Unset the permissions bit of file info valid fields.
9965 2001-01-08 Gene Z. Ragan <gzr@eazel.com>
9967 Fixed bug 3041, "Action" column text is confusing
9969 * mime-type-capplet/nautilus-mime-type-capplet.c:
9970 (add_mime_clicked), (update_mime_list_action),
9971 (populate_mime_list), (create_mime_list_and_scroller):
9972 Made changes according to input from John and Arlo.
9973 Changed "Action" column to "Default Action."
9974 Changed action text when a viewer is specified to
9975 "View as" preprended to the action type.
9977 2001-01-08 Mike Fleming <mfleming@eazel.com>
9979 reviewed by: pavel@eazel.com
9981 * libgnomevfs/gnome-vfs-xfer.c: (xfer_create_target), (copy_file),
9982 (copy_directory), (copy_items), (gnome_vfs_xfer_uri_internal):
9984 Bug 5250 (Hitting "skip" during a move operation across filesystems
9985 causes skipped file not to be copied but still to be deleted).
9987 The new behaviour builds a list of successfully copied URI's. It
9988 is these files that are deleted, not all of the original source URI's.
9990 Also: fix bug where files and directories copied from HTTP DAV server
9991 to local filesystem would have permissions of 000 set. Now, files
9992 and directories are left with permissions set according to the user's
9995 2001-01-05 John Sullivan <sullivan@eazel.com>
9997 reviewed by: Darin Adler <darin@eazel.com>
9999 Fixed bug 5337 (MIME code hits disk every few seconds
10000 to check for changed data)
10002 I tried a gconf-based approach but was thwarted (see
10003 bug 5460). So I just removed the polling code that hits
10004 the disk. This leaves behind fairly minor bug 5459. Oh
10007 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_init),
10008 (reload_if_needed_idle_function):
10009 Removed the polling mechanism for checking whether data on
10011 (gnome_vfs_mime_info_reload): Added numbered FIXME comment
10012 about bugs 5459 and 5460.
10014 * libgnomevfs/gnome-vfs-mime-monitor.c:
10015 (gnome_vfs_mime_monitor_emit_data_changed):
10016 Removed debugging spam accidentally left in earlier.
10018 * modules/http-method.c: (vfs_module_init): Removed FIXME
10019 comment for bug that I fixed recently.
10021 2001-01-05 Rebecca Schulman <rebecka@eazel.com>
10023 reviewed by: Pavel Cisler <pavel@eazel.com>
10025 * doc/mime-data-specification.txt:
10026 Add attribution to Darin Adler for his work on the
10028 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
10029 (gnome_vfs_async_job_map_shutdown):
10030 Remove a bogus assert that crashed when exiting
10031 if no async calls had been made.
10033 2001-01-03 Pavel Cisler <pavel@eazel.com>
10035 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
10037 Fix a problem in my previous change -- in a certain sequence the
10038 job would expire and never call the last callback which in turn
10039 would cause the job spawner to try to cancel it or otherwise
10042 2001-01-03 Pavel Cisler <pavel@eazel.com>
10044 reviewed by: Darin Adler <darin@eazel.com>
10046 Fix bug 5397 (use unique job IDs instead of GnomeVFSAsyncHandles)
10048 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
10049 * libgnomevfs-pthread/gnome-vfs-job.h:
10050 * libgnomevfs-pthread/gnome-vfs-job.c: (dispatch_open_callback),
10051 (dispatch_create_callback), (dispatch_open_as_channel_callback),
10052 (dispatch_create_as_channel_callback), (dispatch_close_callback),
10053 (dispatch_read_callback), (dispatch_write_callback),
10054 (dispatch_load_directory_callback),
10055 (dispatch_get_file_info_callback),
10056 (dispatch_find_directory_callback),
10057 (dispatch_set_file_info_callback), (dispatch_xfer_callback),
10058 (gnome_vfs_job_new):
10059 (gnome_vfs_async_job_map_add_job),
10060 (gnome_vfs_async_job_map_destroy), (async_job_map_remove_job),
10061 (gnome_vfs_async_job_expired), (async_job_map_get_job),
10062 (gnome_vfs_async_job_map_shutdown),
10063 (pthread_gnome_vfs_async_cancel), (async_open),
10064 (async_open_as_channel), (async_create),
10065 (pthread_gnome_vfs_async_create_as_channel),
10066 (pthread_gnome_vfs_async_close), (pthread_gnome_vfs_async_read),
10067 (pthread_gnome_vfs_async_write),
10068 (pthread_gnome_vfs_async_create_symbolic_link),
10069 (pthread_gnome_vfs_async_get_file_info),
10070 (pthread_gnome_vfs_async_set_file_info),
10071 (pthread_gnome_vfs_async_find_directory), (copy_sort_rules),
10072 (async_load_directory), (pthread_gnome_vfs_async_load_directory),
10073 (pthread_gnome_vfs_async_xfer),
10074 (pthread_gnome_vfs_async_add_status_callback),
10075 (pthread_gnome_vfs_async_remove_status_callback):
10076 assign jobs unique id's. Use a map to map job ids to job structs.
10078 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine),
10079 (gnome_vfs_job_create_slave):
10080 Add new jobs to the job id map as they get created. Remove them
10081 when a thread expires.
10083 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
10084 (gnome_vfs_thread_backend_shutdown):
10085 Get rid of the job id map when we quit.
10087 * libgnomevfs-pthread/gnome-vfs-thread-pool.c:
10088 Make some debugging code better.
10090 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
10091 (gnome_vfs_job_create_slave):
10092 Remove some code that was ifdefd out now that new thread pool code
10093 seems to be working fine.
10095 2001-01-02 John Sullivan <sullivan@eazel.com>
10097 reviewed by: Darin Adler <darin@eazel.com>
10099 Fixed bug 5339 (http proxy value reset when any Nautilus
10100 preference changes). This is a low-priority bug but I
10101 was working on another related bug and couldn't help
10104 * libgnomevfs/gnome-vfs-mime-monitor.c: Fixed a copy/paste
10105 error in a comment.
10107 * modules/http-method.c: (sig_gconf_value_changed):
10108 Ignore keys other than the ones we care about.
10110 2001-01-03 Rebecca Schulman <rebecka@eazel.com>
10112 reviewed by: <delete if not using a buddy>
10114 * doc/mime-data-specification.txt:
10116 2000-12-29 Darin Adler <darin@eazel.com>
10118 reviewed by: Pavel Cisler <pavel@eazel.com>
10120 Fixed bug 3117 (Certain files incorrectly get the core file icon
10121 in icon-view mode).
10123 * data/mime/gnome-vfs.mime: Changed the regular expression for core
10124 files to match only files named "core", not all files with "core" in
10125 their names. Added some FIXMEs.
10127 2000-12-28 Darin Adler <darin@eazel.com>
10129 reviewed by: Maciej Stachowiak <mjs@eazel.com>
10131 * libgnomevfs/gnome-vfs-utils.c:
10132 (gnome_vfs_format_file_size_for_display): Changed format from
10133 "1.1M" to "1.1 MB". For kilobytes, I decided to do the same thing
10134 we did for the Macintosh Finder, and use "123 K" instead of the
10135 correct but obscure "123 kB". These strings are marked for
10136 translation as before, so it can be changed for different
10137 countries. One reason these have to be changed is that they are
10138 currently inconsistent with the hard-drive size numbers displayed
10139 in the Nautilus hardware view (so one or the other had to change).
10141 2000-12-22 John Sullivan <sullivan@eazel.com>
10143 * modules/http-method.c: (vfs_module_init):
10144 Added a FIXME with bug number for a bug I noticed here.
10146 2000-12-22 John Sullivan <sullivan@eazel.com>
10148 * libgnomevfs/gnome-vfs-mime-info.c:
10149 (reload_if_needed_idle_function): Saved the terminal by
10150 removing a debug g_message.
10152 gno2000-12-22 Pavel Cisler <pavel@eazel.com>
10154 * libgnomevfs/gnome-vfs-mime-monitor.c:
10155 (gnome_vfs_mime_monitor_emit_data_changed):
10156 Save the world by adding a newline to the end of file.
10157 New gcc 2.96 is picky about that.
10159 2000-12-22 John Sullivan <sullivan@eazel.com>
10161 reviewed by: Pavel Cisler <pavel@eazel.com>
10163 GNOME_VFS part of fix for bug 4798 (icon changes in MIME
10164 type capplet aren't reflected automatically in Nautilus)
10166 I invented an object that emits signals when the MIME
10167 data changes. Clients can connect to the signal to do
10168 their evil deeds. Unfortunately, the granularity of the
10169 signal is just "some MIME data changed", but we can live
10172 * libgnomevfs/gnome-vfs-mime-monitor.h:
10173 * libgnomevfs/gnome-vfs-mime-monitor.c:
10174 (gnome_vfs_mime_monitor_get_type),
10175 (gnome_vfs_mime_monitor_get),
10176 (gnome_vfs_mime_monitor_initialize),
10177 (gnome_vfs_mime_monitor_initialize_class),
10178 (gnome_vfs_mime_monitor_emit_data_changed):
10179 New files that define new class GnomeVFSMIMEMonitor.
10180 Its only purpose is to emit signals, and its only
10181 public function is gnome_vfs_mime_monitor_get (), which
10182 returns the one global GnomeVFSMIMEMonitor object so you
10183 can connect to its signals. The only signal it emits is
10186 * libgnomevfs/gnome-vfs-mime-private.h: Added prototype
10187 for gnome_vfs_mime_monitor_emit_data_changed so it can
10188 be called by other gnome-vfs-mime code.
10190 * libgnomevfs/Makefile.am: Add new .c & .h files to build.
10192 * libgnomevfs/gnome-vfs-mime-info.c:
10193 (reload_if_needed_idle_function),
10194 (gnome_vfs_mime_init): Poll every 5 seconds to reload if
10195 any data on disk has changed. It was already checking
10196 every time someone asked for data, but this lets clients
10197 be notified without them having to ask.
10198 (gnome_vfs_mime_info_reload):
10199 Call gnome_vfs_mime_monitor_emit_data_changed
10201 2000-12-21 Pavel Cisler <pavel@eazel.com>
10203 reviewed by: Gene Z. Ragan <gzr@eazel.com>
10205 * libgnomevfs-pthread/Makefile.am:
10206 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
10207 (gnome_vfs_job_create_slave), (gnome_vfs_thread_backend_shutdown):
10208 * libgnomevfs-pthread/gnome-vfs-thread-pool.c: (new_thread_state),
10209 (destroy_thread_state), (make_thread_available), (thread_entry),
10210 (gnome_vfs_thread_create), (gnome_vfs_thread_pool_shutdown):
10211 * libgnomevfs-pthread/gnome-vfs-thread-pool.h:
10212 Add a simple thread pool to avoid the overhead of creating new
10213 threads. Use the new thread pool calls when creating threads in
10214 gnome-vfs-job-slave.
10215 Left the old, non-thread pool thread creation in disabled by an
10216 #ifdef for now. I'll take it out later when we know everyting is
10217 OK about the new code.
10219 2000-12-21 Maciej Stachowiak <mjs@eazel.com>
10221 reviewed by: Pavel Cisler <pavel@eazel.com>
10223 * data/mime/gnome-vfs.keys: Update IID for the nautilus text
10226 * libgnomevfs/gnome-vfs-utils.c
10227 (gnome_vfs_format_file_size_for_display): Fix some bugs Darin
10228 pointed out long ago (forgot to check this in somehow).
10230 2000-12-21 Pavel Cisler <pavel@eazel.com>
10233 Turn -Werror back on.
10236 Tell contributors not to turn -Werror off.
10238 * libgnomevfs/gnome-vfs-mime-info.c:
10239 (gnome_vfs_mime_type_is_known):
10240 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
10241 (display_upper_case_dialog):
10242 * modules/ftp-method.c:
10243 Fix all the warnings that crept in while -Werror was off.
10245 2000-12-20 Lutz Müller <urc8@rz.uni-karlsruhe.de>
10247 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_set_host_name),
10248 (gnome_vfs_uri_set_user_name), (gnome_vfs_uri_set_password):
10249 Fix two copy-paste bugs.
10251 2000-12-19 Darin Adler <darin@eazel.com>
10253 reviewed by: John Sullivan <sullivan@eazel.com>
10255 Quick rewrite of pieces of the test module.
10257 * modules/test-method.c: (get_operation_settings): Changed name
10258 and design of the function. Also fixed backwards logic that had
10259 this returning results for the last setting that does not match
10260 a function name, rather than for the setting that does match.
10261 (start_operation), (finish_operation): Moved most of the work
10262 of the macros into these functions.
10263 (parse_result_text): Separated out the "name not found" result
10264 from the error code result.
10265 (load_settings): Rewrote the parsing code to be simpler.
10266 (do_open), (do_close), (do_read), (do_write), (do_seek),
10267 (do_tell), (do_open_directory), (do_close_directory),
10268 (do_read_directory), (do_get_file_info),
10269 (do_get_file_info_from_handle), (do_make_directory),
10270 (do_remove_directory) (do_unlink), (do_set_file_info),
10271 (do_truncate), (do_truncate_handle), (do_find_directory),
10272 (do_create_symbolic_link): Use new simpler macros. Also got rid of
10273 "do_" prefix on names of calls.
10274 (do_create), (do_is_local), (do_move), (do_check_same_fs): Update
10275 FIXME, since these are still not implemented correctly.
10276 (vfs_module_init): Minor style change.
10277 (vfs_module_shutdown): Free storage on shutdown.
10279 2000-12-18 Andy Hertzfeld <andy@eazel.com>
10281 * data/mime/gnome-vfs.keys:
10282 added explicit i-regular icons to text-oriented mime-types, so
10283 you can see embedded text even when the standard gnome icons are
10286 2000-12-18 John Sullivan <sullivan@eazel.com>
10288 reviewed by: Rebecca Schulman <rebecka@eazel.com>
10290 Fixed gnome-vfs half of bug 2109 (Images (and any other
10291 files) with "execute" bit set will try to be executed
10292 instead of viewed when activated). The change here is
10293 support for querying whether it makes sense to execute
10294 a file of a given MIME type. I'll check in the Nautilus
10295 code that calls this shortly.
10297 * libgnomevfs/gnome-vfs-mime-info.h:
10298 * libgnomevfs/gnome-vfs-mime-info.c:
10299 (gnome_vfs_mime_type_is_known): New function, returns
10300 TRUE if a given MIME type has an entry in any of the
10303 * libgnomevfs/gnome-vfs-mime-handlers.h:
10304 * libgnomevfs/gnome-vfs-mime-handlers.c:
10305 (gnome_vfs_mime_can_be_executable): New function, returns
10306 whether or not a file of a given MIME type could sensibly
10307 be executable. Default is TRUE for unknown types (so we
10308 don't prevent new types from executing), but FALSE for
10309 known types (since the vast majority of MIME types cannot
10310 be directly executed).
10311 (gnome_vfs_mime_set_can_be_executable): New function,
10312 setter for this new feature.
10314 * data/mime/gnome-vfs-mime-magic: Changed
10315 "application/x-executable-file" to "application/x-executable-binary"
10316 since there are other types of executable files.
10318 * data/mime/gnome-vfs.keys: Made can-be-executable TRUE for
10319 the following MIME types:
10321 application/octet-stream
10323 application/x-executable-binary
10330 Also changed "icon-filename" to "icon_filename" and "vfs-method" to
10331 "vfs_method" so we consistently use underscores in MIME data keys.
10332 Also improved the instructions at the top of the file a little.
10334 * test/gnome-file-selection/gicon.c: (get_icon_from_metadata),
10335 (gicon_get_icon_for_file_2),
10336 * libgnomevfs/gnome-vfs-mime-handlers.c: (gnome_vfs_mime_get_icon),
10337 (gnome_vfs_mime_set_icon): Updated for underscore name change.
10339 2000-12-18 Darin Adler <darin@eazel.com>
10341 * modules/bzip2-method.c: (do_open), (do_get_file_info): Applied
10342 the same 3 fixes that John Sullivan made to the gzip method to the
10343 bzip2 method, since it is just a copy. An example of the evils of
10344 copy and paste code.
10346 2000-12-18 Darin Adler <darin@eazel.com>
10348 reviewed by: Pavel Cisler <pavel@eazel.com>
10350 Fixed bug 5217 (Nautilus crashes if you type cdda: in the
10353 * libgnomevfs/gnome-vfs-method.c: (load_module): Fixed bug where
10354 it was freeing the result of g_module_error.
10355 * modules/default-modules.conf: Disable both the cdda and the efs
10356 modules since compiling them is currently disabled. It's important
10357 to keep this file in sync. with the libraries it points to.
10359 * libgnomevfs/gnome-vfs-xfer.c:
10360 (gnome_vfs_new_directory_with_unique_name): A new directory that
10361 we are creating now qualifies as a top-level item. This makes
10362 logical sense, and helps the code in Nautilus handle metadata
10363 properly. This is a piece of my fix for bug 2199 -- the rest was
10364 checked into Nautilus the other day.
10366 2000-12-18 John Sullivan <sullivan@eazel.com>
10368 Fixed bug 5216 (typing "deb:" in the uri text field
10371 * modules/extfs-method.c: (do_get_file_info):
10373 Another place in a different module that needed to
10374 return GNOME_VFS_ERROR_INVALID_URI when the parent
10377 2000-12-15 John Sullivan <sullivan@eazel.com>
10379 reviewed by: Mike Fleming <mfleming@eazel.com>
10381 Fixed bug 4810 (typing "gzip:" in the uri text field
10384 * modules/gzip-method.c:
10385 changed VALID_URI to check uri->parent, since all the code
10386 that uses it assumes the parent is good.
10387 (do_open), (do_get_file_info): return GNOME_VFS_ERROR_INVALID_URI
10388 instead of GNOME_VFS_ERROR_NOT_FOUND, to match other modules'
10391 2000-12-14 Rebecca Schulman <rebecka@eazel.com>
10393 * doc/mime-data-specification.txt:
10394 Added initial draft of the mime data
10395 specification to the documentation directory.
10397 2000-12-11 Mike Fleming <mfleming@eazel.com>
10399 * libgnomevfs/gnome-vfs-mime-info.c: (hack_getc):
10400 Changed to return int instead of char so it won't bust\
10401 on systems that default to unsigned chars
10403 2000-12-11 Mike Fleming <mfleming@eazel.com>
10405 * modules/http-method.c: (create_handle), (make_propfind_request),
10408 Changed all protocol-related error returns to GNOME_VFS_ERROR_GENERIC
10409 (they were CORRUPTED_DATA which was clearly wrong)
10411 Fixed bug in resolve_409 that didn't handle URI's that have no parents.
10413 Got rid of a FIXME that had been fixed.
10415 2000-12-11 Mike Fleming <mfleming@eazel.com>
10417 * libgnomevfs/gnome-vfs-result.c:
10418 * libgnomevfs/gnome-vfs-types.h:
10419 * modules/http-method.c: (do_make_directory), (do_move):
10421 bugzilla.eazel.com 3942 -- renaming file to illegal name produces
10422 confusing response.
10424 do_move now returns GNOME_VFS_ERROR_BAD_PARAMETERS when the destination
10425 filename contains invalid characters. This is really an unfortunate
10426 mapping, but it mirrors what Linux's FAT drivers seem to do (they return
10429 2000-12-11 Darin Adler <darin@eazel.com>
10431 reviewed by: John Sullivan <sullivan@eazel.com>
10433 * libgnomevfs/Makefile.am:
10434 * libgnomevfs/gnome-vfs-gen-mimedb.c:
10435 Removed the source and build rules for the obsolete
10436 gen-mime-db tool. We have parsed the MIME text files on
10437 when the library first needs the DB instead of saving
10438 a preparsed memory image for some time now.
10440 2000-12-08 Pavel Cisler <pavel@eazel.com>
10442 * modules/ftp-method.c: (do_read_directory):
10443 Oops. Fix the build.
10445 2000-12-08 Pavel Cisler <pavel@eazel.com>
10447 reviewed by: Gene Z. Ragan <gzr@eazel.com>
10449 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_mime_type_from_name),
10450 (gnome_vfs_get_mime_type), (gnome_vfs_get_file_mime_type),
10451 (gnome_vfs_get_mime_type_from_uri),
10452 (gnome_vfs_get_mime_type_from_file_data):
10453 * libgnomevfs/gnome-vfs-mime.h:
10454 * modules/ftp-method.c: (ls_to_file_info):
10455 * modules/gconf-method.c: (set_mime_type_value):
10456 * modules/pipe-method.c: (mime_from_uri):
10457 * modules/translate-method.c: (tr_apply_default_mime_type):
10458 Replace all cases of "application/octet-stream" with a new symbolic
10459 name, GNOME_VFS_MIME_TYPE_UNKNOWN.
10461 2000-12-08 Gene Z. Ragan <gzr@eazel.com>
10463 * modules/ftp-method.c: (do_read_directory):
10464 Removed fixme for bug 3925. This was fixed in Nautilus.
10465 Resolving sym links during a directory read in the ftp module
10466 is resource intensive and probably not desired.
10468 2000-12-08 Gene Z. Ragan <gzr@eazel.com>
10470 reviewed by: Pavel Cisler <pavel@eazel.com>
10472 Fixed bug 4660, Descrption lost when adding mime types
10474 Bug was caused by a failure to write out a mime type
10475 with caps in the string. I now convert all caps to lower
10476 case and inform the user what has happened.
10478 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
10479 (find_message_label_callback), (find_message_label),
10480 (show_message_box), (display_upper_case_dialog):
10481 New routines to display a nice dialog taken from Nautilus.
10483 (nautilus_mime_type_capplet_show_new_mime_window):
10484 Convert mime string to lower case if caps are present.
10486 2000-12-08 Andy Hertzfeld <andy@eazel.com>
10488 * data/mime/gnome-vfs.keys:
10489 replaced all references to the old bonobo-text-plain component
10490 with the newer nautilus-text-view component
10492 2000-12-07 Mike Fleming <mfleming@eazel.com>
10494 * modules/http-method.c: (process_propfind_propstat),
10497 bugzilla.eazel.com 4317, 2795 : Implemented ctime/mtime file
10500 2000-12-06 Mike Fleming <mfleming@eazel.com>
10502 * modules/ftp-method.c: (ftp_response_to_vfs_result),
10503 (do_make_directory):
10507 Translated error returned from do_make_directory to compensate
10508 for bad error mapping deeper in the module.
10510 2000-12-06 Pavel Cisler <pavel@eazel.com>
10512 reviewed by: <delete if not using a buddy>
10514 Fixed 4736: Nautilus doesn't respect umask when creating a new
10516 * libgnomevfs/gnome-vfs-xfer.c: (create_directory),
10517 Easy fix, we already do respect umask, just need to create new
10518 folders with 0777 instead of just 0700.
10520 Fixed 4324: modification date doesn't get preserved during copy:
10522 * libgnomevfs/gnome-vfs-xfer.c:
10523 (copy_file), (copy_directory), (copy_items):
10524 Added a gnome_vfs_file_info_set_type to the end of copy_file
10525 and copy_items, copying over the mod date, permissions and owner.
10527 2000-12-06 Mike Fleming <mfleming@eazel.com>
10529 reviewed by: pavel@eazel.com
10531 * modules/ftp-method.c: (do_move):
10533 bugzilla.eazel.com 4224:
10534 ftp rename always overwrites -- ignores "force" parameter
10536 Just a drop in the bucket.
10538 2000-12-05 Pavel Cisler <pavel@eazel.com>
10540 reviewed by: Gene Ragan <gzr@eazel.com>
10542 * libgnomevfs/gnome-vfs-types.h:
10543 * libgnomevfs/gnome-vfs-xfer.c: (progress_set_source_target),
10544 (remove_file), (empty_directory), (non_recursive_empty_directory),
10545 (gnome_vfs_visit_list), (count_each_file_size_one),
10546 (handle_name_conflicts), (gnome_vfs_xfer_delete_items_common),
10547 (copy_directory), (copy_items) (gnome_vfs_xfer_uri_internal):
10548 Part of fix 4894 "Dragging /proc from the tree view to /home causes
10550 Part of fix to 3232 "Error message when copying rwx file from
10551 r-x folder to rwx folder".
10552 Part of fix to 3237 "No error occurs if move file to folder w/o
10554 Part of fix to 3748 "misleading file operation error dialog"
10555 Made each of these properly set up the name of the copied item
10556 to fix all the cases where we got "Error moving (NULL) ..."
10557 messages that I came across while fixing the other bugs.
10558 Added a new phase, GNOME_VFS_XFER_CHECKING_DESTINATION and used
10559 it in gnome_vfs_xfer_uri_internal so I can distinguish between
10560 failures on read and failures on write.
10562 * libgnomevfs/gnome-vfs-xfer.c:
10563 (copy_directory), (copy_items):
10564 Fixed 4895 Copying /dev into my home directory crashes Nautilus.
10566 * libgnomevfs/gnome-vfs-xfer.c:
10567 (gnome_vfs_xfer_empty_trash), (gnome_vfs_xfer_delete_items),
10568 (gnome_vfs_xfer_uri_internal), (gnome_vfs_xfer_private),
10569 (gnome_vfs_xfer_uri_list), (gnome_vfs_xfer_delete_list):
10570 Moved calls to initial and last call_progress to the calling
10574 2000-12-05 Rebecca Schulman <rebecka@eazel.com>
10576 reviewed by: Pavel Cisler <pavel@eazel.com>
10578 * libgnomevfs/gnome-vfs-mime-magic.c: (gnome_vfs_mime_magic_parse):
10579 Remove this change: what we fixed this morning avoided the huge leak, but
10580 did not fix the real problem. This change isn't compatible with the real
10581 fix (see Darin's change below), and in fact it was amazing that it worked
10584 2000-12-04 Darin Adler <darin@eazel.com>
10586 * libgnomevfs/gnome-vfs-mime-magic.c:
10587 (gnome_vfs_mime_get_magic_table): Added missing NULL check that
10588 made gnome_vfs very slow since it kept reading the MIME database
10589 over and over again! My apologies.
10591 2000-12-04 Rebecca Schulman <rebecka@eazel.com>
10593 reviewed by: Pavel Cisler <pavel@eazel.com>
10595 * libgnomevfs/gnome-vfs-mime-magic.c: (gnome_vfs_mime_magic_parse):
10596 Fix a large leak in gnome-vfs mime, that resulted from not freeing
10597 a g_array segment during mime lookups
10599 2000-12-03 Maciej Stachowiak <mjs@eazel.com>
10601 reviewed by: Pavel Cisler <pavel@eazel.com>
10603 * libgnomevfs/gnome-vfs-utils.c
10604 (gnome_vfs_format_file_size_for_display): Changed factor for
10605 kilobytes to 1024 from 1000, megabytes to 1024*1024 from 1,000,000
10606 and gigabytes to 1024*1024*1024 from 1,000,000,000.
10608 2000-11-29 Darin Adler <darin@eazel.com>
10610 reviewed by: Mike Fleming <mfleming@eazel.com>
10612 * libgnomevfs/gnome-vfs-mime-magic.c:
10613 (gnome_vfs_mime_get_magic_table),
10614 (gnome_vfs_mime_clear_magic_table): Eliminate the unused "mmap"
10615 optimization. We haven't been generating the binary file for a
10616 while, and we've determined there's no real speed issue.
10618 * data/mime/gnome-vfs.applications: Use tabs consistently instead
10619 of some tabs and some spaces. Get rid of some extra whitespace on
10620 some lines. Fix some "can_open_uris" lines that said
10621 "can_open_urls" instead.
10623 * data/mime/gnome-vfs.keys: Use tabs consistently instead of some
10624 tabs and some spaces.
10626 2000-11-29 Pavel Cisler <pavel@eazel.com>
10628 * test/test-mime.c: (main):
10629 Oops, make it build.
10631 2000-11-29 Rebecca Schulman <rebecka@eazel.com>
10633 reviewed by: Pavel Cisler <pavel@eazel.com>
10635 * test/test-mime.c: (main):
10636 Added a --help argument that lists available arguments,
10637 and made the script understand both paths and uris,
10638 and report the case where a uri or path is not valid.
10640 2000-11-29 Rebecca Schulman <rebecka@eazel.com>
10642 * modules/file-method.c: (rename_helper):
10643 Fixed bug 1185, that removing a directory
10644 always returns NOT_EMPTY on an error.
10646 2000-11-22 Michael K. Fleming <mfleming@eazel.com>
10648 * modules/http-method.c: (sig_gconf_value_changed):
10649 Fixed bug where setting "/system/gnome-vfs/use-http-proxy"
10650 wouldn't cause the new http proxy to be used
10652 2000-11-21 Mike Fleming <mfleming@eazel.com>
10654 reviewed by: pavel@eazel.com
10656 * modules/http-method.c: (cache_add_no_strdup), (cache_add),
10657 (cache_add_uri_and_children), (cache_add_uri),
10658 (make_propfind_request), (do_open_directory), (do_get_file_info):
10660 Now caches non-DAV get_file_info's. Mostly improves the situation
10661 by allowing a subsequent do_open_directory to return an error
10662 based on the file info in cache.
10664 Also added more "is_dav" bit to the cache records
10666 2000-11-20 Mathieu Lacage <mathieu@eazel.com>
10668 reviewed by: <mjs@eazel.com>
10670 Fix bug 4812. Also, make the capplet work by fixing
10671 random bugs here and there. It was the first time I could test
10672 it for true so, of course, got a bunch of small-border-effect bugs.
10673 * libgnomevfs/gnome-vfs-mime-info.c:
10674 (hack_getc): the most evil function I ever wrote.
10675 It recursively gets rid of the comment lines before
10676 the parsers ever get them. (iunstead of fixing thew parsers....)
10677 (load_mime_type_info_from): make it use nerw hack_gets function
10678 instead of getc_unlocked.
10679 (load_mime_list_info_from): idem.
10680 (gnome_vfs_mime_get_extensions_list): avoid returning the extensions
10681 of the system settings if the user has set the user extensions.
10682 (get_key_name): make it remove duplicates for true.
10683 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
10684 (nautilus_mime_type_capplet_show_new_mime_window): fix bug 4812
10685 by replacing "char *text[3]" by "char *text[4]".
10686 (nautilus_mime_type_capplet_show_change_extension_window):
10688 * mime-type-capplet/nautilus-mime-type-capplet.c:
10689 (update_extensions_list): fix border-effect bugs. (ie: when you
10690 have no extension for a mime type for example...)
10691 (add_mime_clicked): idem.
10693 2000-11-20 Mike Fleming <mfleming@eazel.com>
10695 reviewed by: pavel@eazel.com
10697 * modules/http-method.c: (unhex_char), (unescape_unreserved_chars),
10698 (process_propfind_response):
10700 Fix HTTP attribute caching to work correctly with inconsistantly
10701 escaped URI strings. (note that the unescape_unreserved_chars function
10702 is ifdef'd out and not used)
10704 2000-11-20 Matt Bissiri <matt@bissiri.org>
10706 * libgnomevfs/gnome-vfs-utils.c:
10707 (gnome_vfs_icon_path_from_filename):
10708 Do not free the return value of g_getenv.
10709 (fixes a segfault that occurs if GNOME_PATH is set)
10711 2000-11-19 Michael K. Fleming <mfleming@eazel.com>
10713 * modules/http-method.c:
10714 oops. fixed debug macro that didn't have a disabled version
10716 2000-11-19 Mathieu Lacage <mathieu@eazel.com>
10719 * libgnomevfs/gnome-vfs-mime-info.c:
10720 (gnome_vfs_mime_set_extensions_list): add new function.
10721 Ultimately, I wished we could get rid of the direct access
10722 to the internal hastables but this is at least a first step.
10723 * libgnomevfs/gnome-vfs-mime-info.h: add prototype.
10725 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
10726 (add_extension_clicked): implement
10727 (remove_extension_clicked): implement
10728 (extension_list_selected): grey/ungrey delete button when selecting/unselecting
10729 (extension_list_deselected): idem
10730 (get_extensions_from_gtk_list): helper function.
10731 (nautilus_mime_type_capplet_show_change_extension_window): implement.
10732 (nautilus_mime_type_capplet_show_new_extension_window): fix a number of segfaults.
10733 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h: change prototypes.
10734 * mime-type-capplet/nautilus-mime-type-capplet.c:
10735 (get_selected_row_number),helper function.
10736 (get_selected_mime_type), helper function (refactoring :)
10737 (really_change_icon): fix segfault.
10738 (update_extensions_list): update extensions when you change them.
10739 (change_file_extensions_clicked): create dialog.
10740 (init_mime_capplet): spaces.
10741 (nautilus_mime_type_capplet_update_info): make it use get_selected_mime_type.
10743 2000-11-17 Mike Fleming <mfleming@eazel.com>
10745 * modules/http-method.c: (my_debug_printf), (get_header),
10746 (create_handle), (make_request), (http_handle_close), (do_open),
10747 (do_create), (do_close), (do_write), (do_read),
10748 (make_propfind_request), (do_open_directory), (do_close_directory),
10749 (do_read_directory), (do_get_file_info), (do_make_directory),
10750 (do_remove_directory), (do_move), (do_unlink):
10751 * test/http-postanalyze.pl:
10753 Added timing debug code.
10755 2000-11-17 Mathieu Lacage <mathieu@eazel.com>
10757 reviewed by: Sullivan
10759 fix Bug 4768. Reported 3 bugs about separate issues: 4796, 4797, 4798.
10760 * data/mime/gnome-vfs.keys: change icon filenames to relative paths.
10761 * libgnomevfs/Makefile.am: add GNOME_VFS_PREFIX
10762 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_info_reload):
10763 add initialition code if the mime stuff is not initalized when doing
10764 a reload. This avoids a segfault.
10765 * libgnomevfs/gnome-vfs-utils.c: (hack_file_exists): new function
10766 copied from gnome-libs: prviously named g_file_exists.
10767 (gnome_vfs_icon_path_from_filename): new API function. It looks
10768 in GNOME_PATH to find the icons and defaults to the gnome-vfs prefix
10769 one. It accepts only relative paths and returns an absolute path.
10770 * libgnomevfs/gnome-vfs-utils.h: add prototype.
10771 * mime-type-capplet/nautilus-mime-type-capplet.c:
10772 (really_change_icon), changes the icon used by a mime type.
10773 (gil_icon_selected_cb): changes the icon when you double-click.
10774 (change_icon_clicked_cb_real): changes the icon when you click on ok.
10775 (change_icon_clicked): connect to the clicked and select_icon signals
10776 to know when the user has made up his mind about hte new icon.
10777 (nautilus_mime_type_capplet_update_info), spaces.
10778 (add_mime_clicked): spaces.
10779 (nautilus_mime_type_capplet_update_mime_list_icon): spaces.
10780 (capplet_get_icon_pixbuf): spaces.
10781 (populate_mime_list): spaces.
10782 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
10783 (icon_selected_cb): spaces.
10784 (nautilus_mime_type_show_icon_selection): spaces.
10785 (nautilus_mime_type_icon_entry_get_relative_filename): new function.
10786 returns a relative filename instead of an abosulte one.
10787 * mime-type-capplet/nautilus-mime-type-icon-entry.h: add relative
10790 2000-11-17 Gene Z. Ragan <gzr@eazel.com>
10792 Fixed bug 2966, Fix cancellation support in FTP
10794 * modules/ftp-method.c: (do_path_command_completely),
10795 (do_transfer_command), (do_path_transfer_command),
10796 (host_port_from_string),
10797 (ftp_connection_create), (ftp_connection_acquire), (do_open),
10798 (internal_get_file_info), (do_get_file_info), (do_open_directory),
10799 (do_make_directory), (do_remove_directory), (do_move), (do_unlink),
10801 Modified several functions to allow context to be passed in.
10802 We can then check the context for cancellation.
10804 * modules/http-method.c: (make_request):
10807 2000-11-16 Rebecca Schulman <rebecka@eazel.com>
10809 * modules/ftp-method.c:
10810 Change the formatting of some fixmes so that
10811 check-fixme will keep track of them
10813 2000-11-16 Mathieu Lacage <mathieu@eazel.com>
10816 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
10817 (nautilus_mime_type_capplet_show_new_mime_window): tweak to
10818 look slightly better. fix a potential segfault too.
10819 * mime-type-capplet/nautilus-mime-type-capplet.c: (revert_real_cb),
10820 (revert_mime_clicked), (add_mime_clicked): add dialog hook.
10822 2000-11-16 Gene Z. Ragan <gzr@eazel.com>
10824 Fixed bug 4528, http method does not listen for
10825 'use-http-proxy' preference.
10827 * modules/http-method.c:
10829 Listen to changes in 'use-http-proxy' settings.
10831 (sig_gconf_value_changed),
10832 Check for status of 'use-http-proxy' system setting before
10833 setting proxy to new modified value. This allows a user to edit
10834 the text of the proxy without actually resetting the proxy to
10835 this value if the "Use Proxy" checkbox is unset.
10837 2000-11-16 Mathieu Lacage <mathieu@eazel.com>
10839 Fix bugs 2767 and 3228
10840 * mime-type-capplet/nautilus-mime-type-capplet.c:
10841 (nautilus_stop_in_debugger),
10842 (nautilus_stop_after_default_log_handler),
10843 (nautilus_set_stop_after_default_log_handler),
10844 (nautilus_make_warnings_and_criticals_stop_in_debugger),
10845 add debugging functions. They are disabled by default.
10846 (main), add call to debuggin funcitons if they are enabled.
10847 (change_icon_clicked), implement.
10848 (init_mime_capplet), tweaks, cleanups
10849 (nautilus_mime_type_capplet_update_info), update icon.
10850 (revert_mime_clicked), implement correctly.
10851 (delete_mime_clicked), implement correctly.
10852 (add_mime_clicked), cleanups
10853 (capplet_get_icon_pixbuf), new function to get the pixbuf for
10855 (populate_mime_list): use the new function above, refactor.
10856 (update_mime_list_action): idem.
10858 2000-11-15 Mathieu Lacage <mathieu@eazel.com>
10860 * mime-type-capplet/nautilus-mime-type-capplet.c:
10861 (init_mime_capplet), make it look like what Arlo wanted.
10862 (revert_mime_clicked): new callback to reset user settings.
10864 2000-11-15 Pavel Cisler <pavel@eazel.com>
10866 * test/test-uri.c: (main):
10867 Tweak a test to verify that bug 3401 is fixed. No reviewer, sorry.
10869 2000-11-15 Mathieu Lacage <mathieu@eazel.com>
10871 * libgnomevfs/gnome-vfs-mime-info.c:
10872 (context_new), cleanups.
10873 (load_mime_type_info_from), cleanups
10874 (load_mime_list_info_from), cleanups
10875 (reload_if_needed), rename from maybe_reload
10876 (set_value_real), new function.
10877 (gnome_vfs_mime_set_value), make it use funiton above.
10878 (get_value_real), new function
10879 (gnome_vfs_mime_get_value), make it use funciton above
10880 (gnome_vfs_mime_get_key_list), cleanups
10881 (gnome_vfs_mime_get_extensions_list), cleanups
10882 (gnome_vfs_mime_get_extensions_pretty_string), cleanups
10883 (gnome_vfs_get_registered_mime_types), cleanups
10884 (gnome_vfs_mime_set_registered_type_key), make it use
10886 (gnome_vfs_mime_get_registered_mime_type_key): make it
10887 use get_value_real.
10889 2000-11-15 Mathieu Lacage <mathieu@eazel.com>
10891 Buddy: pavel <pavel@eazel.com>
10893 * libgnomevfs/gnome-vfs-mime-handlers.c:
10894 (gnome_vfs_mime_get_default_action_type): fix a compilation warning.
10895 remove a unused variable.
10896 * libgnomevfs/gnome-vfs-mime-info.c:
10897 (load_mime_list_info_from), spaces...
10898 (get_key_name), add checks not to return deleted mime types and
10899 not to return comments as mime types.
10900 (gnome_vfs_mime_reset), new API function: resets to system defaults.
10901 (gnome_vfs_mime_registered_mime_type_delete), new API fution: deletes
10903 (gnome_vfs_mime_get_registered_mime_type_key), new non-exported function.
10904 (write_back_mime_user_file_context_callback): spaces...
10905 * libgnomevfs/gnome-vfs-mime-info.h: new prototypes.
10906 * test/test-mime-info.c: (main): add testing code for teh new API.
10908 2000-11-15 Mathieu Lacage <mathieu@eazel.com>
10910 Buddy: pavel <pavel@eazel.com>
10912 Fix bug 2650. remove *_without_fallback code.
10913 * libgnomevfs/gnome-vfs-mime-handlers.c:
10914 (gnome_vfs_mime_get_default_action_type),
10915 (gnome_vfs_mime_get_default_action),
10916 (gnome_vfs_mime_get_default_application),
10917 (gnome_vfs_mime_get_icon),
10918 (gnome_vfs_mime_get_default_component):
10919 remove code trying to test for the supertype
10920 of a mime type because the first lookup always
10921 checks for the supertype anyway so the code was
10923 * libgnomevfs/gnome-vfs-mime-handlers.h: remove
10924 *_without_fallback functions.
10926 2000-11-14 Pavel Cisler <pavel@eazel.com>
10928 Reviewed by: Mathieu Lacage <mathieu@eazel.com>
10930 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri):
10931 Fix 820, treating case-insensitive parts of URIs as such.
10933 * test/test-uri.c: (test_uri_match), (main):
10934 Add test suites for the case-insensitive handling.
10936 * data/mime/gnome-vfs-mime-magic:
10937 Removed an obsolete comment.
10940 Add some instructions.
10942 2000-11-14 Maciej Stachowiak <mjs@eazel.com>
10944 reviewed by: Rebecca Schulman <rebecka@eazel.com>
10946 * data/mime/gnome-vfs.applications: Remove trailing whitespace
10947 from `abiword' and `galeon'.
10949 * libgnomevfs/gnome-vfs-application-registry.c
10950 (load_application_info_from): strip trailing whitespace from
10952 (strip_trailing_whitespace): helper function
10954 2000-11-13 Rebecca Schulman <rebecka@eazel.com>
10956 Reviewed by: Maciej Stachowiak
10958 * libgnomevfs/gnome-vfs-result.c:
10959 * libgnomevfs/gnome-vfs-types.h:
10960 Add a new gnome vfs error, about the problem of the search
10961 index being out of date enough that no results could
10962 possibly come back, called GNOME_VFS_ERROR_SERVICE_OBSOLETE
10964 2000-11-13 Darin Adler <darin@eazel.com>
10966 * gnome-vfs.spec.in: Turn "make check" off again.
10967 It doesn't work because the front end can't find the
10968 back end when it's not installed.
10970 2000-11-13 Gene Z. Ragan <gzr@eazel.com>
10972 Some more capplet work. The mime list now updates
10973 to reflect changes made to the default action button
10974 and menu item list.
10976 * mime-type-capplet/nautilus-mime-type-capplet.c:
10977 (application_button_toggled), (viewer_button_toggled),
10978 (application_menu_activated), (component_menu_activated),
10979 (add_mime_clicked),
10980 (nautilus_mime_type_capplet_update_mime_list_icon),
10981 (update_mime_list_action), (populate_mime_list):
10983 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
10985 Fixed a case where a NULL widget would cause an assertion.
10987 2000-11-13 Gene Z. Ragan <gzr@eazel.com>
10989 Fixed bug 3107, Setting na icon for a mime type does not work.
10991 * mime-type-capplet/nautilus-mime-type-capplet.c:
10992 * mime-type-capplet/nautilus-mime-type-capplet.h:
10993 (nautilus_mime_type_capplet_update_mime_list_icon):
10994 New function that sets/updates the icon in the mime list.
10996 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
10997 (icon_selected_cb), (nautilus_mime_type_show_icon_selection):
10998 Add call to new nautilus_mime_type_capplet_update_mime_list_icon
11001 2000-11-13 Martin Baulig <baulig@suse.de>
11003 * modules/file-method.c (read_saved_cached_trash_entries):
11004 Use g_free() to free the `trash_path' and `mount_path'.
11006 2000-11-11 Kjartan Maraas <kmaraas@gnome.org>
11008 * mime-type-capplet/nautilus-mime-type.desktop: Added norwegian translation.
11009 * mime-type-capplet/nautilus-mime-type-capplet.c: Marked all strings for translation.
11011 2000-11-11 Maciej Stachowiak <mjs@eazel.com>
11013 Part of the fix to 4051.
11015 * data/mime/gnome-vfs.applications: Uncomment vi and lynx
11017 * libgnomevfs/gnome-vfs-mime-handlers.c
11018 (gnome_vfs_mime_application_copy): Copy the
11019 requires_terminal_flag.
11023 * modules/test-method.c: Use usleep(3), not usleep(1).
11025 2000-11-11 Ali Abdin <aliabdin@aucegypt.edu>
11027 * data/mime/gnome-vfs-mime-magic:
11028 * data/mime/gnome-vfs.keys:
11029 * data/mime/gnome-vfs.applications:
11030 * data/mime/gnome-vfs.mime:
11031 Change audio/x-ogg to application/x-ogg
11033 2000-11-09 Darin Adler <darin@eazel.com>
11035 * gnome-vfs.spec.in: Turn on "make check" for RPM builds. This is
11036 especially good for the Tinderbox.
11038 * modules/http-method.c: (process_propfind_propstat),
11039 (process_propfind_response), (make_propfind_request),
11041 * modules/test-method.c: (load_config_file), (vfs_module_init):
11042 Use LIBXML_TEST_VERSION and the new macros to make gnome-vfs
11043 ready for gnome-xml 2.X or gnome-xml 1.X, as DV suggests.
11045 * modules/Makefile.am:
11046 * libgnomevfs/gnome-vfs-application-registry.c:
11047 * libgnomevfs/gnome-vfs-mime-handlers.c:
11050 2000-11-08 Gene Z. Ragan <gzr@eazel.com>
11052 Fixed an error where access count was not reset
11053 during a close_directory call.
11055 * modules/cdda-method.c: (do_open), (do_get_file_info),
11056 (do_open_directory), (do_close_directory), (do_read_directory):
11058 2000-11-08 John Sullivan <sullivan@eazel.com>
11060 * libgnomevfs-pthread/gnome-vfs-job.c: (execute_find_directory):
11061 Changed a g_new to g_new0 to fix problem where result_item->uri
11062 was sometimes uninitialized. Darin somehow found this bug when
11063 I couldn't figure out why make check in Nautilus was crashing.
11066 2000-11-08 Ramiro Estrugo <ramiro@eazel.com>
11068 * data/mime/gnome-vfs.applications:
11069 XMMS can open uris.
11071 2000-11-06 Robin * Slomkowski <rslomkow@eazel.com>
11073 * configure.in: upped development version to 0.4.2.0
11075 2000-11-06 Robin * Slomkowski <rslomkow@eazel.com>
11077 * configure.in: upped version to 0.4.2
11079 2000-11-06 Robin * Slomkowski <rslomkow@eazel.com>
11081 * configure.in: upped version 0.4.1.1
11082 for internal incrimental release
11084 2000-11-06 Darin Adler <darin@eazel.com>
11086 Fix bug 4490 (web sites with bad last modified dates (like
11087 www.centerbeam.com) result in "not found").
11089 * modules/http-method.c: (create_handle): Change code so that
11090 headers that can't be parsed don't result in NOT_FOUND. They are
11093 * test/test-shell.c: (list_commands), (main): Fix some small
11094 problems in the test shell that I encountered while dealing with
11097 2000-11-06 Maciej Stachowiak <mjs@eazel.com>
11099 * data/mime/gnome-vfs.applications: Commented out entries for vi
11100 and lynx. This is the fix for 4468.
11102 2000-11-06 Maciej Stachowiak <mjs@eazel.com>
11104 * data/mime/gnome-vfs.applications, data/mime/gnome-vfs.keys: Some
11105 minor changes. Added Electric Eyes and made it the most preferred
11106 image viewer. Added ggv and made it more preferred than gv or
11107 ghostview for PDF viewing. Added proper entry for ogg123. Made
11108 mpg123 not require a terminal. Made mpg123 and xmms kmow that they
11109 handle secondary versions of various mime types. Made Acrobat the
11110 most preferred PDF viewer (if you've gone to the trouble of
11111 installing it, it's proably what you want). Changed editor
11112 preference order around a bit.
11114 2000-11-05 Yukihiro Nakai <nakai@gnome.gr.jp>
11116 * configure.in: Add sk(Slovak) to ALL_LINGUAS.
11118 2000-11-03 Aaron Brick <aaron@eazel.com>
11120 * gnome-vfs.applications:
11121 adobe acrobat can open multiple files.
11123 2000-11-03 Mike Fleming <mfleming@eazel.com>
11125 * libgnomevfs/gnome-vfs-uri.c: (set_uri_element):
11126 Do it right this time
11128 2000-11-03 Mike Fleming <mfleming@eazel.com>
11130 * libgnomevfs/gnome-vfs-uri.c: (set_uri_element):
11131 * test/test-uri.c: (main):
11132 "eazel-services:" needs to be treated like "http:" in Pavel's evil
11135 2000-11-03 Robin * Slomkowski <rslomkow@eazel.com>
11137 * configure.in: upped development version to 0.4.1.0
11139 2000-11-03 Robin * Slomkowski <rslomkow@eazel.com>
11141 * configure.in: upped version to 0.4.1 for release
11143 2000-11-03 Darin Adler <darin@eazel.com>
11145 * modules/http-method.c: (do_get_file_info): Improved comments
11148 2000-11-03 Maciej Stachowiak <mjs@eazel.com>
11150 Fix bugs 4445 and 2756.
11152 * libgnomevfs/gnome-vfs-mime-handlers.c
11153 (gnome_vfs_mime_get_default_application): Make
11154 `gnome_vfs_mime_get-default_application' fall back to the short
11155 list if the default application is not found in the path.
11157 * data/mime/gnome-vfs.keys: Set StarOffice as the default for
11158 "application/msword" and "application/vnd.ms-excel"; set the short
11159 list preference order to StarOffice, then Applix, then AbiWord and
11160 Gnumeric respectively (on the assumption that if you have the
11161 proprietary apps installed, you probably wnat to use them).
11163 2000-11-02 Mike Fleming <mfleming@eazel.com>
11165 * libgnomevfs/gnome-vfs-uri.c:
11166 * modules/http-method.c: (http_status_to_vfs_result), (do_move):
11167 bugzilla.eazel.com bug 4225, http-method now correctly obeys
11168 force_replace (being FALSE) in do_move. Users can't accidentally delete
11169 files by naming them the same.
11171 2000-11-02 Andy Hertzfeld <andy@eazel.com>
11173 * data/mime/gnome-vfs.keys:
11174 removed web browsers from the short list for webdav directories,
11175 since we don't want the buttons for launching web browsers to
11176 show up when looking at directories.
11178 2000-11-02 Robin * Slomkowski <rslomkow@eazel.com>
11180 * gnome-vfs.spec.in: updated summary and added
11181 junk fields for vendor and distribution
11183 2000-11-02 Pavel Cisler <pavel@eazel.com>
11185 * gnome-vfs.spec.in:
11186 Fill out the description fields.
11188 2000-11-02 Robin * Slomkowski <rslomkow@eazel.com>
11190 * configure.in: gnome-vfs 0.4 has been tagged
11191 as GNOME-VFS_0_4 and the version of cvs has been upped
11194 2000-11-02 Robin * Slomkowski <rslomkow@eazel.com>
11196 configure.in: upped version number for release
11198 2000-11-02 Aaron Brick <aaron@eazel.com>
11201 added support for adobe acrobat
11202 removed staroffice as default for MS files (pending bug 4372)
11204 2000-11-02 Gene Z. Ragan <gzr@eazel.com>
11206 Some more capplet cleanup.
11208 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
11209 (check_button_status), (initialize_edit_applications_dialog),
11210 (initialize_edit_components_dialog):
11211 Have the Add, Edit and Delete buttons in the Edit Applications
11212 dialog be enabled/disabled properly based on the contents
11213 of the application list.
11215 Remove Cancel button from the Edit Component and Edit Application
11216 dialog, as we currently do not have a way to roll back the changed
11219 2000-11-02 Andy Hertzfeld <andy@eazel.com>
11221 * libgnomevfs/gnome-vfs-mime-handlers.c:
11222 (gnome_vfs_mime_get_short_list_applications):
11223 made it only include applications from the supertype on the
11224 short list if there were no applications assigned to the
11227 * data/mime/gnome-vfs.keys:
11228 removed "lynx" from the text/html short list for novice and
11229 intermediate users.
11231 2000-11-02 Darin Adler <darin@eazel.com>
11233 Fix bug 4377 (Crash in the http method as a result of a redirect).
11235 * modules/http-method.c: (do_get_file_info): Add missing check for
11238 2000-11-02 Rebecca Schulman <rebecka@eazel.com>
11240 Fixed bug 4121, that the vault will ... <line disconnected>
11242 * libgnomevfs/gnome-vfs-xfer.c: (copy_file):
11243 handle errors on closing, which is when the http module
11244 actually does the write back to the server
11245 * modules/http-method.c: (create_handle), (make_request):
11246 Check for the case when a put fails with eof, and assume
11247 it's because there was insufficient space; the xythos server
11248 isn't correctly reporting 507 (http protocol insufficient space)
11251 2000-11-02 Gene Z. Ragan <gzr@eazel.com>
11253 Fixed bug 4319, Edit and Delete actions in Application
11254 List do not function
11256 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
11257 (populate_default_applications_list),
11258 (initialize_edit_applications_dialog),
11259 (nautilus_mime_type_capplet_show_new_mime_window),
11260 (add_or_update_application), (add_item_to_application_list),
11261 (show_new_application_window), (show_edit_application_window),
11262 (delete_selected_application):
11263 Bunches of code to handle adding, editing and deletion of
11264 application/mime type mapping.
11266 * mime-type-capplet/nautilus-mime-type-capplet.c:
11267 (nautilus_mime_type_capplet_get_selected_item_mime_type):
11269 2000-11-01 Aaron Brick <aaron@eazel.com>
11271 * data/mime/gnome-vfs.[ak]*:
11272 added support for applixware
11273 changed default for .doc/.xls to staroffice
11274 added a handler (xanim) for video/[x-]msvideo
11276 2000-11-01 Darin Adler <darin@eazel.com>
11278 Fix bug 4287 (Zope Studio-authored sites default to Icon View).
11280 * modules/http-method.c: (process_propfind_propstat),
11281 (process_propfind_response), (make_propfind_request): At Gene's
11282 request, rolled out his change.
11283 (do_get_file_info): New version of hack: don't do a propstat at
11284 all for root directories.
11286 2000-11-02 Mathieu Lacage <mathieu@eael.com>
11288 Fix bug 4299 hopefully. Need to test on my desktop
11290 * modules/http-method.c: (cache_check_directory),
11291 (do_get_file_info): make it always return text/html
11292 if we did a GET and there was a redirect.
11293 * test/test-shell.c: (do_info): add ability to
11296 2000-11-01 Gene Z. Ragan <gzr@eazel.com>
11298 * modules/http-method.c: (process_propfind_propstat),
11299 (process_propfind_response), (make_propfind_request):
11300 Add hack variable to detect if x-directory/webdav has been returned for
11301 a root directory URL. If this is the case, return a value that causes
11304 2000-11-01 Mathieu Lacage <mathieu@eazel.com>
11306 * configure.in: tweak efs configure.
11308 2000-11-01 Aaron Brick <aaron@eazel.com>
11310 * data/mime/gnome-vfs.keys:
11311 added handling for application/postscript
11313 2000-11-01 Pavel Cisler <pavel@eazel.com>
11315 Work on handling '?' in URIs properly, helping Darin with a
11316 broken URI query bug he is working on.
11318 * libgnomevfs/gnome-vfs-private-utils.h:
11319 * libgnomevfs/gnome-vfs-uri.c: (set_uri_element),
11320 (gnome_vfs_uri_new), (gnome_vfs_uri_new_private):
11321 Add a private version of gnome_vfs_uri_new that can optionally
11322 accept unknown uri schemes (methods).
11323 Added a very simple and hacky scheme-dependent URI escaping code.
11324 For now just made it escape reserved characters such as "?&=+", etc.
11325 get escaped for every scheme but "http", in which they are used as
11326 query separators, etc. Will need to redo this, having the individual
11327 modules handle the specifics at some point. For now this should
11328 help with our friendly website bugs.
11329 Added a call to the new routine that removes escaping from characters
11330 that don't need it. This will make uri matching, hashing, etc.
11331 work better for URIs that we originally receive in different escaped
11334 * libgnomevfs/gnome-vfs-utils.h:
11335 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_escape_set),
11336 (unescape_character), (gnome_vfs_unescape_string),
11337 (gnome_vfs_remove_optional_escapes),
11338 (gnome_vfs_make_uri_canonical),
11339 (gnome_vfs_make_path_name_canonical):
11340 Add new escaping call.
11341 Share existing escaping code with other routines.
11342 Simplify the existing gnome_vfs_unescape_string call a bit.
11343 Add a call that can be used by the URI "make canonical" machinery
11344 to un-escape characters that do not need to be escaped.
11345 Add a new gnome_vfs_make_uri_canonical call.
11346 remanmed gnome_vfs_make_canonical_pathname to
11347 gnome_vfs_make_path_name_canonical.
11349 * test/test-uri.c: (test_make_canonical_path),
11350 (test_make_canonical), (main):
11351 Add new tests for the features that I added.
11353 2000-11-01 Gene Z. Ragan <gzr@eazel.com>
11355 * modules/cdda-method.c: (do_check_same_fs):
11356 Return TRUE always.
11358 2000-10-31 Mathieu Lacage <mathieu@eazel.com>
11360 * modules/http-method.c: (do_get_file_info):
11361 remove support for HEAD. We now do only a PROPFIND
11362 and a GET to get the information on a file.
11364 2000-10-31 Pavel Cisler <pavel@eazel.com>
11366 * libgnomevfs/gnome-vfs-xfer.c: (remove_file), (remove_directory),
11367 (copy_file), (move_items), (link_items):
11368 Fix 848 - Failed copy operations still cause an icon to appear.
11369 Made xfer callbacks only get called when items were successfully
11370 moved, created and removed.
11372 2000-10-31 Gene Z. Ragan <gzr@eazel.com>
11374 Fixed offset glitch. Now files are extracted properly.
11375 Disabled paranoia to improve speed. Only basic ripping
11376 is done with no error checking.
11378 * modules/cdda-method.c:
11379 (do_open), (do_read), (get_data_size):
11381 2000-10-31 Pavel Cisler <pavel@eazel.com>
11385 Updates for the upcoming release.
11387 * libgnomevfs/gnome-vfs-uri.c:
11388 Take out an old FIXME that has been fixed.
11390 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_uri_internal):
11391 Set up the target uri so that an alert about a target not being
11392 writable can actually display the name.
11394 * test/test-shell.c: (main):
11395 Make the test-shell not cause GConf to display the super-annoying
11396 "Failed to respond to the SaveYourself ..." dialogs.
11398 2000-10-31 Gene Z. Ragan <gzr@eazel.com>
11400 * modules/cdda-method.c: (cdda_context_new),
11401 (get_track_index_from_uri), (do_open), (is_file_is_on_disc),
11402 (do_get_file_info), (do_open_directory):
11403 Unescape basenames when performing comparison operations
11404 on cached cddb data.
11406 2000-10-31 Darin Adler <darin@eazel.com>
11408 * gnome-vfs.spec.in: Got rid of vendor again. Checking this in is
11409 a bad idea. See discussion in bug 3461 for details.
11411 2000-10-31 Ali Abdin <aliabdin@aucegypt.edu>
11413 * data/mime/gnome-vfs-mime-magic:
11414 * data/mime/gnome-vfs.keys:
11415 * data/mime/gnome-vfs.mime:
11416 Temporary support for "audio/x-ogg" (until the mime issue is cleared
11417 up with the Ogg Vorbis crew)
11419 2000-10-31 Darin Adler <darin@eazel.com>
11421 * gnome-vfs.spec.in: Add vendor.
11423 2000-10-31 Gene Z. Ragan <gzr@eazel.com>
11425 * modules/cdda-cddb.c:
11426 * modules/cdda-method.c:
11427 (cdda_context_new):
11428 Get proxy info using gconf. We are using the system keys that
11429 are shared by nautilus and ammonite. The only UI to change these
11430 values is in Nautolis right now.
11435 (put_num), (write_wav_header):
11438 2000-11-01 Ian McKellar <yakk@yakk.com>
11440 * libgnomevfs/gnome-vfs-method.c: (load_module):
11441 Provide more verbose information when a module fails to load.
11443 * modules/http-method.c: (do_get_file_info):
11444 Fall back to using GET when PROPFIND and HEAD fail to return useful
11445 file info. See bug 4310.
11447 2000-10-31 Gene Z. Ragan <gzr@eazel.com>
11449 Made copying work. There is still an issue with more
11450 data being copied than requested. Will research problem more.
11452 * modules/cdda-method.c:
11453 (get_track_index_from_uri):
11454 Return index of uri in cdda table.
11456 (write_wav_header):
11457 Write wav format header data into a memory buffer.
11459 (do_open), (do_read):
11460 Call new routines above.
11462 * modules/Makefile.am:
11463 Remove module from official build
11465 2000-10-30 Gene Z. Ragan <gzr@eazel.com>
11467 * modules/Makefile.am:
11468 * modules/cdda-method.c: (do_open), (do_read), (get_data_size),
11469 (do_check_same_fs), (do_is_local), (put_num), (write_wav_header):
11470 * modules/default-modules.conf:
11471 More work in progress on cdda module.
11473 2000-10-30 Darin Adler <darin@eazel.com>
11475 Fixed bug 4169 (Visiting "Services" several times causes future
11476 navigation to hang).
11478 * libgnomevfs/gnome-vfs-async-ops.h: Got rid of the error code
11479 result from gnome_vfs_async_cancel.
11481 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
11482 (pthread_gnome_vfs_async_cancel): Got rid of the error code result
11483 from gnome_vfs_async_cancel.
11484 (async_open), (pthread_gnome_vfs_async_open_uri),
11485 (pthread_gnome_vfs_async_open), (async_open_as_channel),
11486 (pthread_gnome_vfs_async_open_uri_as_channel),
11487 (pthread_gnome_vfs_async_open_as_channel), (async_create),
11488 (pthread_gnome_vfs_async_create_uri),
11489 (pthread_gnome_vfs_async_create),
11490 (pthread_gnome_vfs_async_create_as_channel),
11491 (pthread_gnome_vfs_async_close), (pthread_gnome_vfs_async_read),
11492 (pthread_gnome_vfs_async_write),
11493 (pthread_gnome_vfs_async_create_symbolic_link),
11494 (pthread_gnome_vfs_async_get_file_info),
11495 (pthread_gnome_vfs_async_set_file_info),
11496 (pthread_gnome_vfs_async_find_directory), (async_load_directory),
11497 (pthread_gnome_vfs_async_load_directory),
11498 (pthread_gnome_vfs_async_load_directory_uri): Changed all the ops
11499 to not return error codes right away, and do all error reporting
11502 * libgnomevfs-pthread/gnome-vfs-job.h: Got rid of the error code
11503 result from gnome_vfs_async_cancel.
11505 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_op_destroy),
11506 (execute_open), (execute_open_as_channel), (execute_create),
11507 (execute_create_symbolic_link), (execute_create_as_channel),
11508 (execute_load_directory_not_sorted),
11509 (execute_load_directory_sorted): For all the operations that now
11510 might have NULL for the URI, report an
11511 GNOME_VFS_ERROR_INVALID_URI.
11512 (gnome_vfs_job_cancel): Got rid of the error code result from
11513 gnome_vfs_async_cancel.
11515 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_async_open),
11516 (gnome_vfs_async_open_uri), (gnome_vfs_async_open_as_channel),
11517 (gnome_vfs_async_create), (gnome_vfs_async_create_as_channel),
11518 (gnome_vfs_async_create_uri),
11519 (gnome_vfs_async_create_symbolic_link), (gnome_vfs_async_close),
11520 (gnome_vfs_async_read), (gnome_vfs_async_write),
11521 (gnome_vfs_async_get_file_info), (gnome_vfs_async_find_directory),
11522 (gnome_vfs_async_set_file_info),
11523 (gnome_vfs_async_load_directory_uri),
11524 (gnome_vfs_async_load_directory), (gnome_vfs_async_cancel),
11525 (gnome_vfs_async_remove_status_callback): Don't expect a result
11526 from the back end for most functions. Get rid of error checking
11527 and the fake idle-based callbacks for the errors noticed before
11528 entering the back end.
11530 * modules/http-method.c: (get_utime), (cache_init),
11531 (cache_shutdown), (cache_entry_new), (cache_trim),
11532 (defaults_file_info_new): Use (void) instead of () for functions
11533 with no parameters.
11535 * test/test-find-directory.c: Add missing #include <string.h>.
11537 2000-10-30 Gene Z. Ragan <gzr@eazel.com>
11539 Added cdda module files to CVS. They are not currently built by
11540 default. The module is not yet complete. If you want to build it
11541 and see it break, you need to have libcdparanoia installed. You can
11542 download this at www.xiph.org. I have not yet done the debugging
11543 work to try and build against different install locations of the
11544 lib. I would reccomend not hacking on this until I clean up
11547 * modules/Makefile.am:
11548 Added comented out entries for cdda module
11550 * modules/default-modules.conf:
11551 Added comented out entry for cdda module
11553 * modules/cdda-cddb.c:
11554 * modules/cdda-cddb.h:
11555 (CDDBSum), (CDDBDiscid), (CDDBGenre),
11558 * modules/cdda-cdrom-extensions.h:
11559 * modules/cdda-method.c:
11560 * modules/cdda-method.h:
11561 (cdda_context_new), (cdda_context_free),
11562 (cdda_set_file_info_for_root), (read_handle_new),
11563 (read_handle_destroy), (do_is_local), (do_open), (do_create),
11564 (do_close), (paranoia_callback), (do_read), (do_write),
11565 (display_toc), (open_cdda_device), (is_file_is_on_disc),
11566 (get_file_info_for_basename), (do_get_file_info),
11567 (do_open_directory), (do_close_directory), (get_data_size),
11568 (get_data_size_from_uri), (do_read_directory), (do_check_same_fs),
11569 (do_make_directory), (do_remove_directory), (do_move), (do_unlink),
11570 (vfs_module_init), (vfs_module_shutdown), (PutNum),
11571 (write_wav_header):
11573 2000-10-29 Dan Winship <danw@helixcode.com>
11575 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c
11576 (gnome_vfs_mime_sniff_buffer_new_from_memory): Set read_whole_file
11577 to TRUE so it doesn't try to call the (non-existent) read
11580 2000-10-30 Pavel Cisler <pavel@eazel.com>
11582 * libgnomevfs/gnome-vfs-utils.c:
11583 (gnome_vfs_unescape_string_for_display),
11584 (gnome_vfs_make_canonical_pathname):
11585 * libgnomevfs/gnome-vfs-utils.h:
11586 Add a public "make canonical path" call for callers that do their
11589 2000-10-29 Pavel Cisler <pavel@eazel.com>
11591 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_to_string):
11592 Make gnome_vfs_uri_to_string not interpret uris in the form
11593 foo:bar as foo://bar. This fixes a bug Mathieu is working on and
11595 Get rid of an extra comma.
11597 * modules/file-method.c: (do_read):
11600 * test/test-uri.c: (test_uri_to_path), (main):
11601 Add some tests and tweak others to match the proper // handling.
11603 2000-10-29 Eskil Heyn Olsen <eskil@eazel.com>
11605 * gnome-vfs.spec.in:
11606 if $prefix/lib not in /etc/ld.so.conf, add it.
11608 2000-10-28 Pavel Cisler <pavel@eazel.com>
11610 * libgnomevfs/gnome-vfs-xfer.c: (progress_set_source_target_uris):
11611 Fix 4059 - Duplicated fiels don't appear in WebDAV until refres.
11612 This happened on any uris that required a name/password pair.
11613 It was a stupid bug where the notification callbacks were passed
11614 the name without a password. This was because the uri was used in
11615 the progress dialog display. It's no longer displayed in a raw form
11616 so fixing this is a simple matter of passing back the entire uri.
11618 2000-10-28 Pavel Cisler <pavel@eazel.com>
11620 * modules/http-method.c: (sig_gconf_value_changed),
11621 (http_proxy_for_host_port), (process_propfind_propstat),
11622 (propfind_href_to_vfs_uri), (null_handling_strcmp),
11623 (match_unescaped_uri_text), (process_propfind_response),
11624 (make_propfind_request), (do_open_directory), (do_read_directory),
11625 (do_get_file_info), (do_is_local), (do_make_directory),
11626 (do_remove_directory), (is_same_fs), (do_move), (do_unlink),
11627 (do_check_same_fs), (vfs_module_init), (vfs_module_shutdown):
11628 Fix 4110 - document icon instead of folder icon for subfolder...
11629 I found a fix to this one while working on 4059.
11630 The problem was that the webdav server was overzealous about
11631 escaping and was returning urls that had '(' escaped. This
11632 is not needed according to the RFC. A uri text compare was failing
11633 because of this. Changed the test to unescape before the comparison.
11634 I also took a stab at cleaning up the three or so formatting styles
11635 throught the code into the required style in at least a part of the file.
11637 2000-10-27 Darin Adler <darin@eazel.com>
11639 Fixed bugs in set_file_info enough to make it suitable for use
11640 renaming files in Nautilus.
11642 Also fixed problems in the MIME data so Aaron has a clean starting
11643 point to add things and check them with the check-mime.pl script.
11645 * data/mime/gnome-vfs-mime-magic: Fix an entry that had a stray
11646 plus sign at the beginning of the line.
11647 * data/mime/gnome-vfs.applications: Fixed misspelled MIME types (I
11648 think Andy just introduced these).
11649 * data/mime/gnome-vfs.keys: The type must be text/htmlh, even if
11650 people think of it as text/htmlH, because we use all lower-case in
11651 the MIME files and MIME types are not case sensitive.
11653 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
11654 (pthread_gnome_vfs_async_set_file_info): Allow FOLLOW_LINKS
11655 option. There was no good reason to disallow it and we need it now
11658 * libgnomevfs-pthread/gnome-vfs-job.c: (serve_channel_write): Get
11659 rid of gratuitous use of alloca.
11660 (execute_set_file_info): Use the correct URI to get info if the
11661 set info call renamed the file. Before, it would try to use the
11662 old URI even though the file had been renamed.
11664 * modules/ftp-method.c: (do_path_command): Add FIXME about bad
11665 handling of paths with escape sequences.
11666 (do_get_file_info_from_handle): Implemented this.
11667 (do_move): Add FIXME about ignoring force_replace.
11668 (do_set_file_info): Implement.
11669 * modules/http-method.c: (do_move): Add FIXME about ignoring
11671 (do_set_file_info): Implement.
11673 * libgnomevfs/gnome-vfs-xfer.c:
11674 (call_progress_with_current_names): Make the action default to
11675 abort if you don't pass a callback instead of defaulting to
11676 retry. This caused an infinite loop when failing to rename a
11677 file. Also remove gratuitous include of alloca.h.
11679 * modules/file-method.c: (do_set_file_info): Add FIXME about file
11680 names with "/" in them.
11682 * modules/bzip2-method.c: Fix list of function pointers to include
11683 set_file_info (was out of sync.).
11684 * modules/gconf-method.c: Fix list of function pointers to include
11685 set_file_info (was out of sync.).
11686 * modules/gzip-method.c: Fix list of function pointers to include
11687 set_file_info (was out of sync.).
11688 * modules/pipe-method.c: Fix list of function pointers to include
11689 set_file_info (was out of sync.).
11691 * libgnomevfs/gnome-vfs-uri.c: Remove gratuitous include of
11694 * modules/ftp-method.h: Tweak.
11695 * libgnomevfs/gnome-vfs-private.h: Whitespace.
11696 * test/test-uri.c: Fixed a comment.
11698 2000-10-26 Andy Hertzfeld <andy@eazel.com>
11700 * data/mime/gnome-vfs.keys:
11701 at Bart's request, made star office the default application
11702 for star office documents.
11704 * data/mime/gnome-vfs.applications:
11705 changed the path for invoking star office from "office52/soffice"
11706 to "soffice" so it works with a broader range of versions
11708 2000-10-26 John Sullivan <sullivan@eazel.com>
11710 * test/test-uri.c: (main): Added test case and two
11711 FIXME bugs for test cases with odd results.
11713 2000-10-26 John Sullivan <sullivan@eazel.com>
11715 * modules/http-method.c: (make_propfind_request):
11716 More cleanup of *handle_return handling. This
11717 stuff was revealed when I temporarily #defined
11718 DAV_NO_CACHE to investigate another bug.
11720 2000-10-26 John Sullivan <sullivan@eazel.com>
11722 Crashed while fiddling around in WebDAV looking at some other
11723 bug. Found cause of crash, and cleaned up various callers
11724 of offending routine (make_request). Maybe this will improve
11725 general stability for WebDAV.
11727 * modules/http-method.c:
11728 (make_request): Fixed case where failure in
11729 gnome_vfs_inet_connection_create would cause this routine to
11730 leave *handle_return uninitialized (now it sets it to NULL);
11731 rearranged code a little to fix leaks.
11732 (do_create): Rearranged code slightly for clarity.
11733 (do_close): Fixed leak of handle.
11734 (make_propfind_request): combined handle and handle_return
11735 into single variable for clarity and to avoid leaks.
11736 (do_get_file_info): added assert, removed unnecessary handle = NULL
11738 (do_make_directory): clarified use of handle
11740 2000-10-26 Darin Adler <darin@eazel.com>
11742 * libgnomevfs-corba/Makefile.am:
11743 * libgnomevfs-pthread/Makefile.am:
11744 * libgnomevfs/Makefile.am:
11745 * modules/Makefile.am:
11746 Use INCLUDES instead of CPPFLAGS like the automake
11747 documentation says.
11749 2000-10-25 Rebecca Schulman <rebecka@eazel.com>
11751 * modules/http-method.c: (do_create):
11752 Fixed bugzilla bug 3865, that you couldn't duplicate
11753 vault files. The problem was that the do_create
11754 method was ignoring the "exclusive" flag, and
11755 so a copy would create a file and the create
11756 method would silently be ok and overwrite
11757 the file, as per http protocol defaults.
11758 We now check for existence first, by doing
11761 2000-10-25 Darin Adler <darin@eazel.com>
11763 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
11764 (gnome_vfs_mime_sniff_buffer_get): More fixes to this function.
11765 Made it no longer do the "no op" seeks. Got rid of the problem
11766 where it would only read one chunk if the buffer's seek pointer
11767 was NULL. Make the check at the end of the function be based on
11768 the actual size requested, rather than on the amount of data
11769 we decided to read (which could be more than the request).
11771 2000-10-25 Mathieu Lacage <mathieu@eazel.com>
11774 fix LIBEFS check. add gtkdoc check.
11776 * devel-docs/gnome-vfs/gnome-vfs-decl.txt:
11777 * devel-docs/gnome-vfs/gnome-vfs-docs.sgml:
11778 avoid an obvious error when compiling.
11780 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime-info.sgml:
11781 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime.sgml:
11782 * devel-docs/gnome-vfs/tmpl/libgnome-vfs.sgml:
11783 regenerate templates...
11785 2000-10-25 Darin Adler <darin@eazel.com>
11787 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
11788 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
11789 (gnome_vfs_mime_sniff_buffer_get): Oops, got it wrong. This fixes
11790 another case that I missed.
11792 2000-10-25 Darin Adler <darin@eazel.com>
11794 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
11795 (gnome_vfs_mime_sniff_buffer_get): Fixed error with the handling
11796 of a case where the file is smaller than the requested sniff
11797 buffer. The check was broken, and it also didn't set an error
11798 code to let the caller know there's insufficient data.
11800 * configure.in: Fixed check of gcc command-line switches to work
11801 properly even with -O.
11803 2000-10-24 John Sullivan <sullivan@eazel.com>
11805 * data/mime/gnome-vfs.mime: Added extension-based MIME type
11806 entries for Word and Excel, since we want them to play nice
11807 with StarOffice at least.
11809 2000-10-24 Rebecca Schulman <rebecka@eazel.com>
11811 Fixed a bug in the gnome vfs mime magic that we weren't
11812 actually seeking and reading the right chunks of files.
11813 Fixing this exposed a large performance problem related to
11814 mime types with magic numbers far into the file, so with
11815 Pavel's agreement, I remooved the microsoft mime types that
11816 are a 2x performance issue for the mime code. apparently,
11817 we never noticed they were working in the first place, but this
11818 really isn't an appropriate thing to do in the future.
11819 Also fixed a bug that the mime stuff was trying to reread after
11820 the end of the file again and again, but I don't think this
11821 helped performance as much as we first hoped.
11823 * data/mime/gnome-vfs-mime-magic:
11824 removed the microsoft mime types
11825 * libgnomevfs/gnome-vfs-mime-magic.c: (gnome_vfs_mime_magic_parse),
11826 redid this to detect the end of file case,
11827 (try_one_pattern_on_buffer),
11828 (gnome_vfs_mime_try_one_magic_pattern),
11829 (gnome_vfs_mime_get_magic_table),
11830 (gnome_vfs_sniff_buffer_looks_like_text):
11833 * libgnomevfs/gnome-vfs-mime-sniff-buffer-private.h:
11834 added the "read_whole_file" entry to the sniff buffer struct
11835 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
11836 (gnome_vfs_mime_sniff_buffer_get):
11837 don't read if we've already read the whole file
11838 * libgnomevfs/gnome-vfs-mime.c: (file_seek_binder):
11839 Fix mistake where we'd swapped two arguments of
11840 fseek. Amazingly, it worked anyways, that way. :)
11842 2000-10-24 John Sullivan <sullivan@eazel.com>
11844 * modules/ftp-method.c: (do_read_directory):
11845 added FIXME about not following symlinks
11847 2000-10-24 John Sullivan <sullivan@eazel.com>
11849 * data/mime/gnome-vfs.keys: Added entry for
11850 audio/x-mpeg, which is returned by some web servers
11851 instead of the audio/x-mp3 that gnome-vfs knew about.
11853 2000-10-23 Pavel Cisler <pavel@eazel.com>
11855 More work on 2989, this should conclude the GnomeVFS portion of the work.
11857 * libgnomevfs/gnome-vfs-find-directory.c:
11858 Add comments about the meaning of the parameters.
11860 * modules/file-method.c: (find_trash_in_hierarchy),
11861 (try_creating_trash_in), (save_trash_entry_cache),
11862 (update_one_cached_trash_entry), (add_local_cached_trash_entry),
11863 (read_saved_cached_trash_entries), (create_trash_near),
11864 (find_locally_cached_trash_entry_for_device_id),
11865 (find_or_create_trash_near), (find_trash_directory),
11866 (do_find_directory):
11867 Add a logic where the create_if needed flag can be specified
11868 without the find_if_needed to signify that we want to just create
11869 the Trash in the right place without first searching for an existing
11871 Fix a bug where a newly created Trash item would not get cached.
11872 Fix a leak in read_saved_cached_trash_entries.
11873 Fix a bug in create_trash_near that would cause the call to try
11874 create in one directory above the disk we asked to create it.
11875 Added some debugging code.
11876 Tons of cleanup and comments.
11878 2000-10-24 Grahame Bowland <gbowland@gbowland.com>
11881 * modules/Makefile.am:
11882 * modules/default-modules.conf:
11883 * modules/nfs-method.c:
11884 * modules/nfs-method.h:
11885 * modules/nfs-method_mount.h:
11886 * modules/nfs-method_mount_xdr.c:
11887 * modules/nfs-method_nfs_prot.h:
11888 * modules/nfs-method_nfs_prot_xdr.c:
11889 Added initial NFS support to gnome-vfs. Read-only support reasonably stable;
11890 write support is not. Symlinks are one notable problem that will be fixed in
11893 2000-10-23 Mike Fleming <mfleming@eazel.com>
11895 * modules/http-method.c:
11896 Turn off debugging spew, add myself to the "Authors" comment
11898 2000-10-22 Mike Fleming <mfleming@eazel.com>
11900 * modules/http-method.c: (cache_add_uri_and_children),
11901 (process_propfind_response), (make_propfind_request):
11903 Caching and processing propfind requests now actually works with
11904 filenames containing escape characters (bugzilla.eazel.com bug 3875)
11906 2000-10-22 Kjartan Maraas <kmaraas@gnome.org>
11908 * data/mime/gnome-vfs.keys: Started adding Norwegian
11909 translations to this.
11911 2000-10-20 Pavel Cisler <pavel@eazel.com>
11913 * modules/file-method.c: (mkdir_recursive),
11914 (update_one_cached_trash_entry), (add_local_cached_trash_entry),
11915 (read_saved_cached_trash_entries):
11916 Fix mkdir_recursive to not bail before creating the last directory level.
11917 Fix find_directory trash entry caching to update an existing cache entry
11918 when new Trash gets created instead of just adding a new entry.
11919 Fix a test that checked if a trash directory existed and was backwards.
11921 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_extract_short_name):
11922 Small unescaping tweak.
11924 2000-10-20 Pavel Cisler <pavel@eazel.com>
11926 * modules/file-method.c: (mkdir_recursive):
11927 Fix an "extra increment" bug and a memory leak.
11928 Tweak the path for saving the trach entry cache file.
11930 * modules/file-method.c: (read_saved_cached_trash_entries):
11931 Removed a confused g_warning for a case that is legal.
11933 2000-10-20 Pavel Cisler <pavel@eazel.com>
11935 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new):
11936 Fix a memory trasher Mathieu found.
11938 2000-10-20 Michael Engber <engber@eazel.com>
11940 * libgnomevfs/gnome-vfs-xfer.c: (copy_directory):
11941 progress callbacks used to get called in situations
11942 when they shouldn't (error or skip cases).
11944 2000-10-20 John Sullivan <sullivan@eazel.com>
11946 * data/mime/gnome-vfs.keys:
11947 * data/mime/gnome-vfs.mime: Changed staroffice types
11948 from "x-soffice-*" to "x-staroffice-*" after user reported
11951 2000-10-20 John Sullivan <sullivan@eazel.com>
11953 * data/mime/gnome-vfs.keys: Added text/htmlH, which is used
11954 by the help system; also moved application/mime-type-test to
11955 alphabetical order so check-mime.pl doesn't gripe about it.
11957 2000-10-20 John Sullivan <sullivan@eazel.com>
11959 * libgnomevfs/gnome-vfs-async-ops.h: Added missing include
11960 that was making this not standalone. This was uncovered by
11961 a Nautilus extra-includes-removing pass that caused build
11964 2000-10-20 Pavel Cisler <pavel@eazel.com>
11966 Work on bug 2989, not done yet.
11968 * modules/file-method.c: (mkdir_recursive),
11969 (match_trash_item_by_device_id), (find_disk_top_directory),
11970 (save_trash_entry_cache), (add_local_cached_trash_entry),
11971 (add_cached_trash_entry), (destroy_cached_trash_entry),
11972 (read_saved_cached_trash_entries), (create_trash_near),
11973 (cached_trash_entry_exists),
11974 (find_locally_cached_trash_entry_for_device_id),
11975 (find_cached_trash_entry_for_device), (find_trash_near),
11976 (find_trash_directory), (do_find_directory):
11977 Add a two level caching scheme for remembering trash folder locations.
11978 This will help us only do the long search for a Trash directory do
11979 the first time Nautilus ever runs or if a Trash directory gets moved
11980 manually by the user to a different place.
11981 In addition to caching the locations in a list in memory we now
11982 also save them into a file in the user home settings directory.
11983 Disks that have not had a Trash directory created on them are
11984 marked as such and next time Nautilus is run, they are not searched
11985 unless the user specifically requests a Trash directory to get created
11986 (by throwing something from the respective directory to the Trash).
11987 I still need to test/fix bugs in this.
11989 * test/test-find-directory.c: (main):
11990 Tweak test code to help debug the new code.
11992 2000-10-19 Pavel Cisler <pavel@eazel.com>
11994 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory):
11995 Fix bugs 3861 and 3882 - emptying the Trash containing
11996 items with fancy names.
11997 Neither was PR2 but I noticed the bug and it was trivial to fix.
11999 2000-10-18 Mike Fleming <mfleming@eazel.com>
12001 * modules/http-method.c: (make_propfind_request):
12002 See John, I told you that EOF change would break stuff :)
12003 (minor case of internal use of do_read not expecting the EOF error)
12005 2000-10-18 Mike Fleming <mfleming@eazel.com>
12007 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_get_volume_free_space):
12008 Return GNOME_VFS_ERROR_NOT_SUPPORTED instead of ERROR_GENERIC when
12009 this call is attempted on a non-local filesystem.
12011 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_uri_internal):
12012 Ignore errors from gnome_vfs_get_volume_free_space, which doesn't
12013 work on non-local filesystems
12015 * modules/http-method.c: (http_status_to_vfs_result),
12016 (make_propfind_request), (do_make_directory),
12017 (do_remove_directory):
12019 Enhance HTTP error to GNOME VFS error mapping
12020 Make MKCOL return correct code when directory already exists
12021 (was preventing Nautilus Duplicate from working)
12023 This should fix bugzilla.eazel.com 3735
12026 2000-10-18 John Sullivan <sullivan@eazel.com>
12028 * modules/http-method.c: (do_read):
12029 Made http module return GNOME_VFS_ERROR_EOF when it reads
12030 0 bytes. It was confusing clients by returning GNOME_VFS_OK
12033 2000-10-17 Pavel Cisler <pavel@eazel.com>
12035 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_extract_short_name):
12036 Fix 1087 - gnome_vfs_uri_extract_short_name should probably unescape.
12037 It already was but it was using the wrong unescape funciton.
12039 2000-10-18 Pavel Cisler <pavel@eazel.com>
12041 Fix 2763 - "the uri code does not handle ../ and ./ like
12042 the RFC says it should"
12044 * libgnomevfs/gnome-vfs-private-utils.c: (find_next_slash),
12045 (find_slash_before_offset), (collapse_slash_runs),
12046 (gnome_vfs_canonicalize_pathname):
12047 Redo the routine that converts paths to a canonical form,
12048 fix all the bugs I found.
12050 * test/test-uri.c: (test_canonicalize), (main):
12051 Add a test suite for converting paths to canonical form and
12052 converting uris to canonical form.
12054 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri),
12056 Get rid of unused macros, testing code that is no longer needed
12057 and some incorrect commented out code.
12059 2000-10-17 Darin Adler <darin@eazel.com>
12061 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_new):
12062 * modules/http-method.c: (make_propfind_request),
12063 (do_get_file_info):
12064 * modules/test-method.c: (load_config_file), (do_move),
12065 (do_check_same_fs), (vfs_module_init):
12066 * test/test-uri.c: (main):
12067 Marked FIXMEs with bug numbers.
12069 2000-10-17 Pavel Cisler <pavel@eazel.com>
12071 * libgnomevfs/gnome-vfs-uri.c:
12072 (gnome_vfs_uri_new):
12073 Fix bug 2840 - URI parsing works wrong for URIs with # characters.
12074 The substring after '#' was being improperly parsed.
12076 * libgnomevfs/gnome-vfs-types.h:
12077 * libgnomevfs/gnome-vfs-uri.c:
12078 (gnome_vfs_uri_append_string), (gnome_vfs_uri_append_path):
12079 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory),
12080 (PrependOneURIToList), (copy_items), (move_items), (link_items),
12081 (gnome_vfs_new_directory_with_unique_name):
12082 Made gnome_vfs_uri_append_path escape the supplied path for convenience.
12083 New gnome_vfs_uri_append_string now replaces the original behavior that
12084 expects the supplied uri part to be properly escaped. Hopefully this will
12085 be somewhat less confusing and easier to use.
12086 Used gnome_vfs_uri_append_string as needed in code that relied on
12087 old gnome_vfs_uri_append_path behavior.
12089 * libgnomevfs/gnome-vfs-types.h:
12090 * libgnomevfs/gnome-vfs-uri.c:
12091 (gnome_vfs_uri_new), (destroy_element), (gnome_vfs_uri_dup),
12092 (gnome_vfs_uri_to_string), (gnome_vfs_uri_get_fragment_identifier):
12093 Added proper support for uri fragment identifiers, this seemed like
12094 a necessary addition to fixing bug 2840 properly.
12095 Fragment identifiers are now stored in a special field of GnomeVFSURI
12096 and they no longer get returned as a part or the uri path or stripped.
12097 They can be optionally excluded by gnome_vfs_uri_to_string using the
12098 new GNOME_VFS_URI_HIDE_FRAGMENT_IDENTIFIER flag.
12100 * libgnomevfs/gnome-vfs-uri.c:
12101 (split_toplevel_uri):
12102 Fix a bug where host_return was incorrectly checked causing "/" to
12103 always get appened to the resulting uri text.
12105 * libgnomevfs/gnome-vfs-types.h:
12106 * libgnomevfs/gnome-vfs-uri.c:
12107 (split_toplevel_uri_old), (uri_strspn_to), (split_toplevel_uri),
12108 (parse_uri_substring), (gnome_vfs_uri_new), (gnome_vfs_uri_dup),
12109 (gnome_vfs_uri_append_string), (gnome_vfs_uri_append_path),
12110 (gnome_vfs_uri_append_file_name), (gnome_vfs_uri_to_string),
12111 (string_match), (compare_elements), (gnome_vfs_uri_equal),
12112 (gnome_vfs_uri_is_parent), (gnome_vfs_uri_get_path),
12113 (gnome_vfs_uri_get_basename), (gnome_vfs_uri_extract_dirname),
12114 (gnome_vfs_uri_extract_short_name),
12115 (gnome_vfs_uri_extract_short_path_name)
12118 * test/test-uri.c: (test_file_path_to_uri_string),
12119 (test_uri_has_fragment_id), (main):
12120 Add tests for new fragment identifier support.
12121 Fix up/extend tests for extended uri support.
12122 Add test for path escaping/unescaping.
12123 Eliminate FIXMEs that were fixed by this.
12125 2000-10-17 Jarkko Ranta <jjranta@cc.joensuu.fi>
12127 * configure.in: added fi to all_linguas
12129 2000-10-16 Ramiro Estrugo <ramiro@eazel.com>
12131 * gnome-vfs.spec.in:
12132 Add gnome-vfs.applications. This fixes the problem where users
12133 using snapshot rpms where not getting sidebar buttons or "Open
12134 With" menu items. Thanks for Jurgen for pointing this out.
12136 2000-10-16 Gene Z. Ragan <gzr@eazel.com>
12138 Fixed bug 3042, Adding new mime type doesn't work.
12140 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
12141 (nautilus_mime_type_capplet_show_new_mime_window):
12143 * mime-type-capplet/nautilus-mime-type-capplet.c:
12144 (add_mime_clicked):
12145 Write proper description key.
12147 * libgnomevfs/gnome-vfs-mime-handlers.c:
12148 (gnome_vfs_mime_add_extension):
12149 Work in progress on adding user defined extensions
12151 2000-10-16 Gene Z. Ragan <gzr@eazel.com>
12153 Fixed bug 3040, Action column has wrong contents
12155 Corrected an instance where text was not getting freed
12156 and reset. Also fixed a few leaks in the list
12159 * mime-type-capplet/nautilus-mime-type-capplet.c:
12160 (populate_application_menu), (populate_viewer_menu),
12161 (add_mime_clicked), (populate_mime_list):
12163 2000-10-16 Ramiro Estrugo <ramiro@eazel.com>
12165 * modules/file-method.c:
12166 Include <stdio.h> to get the prototype for rename().
12168 2000-10-14 Ian McKellar <yakk@yakk.net.au>
12170 * modules/ftp-method.c: (dircache_setup), (dircache_expire):
12171 Initial caching support. Currently disabled.
12173 (do_path_transfer_command):
12174 Fix for empty paths.
12176 (ftp_connection_create), (ftp_connection_destroy),
12177 (ftp_connection_aquire), (ftp_connection_release):
12178 Count connections for debugging purposes.
12180 (ls_to_file_info), (do_get_file_info),
12181 (do_open_directory), (do_read_directory):
12182 * modules/ftp-method.h:
12183 Initial symlink expansion support
12185 * test/test-directory.c: (print_list):
12186 Better symlink debugging output.
12188 2000-10-12 Mike Fleming <mfleming@eazel.com>
12190 * modules/http-method.c:
12191 Added define from GMan to make it compile under Solaris (hopefully)
12193 2000-10-12 Martin Baulig <baulig@suse.de>
12195 * libgnomevfs-corba/gnome-vfs-slave.c (impl_Request_get_file_info):
12196 Call CORBA_string_dup() on p->name, p->symlink_name and p->mime_type.
12198 2000-10-12 Grahame Bowland <gbowland@tartarus.uwa.edu.au>
12200 * libgnomevfs/gnome-vfs-result.c:
12201 (gnome_vfs_result_from_errno_code), (gnome_vfs_result_from_errno):
12202 * libgnomevfs/gnome-vfs-result.h:
12203 Added a gnome_vfs_result_from_errno_code convenience call.
12205 2000-10-11 Mike Fleming <mfleming@eazel.com>
12207 * modules/http-method.c:
12208 Oops. I left the debug messages on
12210 2000-10-11 Mike Fleming <mfleming@eazel.com>
12212 * modules/http-method.c: (propfind_href_to_vfs_uri):
12213 Forgoet a NULL on g_strconcat, as I'm prone to.
12215 2000-10-11 Darin Adler <darin@eazel.com>
12217 Fixed broken remnants of support for building without GConf.
12219 * libgnomevfs/gnome-vfs-mime-handlers.c: (unref_gconf_engine),
12220 (get_user_level): Fixed code to work with new GConf. It was still
12221 using the pre-0.9 GConf API, but it was inside HAVE_GCONF
12222 conditionals which were always false.
12223 * Makefile.am: Removed HAVE_GCONF conditionals..
12224 * configure.in: Removed broken code to set up HAVE_GCONF and
12226 * modules/Makefile.am: Removed HAVE_GCONF conditionals.
12228 2000-10-10 Mike Fleming <mfleming@eazel.com>
12230 * modules/http-method.c: (propfind_href_to_vfs_uri),
12231 (process_propfind_response):
12232 ugly hack: Eazel Vault returns "https" URI's in propfind requests,
12233 which was causing DAV to choke.
12235 2000-10-09 Pavel Cisler <pavel@eazel.com>
12237 * libgnomevfs/gnome-vfs-xfer.c: (PrependOneURIToList),
12238 (non_recursive_empty_directory), (remove_directory),
12239 (gnome_vfs_xfer_empty_trash):
12240 work on 825 - Inability to empty Trash after trashing a deeply
12241 nested directory. Added a fallback call that builds a uri list
12242 first without keeping directory file descriptors opened.
12244 2000-10-09 Glynn Foster <glynn.foster@sun.com>
12247 * libgnomevfs/gnome-vfs-utils.c: (istr_has_prefix),
12248 (gnome_vfs_get_volume_free_space):
12249 Added Solaris-specific changes to needed for getting the
12252 2000-10-09 Robin * Slomkowski <rslomkow@eazel.com>
12254 * configure.in: upped the version to 0.3.1.0 as 0.3.1 has already been
12255 released many moons ago
12257 2000-10-05 Mike Fleming <mfleming@eazel.com>
12259 * modules/http-method.c: (http_proxy_for_host_port),
12262 When HTTP proxy is enabled, proxy is explicitly bypassed for "localhost"
12263 and "127.x.x.x.". We'd like to have a general configuration mechanism for
12264 non-proxy URL's in the future. This was causing bugzilla.eazel.com 3492
12266 Also fixed some debug messages to work with the new gconf
12268 2000-10-05 Ramiro Estrugo <ramiro@eazel.com>
12270 * modules/http-method.c: (vfs_module_init):
12271 Workaround a bug in gconf by not preloading a directory that is
12274 2000-10-04 Pavel Cisler <pavel@eazel.com>
12276 * libgnomevfs/gnome-vfs-utils.c:
12277 Move includes around to unbreak the build on Linux.
12279 2000-09-21 Chris Toshok <toshok@helixcode.com>
12281 * configure.in: add checks for sys/vfs.h and sys/mount.h
12283 * libgnomevfs/gnome-vfs-utils.c: sys/vfs.h doesn't exist on some
12284 systems, so wrap #if HAVE_SYS_VFS_H. if there's no sys/vfs.h, try
12285 sys/mount.h. also, include sys/param.h if it's available (since
12286 including sys/mount.h on freebsd without first including
12287 sys/param.h breaks, at least in some versions of 4.x.)
12289 2000-10-04 Ramiro Estrugo <ramiro@eazel.com>
12293 Add profiling support via --enable-profiler.
12295 2000-10-03 Mike Fleming <mfleming@eazel.com>
12297 * data/mime/gnome-vfs.keys:
12298 bugzilla.eazel.com 2854
12299 Icon view is now the default Nautilus view for viewing DAV-enabled
12302 2000-10-03 Ramiro Estrugo <ramiro@eazel.com>
12305 * gnome-vfs.spec.in:
12306 * modules/gconf-method.c: (read_directory):
12307 * modules/http-method.c: (sig_gconf_value_changed),
12309 Update for GConf HEAD (0.9)
12311 2000-10-03 Christophe Merlet <christophe@merlet.net>
12313 * data/mime/gnome-vfs.keys: Added french strings.
12315 2000-10-02 Mike Fleming <mfleming@eazel.com>
12317 More file info caching stuff. Now caches the contents of directories
12318 (for a fairly short time). This still doesn't squeeze out as much
12319 performance as I had hoped, mostly because of Nautilus's habit of
12320 hitting ".nautilus-metafile.xml"'s . Negative caching and updating
12321 of the cache following method invocation (rather than just invalidating)
12322 could improve performance greatly.
12324 * modules/http-method.c: (cache_init), (cache_shutdown),
12325 (cache_entry_free), (cache_uri_to_string), (cache_check_directory),
12326 (cache_check_directory_uri), (cache_add_no_strdup), (cache_add),
12327 (cache_add_uri_and_children),
12328 (cache_invalidate_entry_and_children),
12329 (cache_invalidate_uri_and_children), (cache_invalidate_uri_parent),
12330 (make_request), (do_create), (do_close), (make_propfind_request),
12331 (do_open_directory), (do_make_directory), (do_remove_directory),
12334 2000-10-02 Mike Fleming <mfleming@eazel.com>
12336 * modules/http-method.c: (do_open_directory):
12337 Fix foolish crasher
12339 2000-10-02 Mike Fleming <mfleming@eazel.com>
12341 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_clear),
12342 (gnome_vfs_file_info_ref), (gnome_vfs_file_info_unref),
12343 (gnome_vfs_file_info_copy):
12344 Made the GnomeVFSFileInfo ref count mechanism thread-safe
12345 (increments and decrements are not guarenteed to be atomic)
12347 * modules/http-method.c: (my_debug_printf), (get_utime),
12348 (cache_init), (cache_shutdown), (cache_entry_new),
12349 (cache_entry_free), (cache_trim), (cache_check),
12350 (cache_uri_to_string), (cache_check_uri), (cache_check_directory),
12351 (cache_add_no_strdup), (cache_add), (cache_add_uri_and_children),
12352 (cache_add_uri), (cache_invalidate), (cache_invalidate_uri),
12353 (cache_invalidate_entry_and_children), (check_header),
12354 (parse_header), (get_header), (create_handle), (make_request),
12355 (process_propfind_propstat), (process_propfind_response),
12356 (make_propfind_request), (do_open_directory), (do_read_directory),
12357 (do_get_file_info), (do_move), (vfs_module_init),
12358 (vfs_module_shutdown):
12359 Add the first phase of file info caching for DAV. (These code paths
12360 are not executing for non-DAV sites). Caching is on by default now.
12362 2000-10-02 Kjartan Maraas <kmaraas@gnome.org>
12364 * gnome-vfs.spec.in: Really fix installation of the
12365 man page with rpm-4.0. The newer version compresses the
12366 man pages by default. Used *.5* instead of *.5.gz
12368 2000-09-30 Pavel Cisler <pavel@eazel.com>
12370 * libgnomevfs/gnome-vfs-mime-magic.c:
12371 (gnome_vfs_sniff_buffer_looks_like_text):
12372 Fix a MIME sniffing bug that Bud was seeing where 0-byte files
12373 would show up as text/plain.
12375 * libgnomevfs/gnome-vfs-xfer.c: (remove_directory):
12376 Part I of fix to 1314 - Move to Trash faild if name conflict in
12379 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory):
12380 Handle errors during emptying directories properly.
12382 * libgnomevfs/gnome-vfs-xfer.c: (xfer_create_target),
12383 (move_items), (link_items):
12384 Cleanups. Rework the duplicate handling code.
12386 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_destination_is_writable),
12387 (gnome_vfs_xfer_uri_internal):
12388 Cleanups. Make the non-writable destination error and out of space on
12389 disk error get reported. Make the non-writable destination check only
12390 check on local file systems. Make the non-writable destination check
12391 clean up after a botched previous check that left behind a temporary
12394 2000-09-29 Darin Adler <darin@eazel.com>
12396 * gnome-vfs.spec.in: Turn off "make check" again. For some reason
12397 it still fails on the Tinderbox, even with the LD_LIBRARY_PATH
12400 2000-09-29 Eskil Heyn Olsen <eskil@eazel.com>
12402 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_uri_list),
12403 (gnome_vfs_xfer_uri), (gnome_vfs_xfer_delete_list):
12404 Fixed the g_return_val_if_fails.
12406 2000-09-29 John Sullivan <sullivan@eazel.com>
12408 Fixed bug I ran into where I would crash at Nautilus startup
12409 due to the presence of a NautilusDirectory for
12410 "file://.Trash-sullivan"
12412 * modules/file-method.c:
12413 (append_trash_path): Special-case "/" to avoid creating
12414 non-canonical "//.Trash" uris.
12415 (do_find_directory): convert path to uri before calling
12418 2000-09-29 Darin Adler <darin@eazel.com>
12420 * test/test-uri.c: (main): Added a test to demonstrate how badly
12421 gnome_vfs_uri_new handles paths that start with "//".
12423 2000-09-29 Darin Adler <darin@eazel.com>
12425 * gnome-vfs.spec.in: Turn "make check" back on.
12426 * test/Makefile.am: Fix tests so they work even before gnome-vfs
12427 is installed for the first time. This has a nice side effect of
12428 making the test actually test the compiled code, not a previously
12431 2000-09-29 J Shane Culpepper <pepper@eazel.com>
12433 * test/gnome-file-selection/gnome-file-selection-history.c:
12434 * test/test-dirop.c:
12435 * test/test-escape.c:
12436 * test/test-mime-handlers-set.c:
12437 * test/test-mime-handlers.c:
12438 * test/test-mime-info.c:
12439 * test/test-mime.c:
12440 * test/test-sync-create.c:
12441 * test/test-sync-write.c:
12442 * test/test-sync.c:
12443 * test/test-unlink.c:
12446 Fixing heaps of inlined function errors. The new redhat compilers
12447 do not recognize functions like exit, strcmp, etc without the correct
12448 header anymore. gnome-vfs now builds happily on RedHat 7.0.
12450 2000-09-29 J Shane Culpepper <pepper@eazel.com>
12452 * libgnomevfs/gnome-vfs-directory-filter.c:
12454 Adding <string.h> include so that above file builds right on
12457 2000-09-29 Darin Adler <darin@eazel.com>
12459 * gnome-vfs.spec.in: Turn off "make check" since it doesn't work
12460 until the library is installed because of the back end.
12461 * test/test-uri.c: (main): Add some test cases.
12463 2000-09-29 Darin Adler <darin@eazel.com>
12465 * gnome-vfs.spec.in: Make RPM builds do "make check" and also make
12466 them compile with warnings on. This make the Tinderbox more
12467 strict. Also use "make -k" so we get more errors at once on the
12468 Tinderbox. Errors are still errors, we just see more of them.
12470 * libgnomevfs/gnome-vfs-xfer.c: (system_time), (init_progress):
12471 Fix code to not use LL explicitly since that's not as portable as
12473 (init_progress): Got rid of code initializing the same fields to
12475 (empty_directory), (copy_items), (move_items), (link_items),
12476 (gnome_vfs_new_directory_with_unique_name): Change code to use
12477 file names in URI encoded form throughout. No unescaping in here.
12478 This was all done by changing which GnomeVFSURI calls we use.
12480 2000-09-28 Ramiro Estrugo <ramiro@eazel.com>
12483 Switch the order of assignment of warnings to CFLAGS so that they
12484 can be overridden by the user at configure time.
12486 2000-09-28 Mike Fleming <mfleming@eazel.com>
12488 Fixed file_info refcounting issues associated with _clear and
12489 _copy. (_clear retains the refcount; _copy leaves the refcount of
12490 the destination alone).
12492 Changed _init, _ref, and _unref to clarify that ref-counting a
12493 file_info that was allocated on the stack is illegal.
12495 Added _dup function.
12497 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_init),
12498 (gnome_vfs_file_info_clear), (gnome_vfs_file_info_ref),
12499 (gnome_vfs_file_info_unref), (gnome_vfs_file_info_copy),
12500 (gnome_vfs_file_info_dup):
12501 * libgnomevfs/gnome-vfs-file-info.h:
12503 2000-09-28 Pavel Cisler <pavel@eazel.com>
12505 * libgnomevfs-pthread/gnome-vfs-job.c:
12506 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_delete_items),
12507 (gnome_vfs_xfer_uri_list), (gnome_vfs_xfer_uri),
12508 (gnome_vfs_xfer_delete_list):
12509 * libgnomevfs/gnome-vfs-xfer.h:
12510 Add a gnome_vfs_xfer_delete_list call to match the feature
12511 that already exists in gnome_vfs_xfer_async. Andy needed this code
12512 for theme deleting.
12514 2000-09-28 Mike Fleming <mfleming@eazel.com>
12516 * libgnomevfs/gnome-vfs-iobuf.c: (gnome_vfs_iobuf_read):
12517 * modules/http-method.c: (http_file_handle_new), (get_header):
12519 I decided that the previous fix wasn't that great of an idea and
12520 fixed the caller of gnome_vfs_iobuf-read.
12522 2000-09-28 Mike Fleming <mfleming@eazel.com>
12524 * libgnomevfs/gnome-vfs-iobuf.c: (gnome_vfs_iobuf_read):
12526 gnome_vfs_iobuf_read was returning GNOME_VFS_OK if a read was attempted
12527 at the end of file. It now correctly returhns GNOME_VFS_ERROR_EOF.
12529 2000-09-29 Ian McKellar <yakk@yakk.net.au>
12531 * modules/ftp-method.c: (ls_to_file_info), (do_read_directory):
12532 Fixed a bug where NULL was being returned for the mime-type for
12533 files whose type was unknown. Fixed a bug where a reading a
12534 directory would busy-loop forever on an empty string.
12536 2000-07-28 Christophe Merlet <christophe@merlet.net>
12538 * mime-type-capplet/nautilus-mime-type.desktop: Added the
12541 2000-09-27 Mike Fleming <mfleming@eazel.com>
12543 get_file_info now makes a PROPFIND before a HEAD request, and does not
12544 make HEAD requests if the PROPFIND succeeds. This cuts down the number
12545 of HTTP requests made when working against a DAV server.
12546 Did some additional cleanup while I was at it.
12548 * modules/http-method.c: (defaults_file_info_new),
12549 (http_file_handle_new), (http_file_handle_destroy),
12550 (set_content_length), (set_content_type), (set_last_modified),
12551 (set_access_time), (create_handle), (make_request),
12552 (http_handle_close), (do_open), (do_create), (do_close),
12553 (do_write), (do_read), (process_propfind_response),
12554 (make_propfind_request), (do_open_directory), (do_close_directory),
12555 (do_read_directory), (do_get_file_info),
12556 (do_get_file_info_from_handle), (do_is_local), (do_make_directory),
12557 (do_remove_directory), (do_move), (do_unlink):
12559 2000-09-27 Darin Adler <darin@eazel.com>
12561 * libgnomevfs-pthread/gnome-vfs-job.c: (execute_xfer):
12562 Fix a double-destroy I introduced with my change to
12563 gnome_vfs_op_destroy yesterday.
12565 2000-09-27 Pavel Cisler <pavel@eazel.com>
12567 * libgnomevfs/gnome-vfs-mime-magic.c: (try_one_pattern_on_buffer),
12568 (gnome_vfs_mime_try_one_magic_pattern):
12569 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
12570 Some micro optimizations for calls that get executed a lot and show
12571 up high in profiles.
12573 2000-09-26 Darin Adler <darin@eazel.com>
12575 More storage leak fixes.
12577 * libgnomevfs-pthread/gnome-vfs-job.c: (free_get_file_info_data):
12579 (free_find_directory_data): Free the URI list.
12580 (gnome_vfs_op_destroy): Free the reference string in the
12581 create_symbolic_link case, the sort rules and pattern in the
12582 load_directory case, and the source and target URI lists in the
12584 (execute_load_directory): Don't free the sort rules and pattern
12585 here any more since it's now done in the common cleanup (for both
12586 successful and cancelled operations).
12588 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
12589 (pthread_gnome_vfs_async_create_symbolic_link): Whitespace.
12591 2000-09-26 Darin Adler <darin@eazel.com>
12593 Fixed some quit time deallocation stuff to be better for leak
12596 * libgnomevfs-pthread/gnome-vfs-job-slave.h:
12597 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
12598 (gnome_vfs_job_create_slave), (gnome_vfs_thread_backend_shutdown):
12599 Got rid of the thread count and the related mutex, since we use a
12600 job count instead. Since the job count is manipulated only on the
12601 main thread, we don't need volatiles or mutexes.
12603 * libgnomevfs-pthread/gnome-vfs-job.h:
12604 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_new):
12605 Increment the job count.
12606 (gnome_vfs_job_finish_destroy): Decrement the job count.
12607 (gnome_vfs_job_get_count): Return the job count.
12609 * libgnomevfs/gnome-vfs-backend.h:
12610 * libgnomevfs/gnome-vfs-backend.c:
12611 (gnome_vfs_backend_get_job_count): Add a way to get the job count
12612 from the back end to replace the old way of getting a thread count
12614 * test/test-async-cancel.c: (wait_until_vfs_threads_gone),
12615 (wait_until_vfs_threads_gone_no_main), (main): Use the job count
12616 instead of the thread count.
12618 2000-09-25 John Sullivan <sullivan@eazel.com>
12620 * modules/http-method.c: (make_request):
12621 This routine was assuming there was a valid hostname, but
12622 for cases like "http://foo:" there was not. Now checks for
12623 NULL hostname and returns GNOME_VFS_ERROR_INVALID_URI.
12625 2000-09-25 Pavel Cisler <pavel@eazel.com>
12627 * test/test-async-directory.c: (test_read_file_close_callback),
12628 (test_read_file_succeeded), (test_read_file_failed),
12629 (test_read_file_read_callback), (test_read_file_read_chunk),
12630 (test_read_file_open_callback), (test_read_file_async),
12631 (directory_load_callback), (main):
12632 Add optional file read testing to the directory async test for
12633 performance measurement.
12635 2000-09-25 Pavel Cisler <pavel@eazel.com>
12637 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
12638 * libgnomevfs-pthread/gnome-vfs-job.c:
12639 (dispatch_job_callback), (gnome_vfs_job_new):
12640 Remove some unnecessary thread startup synchronization to speed up
12643 * libgnomevfs/gnome-vfs-mime-magic.c: (try_one_pattern_on_buffer):
12644 Tweak a routine that gets called a lot to gain a bit of performance.
12646 * test/test-async-directory.c: (directory_load_callback), (main):
12649 2000-09-23 Mike Fleming <mfleming@eazel.com>
12651 * modules/translate-method.c: (tr_uri_translate):
12652 Removed dead FIXME (bugzilla.eazel.com 2798)
12654 2000-09-23 Mike Fleming <mfleming@eazel.com>
12656 * modules/translate-method.c: (tr_exec_open_child),
12657 (tr_exec_do_retain), (tr_handle_exec):
12659 Make vfs-translate's -exec -retain more robust. Leaking processes
12660 is less likely; processes are restarted if they die
12662 2000-09-22 Mike Fleming <mfleming@eazel.com>
12664 * modules/http-method.c: (http_handle_close):
12666 A NULL iobuf was being destroyed, which caused an assertion
12669 2000-09-22 Darin Adler <darin@eazel.com>
12671 * libgnomevfs-pthread/gnome-vfs-job.c: (dispatch_open_callback),
12672 (dispatch_create_callback), (dispatch_open_as_channel_callback),
12673 (dispatch_create_as_channel_callback),
12674 (dispatch_load_directory_callback),
12675 (dispatch_get_file_info_callback), (free_get_file_info_data),
12676 (dispatch_find_directory_callback), (free_find_directory_data),
12677 (dispatch_set_file_info_callback), (dispatch_job_callback),
12678 (gnome_vfs_op_destroy), (execute_get_file_info),
12679 (execute_set_file_info): Fixed tons of storage leaks that happened
12680 when an operation was cancelled by freeing things stored in the
12681 GnomeVFSOp when the GnomeVFSOp is deleted instead of at callback
12682 time. Fixes bug 2746 (leak in cancelled gnome_vfs_xfer call).
12683 (execute_load_directory_not_sorted): Fixed a storage leak caused
12684 by allocating an info before checking for cancellation and then
12685 exiting without freeing it.
12687 * libgnomevfs/gnome-vfs-method.c:
12688 (gnome_vfs_add_module_to_hash_table), (gnome_vfs_method_get),
12689 (gnome_vfs_transform_get): Changed the name of "fill_hash_table"
12690 to "gnome_vfs_add_module_to_hash_table" to make the it easier for
12691 the leak checker (currently in the Nautilus source module, but
12692 useful for any program) to recognize this as an exception to the
12693 normal rules about what leaks are. A bit of a hack; alternatives
12694 include adding code to free things at exit time.
12696 2000-09-22 Mike Fleming <mfleming@eazel.com>
12698 * modules/http-method.c: (http_file_handle_new),
12699 (http_file_handle_destroy), (do_close):
12701 Fixed lack-of-URI-refcounting problem and deleted a misplaced
12702 iobuf_write call. Markedly increases stability of DAV under vfs-translate.
12704 2000-09-21 Andy Hertzfeld <andy@eazel.com>
12706 * data/mime/gnome-vfs.keys:
12707 dropped the prefix on the newly added icons names for music and
12708 spreadsheet, so it can choose the right icon to use
12710 2000-09-22 Ian McKellar <yakk@yakk.net.au>
12712 * modules/http-method.c: (make_propfind_request):
12713 Fixed bug 2655: Only request the WebDAV properties we're interested
12716 2000-09-21 Andy Hertzfeld <andy@eazel.com>
12718 * data/mime/gnome-vfs.keys:
12719 tweaked the mime-types to use Susan's new icons for music and
12722 2000-09-21 Mathieu Lacage <mathieu@eazel.com>
12724 * libgnomevfs/gnome-vfs-private-utils.c:
12725 (gnome_vfs_canonicalize_pathname): make it not transform
12726 'method://foo' to 'method://foo.'
12727 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri):
12728 make it differentiate 'method://foo/' from 'method://foo'
12729 * modules/ftp-method.c: (do_path_command),
12730 (do_path_transfer_command), (ftp_connection_create),
12731 (ls_to_file_info), (do_open_directory):
12732 fix to handle the fact the gnome_vfs_uri_get_path can
12733 return a string of length zero.
12734 * modules/http-method.c: (make_request): handle the same
12735 special case as above.
12736 * test/test-uri.c: (main): add tests to test my new stuff.
12738 2000-09-21 Darin Adler <darin@eazel.com>
12740 Fixed code that was creating a separate "job slave" object that
12741 was never really used. Fixes a storage leak.
12743 * libgnomevfs-pthread/gnome-vfs-job-slave.h:
12744 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
12745 Changed to take a GnomeVFSJob pointer instead of GnomeVFSJobSlave.
12746 (gnome_vfs_job_create_slave): Replaced the old
12747 gnome_vfs_job_slave_new with this simpler function.
12748 Also removed a lot of unused functions.
12749 * libgnomevfs-pthread/gnome-vfs-job.h:
12750 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_new):
12751 Use the new gnome_vfs_job_create_slave instead of
12752 gnome_vfs_job_slave_new and don't even try to keep a slave pointer
12755 2000-09-21 Rebecca Schulman <rebecka@eazel.com>
12757 * libgnomevfs/gnome-vfs-directory-filter.c: (common_filter):
12758 * libgnomevfs/gnome-vfs-types.h:
12759 Added the filter type no dot files
12761 2000-09-21 Pavel Cisler <pavel@eazel.com>
12763 * libgnomevfs/gnome-vfs-xfer.c: (copy_file_data):
12764 Properly handle GNOME_VFS_ERROR_EOF.
12765 Fixes bugzilla 3225.
12767 2000-09-21 Mike Fleming <mfleming@eazel.com>
12769 * gnome-vfs.spec.in:
12770 * configure.in: Added dependency to gconf-gtk; Moved GConf dependency to 0.8.0
12772 * modules/Makefile.am:
12773 * modules/http-method.c: (sig_gconf_value_changed),
12774 (host_port_from_string), (http_proxy_for_host_port),
12775 (make_request), (make_propfind_request), (vfs_module_init),
12776 (vfs_module_shutdown):
12778 HTTP module now supports HTTP proxies. HTTP proxy is gotten from GConf
12779 key /system/gnome-vfs/http-proxy. This makes the HTTP module dependent
12782 2000-09-21 John Sullivan <sullivan@eazel.com>
12784 * mime-type-capplet/nautilus-mime-type-capplet.c:
12785 (mime_list_selected_row_callback): Removed an outdated FIXME.
12787 2000-09-20 Gene Z. Ragan <gzr@eazel.com>
12789 Found a case where a URI was used unitialized.
12791 * libgnomevfs/gnome-vfs-xfer.c:
12792 (gnome_vfs_xfer_uri_internal):
12794 2000-09-20 Gene Z. Ragan <gzr@eazel.com>
12796 Fixed a bug where transferring symbolic links from an ftp
12797 site would crash nautilus. Links are now properly identified.
12799 * libgnomevfs/gnome-vfs-module-shared.c:
12800 (gnome_vfs_stat_to_file_info):
12801 Handle symbolic links.
12803 * libgnomevfs/gnome-vfs-xfer.c: (copy_directory), (copy_items):
12804 Replace some plain asserts with assert_unreachable
12806 * modules/ftp-method.c: (get_response), (do_control_write),
12807 (ftp_connection_aquire), (ftp_connection_release),
12808 (ls_to_file_info), (do_get_file_info):
12810 2000-09-20 Darin Adler <darin@eazel.com>
12812 * data/mime/gnome-vfs.applications: Both EOG and The Gimp had
12813 entries that claim they can handle URIs, but the versions of these
12814 programs that I have can't.
12816 * libgnomevfs/gnome-vfs-configuration.c: (parse_line):
12817 * libgnomevfs/gnome-vfs-mime-info.c: (does_string_contains_caps):
12818 On IRC, gmorten pointed out that we must cast to unsigned char before
12819 calling functions like isspace and isupper. There are probably other
12820 cases of this mistake here and in Nautilus, but here are some fixes.
12822 * libgnomevfs/gnome-vfs-gen-mimedb.c: Removed an unnecessary
12823 include of <ctype.h>.
12825 * test/test-uri.c: (main): Fixed some typos and enabled some
12826 tests. We like to put the "wrong" results in here with a FIXME
12827 instead of commenting out the tests altogether.
12829 2000-09-20 Gene Z. Ragan <gzr@eazel.com>
12831 Renabled and cleaned up read only volume check.
12833 * libgnomevfs/gnome-vfs-xfer.c:
12834 (gnome_vfs_xfer_uri_internal):
12836 2000-09-20 Gene Z. Ragan <gzr@eazel.com>
12838 Fixed bug 1214, check if copy destination has enough room.
12840 This only works for local file systems.
12842 * libgnomevfs/gnome-vfs-uri.c:
12843 * libgnomevfs/gnome-vfs-utils.c:
12844 (gnome_vfs_get_volume_free_space):
12845 New function that gets free space on volume
12847 * libgnomevfs/gnome-vfs-xfer.c:
12848 (gnome_vfs_xfer_uri_internal):
12849 Call gnome_vfs_get_volume_free_space () before copy.
12851 2000-09-20 Maciej Stachowiak <mjs@eazel.com>
12853 * modules/file-method.c (do_read): Report EOF on EOF.
12855 2000-09-20 Ian McKellar <yakk@yakk.net.au>
12857 * modules/Makefile.am:
12858 * modules/test-method.c: (load_config_file):
12859 Little fixes for test-method.
12861 * modules/ftp-method.c: (do_path_command_completely),
12862 (do_transfer_command), (end_transfer), (do_create), (do_write):
12863 * test/test-remote:
12864 Fixing FTP issues raised by test-remote.
12866 2000-09-19 Gene Z. Ragan <gzr@eazel.com>
12868 Backing out previous change until current work on
12869 free space calculation is done as well.
12871 Work in progress on verifying free space on target copy
12874 * libgnomevfs/gnome-vfs-utils.c: (str_has_prefix),
12875 * libgnomevfs/gnome-vfs-utils.h:
12876 (gnome_vfs_get_volume_free_space):
12877 New function to return free space on destination volume.
12879 * libgnomevfs/gnome-vfs-xfer.c:
12880 (gnome_vfs_xfer_uri_internal):
12881 Commented out checks until code is complete.
12883 2000-09-19 Gene Z. Ragan <gzr@eazel.com>
12885 Fixed bug 1213, add a check to figure out if destination
12888 Call gnome_vfs_open_uri () on destination and return error
12889 if one is returned.
12891 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_uri_internal):
12893 2000-09-18 Mathieu Lacage <mathieu@eazel.com>
12895 * libgnomevfs/gnome-vfs-mime-info.c: (context_new),
12896 (load_mime_list_info_from): fix on fixup on fix on
12897 my previous commit. This parser code is truly evil
12898 but it now works both for me and dan.
12899 Remove the ":" at the end of old .mime file format
12902 2000-09-18 Maciej Stachowiak <mjs@eazel.com>
12904 Rename "foobar" module to "test".
12906 * modules/Makefile.am:
12907 * modules/default-modules.conf:
12908 * modules/foobar-method.c:
12909 * modules/test-method.c: (translate_uri),
12910 (get_operation_configuration), (parse_results_text),
12911 (load_config_file), (vfs_module_init):
12913 2000-09-18 Dan Winship <danw@helixcode.com>
12915 * libgnomevfs/gnome-vfs-mime-info.c (context_new): Fix up previous
12916 fix. It wasn't the ":"s, it was the "*"s.
12918 2000-09-18 Mathieu Lacage <mathieu@eazel.com>
12920 * libgnomevfs/gnome-vfs-mime-info.c: (context_new):
12921 fix bug which made us unable to read old mime database
12922 format. the ":" was taken into account when reading the
12925 2000-09-18 Mathieu Lacage <mathieu@eazel.com>
12927 * libgnomevfs/gnome-vfs-mime-info.c:
12928 (ensure_user_directory_exist): add new function to create the
12929 user's home directory ~/gnome/mime-info if it does not exists
12930 (write_back_mime_user_file), (write_back_keys_user_file): use
12931 this new function here.
12933 2000-09-16 Gene Z. Ragan <gzr@eazel.com>
12935 Fixed bug 3042, Adding new mime type doesn't work
12937 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
12938 (nautilus_mime_type_capplet_show_new_mime_window):
12939 Return the new mime type if one was created
12941 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h:
12942 * mime-type-capplet/nautilus-mime-type-capplet.c:
12943 (nautilus_mime_type_capplet_update_info), (add_mime_clicked):
12944 Add info to main list.
12946 2000-09-15 Gene Z. Ragan <gzr@eazel.com>
12948 * data/mime/gnome-vfs.keys:
12949 Replaced EOG image component with the NautilusImageView
12951 2000-09-15 Darin Adler <darin@eazel.com>
12953 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_backend_shutdown):
12954 Fixed a typo that crept in here a while back. It was preventing
12955 the shutdown code from running.
12957 2000-09-15 Andy Hertzfeld <andy@eazel.com>
12959 * data/mime/gnome-vfs.keys:
12960 fixed bug 1870, images files don't have the right icons when
12961 thumbnailing is turned off. Fixed by defining icons in gnome-vfs.keys
12962 for all of the common image types. I also defined icons for the
12963 common audio types while I was at it.
12965 2000-09-15 Mathieu Lacage <mathieu@eazel.com>
12967 * libgnomevfs/gnome-vfs-mime-info.c: (get_key_name),
12968 (gnome_vfs_get_registered_mime_types): fix bug 2759.
12969 no duplicates are returned anymore.
12971 2000-09-15 Ali Abdin <aliabdin@aucegypt.edu>
12973 * modules/pipe-method.c,
12974 * modules/translate-method.c:
12975 Added a comment at the top saying it is licensed under the LGPL and
12976 Copyright to Red Hat Inc. (I checked with Sopwith first)
12979 "help" method is in Nautilus, not gnome-vfs so we shouldn't mention it
12982 2000-09-14 Mathieu Lacage <mathieu@eazel.com>
12984 Fix bug 2758. remove a bunch of unused functions
12985 * libgnomevfs/gnome-vfs-mime-handlers.c:
12986 (gnome_vfs_mime_get_description): move there.
12987 * libgnomevfs/gnome-vfs-mime-handlers.h: move get_description
12989 * libgnomevfs/gnome-vfs-mime-info.c: remove old functions.
12990 * libgnomevfs/gnome-vfs-mime-info.h: remove prototypes.
12991 * test/test-mime-info.c: (main): fix the test for these changes.
12993 2000-09-13 John Sullivan <sullivan@eazel.com>
12995 Added StarOffice information to the MIME data.
12996 It's not well tested, because (A) I don't have
12997 StarOffice installed, and (B) the File Types
12998 & Programs capplet seems horribly broken in
12999 numerous unreported ways.
13001 * data/mime/gnome-vfs.applications:
13002 * data/mime/gnome-vfs.keys:
13003 * data/mime/gnome-vfs.mime:
13005 2000-09-13 Pavel Cisler <pavel@eazel.com>
13007 * modules/file-method.c: (do_create_symbolic_link):
13008 Make it handle invalid URI with a returned error value rather
13009 than with an assert.
13011 2000-09-13 Pavel Cisler <pavel@eazel.com>
13013 * libgnomevfs/gnome-vfs-xfer.c: (copy_items), (move_items),
13015 Fix a problem where file names would get escaped twice in the
13016 copy engine and caused files to get moved/copied with an
13019 * modules/file-method.c: (get_path_from_uri):
13020 Tweak some white space.
13022 2000-09-12 Darin Adler <darin@eazel.com>
13024 * libgnomevfs/gnome-vfs-mime-magic.c:
13025 (gnome_vfs_mime_get_magic_table): Add the missing call to actually
13026 parse the text file. We never noticed it was missing, because we
13027 were getting the binary form of that table until recently.
13029 2000-09-12 Seth Nickell <seth@eazel.com>
13031 * modules/Makefile.am:
13032 add building of foobar-method.c
13034 * modules/default-modules.conf:
13035 register foobar-method.c to handle "foobar:"
13037 * modules/foobar-method.c: (translate_uri),
13038 (get_operation_configuration), (parse_results_text),
13039 (load_config_file), (do_open), (do_create), (do_close), (do_read),
13040 (do_write), (do_seek), (do_tell), (do_open_directory),
13041 (do_close_directory), (do_read_directory), (do_get_file_info),
13042 (do_get_file_info_from_handle), (do_is_local), (do_make_directory),
13043 (do_remove_directory), (do_move), (do_unlink), (do_check_same_fs),
13044 (do_set_file_info), (do_truncate), (do_truncate_handle),
13045 (do_find_directory), (do_create_symbolic_link), (vfs_module_init),
13046 (vfs_module_shutdown):
13047 Foobar is a gnome-vfs debug module that allows you to redirect
13048 calls to another underlying method, and intercept and manipulate
13049 the calls, adding delays or returning errors to the client.
13051 2000-09-11 Mathieu Lacage <mathieu@eazel.com>
13053 * test/test-uri.c: (main): remove the tests from compilation folowing
13054 pavel and Darin advices.
13056 2000-09-11 Mathieu Lacage <mathieu@eazel.com>
13058 * test/test-uri.c: (main): add 2 new tests which fail and should be
13059 fixed somehow. I dunno how to fix them but they cause crashes in nautilus.
13060 /tmp/#test# is not taken into account by gnome_vfs_uri_new.
13062 2000-09-10 Maciej Stachowiak <mjs@eazel.com>
13064 Build fixes for latest Gtk+
13066 * configure.in: Add AM_PATH_GTK check
13067 * libgnomevfs-pthread/Makefile.am: Use $(GTK_CFLAGS) in compiler flags
13068 * mime-type-capplet/Makefile.am: likewise
13069 * modules/Makefile.am: likewise
13070 * test/Makefile.am: likewise
13071 * test/gnome-file-selection/Makefile.am: likewise
13073 2000-09-10 Maciej Stachowiak <mjs@eazel.com>
13075 * gnome-vfs.spec.in: Revert kmaraas's last change, because it
13076 breaks rpm building for me (and for tinderbox). I wonder why man
13077 pages are apparently installed gzipped on Kjartan's system but not
13080 2000-09-09 Kjartan Maraas <kmaraas@gnome.org>
13082 * gnome-vfs.spec.in: Fixed installation of man page.
13084 2000-09-09 Gene Z. Ragan <gzr@eazel.com>
13086 * libgnomevfs/Makefile.am:
13087 * libgnomevfs/gnome-vfs-mime-handlers.c: (sort_application_list),
13088 (gnome_vfs_mime_get_short_list_applications),
13089 (sort_component_list), (gnome_vfs_mime_get_short_list_components):
13090 Sort application and component lists alphabetically
13091 before returning them.
13093 2000-09-08 Pavel Cisler <pavel@eazel.com>
13095 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_new):
13096 Performance improvement Darin and I found:
13097 Change the priority of callbacks to G_PRIORITY_DEFAULT from
13098 G_PRIORITY_LOW to prevent serious performance drain where
13099 callbacks do not get scheduled early enough.
13100 This speeds up Nautilus directory update by 30% or so.
13102 2000-09-08 Gene Z. Ragan <gzr@eazel.com>
13104 * mime-type-capplet/nautilus-mime-type-capplet.c:
13105 (populate_mime_list):
13106 Fixed a couple of leaks and instances where
13107 gdk_pixbuf_new_from_file was being passed a NULL char *.
13109 2000-09-08 Gene Z. Ragan <gzr@eazel.com>
13111 Fixed bug 2839, setting icons for mime type is not remembered
13113 * mime-type-capplet/nautilus-mime-type-capplet.c: (main),
13114 (init_mime_capplet), (nautilus_mime_type_capplet_update_info),
13115 (populate_mime_list),
13116 (nautilus_mime_type_capplet_get_selected_item_mime_type):
13117 Removed icon setting code callback from Change Icon button.
13119 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
13120 (icon_selected_cb), (cancel_pressed), (gil_icon_selected_cb),
13121 (nautilus_mime_type_show_icon_selection):
13122 Added gnome-vfs icon setting code to OK button callback.
13124 2000-09-08 Maciej Stachowiak <mjs@eazel.com>
13126 * data/mime/Makefile.am: Don't attempt to build binary version of
13129 * gnome-vfs.spec.in: Don't include gnome-vfs-genmimedb or the
13130 binary version of the mime database that it generates.
13132 2000-09-08 Gene Z. Ragan <gzr@eazel.com>
13134 Fixed bug 2766, viewer menu code is not finished.
13136 Enjoy your Content Loser.
13138 * mime-type-capplet/nautilus-mime-type-capplet.c:
13139 (populate_viewer_menu):
13140 Made function work.
13142 2000-09-08 Gene Z. Ragan <gzr@eazel.com>
13144 Fixed bug 2789, Need to cancel non-file drags in icon
13147 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
13150 2000-09-07 Dan Winship <danw@helixcode.com>
13152 * data/mime/gnome-vfs.keys: lowercasify the handful of
13153 descriptions that started with a capital letter that wasn't part
13154 of a proper name. Rewrite a few descriptions to be more correct or
13155 more user-friendly. Add comments pointing out duplicated entries
13156 (like image/png and image/x-png) that need to be kept in sync.
13158 2000-09-08 Ian McKellar <yakk@yakk.net.au>
13160 * modules/http-method.c: (make_request):
13161 Implemented custom user-agent headers - specified by the
13162 GNOME_VFS_HTTP_USER_AGENT environment variable.
13164 2000-09-06 Pavel Cisler <pavel@eazel.com>
13167 Get rid of -Wno-uninitialized. This way we will get uninitialized
13168 variable warnings when we do a release build (with optimizations
13171 2000-09-06 Darin Adler <darin@eazel.com>
13173 * test/test-uri.c: (main): Added tests for URIs with "#"
13174 characters in them. Not sure what "correct" is, so they are marked
13176 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new): Removed
13177 extraneous g_print.
13179 2000-09-05 Robin * Slomkowski <rslomkow@eazel.com>
13181 * libgnomevfs/Makefile.am: made gnome-vfs-mimedb statically
13182 link on Pavel's suggestion. This solves the make install
13183 problem in a chrooted environment.
13185 2000-09-05 Mathieu Lacage <mathieu@eazel.com>
13187 * mime-type-capplet/nautilus-mime-type-capplet.c:
13188 (populate_viewer_menu): initialize found_match to TRUE
13189 to avoid a segfault in certain non-obvious cases. this
13190 is a temporary hack waiting for bug 2766.
13192 2000-09-05 John Sullivan <sullivan@eazel.com>
13194 Wrote bugs for the last (for now) 18 unbugged FIXMEs.
13196 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
13198 * modules/bzip2-method.c: (do_get_file_info):
13199 * modules/extfs-method.c:
13200 * modules/file-method.c: (do_create_symbolic_link):
13201 * modules/ftp-method.c: (internal_get_file_info):
13202 * modules/gconf-method.c:
13203 * modules/gzip-method.c: (do_get_file_info):
13204 * modules/http-method.c: (process_propfind_propstat):
13205 * modules/translate-method.c: (tr_apply_default_mime_type),
13206 (tr_handle_exec), (tr_uri_translate):
13207 * test/test-shell.c: (do_info):
13208 * test/test-uri.c: (main):
13210 2000-09-05 Martin Baulig <baulig@suse.de>
13212 * Makefile.am (SUBDIRS): Remove unconditional listing of the
13213 mime-type-capplet, it is already contained in $(SUBDIRS_GNOME) for
13214 the GNOME 1.x platform.
13216 2000-09-05 Maciej Stachowiak <mjs@eazel.com>
13218 * libgnomevfs/gnome-vfs-mime-magic.c: Fixed spelling in a FIXME.
13220 * modules/ftp-method.c: (ls_to_file_info): Fixed another minor
13221 formatting problem.
13223 2000-09-04 Mathieu Lacage <mathieu@eazel.com>
13225 Add bugs to bugzilla.eazel.com for FIXMEs...
13226 * libgnomevfs/gnome-vfs-mime-handlers.c:
13227 (gnome_vfs_mime_get_default_action_type),
13228 (gnome_vfs_mime_get_default_application),
13229 (get_executable_name_from_command_string):
13230 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_get_value),
13231 (gnome_vfs_get_registered_mime_types):
13232 * libgnomevfs/gnome-vfs-mime-magic.c:
13233 * libgnomevfs/gnome-vfs-uri.c:
13234 * mime-type-capplet/nautilus-mime-type-capplet.c:
13235 (mime_list_selected_row_callback), (init_mime_capplet),
13236 (populate_viewer_menu), (delete_mime_clicked), (pixmap_file):
13238 2000-09-03 Mathieu Lacage <mathieu@eazel.com>
13240 * libgnomevfs/gnome-vfs-mime-info.c: (write_back_keys_user_file):
13241 fix evil bug. forgot to fclose the file opened for user.keys
13242 file. All bugs are evil. I hate bugs. I HATE THEM.
13244 2000-09-03 Mathieu Lacage <mathieu@eazel.com>
13246 * test/test-mime-info.c: (main): change directory to folder
13247 as in gnome-vfs.keys. bad boy who did not updated the tests
13248 and changed the data.
13250 2000-09-03 Maciej Stachowiak <mjs@eazel.com>
13252 * modules/ftp-method.c: Reformat to match gnome-vfs coding style.
13254 2000-09-03 Maciej Stachowiak <mjs@eazel.com>
13256 * libgnomevfs-pthread/gnome-vfs-job.c: (execute_set_file_info):
13257 * modules/file-method.c: (find_trash_directory):
13259 Added bug numbers to FIXMEs.
13261 2000-09-03 Pavel Cisler <pavel@eazel.com>
13263 * libgnomevfs/gnome-vfs-types.h:
13264 * libgnomevfs/gnome-vfs-xfer.c: (init_progress), (copy_directory),
13265 (copy_items), (move_items), (link_items):
13266 Add a flag to the xfer progress indicating a top-level item to
13267 allow triggering metadata copies.
13269 * libgnomevfs-pthread/gnome-vfs-job.c:
13270 (execute_create_symbolic_link):
13271 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_set_value):
13272 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new):
13273 * mime-type-capplet/nautilus-mime-type-capplet.c:
13274 (populate_viewer_menu):
13275 * modules/translate-method.c: (tr_uri_translate):
13276 * test/test-uri.c: (test_uri_host_port):
13277 Fix a bunch of uninitialized variables that Michael Meeks found.
13279 2000-09-02 Mathieu Lacage <mathieu@eazel.com>
13281 * libgnomevfs/gnome-vfs-mime-handlers.c:
13282 (gnome_vfs_mime_get_default_component),
13283 (gnome_vfs_mime_do_short_list_processing),
13284 (gnome_vfs_mime_get_short_list_components): fix small typo
13287 2000-09-01 Mathieu Lacage <mathieu@eazel.com>
13289 * mime-type-capplet/nautilus-mime-type-capplet.c: (main),
13290 (init_mime_capplet), (populate_mime_list),
13291 (create_mime_list_and_scroller):
13292 remove debugging output. fix many run-time warnings.
13293 Now, can go into fixing real bugs.
13295 2000-09-01 Mathieu Lacage <mathieu@eazel.com>
13297 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init):
13298 * libgnomevfs/gnome-vfs-mime-handlers.c:
13299 (gnome_vfs_mime_get_default_action_without_fallback),
13300 (gnome_vfs_mime_get_default_component), (join_str_list),
13301 (gnome_vfs_mime_get_short_list_components),
13302 (gnome_vfs_mime_get_all_components),
13303 (gnome_vfs_mime_id_in_component_list),
13304 (gnome_vfs_mime_id_list_from_component_list),
13305 (gnome_vfs_mime_remove_component_from_list),
13306 (gnome_vfs_mime_action_free), (gnome_vfs_mime_component_list_free),
13307 (OAF_ServerInfoList_to_ServerInfo_g_list):
13308 * libgnomevfs/gnome-vfs-mime-handlers.h:
13309 * test/test-mime-handlers-set.c: (main):
13310 * test/test-mime-handlers.c: (print_component), (print_action),
13311 (print_component_list), (main):
13312 remove test on OAF compile.
13315 * libgnomevfs/gnome-vfs-mime-handlers.c:
13316 (gnome_vfs_mime_get_default_application): fix bug: we were passing
13317 a NULL to some subroutine.
13319 * mime-type-capplet/nautilus-mime-type-capplet.c:
13320 (init_mime_capplet), (nautilus_mime_type_capplet_update_info),
13321 (populate_mime_list), (create_mime_list_and_scroller):
13322 fix misc warning at runtime. add debugging output. will remove soon.
13324 * test/.cvsignore: chuuut.
13326 2000-09-01 Christopher James Lahey <clahey@helixcode.com>
13328 * libgnomevfs/gnome-vfs-mime-handlers.h: Removed #ifdef USING_OAF.
13330 2000-09-01 Ian McKellar <yakk@yakk.net.au>
13333 Added new binaries to .cvsignore.
13335 2000-09-01 Ian McKellar <yakk@yakk.net.au>
13337 * libgnomevfs/gnome-vfs-context.c:
13338 (gnome_vfs_context_emit_message):
13339 The fallback error message that is sent if context==NULL is now sent
13340 to stderr rather than stdout. It was confusing test programs before.
13342 * modules/http-method.c: (create_handle):
13343 Don't emit message if context==NULL
13345 * test/Makefile.am:
13346 Added some test programs...
13348 * test/test-dirop.c:
13349 New test to test make_directory and remove_directory.
13351 * test/test-unlink.c:
13352 New test to test unlink.
13354 * test/test-info.c: (main):
13355 Now returns a result so get_file_info's success can be tested from
13358 * test/test-sync-create.c: (main):
13359 * test/test-sync-write.c: (main):
13360 Removed superflous debugging info.
13362 * test/test-sync.c: (main):
13363 Cleaned up code a bit so this is 8 bit clean.
13365 * test/test-remote:
13366 A shell script that calls many of the test programs to check that
13367 a filesystem behaves in a sensible fasion. Its geared towards
13368 testing remote filesystems such as FTP and WebDAV.
13370 2000-09-01 Pavel Cisler <pavel@eazel.com>
13372 Bugzilla task 2186 -- Move/Copy/Link from multiple directories fails.
13373 Reworked the copy engine to use lists of URIs instead of pairs of
13374 directory URIs and file name lists.
13376 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_visit_list),
13377 (count_items_and_size), (directory_add_items_and_size),
13378 (handle_name_conflicts), (copy_file_data), (xfer_open_source),
13379 (xfer_create_target), (copy_file), (copy_directory), (copy_items),
13380 (move_items), (link_items), (gnome_vfs_xfer_empty_trash),
13381 (gnome_vfs_xfer_delete_items_common),
13382 (gnome_vfs_xfer_delete_items),
13383 (gnome_vfs_new_directory_with_unique_name),
13384 (gnome_vfs_xfer_uri_internal), (gnome_vfs_xfer_private),
13385 (gnome_vfs_xfer_uri_list), (gnome_vfs_xfer_uri):
13386 Completely reworked to support the new URI list APIs
13388 * libgnomevfs/gnome-vfs-xfer.h:
13389 * libgnomevfs/gnome-vfs-xfer.c:
13390 Renamed xfer calls to represent new APIs better.
13392 * libgnomevfs/gnome-vfs-async-ops.h:
13393 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_async_xfer):
13394 * libgnomevfs/gnome-vfs-cancellable-ops.h:
13395 * libgnomevfs/gnome-vfs-uri.c:
13396 Update to support new APIs.
13397 Got rid of copy_string_list that is no longer needed.
13399 * idl/gnome-vfs-slave.idl:
13400 * libgnomevfs-corba/gnome-vfs-async-ops.c:
13401 (corba_gnome_vfs_async_xfer):
13402 * libgnomevfs-corba/gnome-vfs-slave.c: (file_list_to_uri_g_list),
13403 (impl_Request_xfer):
13404 Update corba backend for new xfer APIs.
13406 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
13407 (pthread_gnome_vfs_async_xfer):
13408 * libgnomevfs-pthread/gnome-vfs-job.c: (execute_load_directory),
13410 * libgnomevfs-pthread/gnome-vfs-job.h:
13411 Updated pthread backend to support new xfer APIs.
13414 * test/test-xfer.c: (main):
13415 Update tests to use new APIs.
13417 * libgnomevfs/gnome-vfs-xfer.c:
13420 * libgnomevfs/gnome-vfs-xfer.c:
13421 (g_string_list_deep_copy):
13424 * libgnomevfs/gnome-vfs-ops.c:
13425 * libgnomevfs/gnome-vfs-ops.h:
13426 * libgnomevfs/gnome-vfs-xfer.c:
13427 (gnome_vfs_uri_exists):
13428 Added a new convenience call.
13431 * libgnomevfs/gnome-vfs-utils.h:
13432 Fixed some spelling.
13434 2000-09-01 Maciej Stachowiak <mjs@eazel.com>
13436 * po/Makefile.in.in: removed since gettextize auto-generates it.
13438 * configure.in: Turn off libefs more thoroughly.
13440 2000-08-31 Robey Pointer <robey@eazel.com>
13442 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_initialized):
13443 * libgnomevfs/gnome-vfs-init.h:
13445 Add gnome_vfs_initialized so you can check if gnome-vfs has been
13446 initialized already, without it whining.
13448 2000-08-31 Gene Z. Ragan <gzr@eazel.com>
13450 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_backend_loadinit),
13451 (gnome_vfs_backend_shutdown), (func_lookup):
13452 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init):
13453 Checking on some Pavel code cleanup.
13455 2000-08-31 John Sullivan <sullivan@eazel.com>
13457 Work towards bug 1037 (use "folder" rather than "directory"
13460 * data/mime/gnome-vfs.keys: Change "directory" to "folder"
13461 and "web directory" to "web folder"
13463 2000-08-31 Gene Z. Ragan <gzr@eazel.com>
13466 Added capplet to sub-directories to fix tinderbox build.
13468 2000-08-31 Ramiro Estrugo <ramiro@eazel.com>
13470 * libgnomevfs/gnome-vfs-mime-info.c:
13471 (gnome_vfs_mime_info_shutdown):
13472 Fix two typos. The same 2 hash tables were being freed twice.
13473 Also make the hash tables NULL after freeing them.
13475 2000-08-31 Martin Baulig <baulig@suse.de>
13477 * modules/Makefile.am (INCLUDES): Added $(GLIB_CFLAGS).
13478 * libgnomevfs-pthread/Makefile.am (INCLUDES): Likewise.
13479 * libgnomevfs-corba/Makefile.am (INCLUDES): Likewise.
13481 * configure.in: Don't modify CFLAGS but set VFS_CLFAGS instead.
13482 Otherwise CFLAGS gets longer every time config.status is run.
13483 * */Makefile.am (INCLUDES): Add $(VFS_CFLAGS).
13485 * configure.in: Don't put -Werror into CFLAGS but into WERROR
13486 and AC_SUBST it. Some configure checks don't work with -Werror.
13487 * */Makefile.am (INCLUDES): Add $(WERROR).
13489 * test/.cvsignore: Added test-mime-info.
13491 2000-08-31 Martin Baulig <baulig@suse.de>
13493 * libgnomevfs-pthread/gnome-vfs-job-slave.c
13494 (gnome_vfs_thread_backend_shutdown): Use g_main_iteration() instead
13495 of gtk_main_iteration_do() if `GNOME_PLATFORM_VERSION >= 1095000'
13496 (as preprocessor conditional).
13498 * libgnomevfs/gnome-vfs-private-utils.c
13499 (gnome_vfs_i18n_get_language_list): New function. This calls
13500 gnome_i18n_get_language_list() if `GNOME_PLATFORM_VERSION < 1095000'
13501 and g_i18n_get_language_list() otherwise.
13503 * libgnomevfs/gnome-vfs-mime-info.c: Remove the <libgnome/*.h>
13504 includes which were previously required for gnome_i18n_get_language_list.
13505 (gnome_vfs_mime_init): Use gnome_vfs_i18n_get_language_list() instead
13506 of gnome_i18n_get_language_list().
13508 * libgnomevfs/gnome-vfs-application-registry.c: Remove the
13509 includes which were previously required for gnome_i18n_get_language_list.
13510 (gnome_vfs_application_registry_init): Use
13511 gnome_vfs_i18n_get_language_list() instead of
13512 gnome_i18n_get_language_list().
13514 2000-08-31 Martin Baulig <baulig@suse.de>
13516 * configure.in: Only check for GNOME if we're on the GNOME 1.2
13518 (VFS_GNOME_CFLAGS, VFS_GNOMEUI_CFLAGS, VFS_CAPPLET_CFLAGS): Added.
13519 (VFS_GNOME_LIBS, VFS_GNOMEUI_LIBS, VFS_CAPPLET_LIBS): Added.
13520 For the GNOME 1.2 platform, they contain the appropriate GNOME cflags
13521 and libs (set with `gnome-config --cflags/--libs'); for the GNOME 2
13522 platform they only contain the appropriate GLIB cflags and libs
13523 (set with `glib-config-2.0 --cflags/--libs').
13524 (VFS_GLIB_CONFIG): Added. This is either `glib-config' for the GNOME 1.2
13525 platform or `glib-config-2.0' for the GNOME 2 platform.
13527 * gnome-vfs-config.in: New file. Template for gnome-vfs-config.
13528 We can't use gnome-config for the GNOME 2 platform since gnome-vfs
13529 doesn't depend on gnome-libs on it; this gnome-vfs-config script
13530 works for both platforms, however using gnome-config may be saner
13531 for the GNOME 1.2 one.
13532 * Makefile.am: Create a gnome-vfs-config script.
13533 * .cvsignore: Added gnome-vfs-config.
13535 2000-08-31 Martin Baulig <baulig@suse.de>
13537 * acconfig.h (GNOME_PLATFORM_VERSION): #define this in config.h
13538 to be a number constant which is currently 1002000 for the GNOME 1.2.x
13539 platform. When compiling for the GNOME 2 platform, we patch
13540 configure.in to set this to 1095000.
13542 * configure.in (PLATFORM_GNOME_2): New automake conditional; true
13543 if `GNOME_PLATFORM_VERSION >= 1095000' (you need to patch configure.in
13544 to make this happen, ie. when compiling for gnome-libs HEAD).
13546 * acinclude.m4: New file.
13547 (AM_GNOME_SIZE_T, AM_GNOME_OFF_T): New autoconf macros which provide
13548 better checks for `size_t' and `off_t'; they also work when they're
13549 typedef'ed in <sys/types.h> and not #defined.
13550 * configure.in: Use AM_GNOME_SIZE_T and AM_GNOME_OFF_T.
13552 * Makefile.am: Disable the mime-type-capplet and test subdirectories
13553 if we're compiling for the GNOME 2 platform.
13555 2000-08-31 Mathieu Lacage <mathieu@eazel.com>
13557 fixes bugs 1119 and 1839
13559 * data/mime/gnome-vfs.keys: add a mime type for testing.
13560 * libgnomevfs/gnome-vfs-mime-handlers.c:
13561 (gnome_vfs_mime_get_default_action_type),
13562 (gnome_vfs_mime_edit_user_file_full),
13563 (gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension):
13564 update to API changes below. move saving code to gnome-vfs-mime-info.c
13565 * libgnomevfs/gnome-vfs-mime-info.c: (does_string_contains_caps),
13566 (context_new), (context_destroy_and_unlink), (language_level),
13567 (context_add_key), (load_mime_type_info_from),
13568 (load_mime_list_info_from), (mime_info_load), (mime_list_load),
13569 (load_mime_type_info), (gnome_vfs_mime_init),
13570 (gnome_vfs_mime_info_clear), (gnome_vfs_mime_info_shutdown),
13571 (gnome_vfs_mime_freeze), (gnome_vfs_mime_thaw),
13572 (gnome_vfs_mime_set_value), (gnome_vfs_mime_get_value),
13573 (gnome_vfs_mime_keys_list_free), (gnome_vfs_mime_get_key_list),
13574 (gnome_vfs_mime_get_program), (gnome_vfs_mime_get_program_name),
13575 (gnome_vfs_mime_get_description), (str_cmp_callback),
13576 (gnome_vfs_mime_get_extensions_list),
13577 (gnome_vfs_mime_get_extensions_string),
13578 (gnome_vfs_mime_get_extensions_pretty_string),
13579 (gnome_vfs_mime_extensions_list_free), (gnome_vfs_mime_get_test),
13580 (gnome_vfs_mime_get_composetyped),
13581 (gnome_vfs_mime_get_copiousoutput),
13582 (gnome_vfs_mime_get_needsterminal), (get_key_name),
13583 (gnome_vfs_get_registered_mime_types),
13584 (gnome_vfs_mime_registered_mime_type_list_free),
13585 (gnome_vfs_mime_set_registered_type_key),
13586 (write_back_mime_user_file_context_callback),
13587 (write_back_mime_user_file_callback), (write_back_mime_user_file),
13588 (write_back_keys_user_file_context_callback),
13589 (write_back_keys_user_file_callback), (write_back_keys_user_file):
13590 Basically, make it work. update copyright.
13591 * libgnomevfs/gnome-vfs-mime-info.h: change some API.
13592 * mime-type-capplet/nautilus-mime-type-capplet.c: update to new API.
13593 (nautilus_mime_type_capplet_update_info), (populate_mime_list):
13594 * test/Makefile.am: add tests.
13595 * test/test-mime-info.c: (main): actual tests.
13597 Wed Aug 30 22:51:47 2000 George Lebl <jirka@5z.com>
13599 * libgnomevfs/gnome-vfs-handle.c,
13600 libgnomevfs/gnome-vfs-mime-handlers.c, libgnomevfs/gnome-vfs-mime.c:
13601 Remove the <gtk/*.h> includes as they are not used and they mess
13602 with compilation with gnome-libs2 (this change is completely
13605 2000-08-30 Darin Adler <darin@eazel.com>
13607 * libgnomevfs/gnome-vfs-utils.h:
13608 * libgnomevfs/gnome-vfs-utils.c:
13609 (gnome_vfs_escape_slashes): Moved this function in here from Nautilus.
13610 Two advantages: 1) It can be used by other programs. 2) It can share
13611 code with all the other escaping functions.
13613 * test/.cvsignore: Ignore the test-sync-create file.
13615 2000-08-29 Ian McKellar <yakk@yakk.net.au>
13617 * modules/http-method.c: (make_request), (do_create):
13618 The create method now attempts to create a zero-length file as part
13619 of the opening process. This will allow errors to be detected. Create
13620 creates a zero-length file with the standard unix semantics anyway.
13622 * test/Makefile.am:
13623 * test/test-sync-create.c: (show_result), (main):
13624 Added a test-sync-create to allow testing of the create method.
13626 2000-08-29 Ian McKellar <yakk@yakk.net.au>
13628 * modules/http-method.c: (process_propfind_response):
13629 Fixed bug 2525 - host and port are now ignored in href comparisons
13630 in the WebDAV PROPFIND code.
13632 2000-08-29 Ian McKellar <yakk@yakk.net.au>
13634 * modules/http-method.c: (http_handle_close), (do_read):
13635 Fixed bug 2524 - extra debugging output removed.
13637 2000-08-28 Gene Z. Ragan <gzr@eazel.com>
13639 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new):
13641 Refactored a bit making it more beautiful.
13643 2000-08-28 Robin * Slomkowski <rslomkow@eazel.com>
13645 * gnome-vfs.spec.in: fixed config file globs
13647 2000-08-28 John Sullivan <sullivan@eazel.com>
13649 * data/mime/gnome-vfs.keys:
13650 Added application/x-palm-database, reported by a
13653 2000-08-27 Alastair McKinstry <mckinstry@computer.org>
13655 * ga.po: Added Irish translation.
13657 2000-08-25 John Sullivan <sullivan@eazel.com>
13659 Fixed bug 1388 (some MIME types have no description)
13661 * data/mime/gnome-vfs.mime:
13662 * data/mime/gnome-vfs.keys:
13663 Added descriptions for all un-descriptioned MIME types
13664 from gnome-vfs.mime and mime-magic. The check-mime
13665 script now finds no problems. Also added a couple of
13666 missing MIME types that were reported by Nautilus users.
13668 2000-08-25 Robin * Slomkowski <rslomkow@eazel.com>
13670 * modules/Makefile.am: added efs-method.c efs-method.h
13671 forgotten files for make dist
13673 2000-08-25 John Sullivan <sullivan@eazel.com>
13675 Fixed bug 2311 (sort by date should put most recent dates first).
13676 Also made the same change for size.
13677 Also fixed some bugs in trash-directory locating, and added
13678 testing code for this.
13680 * libgnomevfs/gnome-vfs-file-info.c:
13681 (gnome_vfs_file_info_compare_for_sort): Added comment clarifying
13682 that the sort order should be the natural order for each type,
13683 not necessarily strict "small to large". Then changed size
13684 and date orderings to go the opposite way.
13685 * modules/file-method.c: (find_trash_directory): Fixed a couple
13686 of problems Darin and I discovered that involved trying to
13688 * test/test-shell.c: (do_findtrash), (main): Added findtrash
13689 command to test shell, and made it put the prompt on a new
13690 line instead of appending it to the most recent output.
13692 Fri Aug 25 09:15:15 2000 Dietmar Maurer <dietmar@maurer-it.com>
13694 * modules/efs-method.c: minor changes for new libefs code.
13696 2000-08-24 Ali Abdin <aliabdin@aucegypt.edu>
13698 * modules/pipe-method.c:
13699 (do_close): Removed a FIXME because Darin says (in a prior cvs-commit)
13700 that we should destroy the handle even if it doesn't return
13701 GNOME_VFS_OK. Besides - this functions always returns GNOME_VFS_OK (if
13702 file_handle is allocated)
13704 2000-08-24 Darin Adler <darin@eazel.com>
13706 * libgnomevfs-pthread/gnome-vfs-job.c:
13707 (dispatch_find_directory_callback): Fixed NULL-unref problem.
13709 * libgnomevfs/gnome-vfs-utils.h:
13710 * libgnomevfs/gnome-vfs-utils.c: (istr_has_prefix),
13711 (gnome_vfs_get_local_path_from_uri),
13712 (gnome_vfs_get_uri_from_local_path): Added the local path
13713 functions that are so widely used in Nautilus so they can be
13714 used in medusa too, for example.
13716 * modules/file-method.c: (find_trash_directory): Fixed storage
13717 leak, added FIXME about poor error handling.
13719 2000-08-24 Maciej Stachowiak <mjs@eazel.com>
13721 * modules/Makefile.am: Disable efs module since it doesn't
13722 compile any more with the latest changes to libefs.
13724 2000-08-23 Darin Adler <darin@eazel.com>
13726 * check-mime.pl: Added a check of the .applications file.
13727 * data/mime/gnome-vfs.applications: Fixed a lingering use of
13728 the old x-special/directory-webdav, which was superceded by
13729 x-directory/webdav.
13731 2000-08-23 Darin Adler <darin@eazel.com>
13733 * data/mime/gnome-vfs.keys: Added a description for ksh scripts.
13735 2000-08-23 Darin Adler <darin@eazel.com>
13737 * libgnomevfs/gnome-vfs-handle.c: (gnome_vfs_handle_do_close):
13738 * modules/bzip2-method.c: (do_close):
13739 * modules/gzip-method.c: (do_close):
13740 Removed FIXMEs about close behavior. It's now clear that the
13741 correct behavior on close is to always get rid of the handle, even
13742 if the close returns a non-GNOME_VFS_OK result, which indicates a
13743 failure of I/O, not necessarily of the close as a while.
13745 * check-mime.pl: Fixed a typo in a message.
13747 2000-08-22 John Sullivan <sullivan@eazel.com>
13749 * check-mime.pl: Fixed small bug that was reporting a
13750 false out-of-order error for the first MIME type in
13753 * data/mime/gnome-vfs.keys,
13754 * data/mime/gnome-vfs.mime: Fixed many of the problems
13755 found by check-mime.pl. I didn't add descriptions for all
13756 of the undescribed types yet because that will take a couple
13757 of hours of research that I'd rather spend later.
13759 2000-08-21 Darin Adler <darin@eazel.com>
13761 * check-mime.pl: Added script to check if the MIME files have
13762 certain desirable properties. There are 69 errors reported now,
13763 and I bet John will fix them now that they are easy to spot.
13765 2000-08-21 John Sullivan <sullivan@eazel.com>
13767 More tweaks to match MIME identification problems
13768 users have run into.
13770 * data/mime/gnome-vfs-mime-magic:
13771 changed audio/midi to audio/x-midi to match .keys file
13773 * data/mime/gnome-vfs.keys: Added descriptions for
13774 application/x-smil, audio/x-it, and text/x-credits.
13775 Also moved one entry that was out of order.
13777 2000-08-17 John Sullivan <sullivan@eazel.com>
13779 * data/mime/gnome-vfs.keys:
13781 Another missing description, for image/x-ico
13783 2000-08-17 John Sullivan <sullivan@eazel.com>
13785 Fixed bug 1724 (some MIME types without descriptions)
13787 * data/mime/gnome-vfs.keys:
13789 Added descriptions for the following MIME types that users
13793 application/x-toutdoux
13794 audio/x-mp3-playlist
13798 2000-08-14 Pavel Cisler <pavel@eazel.com>
13800 * libgnomevfs/gnome-vfs-backend.c:
13801 (gnome_vfs_async_find_directory):
13802 Fix a crasher in the new gnome_vfs_async_find_directory.
13804 2000-08-13 Pavel Cisler <pavel@eazel.com>
13806 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
13807 (pthread_gnome_vfs_async_find_directory):
13808 * libgnomevfs-pthread/gnome-vfs-job.c:
13809 (dispatch_get_file_info_callback),
13810 (dispatch_find_directory_callback), (dispatch_job_callback),
13811 (execute_find_directory), (gnome_vfs_job_execute):
13812 * libgnomevfs-pthread/gnome-vfs-job.h:
13813 * libgnomevfs/gnome-vfs-async-ops.h:
13814 * libgnomevfs/gnome-vfs-backend.c:
13815 (report_failure_get_file_info_callback),
13816 (report_failure_get_file_info), (gnome_vfs_async_get_file_info),
13817 (report_faliure_find_directory_callback),
13818 (report_failure_find_directory), (gnome_vfs_async_find_directory):
13819 * libgnomevfs/gnome-vfs-types.h:
13821 Add async version of gnome_vfs_find_directory. pthread backend only for now.
13823 2000-08-12 Robin * Slomkowski
13825 * configure.in: just bumped the version on HEAD
13827 2000-08-12 Ali Abdin <aliabdin@aucegypt.edu>
13829 * modules/Makefile.am:
13830 * libgnomevfs-corba/Makefile.am:
13831 Actually remove the linking to gnome-libs from the Makefile's now
13833 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
13834 Replaced include of <libgnorba/gnorba.h> to <gtk/gtk.h>
13836 2000-08-11 Ettore Perazzoli <ettore@helixcode.com>
13838 * configure.in: Generate `devel-docs' first.
13840 2000-08-11 Dan Winship <danw@helixcode.com>
13842 * data/mime/gnome-vfs.applications: gnumeric can open Excel files.
13844 * data/mime/gnome-vfs.keys: Excel files can be opened by gnumeric.
13846 2000-08-11 Ali Abdin <aliabdin@aucegypt.edu>
13848 * libgnomevfs/gnome-vfs-mime-snif-buffer.h:
13849 * libgnomevfs/gnome-vfs-application-registry.h:
13850 Remove unneeded #include <libgnome/gnome-defs.h> (libgnome dependency)
13852 2000-08-10 Darin Adler <darin@eazel.com>
13854 * data/mime/gnome-vfs.keys: Fix the default for directories. It
13855 was supposed to be the icon view, but had "ntl" instead of "nautilus".
13857 * test/.cvsignore: Ignore the new file generated (the test Pavel added).
13859 2000-08-10 Maciej Stachowiak <mjs@eazel.com>
13861 * libgnomevfs-corba/gnome-vfs-corba.c (gnome_vfs_corba_init):
13862 removed gratuitous call to gnome_init_with_popt_table
13864 * modules/efs-method.c: Removed gratuitous include of <gnome.h>,
13865 replaced with <string.h>
13867 2000-08-10 Darin Adler <darin@eazel.com>
13869 * libgnomevfs/gnome-vfs-gen-mimedb.c: (main):
13870 * modules/file-method.c: (do_find_directory): Fixed backwards use
13871 of access. Access's result has the opposite sense of
13874 2000-08-10 Ali Abdin <aliabdin@aucegypt.edu>
13876 * libgnomevfs/gnome-vfs-gen-mimedb.c:
13878 Replace gnomelib_init with gnome_vfs_init and replace
13879 Replace g_file_exists with access(,F_OK)
13881 Remove #include of gnome-libs file
13883 * modules/file-method.c:
13884 (do_find_directory):
13885 Replace g_file_exists with access(,F_OK)
13886 (do_set_file_info): Remove usage of g_concat_dir_and_file (to avoid
13887 gnome-libs dependency).
13889 Also #include <string.h>
13891 * libgnomevfs-corba.c:
13894 2000-08-10 Maciej Stachowiak <mjs@eazel.com>
13896 * libgnomevfs/gnome-vfs-uri.c (parse_uri_substring,
13897 gnome_vfs_uri_new): Tolerate fragment identifiers by just ignoring
13898 them; differentiate them from the gnome-vfs method chaning syntax
13899 by checking for a colon past the pound sign.
13901 Wed Aug 09 23:26:17 2000 George Lebl <jirka@5z.com>
13903 * libgnomevfs/gnome-vfs-application-registry.[ch]
13904 (application_info_load) (gnome_vfs_application_registry_init)
13905 (gnome_vfs_application_registry_sync)
13906 libgnomevfs/gnome-vfs-mime-handlers.c
13907 (gnome_vfs_mime_edit_user_file_full)
13908 libgnomevfs/gnome-vfs-mime-info.[ch] (mime_info_load)
13909 (mime_list_load) (gnome_vfs_mime_init) (write_registered_mime_data)
13910 libgnomevfs/gnome-vfs-mime-magic.h
13911 libgnomevfs/gnome-vfs-mime-private.h
13912 libgnomevfs/gnome-vfs-mime.[ch] (mime_load) (mime_init)
13913 libgnomevfs/gnome-vfs.h, libgnomevfs/gnome-vfs-private.h:
13914 Remove all the simple gnome dependencies. All the gnome-utils
13915 dependencies which can be replaced by about the same amount of
13916 non-gnome code. Also replace all BEGIN/END_GNOME_DECLS with the
13917 standard extern "C" foo.
13919 * libgnomevfs/gnome-vfs-private.h: Add NLS defines N_ and _ because
13920 those are handled by gnome normally. Also this uses the "private"
13921 defines from gnome-i18nP.h which is apparently the way to do this
13922 inside the library.
13924 2000-08-09 Robin * Slomkowski <rslomkow@eazel.com>
13926 * gnome-vfs.spec.in: should work again
13928 2000-08-09 Pavel Cisler <pavel@eazel.com>
13930 * modules/file-method.c: (find_trash_in_one_hierarchy_level),
13931 (find_trash_in_hierarchy), (try_creating_trash_in),
13932 (find_trash_directory), (do_find_directory):
13933 Add checks for cancellation at every level of trash lookup.
13934 Make it so that we start looking a good place for a new directory
13935 right in the top disk level rather than on level deeper.
13936 Check if entries returned from the cached Trash list still exist
13937 when find_if_needed is on. If they no longer do, flush them from the
13940 2000-08-09 Ali Abdin <aliabdin@aucegypt.edu>
13942 * modules/extfs-method.c:
13943 * modules/pipe-method.c:
13944 Remove gratuitous gnome-libs dependency
13946 * modules/pipe-method.c:
13947 #include <string.h>
13949 2000-08-09 Ali Abdin <aliabdin@aucegypt.edu>
13951 * libgnomevfs-corba/gnome-vfs-slave.c:
13952 Remove gratiutous gnome-libs dependency.
13954 2000-08-09 Ali Abdin <aliabdin@aucegypt.edu>
13956 * libgnomevfs/gnome-vfs-modules-shared.c,
13957 * libgnomevfs/gnome-vfs-mime-magic.c:
13958 Remove gratiutous gnome-libs dependency.
13960 2000-08-09 Pavel Cisler <pavel@eazel.com>
13962 * modules/file-method.c: (append_trash_path),
13963 (find_trash_in_one_hierarchy_level), (find_trash_in_hierarchy),
13964 (try_creating_trash_in), (find_trash_directory),
13965 (do_find_directory):
13966 Fix a ton of bugs in the new find directory calls.
13968 * test/Makefile.am:
13969 * test/test-find-directory.c:
13970 Mini test tool for the gnome_vfs_find_directory call.
13972 2000-08-09 Pavel Cisler <pavel@eazel.com>
13974 * libgnomevfs/gnome-vfs-cancellable-ops.c:
13975 (gnome_vfs_find_directory_cancellable):
13976 * libgnomevfs/gnome-vfs-cancellable-ops.h:
13977 * libgnomevfs/gnome-vfs-find-directory.c:
13978 (gnome_vfs_find_directory):
13979 * libgnomevfs/gnome-vfs-find-directory.h:
13980 * libgnomevfs/gnome-vfs-private-types.h:
13981 * modules/efs-method.c: (do_find_directory):
13982 * modules/extfs-method.c: (do_find_directory):
13983 * modules/translate-method.c: (tr_do_find_directory):
13984 Add a find_if_needed parameter to find_directory calls.
13986 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_list_deep_free):
13987 * libgnomevfs/gnome-vfs-utils.h:
13988 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_uri_internal):
13989 Add a new utility call, moving it from gnome-vfs-xfer.c so I
13990 can share it with others.
13992 * modules/file-method.c: (GET_PATH_MAX), (get_path_from_uri),
13993 (get_base_from_uri), (append_to_path), (append_trash_path),
13994 (find_trash_in_one_hierarchy_level), (find_trash_in_hierarchy),
13995 (match_trash_item_by_device_id), (try_creating_trash_in),
13996 (find_trash_directory), (do_find_directory), (do_set_file_info):
13997 Work in progress on finding/creating Trash on non-home volumes.
13999 Tue Aug 08 23:18:49 2000 George Lebl <jirka@5z.com>
14001 * libgnomevfs/Makefile.am,
14002 libgnomevfs/gnome-vfs-application-registry.[ch]:
14003 A new application registry. The parsing is based upon
14004 mime-info. The interface completely hides any structures
14005 and is based entierly on querying string keys. Handles
14006 user settings as a delta against the system settings. Also
14007 adds mime_types list support to the registry instead of this
14008 being read from the keys file.
14010 * libgnomevfs/gnome-vfs-mime-handlers.[ch]
14011 (gnome_vfs_mime_get_default_application)
14012 (gnome_vfs_mime_get_short_list_applications)
14013 (gnome_vfs_mime_get_all_applications)
14014 (gnome_vfs_mime_extend_all_applications)
14015 (gnome_vfs_mime_remove_from_all_applications)
14016 (gnome_vfs_mime_application_new_from_id)
14017 (application_known_to_be_nonexistent):
14018 Use the application registry API internally. Remove the
14019 gnome_vfs_mime_define_application call as it doesn't
14020 make any sesnse any more and is replaced by an application
14021 registry call. The all_applications calls now use the
14022 registry api for all their work.
14024 * libgnomevfs/gnome-vfs-mime-info.c (load_mime_type_info_from):
14025 Fix a bug where comments would only be ignored on the first
14026 line which would add nonsense mime types if comments were
14027 elsewhere in the file.
14029 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c
14030 (add_new_application)
14031 test/test-mime-handlers-set.c (main):
14032 Use the application registry for adding new applications
14034 * data/mime/Makefile.am, data/mime/gnome-vfs.keys,
14035 data/mime/gnome-vfs.applications,
14036 data/mime/application-registry-hack.keys:
14037 Remove the registry hack stuff, remove all_applications
14038 stuff from gnome-vfs.keys and add the applications from
14039 the registry hack to gnome-vfs.applications including
14040 the mime types they read.
14042 2000-08-08 Maciej Stachowiak <mjs@eazel.com>
14044 * mime-type-capplet/nautilus-mime-type-capplet.c: Move include of
14045 sys/types.h above include of regex.h to fix building on
14046 FreeBSD. Fix from Bill Huey <billh@gnuppy.monkey.org>.
14048 2000-08-08 Maciej Stachowiak <mjs@eazel.com>
14052 * modules/bzip2-method.c
14053 (bzip2_method_handle_init_for_decompress),
14054 (bzip2_method_handle_init_for_compress), (flush_write), (do_read),
14057 Handle both bzip2 1.0, which adds BZ2_ to the front of all
14058 function names, and the older version. Problem reported by Bill
14059 Huey <billh@gnuppy.monkey.org>.
14061 2000-08-08 Maciej Stachowiak <mjs@eazel.com>
14063 * libgnomevfs/gnome-vfs-parse-ls.c (gnome_vfs_parse_ls_lga): Avoid
14064 a warning and potential bug on systems (such as FreeBSD) where the
14065 st_nlink field of struct stat is unsigned. Problem reported by Bill
14066 Huey <billh@gnuppy.monkey.org>.
14068 2000-08-08 Robin * Slomkowski <rslomkow@eazel.com>
14070 * mime-type-capplet/Makefile.am: added
14071 nautilus-mime-type-icon-entry.h as it was forgotten
14073 2000-08-09 Ian McKellar <yakk@yakk.net.au>
14075 * modules/http-method.c: (make_propfind_request):
14076 Fixed another WebDAV directory listing bug. If the current URI
14077 contained escaped characters (%20 for example) it would not be
14080 2000-08-09 Ian McKellar <yakk@yakk.net.au>
14082 * modules/http-method.c: (process_propfind_response):
14083 Fixed a bug where the current directory could show up in WebDAV
14084 directory listings.
14086 2000-08-08 John Sullivan <sullivan@eazel.com>
14088 * data/mime/gnome-vfs.keys:
14089 Added description for application/x-java-byte-code; changed
14090 "search results virtual directory" to "search results".
14092 2000-08-07 Maciej Stachowiak <mjs@eazel.com>
14094 * data/mime/gnome-vfs.keys:
14095 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_get_file_mime_type):
14096 * libgnomevfs/gnome-vfs-module-shared.c:
14097 (gnome_vfs_mime_type_from_mode), (gnome_vfs_get_special_mime_type):
14098 * modules/extfs-method.c: (do_get_file_info):
14099 * modules/ftp-method.c: (do_get_file_info):
14100 * modules/gconf-method.c: (set_mime_type_dir):
14101 * modules/http-method.c: (process_propfind_propstat):
14103 Renamedirectory mime types:
14105 x-special/directory => x-directory/normal
14106 x-special/webdav-directory => x-directory/webdav
14107 x-special/virtual-directory => x-directory/search
14110 2000-08-07 Maciej Stachowiak <mjs@eazel.com>
14112 * CVSVERSION: New file, used to detect whether we are configuring
14113 a cvs version or a release tarball.
14115 * configure.in: Default -Werror to off when configuring a release
14116 tarball, and to on when configuring a cvs version.
14118 2000-08-07 Maciej Stachowiak <mjs@eazel.com>
14120 * test/test-escape.c (main): Fix to match new escaping logic for
14123 2000-08-07 Darin Adler <darin@eazel.com>
14125 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_has_parent):
14126 Fixed so it matches the _get_parent function by just calling
14127 _get_parent. It would be hard to get the corresponding result
14128 otherwise. Someone performance-obsessed could move the common
14129 code out into a separate function if they like.
14131 * test/test-uri.c: (test_uri_has_parent), (main):
14132 Added a test of gnome_vfs_uri_has_parent to this tool.
14134 * modules/http-method.c: (make_propfind_request):
14135 Changed a g_warning to a g_message. Maybe yakk will change it
14136 back or something, but it happens too often to be a drop-into-
14137 the-debugger warning.
14139 2000-08-07 Rebecca Schulman <rebecka@eazel.com>
14141 * libgnomevfs/gnome-vfs-result.c:
14142 * libgnomevfs/gnome-vfs-types.h:
14143 added a new error code GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE
14145 2000-08-07 Maciej Stachowiak <mjs@eazel.com>
14147 * libgnomevfs/gnome-vfs-utils.c: Do not escape `?', `&', or `=' in
14148 paths, to avoid messing up http queries.
14150 2000-08-08 Ian McKellar <yakk@yakk.net.au>
14152 * modules/http-method.c: (process_propfind_propstat),
14153 (process_propfind_response):
14154 Fixed a memory leak in WebDAV PROPFIND response parsing.
14156 Sun Aug 06 15:10:01 2000 George Lebl <jirka@5z.com>
14158 * libgnomevfs/gnome-vfs-mime-info.c (load_mime_type_info_from)
14159 (load_mime_list_info_from) (gnome_vfs_mime_init): Be more correct
14160 in function prototypes
14161 (gnome_vfs_mime_init): gnome_i18n_get_language_list returns a
14162 "constant" list. So make a copy before inverting it.
14164 * bzip2-method.c, gzip-method.c: #include <string.h> to make it
14167 2000-08-07 Ian McKellar <yakk@yakk.net.au>
14169 * modules/http-method.c: (process_propfind_propstat),
14170 (do_get_file_info):
14171 Fixed a bug that affected Xythos interoperability.
14173 2000-08-06 Ian McKellar <yakk@yakk.net.au>
14175 * modules/ftp-method.c: (do_get_file_info):
14176 Changed the do_get_file_info behaviour to be more portable. I believe
14177 this resolves bug #1981.
14179 2000-08-05 Michael K. Fleming <mfleming@eazel.com>
14181 * libgnomevfs/gnome-vfs-uri.c: (split_toplevel_uri),
14182 (split_toplevel_uri_old), (uri_strspn_to), (split_toplevel_uri):
14183 * test/test-uri.c: (test_uri_part), (test_uri_host_port), (main):
14185 Re-implemented split_toplevel_uri to fix some parsing bugs in the old one.
14186 (Most signficantly, 'http://localhost:80' would be parsed as
14187 hostname 'localhost:80' rather than hostname 'localhost' port '80')
14189 ****Note that the new code is necessarally not bug-for-bug compatible with
14190 the original implementation, and therefore may expose bugs in existing
14193 Added new test cases for URI parsing.
14195 The old split_toplevel_uri code is ifdef'd out. If you disable
14196 NO_MKF_DEBUG, you can get warnings when a differences between the old
14197 version and the new version is encountered. Of course, the code in this
14198 block should be removed before the next release.
14200 2000-08-04 John Sullivan <sullivan@eazel.com>
14202 * data/mime/gnome-vfs-mime-magic: changed text/rtf to
14203 application/rtf to match both the .keys file and reality.
14205 * data/mime/gnome-vfs.keys: added description for
14208 2000-08-04 Robey Pointer <robey@eazel.com>
14210 * libgnomevfs/gnome-vfs-utils.c:
14211 (gnome_vfs_escape_string_internal), (gnome_vfs_escape_path_string),
14212 (gnome_vfs_escape_host_and_path_string):
14213 * libgnomevfs/gnome-vfs-utils.h:
14215 Add an _escape_host_and_path_string() call to cope intelligently
14216 with uri's that have a host:port section before the path.
14218 2000-08-05 Ian McKellar <yakk@yakk.net.au>
14220 * modules/http-method.c: (process_propfind_response),
14221 (do_open_directory), (do_get_file_info):
14222 Make open_directory and do_get_file_info try http://foo/bar/ if
14223 http://foo/bar fails with a file not found error. See:
14224 http://bugzilla.eazel.com/show_bug.cgi?id=1904
14226 2000-08-04 Darin Adler <darin@eazel.com>
14228 * libgnomevfs/gnome-vfs-mime.c: (add_to_key):
14229 Added a workaround for a bug in Solaris regcomp.
14231 2000-08-03 Seth Nickell <seth@eazel.com>
14233 * libgnomevfs/gnome-vfs-xfer.c: (count_items_and_size),
14234 (link_items), (gnome_vfs_xfer_delete_items),
14235 (gnome_vfs_xfer_uri_internal):
14236 A rewrite of the code that CVS (or me?) lost for some strange bizarre reason...
14237 <sigh> Adds symbolic link abilities to gnome-vfs-xfer.
14239 2000-08-03 Ramiro Estrugo <ramiro@eazel.com>
14241 * data/mime/gnome-vfs.keys:
14243 Add the mozilal component as a content handler for
14244 x-special/webdav-directory. Also move the gtkhtml web browser up
14247 2000-08-03 John Sullivan <sullivan@eazel.com>
14249 * data/mime/gnome-vfs.keys: Added a couple of description-less
14250 types that people had run into (image/x-xfig and application/x-compress).
14251 Also removed one of the two different descriptions for image/x-xpixmap.
14252 Also alphabetized the entries again -- someone changed some MIME
14253 type names without re-alphabetizing.
14255 2000-08-03 Mathieu Lacage <set EMAIL_ADDRESS environment variable>
14257 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_init):
14258 remove FIXMEs for bug 796.
14259 * libgnomevfs/gnome-vfs-mime.c: (mime_init): idem.
14261 2000-08-02 Pavel Cisler <pavel@eazel.com>
14263 Seth forgot to check in changes Nautilus relies on and
14264 unfortunately they are nowhere to be found on his machine.
14265 This change will make Nautilus build again. Seth needs to check
14266 in his missing changes to make symlink creation work properly.
14268 * libgnomevfs/gnome-vfs-types.h:
14270 2000-08-02 Gene Z. Ragan <gzr@eazel.com>
14272 Fixed bug 1837, The icon in the action list item
14273 should represent the item in the list.
14275 * mime-type-capplet/nautilus-mime-type-capplet.c:
14276 (populate_mime_list):
14277 Load icon and display based on action.
14279 2000-08-02 Darin Adler <darin@eazel.com>
14281 * libgnomevfs/gnome-vfs-module-shared.c:
14282 (gnome_vfs_mime_type_from_mode), (gnome_vfs_get_special_mime_type):
14283 Removed some old FIXMEs that were left after the bug was fixed.
14285 2000-08-02 Gene Z. Ragan <gzr@eazel.com>
14287 Fixed bug 1836, Description list item icon wrong.
14289 * mime-type-capplet/nautilus-mime-type-capplet.c:
14290 (populate_mime_list), (gdk_font_get_bold),
14291 Set up proper and scaled description column icon.
14293 (capplet_gdk_pixbuf_scale_to_fit):
14294 New function that scales an gdk-pixbuf to the requested
14295 width and height. Copied from libnautilus.
14297 2000-08-01 Darin Adler <darin@eazel.com>
14299 * data/mime/gnome-vfs.keys:
14300 Added description for "x-special/virtual-directory", which
14301 will probably be renamed soon.
14303 2000-08-01 Ian McKellar <yakk@yakk.net.au>
14306 Updated ftp method info.
14308 * modules/http-method.c: (process_propfind_response),
14309 (make_propfind_request), (do_read_directory):
14310 Fixed the PROPFIND response parsing to handle Xythos servers
14313 2000-07-30 ERDI Gergo <cactus@cactus.rulez.org>
14315 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c
14316 (name_from_oaf_server_info): changed oaf_server_info_attr_lookup
14317 calls to oaf_server_info_prop_lookup
14319 2000-07-28 Gene Z. Ragan <gzr@eazel.com>
14321 * mime-type-capplet/nautilus-mime-type-capplet.c:
14322 (init_mime_capplet), (pixmap_file), (gtk_widget_make_bold),
14323 (gtk_widget_set_font), (gtk_style_set_font), (gdk_font_get_bold):
14324 New function to set the font of a widget to bold. These were
14325 borrowed from libnautilus-extensions.
14327 2000-07-28 Gene Z. Ragan <gzr@eazel.com>
14329 * data/mime/gnome-vfs-mime-magic:
14330 * data/mime/gnome-vfs.keys:
14331 Added magic and mime type for GMC links.
14332 application/x-gmc-link
14334 2000-07-27 Seth Nickell <seth@eazel.com>
14336 * libgnomevfs/gnome-vfs-file-info.h:
14337 Added SYMLINK macros.
14339 * libgnomevfs/gnome-vfs-types.h:
14340 Added GNOME_VFS_FILE_FLAGS_SYMLINK
14342 * modules/file-method.c: (get_stat_info):
14343 Changed code around to properly stat and lstat, and use flags.
14345 * test/gnome-file-selection/gnome-file-selection.c:
14346 (populate_callback):
14347 * test/test-async-directory.c: (print_list):
14348 * test/test-directory-visit.c: (directory_visit_callback):
14349 * test/test-directory.c: (print_list):
14350 Changed to use flags properly.
14352 2000-07-26 Gene Z. Ragan <gzr@eazel.com>
14354 * data/mime/gnome-vfs-mime-magic:
14355 * data/mime/gnome-vfs.keys:
14356 Added mime magic and mime type key for application/x-nautilus-link
14358 2000-07-25 Mike Fleming <mfleming@eazel.com>
14360 * modules/translate-method.c: (tr_exec_open_child),
14361 (tr_exec_pass_uri), (tr_exec_do_retain), (tr_handle_exec),
14362 (tr_exec_init), (tr_exec_cleanup), (tr_args_parse),
14363 (vfs_module_init), (vfs_module_shutdown):
14365 Added -retain option to translate's -exec mode
14366 Fixed method-table initialization problem
14368 2000-07-25 Dan Winship <danw@helixcode.com>
14370 * libgnomevfs/gnome-vfs-mime-handlers.c
14371 (gnome_vfs_mime_get_default_action_without_fallback): New function
14372 to get the default action for a MIME type without falling back to
14373 its supertype if there is nothing available for the full type.
14375 2000-07-25 Darin Adler <darin@eazel.com>
14377 * modules/pipe-method.c: (mime_from_uri):
14378 Handle the case where the URI is NULL (can happen with some bad
14379 URIs that can't be unescaped).
14381 2000-07-25 John Sullivan <sullivan@eazel.com>
14383 Made async set_file_info pass back newly-retrieved
14384 file info, since setting some info changes other
14385 info (e.g., setting owner can change permissions).
14387 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
14388 (pthread_gnome_vfs_async_set_file_info): New options parameter
14389 to use when getting file info, changed callback type.
14390 * libgnomevfs-pthread/gnome-vfs-job.h:
14391 Add get_file_info options field to request struct, and file_info &
14392 get_file_info_result fields to notify struct.
14393 * libgnomevfs-pthread/gnome-vfs-job.c:
14394 (execute_set_file_info): Fetch file_info after setting.
14395 (dispatch_set_file_info_callback): Pass to caller newly-fetched
14396 file_info, or NULL if it couldn't be read.
14398 * libgnomevfs/gnome-vfs-async-ops.h:
14399 Change signature of gnome_vfs_async_set_file_info to take options
14400 for get_file and to use a GnomeVFSAsyncSetFileInfoCallback
14401 * libgnomevfs/gnome-vfs-backend.c:
14402 (report_failure_set_file_info_callback),
14403 (report_failure_set_file_info): New functions that handle the new
14404 intricacies of set_file_info failures.
14405 (gnome_vfs_async_set_file_info): Updated for parameter changes.
14406 * libgnomevfs/gnome-vfs-types.h:
14407 Changed GnomeVFSAsyncCloseCallback to just a #define;
14408 added new GnomeVFSAsyncSetFileInfoCallback
14410 2000-07-25 Pavel Cisler <pavel@eazel.com>
14412 * modules/file-method.c: (do_find_directory), (do_check_same_fs):
14413 Use lstat instead of stat to correctly treat symbolic links.
14415 2000-07-24 Fatih Demir <kabalak@gmx.net>
14417 * mime-type-capplet/nautilus-mime-type.desktop: Added the
14418 Turkish desktop entries.
14420 2000-07-21 Mathieu Lacage <set EMAIL_ADDRESS environment variable>
14422 Closes bug 1120, 1118, 1176 from buzilla.eazel.com
14423 source incompatible change. Removes metadata support.
14424 Basically, it changes the signature of all the functions which
14425 had metadata support and removes one parameter. To take this change
14426 into account, you basically need to remove one NULL parameter from
14427 the calls which have changed.
14429 * idl/gnome-vfs-slave.idl:
14430 * idl/gnome-vfs-types.idl:
14431 * libgnomevfs-corba/gnome-vfs-async-ops.c:
14432 (corba_gnome_vfs_async_get_file_info),
14433 (corba_gnome_vfs_async_load_directory),
14434 (corba_gnome_vfs_async_load_directory_uri):
14435 * libgnomevfs-corba/gnome-vfs-slave-notify.c:
14436 (impl_Notify_load_directory), (impl_Notify_get_file_info):
14437 * libgnomevfs-corba/gnome-vfs-slave.c: (allocate_info_list),
14438 (copy_file_info), (load_directory_not_sorted),
14439 (load_directory_sorted), (impl_Request_get_file_info),
14440 (impl_Request_load_directory):
14441 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
14442 (pthread_gnome_vfs_async_get_file_info),
14443 (pthread_gnome_vfs_async_load_directory),
14444 (pthread_gnome_vfs_async_load_directory_uri):
14445 * libgnomevfs-pthread/gnome-vfs-job.c:
14446 (execute_load_directory_not_sorted),
14447 (execute_load_directory_sorted), (execute_get_file_info),
14448 (execute_load_directory):
14449 * libgnomevfs-pthread/gnome-vfs-job.h:
14450 * libgnomevfs/gnome-vfs-async-ops.h:
14451 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_async_get_file_info),
14452 (gnome_vfs_async_load_directory_uri),
14453 (gnome_vfs_async_load_directory):
14454 * libgnomevfs/gnome-vfs-cancellable-ops.c:
14455 (gnome_vfs_get_file_info_uri_cancellable),
14456 (gnome_vfs_get_file_info_from_handle_cancellable):
14457 * libgnomevfs/gnome-vfs-cancellable-ops.h:
14458 * libgnomevfs/gnome-vfs-directory-list.c:
14459 (gnome_vfs_directory_list_load),
14460 (gnome_vfs_directory_list_load_from_uri):
14461 * libgnomevfs/gnome-vfs-directory-list.h:
14462 * libgnomevfs/gnome-vfs-directory.c:
14463 (gnome_vfs_directory_handle_new),
14464 (gnome_vfs_directory_handle_destroy), (open_from_uri), (open),
14465 (gnome_vfs_directory_open), (gnome_vfs_directory_open_from_uri),
14466 (directory_visit_internal), (gnome_vfs_directory_visit_uri),
14467 (gnome_vfs_directory_visit),
14468 (gnome_vfs_directory_visit_files_at_uri),
14469 (gnome_vfs_directory_visit_files):
14470 * libgnomevfs/gnome-vfs-directory.h:
14471 * libgnomevfs/gnome-vfs-file-info.c: (gnome_vfs_file_info_clear),
14472 (gnome_vfs_file_info_copy):
14473 * libgnomevfs/gnome-vfs-file-info.h:
14474 * libgnomevfs/gnome-vfs-handle.c:
14475 (gnome_vfs_handle_do_get_file_info):
14476 * libgnomevfs/gnome-vfs-handle.h:
14477 * libgnomevfs/gnome-vfs-module-shared.c:
14478 (gnome_vfs_get_special_mime_type):
14479 * libgnomevfs/gnome-vfs-ops.c: (gnome_vfs_get_file_info),
14480 (gnome_vfs_get_file_info_uri),
14481 (gnome_vfs_get_file_info_from_handle):
14482 * libgnomevfs/gnome-vfs-ops.h:
14483 * libgnomevfs/gnome-vfs-private-types.h:
14484 * libgnomevfs/gnome-vfs-types.h:
14485 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory),
14486 (gnome_vfs_visit_list), (directory_add_items_and_size),
14487 (handle_name_conflicts), (create_directory), (copy_directory),
14488 (copy_items), (gnome_vfs_xfer_delete_items_common):
14489 * modules/bzip2-method.c: (do_get_file_info):
14490 * modules/efs-method.c: (do_open_directory), (do_get_file_info):
14491 * modules/extfs-method.c: (do_open_directory), (do_get_file_info),
14492 (do_get_file_info_from_handle):
14493 * modules/file-method.c: (directory_handle_new),
14494 (do_open_directory), (read_directory), (do_get_file_info),
14495 (do_get_file_info_from_handle):
14496 * modules/ftp-method.c: (internal_get_file_info),
14497 (do_get_file_info), (do_open_directory):
14498 * modules/gconf-method.c: (directory_handle_new),
14499 (set_stat_info_value), (set_stat_info_dir), (do_open_directory),
14500 (read_directory), (do_get_file_info),
14501 (do_get_file_info_from_handle):
14502 * modules/gzip-method.c: (do_get_file_info):
14503 * modules/http-method.c: (do_open_directory),
14504 (get_file_info_from_http_handle), (do_get_file_info),
14505 (do_get_file_info_from_handle):
14506 * modules/pipe-method.c: (do_get_file_info),
14507 (do_get_file_info_from_handle):
14508 * modules/translate-method.c: (tr_do_open_directory),
14509 (tr_do_get_file_info), (tr_do_get_file_info_from_handle):
14510 * test/gnome-file-selection/gnome-file-selection.c:
14511 (start_populating):
14512 * test/test-async-cancel.c: (wait_until_vfs_threads_gone),
14513 (first_get_file_info), (test_get_file_info),
14514 (test_load_directory_cancel):
14515 * test/test-async-directory.c: (main):
14516 * test/test-directory-visit.c: (main):
14517 * test/test-directory.c: (main):
14518 * test/test-info.c: (print_file_info), (main):
14519 * test/test-shell.c: (do_ls), (validate_path), (get_regexp_name),
14521 * test/test-symlinks.c: (deal_with_result):
14523 2000-07-19 Ali Abdin <aliabdin@aucegypt.edu>
14525 * modules/translate-method.c: (tr_apply_default_mime_type):
14526 Modified to also apply default mime-type if the mime-type is
14527 application/octet-stream
14529 2000-07-19 Darin Adler <darin@eazel.com>
14531 * libgnomevfs/gnome-vfs-uri.c: (get_method_string): Schemes are
14532 not case-sensitive according to the RFC, so make them all
14533 lower-case with g_strdown when we parse.
14534 (gnome_vfs_uri_get_parent): Change logic so that URIs with no "/"
14537 * test/test-uri.c: (test_uri_parent): Added a function for testing
14538 gnome_vfs_uri_get_parent.
14539 (main): Moved "FILE:" test out of the FIXME section since it's fixed.
14540 Added lots of parent tests. Corrected the "add // incorrectly" test
14541 to match the new version of gnome_vfs_uri_new.
14543 * modules/pipe-method.c: Removed some bad casts of function
14544 pointers to (gpointer) that were also completely unnecessary.
14546 * libgnomevfs/Makefile.am (INCLUDES): Ettore meant
14547 "-I$(top_builddir)", since it's a generated file.
14549 * test/auto-test: Pass "-a" option to diff so it treats the files
14552 * test/test.output: Updated to match what the program currently
14553 writes out. Someone needs to look it over and see if it's correct
14554 or if it reflects bugs.
14556 2000-07-19 Ettore Perazzoli <ettore@helixcode.com>
14558 * libgnomevfs/Makefile.am (INCLUDES): Add `-I$(top_srcdir)'.
14559 Otherwise `#include <libgnomevfs/gnome-vfs-types.h>' doesn't work.
14561 2000-07-19 Kjartan Maraas <kmaraas@gnome.org>
14563 * configure.in: Added nl to ALL_LINGUAS.
14565 2000-07-18 Mike Fleming <mfleming@eazel.com>
14567 * modules/translate-method.c: (tr_forkexec_cb), (tr_getline),
14568 (tr_handle_exec), (tr_uri_translate), (tr_do_open), (tr_do_create),
14569 (tr_do_open_directory), (tr_do_get_file_info), (tr_do_truncate),
14570 (tr_do_is_local), (tr_do_make_directory), (tr_do_find_directory),
14571 (tr_do_remove_directory), (tr_do_move), (tr_do_unlink),
14572 (tr_do_check_same_fs), (tr_do_set_file_info),
14573 (my_poptParseArgvString), (tr_args_parse), (tr_args_free):
14575 Added a -exec option to vfs-translate, which allows a child
14576 process to filter URI's.
14578 2000-07-18 Maciej Stachowiak <mjs@eazel.com>
14580 * libgnomevfs/gnome-vfs-private-utils.c
14581 (gnome_vfs_string_list_from_string_array): Handle a zero-length
14582 non-NULL array properly by turning a gratuitous do ... while loop
14585 2000-07-17 Maciej Stachowiak <mjs@eazel.com>
14587 * modules/search-method.c, modules/search-method.h: Removed (moved
14590 * libgnomevfs/gnome-vfs-private-ops.c,
14591 libgnomevfs/gnome-vfs-private-ops.h: Renamed to
14592 gnome-vfs-cancellable-ops.[ch]
14593 * libgnomevfs/Makefile.am, libgnomevfs/gnome-vfs-private.h: Deal
14596 2000-07-17 Mathieu Lacage <mathieu@eazel.com>
14598 This should fix bug 796.
14600 * libgnomevfs/Makefile.am: add -DGNOME_VFS_DATADIR and
14601 -DGNOME_VFS_CONFDIR.
14602 * libgnomevfs/gnome-vfs-mime.c:(mime_init) look into gnome_vfs
14603 prefix instead of gnome-libs one.
14604 * libgnomevfs/gnome-vfs-mime-magic.c:(gnome_vfs_mime_get_magic_table)
14606 * libgnomevfs/gnome-vfs-gen-mimedb.c:(main) idem.
14607 * libgnomevfs/gnome-vfs-mime-info.c:(gnome_vfs_mime_init) idem.
14609 2000-07-17 Seth Nickell <seth@eazel.com>
14611 * modules/search-method.c: (search_directory_handle_new),
14612 (search_directory_handle_destroy), (parse_search_uri), (do_open),
14613 (do_create), (do_close), (do_read), (do_write), (do_write),
14614 (do_seek), (do_tell), (do_truncate_handle), (do_open_directory),
14615 (do_close_directory), (do_read_directory), (do_get_file_info),
14616 (do_get_file_info_from_handle), (do_is_local), (do_make_directory),
14617 (do_remove_directory), (do_move), (do_unlink), (do_check_same_fs),
14618 (do_set_file_info), (do_truncate), (do_find_directory),
14619 (do_create_symbolic_link):
14620 * modules/search-method.h:
14622 Create module for interfacing Gnome-VFS and the medusa search service.
14623 Write skeletons, draft basic functionality.
14625 2000-07-17 Jonathan Blandford <jrb@redhat.com>
14627 * modules/bzip2-method.c: #include <string.h>
14629 * libgnomevfs/gnome-vfs-private-ops.c: #include <string.h>
14631 * libgnomevfs/gnome-vfs-xfer.c: #include <string.h>
14633 * libgnomevfs/gnome-vfs-mime-sniff-buffer-private.h: Add newline
14634 to the end of the file.
14635 * libgnomevfs/gnome-vfs-find-directory.h: Add newline to the end
14638 2000-07-17 Pavel Cisler <pavel@eazel.com>
14640 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_xfer_delete_items):
14641 Added a missing READYTOGO progress that caused asserts to
14642 get fired during a delete operation.
14644 2000-07-15 Ali Abdin <aliabdin@aucegypt.edu>
14646 * modules/pipe-methpd.c:
14647 (mime_from_uri), (str_without_suffix), (do_get_file_info),
14648 (do_get_file_info_from_handle), (do_open):
14649 We are now allowed to specify mime-type over the URI using the pipe
14650 method (as in pipe:command;mime-type=text/html)
14652 Also - you can now escape strings passed to the pipe method (before
14653 they had to be unescaped)
14655 This closes bug #1322. (We still need a test-suite for this though).
14657 Also - expect a commit for a 'fix' to libvfs-translate.so
14659 2000-07-14 Gene Z. Ragan <gzr@eazel.com>
14661 * libgnomevfs/gnome-vfs-mime-handlers.c:
14662 * libgnomevfs/gnome-vfs-mime-handlers.h:
14663 (gnome_vfs_mime_get_icon), (gnome_vfs_mime_set_icon):
14664 New API to get and set icon data.
14666 * mime-type-capplet/Makefile.am:
14668 mime-type-capplet/nautilus-mime-type-icon-entry.c
14670 * mime-type-capplet/nautilus-mime-type-icon-entry.c:
14671 * mime-type-capplet/nautilus-mime-type-icon-entry.h:
14672 (nautilus_mime_type_icon_entry_get_type),
14673 (nautilus_mime_type_icon_entry_class_init), (entry_changed),
14674 (entry_activated), (setup_preview), (ientry_destroy),
14675 (browse_clicked), (icon_selected_cb), (cancel_pressed),
14676 (gil_icon_selected_cb), (nautilus_mime_type_show_icon_selection),
14677 (drag_data_received), (drag_data_get),
14678 (nautilus_mime_type_icon_entry_init),
14679 (nautilus_mime_type_icon_entry_new),
14680 (nautilus_mime_type_icon_entry_gnome_file_entry),
14681 (nautilus_mime_type_icon_entry_gnome_entry),
14682 (nautilus_mime_type_icon_entry_gtk_entry),
14683 (nautilus_mime_type_icon_entry_set_pixmap_subdir),
14684 (nautilus_mime_type_icon_entry_set_icon),
14685 (nautilus_mime_type_icon_entry_get_filename):
14686 New file. This is a new verison of GnomeIconEntry.
14687 I am customizing it to look and bahve in a way that
14688 is compatible with Arlo's UI reccomendations.
14690 * mime-type-capplet/nautilus-mime-type-capplet.c:
14691 (mime_list_selected_row_callback), (icon_changed),
14692 (change_icon_clicked), (init_mime_capplet),
14693 (nautilus_mime_type_capplet_update_info), (populate_mime_list):
14694 More UI cleanups. Removed GnomeIconEntry and replaced
14695 with new NautilusMimeTypeIconEntry.
14697 2000-07-14 Mathieu Lacage <mathieu@eazel.com>
14699 * mime-type-capplet/Makefile.am: add OAF_CFLAGS and OAF_LIBS
14700 where it is needed to make it compile with strange prefixes.
14702 2000-07-13 Gene Z. Ragan <gzr@eazel.com>
14704 Fixed bug 1158, GnomeVFSMimeHandlers code needs error handling
14706 * libgnomevfs/gnome-vfs-mime-handlers.c:
14707 (gnome_vfs_mime_add_extension),
14708 (gnome_vfs_mime_remove_extension):
14709 These functions now return a valid GNomeVFSResult.
14711 * libgnomevfs/gnome-vfs-mime-info.c:
14712 * libgnomevfs/gnome-vfs-mime-info.h:
14713 (gnome_vfs_mime_commit_registered_types),
14714 (write_registered_mime_data):
14715 These functions now return a valid GNomeVFSResult.
14717 2000-07-13 Pavel Cisler <pavel@eazel.com>
14719 * libgnomevfs-pthread/gnome-vfs-job.c:
14720 * libgnomevfs/gnome-vfs-xfer.c: (remove_file), (remove_directory),
14721 (count_each_file_size_one), (gnome_vfs_xfer_empty_trash),
14722 (gnome_vfs_xfer_delete_items):
14723 First part of fix for Bugzilla bug 1549 - Empty Trash progress dialog
14724 doesn't work. Made it so that both preflight calculation and
14725 the erase loop both weight each erased file/directory as if it
14726 were a file copy of a file 1024 bytes large.
14728 2000-07-13 Ian McKellar <yakk@yakk.net.au>
14730 * libgnomevfs/gnome-vfs-seekable.c: (read_file), (init_seek),
14731 (gnome_vfs_seek_emulate), (do_seek):
14732 Various fixes related to tmpfile changes and also random bug fixes
14733 to make seekable emulation actually work.
14735 * modules/http-method.c: (do_open):
14736 Fix to http-method so it works with the gnome-vfs-seekable code.
14738 2000-07-12 Ian McKellar <yakk@yakk.net.au>
14740 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_to_string):
14741 Fixed a bug that added an extra '/'.
14743 2000-07-12 Robin * Slomkowski <rslomkow@eazel.com>
14745 * gnome-vfs.spec.in: changed *.so.* to *.so*
14747 2000-07-12 Ramiro Estrugo <ramiro@eazel.com>
14749 * modules/gconf-method.c: (vfs_module_init):
14750 Update for GConf api changes.
14752 2000-07-11 Robin Slomkowski <rslomkow@eazel.com>
14754 * gnome-vfs.spec.in: removed a '.'
14756 2000-07-11 Darin Adler <darin@eazel.com>
14759 * test/test-uri.c: (test_uri_to_string), (main):
14760 Added some more tests that demonstrate some more problems with the
14761 GnomeVFSURI functions. A lot of FIXMEs in here now about the
14764 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_to_string):
14765 Added a check for uri->text of NULL so that URIs like "http:"
14766 would not cause a core dump. But perhaps they should return NULL
14767 instead of creating a legal URI? Also fixed a little of the
14768 formatting to fit the gnome-vfs standard.
14770 2000-07-12 Ian McKellar <yakk@yakk.net.au>
14772 * data/mime/gnome-vfs.keys:
14773 Added `vfs-method' keys to a few mime types. This key indicates the
14774 name of a GNOME VFS method that can be used to decode a file of this
14777 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_to_string):
14778 Essentially rewrote gnome_vfs_uri_to_string. It was very broken
14779 (especially for chained URIs).
14781 * modules/bzip2-method.c: (do_open), (do_get_file_info):
14782 * modules/gzip-method.c: (do_open), (do_get_file_info):
14783 Fiddled with invalid URI detection.
14785 * modules/extfs-method.c: (strip_separators), (get_basename),
14786 (get_dirname), (do_open), (read_directory_list),
14787 (do_open_directory), (do_close_directory), (do_read_directory),
14788 (do_get_file_info):
14789 Made it work - basically changed the way a bunch of the functions
14792 * modules/extfs/Makefile.am:
14793 * modules/extfs/tar:
14794 Added a `tar' extfs module - it isn't a good long-term solution for
14795 tar file access, but it works for now.
14797 * test/Makefile.am:
14798 * test/test-uri.c: (stop_after_log), (make_asserts_break),
14799 (test_failed), (test_uri_to_string), (main):
14800 Added a test-uri program.
14802 2000-07-07 Michael Meeks <michael@helixcode.com>
14804 * modules/efs-method.c (do_create): remove serious locking bug.
14806 2000-07-10 Darin Adler <darin@eazel.com>
14808 Added async. set_file_info. Sadly, I didn't yet write a test
14809 for it and I haven't yet added it to the CORBA back end.
14811 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
14812 (pthread_gnome_vfs_async_set_file_info):
14813 * libgnomevfs-pthread/gnome-vfs-job.h:
14814 * libgnomevfs-pthread/gnome-vfs-job.c:
14815 (dispatch_set_file_info_callback), (dispatch_job_callback),
14816 (execute_get_file_info), (execute_set_file_info),
14817 (gnome_vfs_job_execute):
14818 Added set_file_info to the thread back end.
14820 * libgnomevfs/gnome-vfs-types.h:
14821 Made the standard callback that just returns a result code have
14822 the name GnomeVFSAsyncCallback since it can be used for any number
14825 * libgnomevfs/gnome-vfs-async-ops.h:
14826 Added async. set_file_info to the async. ops list.
14828 * libgnomevfs/gnome-vfs-backend.c:
14829 (report_failure_simple_callback), (report_failure_simple): Make
14830 the open-specific callback helper into something that can be
14831 shared by multiple calls.
14832 (gnome_vfs_async_open), (gnome_vfs_async_open_uri),
14833 (gnome_vfs_async_create), (gnome_vfs_async_create_uri),
14834 (gnome_vfs_async_create_symbolic_link): Use the callback helper by
14836 (gnome_vfs_async_set_file_info): Add async. set_file_info.
14838 * modules/newftp-method.c: [removed]
14839 * modules/newftp-method.h: [removed]
14841 2000-07-09 Ian McKellar <yakk@yakk.net.au>
14843 * libgnomevfs/gnome-vfs-private-types.h:
14844 Renamed GnomeVFSMethodCreateSymbolicLink to
14845 GnomeVFSMethodCreateSymbolicLinkFunc to match
14847 * modules/bzip2-method.c: (do_open), (do_read):
14850 (do_get_file_info):
14851 Implemented do_get_file_info - needed by Nautilus
14853 * modules/gzip-method.c: (do_open), (do_read):
14856 (do_get_file_info):
14857 Implemented do_get_file_info - needed by Nautilus
14859 * modules/http-method.c: (base64), (make_request):
14860 Implement minimal basic authorization support.
14862 (do_get_file_info), (do_close), (do_move):
14865 2000-07-07 Gene Z. Ragan <gzr@eazel.com>
14867 * libgnomevfs/gnome-vfs-mime-handlers.c:
14868 (gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension):
14869 Changed code to used renamed gnome_vfs_mime_extensions_list_free
14871 * libgnomevfs/gnome-vfs-mime-info.c:
14872 * libgnomevfs/gnome-vfs-mime-info.h:
14873 (gnome_vfs_mime_get_extensions_pretty_string):
14874 Return a list with period prepended, comma seperated items.
14876 (gnome_vfs_mime_extensions_list_free):
14877 Changed name form gnome_vfs_mime_extension_list_free
14879 * mime-type-capplet/nautilus-mime-type-capplet.c:
14880 (populate_extension_list), (init_mime_capplet),
14881 (nautilus_mime_type_capplet_update_info), (populate_mime_list),
14882 (create_mime_list_and_scroller):
14883 More exciting UI layout work and feature completion.
14885 2000-07-07 Seth Nickell <set EMAIL_ADDRESS environment variable>
14887 * libgnomevfs/gnome-vfs-xfer.c: (copy_directory), (copy_items):
14888 Add proper copy support for symlinks.
14890 * modules/file-method.c: (get_stat_info):
14891 Fix get_stat_info to return symbolic type correctly.
14893 * test/test-symlinks.c: (deal_with_result):
14896 2000-07-07 Robin * Slomkowski <rslomkow@eazel.com>
14898 * gnome-vfs.spec.in: moved *.so* out of devel section
14900 2000-07-06 Gene Z. Ragan <gzr@eazel.com>
14902 * mime-type-capplet/nautilus-mime-type-capplet.c: (column_clicked),
14903 (create_mime_list_and_scroller):
14904 Added sorting functionality to the column buttons. Enabled
14905 columns to respond to a click. Clicking a column header
14906 toggles between ascending and descending sort for that column.
14908 2000-07-06 Dan Winship <danw@helixcode.com>
14910 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c
14911 (gnome_vfs_mime_sniff_buffer_get): don't try to seek if the sniff
14912 buffer has no seek function (eg, because it's memory based).
14914 2000-07-05 Robin * Slomkowski <rslomkow@eazel.com>
14916 * mime-type-capplet/Makefile.am: fixed libgdk_pixbuf
14919 2000-07-05 Dan Winship <danw@helixcode.com>
14921 * modules/gconf-method.c: add #ifdef HAVE_ALLOCA_H
14923 2000-07-05 Jeffrey Stedfast <fejj@helixcode.com>
14925 * libgnomevfs/gnome-vfs-types.h: Changed
14926 '#include <gnome-vfs-file-size.h>' to
14927 '#include <libgnomevfs/gnome-vfs-file-size.h>'
14929 * libgnomevfs/Makefile.am: Added gnome-vfs-file-size.h to
14930 libgnomevfsinclude_HEADERS
14932 2000-07-06 Ian McKellar <yakk@yakk.net.au>
14934 * libgnomevfs/gnome-vfs-private-utils.c: (gnome_vfs_create_temp):
14935 * libgnomevfs/gnome-vfs-seekable.c: (init_seek):
14936 Changed to use safe temp file functions. (bugzilla.eazel.com: 1001)
14938 * modules/http-method.c: (http_status_to_vfs_result):
14939 Updated HTTP result -> GnomeVFSResult mapping.
14942 Fixed create method a bit.
14945 2000-07-05 Ian McKellar <yakk@yakk.net.au>
14947 * modules/extfs-method.c: (get_dirname), (do_open_directory),
14948 (match), (find_next):
14951 (do_get_file_info):
14952 Implement a useful get_file_info (based off the existing
14953 (open|read|close)_directory code.
14955 * modules/http-method.c: (my_strcmp), (do_move):
14956 Implement MOVE (using the HTTP/DAV MOVE method)
14958 * test/test-info.c: (print_file_info):
14959 Only print valid info fields.
14961 2000-07-04 Pavel Cisler <pavel@eazel.com>
14963 * libgnomevfs/gnome-vfs-xfer.c:
14964 (gnome_vfs_new_directory_with_unique_name):
14965 Make it possible for the unique name handling callback to detect
14966 a file system that supports only short names and supply an
14969 2000-07-04 Pavel Cisler <pavel@eazel.com>
14971 * libgnomevfs/gnome-vfs-types.h:
14972 * libgnomevfs/gnome-vfs-utils.h:
14973 * libgnomevfs/gnome-vfs-xfer.c: (copy_file_data), (copy_file),
14974 (gnome_vfs_xfer_delete_items_common),
14975 (gnome_vfs_xfer_delete_items), (gnome_vfs_xfer_uri_internal):
14976 Add support for removing source files during an inter-volume move.
14977 Split up deletion code into a common routine for reuse.
14978 Introduce a new progress phase to allow us to reset the progress
14979 state when done copying and when starting remove source files.
14982 2000-07-04 Gene Z. Ragan <gzr@eazel.com>
14983 More capplet work in progress. Modifying applet and code
14984 to support UI work done by Arlo.
14986 * libgnomevfs/gnome-vfs-mime-handlers.c:
14987 (gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension):
14988 API changes to support new layout.
14990 * libgnomevfs/gnome-vfs-mime-info.c:
14991 * libgnomevfs/gnome-vfs-mime-info.h:
14992 (gnome_vfs_mime_get_extensions_list),
14993 (gnome_vfs_mime_get_extensions_string):
14994 API changes to support new layout.
14996 * mime-type-capplet/Makefile.am:
14997 Added dependency to GdkPixbuf.
14999 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
15000 (show_edit_components_dialog), (add_new_application),
15001 (show_new_application_window), (show_edit_application_window):
15002 API changes to support new layout.
15004 * mime-type-capplet/nautilus-mime-type-capplet.c:
15005 * mime-type-capplet/nautilus-mime-type-capplet.h:
15006 (populate_extension_list), (extension_list_deselected),
15007 (application_button_toggled), (viewer_button_toggled),
15008 (icon_changed), (init_mime_capplet),
15009 (nautilus_mime_type_capplet_update_info),
15010 (populate_application_menu), (populate_viewer_menu),
15011 (edit_default_clicked),
15012 (nautilus_mime_type_capplet_update_application_info),
15013 (nautilus_mime_type_capplet_update_viewer_info),
15014 (insert_mime_vals_into_clist), (create_mime_list_and_scroller),
15015 (nautilus_mime_type_capplet_get_selected_item_mime_type),
15016 (make_path), (pixmap_file):
15017 API changes to support new layout.
15020 2000-07-03 Ettore Perazzoli <ettore@helixcode.com>
15022 * libgnomevfs-pthread/Makefile.am (INCLUDES): Add
15023 `-I$(top_builddir)/libgnomevfs' so that it works with builddir !=
15025 * libgnomevfs-corba/Makefile.am (INCLUDES): Likewise.
15026 * libgnomevfs/Makefile.am (INCLUDES): Likewise.
15027 * modules/Makefile.am (INCLUDES): Likewise.
15029 2000-07-03 Pavel Cisler <pavel@eazel.com>
15034 More tweaks for the release.
15036 2000-07-03 Eskil Heyn Olsen <eskil@eazel.com>
15038 * libgnomevfs/Makefile.am:
15039 * mime-type-capplet/Makefile.am:
15040 Making gnome-vfs rpm'able
15042 2000-07-03 Pavel Cisler <pavel@eazel.com>
15048 Update these for an upcomming release.
15050 * libgnomevfs/gnome-vfs-private-ops.c:
15051 (gnome_vfs_find_directory_cancellable):
15054 2000-07-03 Seth Nickell <seth@eazel.com>
15056 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
15057 (pthread_gnome_vfs_async_create_uri),
15058 (pthread_gnome_vfs_async_create_symbolic_link):
15059 * libgnomevfs-pthread/gnome-vfs-job.c: (dispatch_job_callback),
15060 (execute_create), (execute_create_symbolic_link),
15061 (gnome_vfs_job_execute):
15062 * libgnomevfs-pthread/gnome-vfs-job.h:
15063 * libgnomevfs/gnome-vfs-async-ops.h:
15064 * libgnomevfs/gnome-vfs-backend.c:
15065 (gnome_vfs_async_create_symbolic_link):
15066 * libgnomevfs/gnome-vfs-file-info.h:
15067 Added asynchronous calls for the creation of symbolic links.
15069 * libgnomevfs/gnome-vfs-types.h:
15070 Rename GNOME_VFS_FILE_TYPE_BROKEN_SYMLINK to GNOME_VFS_FILE_TYPE_SYMBOLIC_LINK, remove
15071 GNOME_VFS_FILE_FLAGS_SYMLINK.
15073 * test/gnome-file-selection/gnome-file-selection.c:
15074 (populate_callback):
15075 * test/test-async-directory.c: (type_to_string), (print_list):
15076 * test/test-directory-visit.c: (type_to_string),
15077 (directory_visit_callback):
15078 * test/test-directory.c: (type_to_string), (print_list):
15079 * test/test-info.c: (type_to_string):
15080 * test/test-shell.c: (do_ls), (do_info):
15081 Update pieces of GnomeVFS to reflect the aforementioned change, and check behaviors
15082 to reduce breakage regarding the change from a symbolic link as a flag to a type.
15084 * modules/file-method.c: (get_mime_type), (get_stat_info):
15085 Add handling for GNOME_VFS_INFO_FOLLOW_LINKS.
15087 * test/test-symlinks.c: (deal_with_result), (create_link_callback),
15088 (make_link), (make_link_async), (check_broken_links), (main):
15089 Add tests for link following, broken symbolic link checking, and async. link
15090 creation checking to the symbolic link checking program.
15092 2000-06-27 Michael Meeks <michael@helixcode.com>
15094 * modules/efs-method.c (gnome_vfs_file_system_*): Create in-file
15096 Totaly re-write internals to use the new in-file filing system code.
15098 * test/test.cmds: Expand regression tests to do new things.
15100 2000-07-03 Ian McKellar <yakk@yakk.net.au>
15102 * libgnomevfs/gnome-vfs-xfer.c: (call_progress_often),
15103 (copy_file_data), (copy_file):
15104 Fixes to supply a default IO block size of 4096 for xfers when none
15105 is supplied by the module.
15107 * modules/extfs-method.c:
15110 * modules/ftp-method.c: (ls_to_file_info),
15111 (internal_get_file_info):
15112 Fix get_file_info response to not contain a default IO block size.
15114 * test/test-xfer.c: (xfer_progress_callback):
15115 Update test-xfer to understand a couple more xfer phases.
15117 2000-07-02 Ian McKellar <yakk@yakk.net.au>
15119 * libgnomevfs/gnome-vfs-uri.h:
15120 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_get_path):
15121 Added gnome_vfs_uri_get_path function.
15123 (gnome_vfs_uri_get_basename):
15124 Added FIXME bug id 1472.
15126 * modules/ftp-method.h:
15127 * modules/ftp-method.c: (FTP_DEBUG), (read_response_line),
15128 (do_path_command), (do_path_command_completely),
15129 (do_path_transfer_command), (ftp_connection_create),
15130 (ftp_connection_destroy), (my_str_hash), (my_str_equal),
15131 (ftp_connection_uri_hash), (ftp_connection_uri_equal),
15132 (ftp_connection_aquire), (ftp_connection_release), (do_open),
15133 (do_read), (do_write), (internal_get_file_info),
15134 (do_get_file_info), (do_open_directory), (do_check_same_fs),
15135 (do_make_directory), (do_remove_directory), (do_move), (do_unlink):
15136 Rewrote the FTP method to use GnomeVFSURIs internally rather than
15137 FtpUris. Also defined the semantics and memory management of URIs
15138 more clearly (closing bug 1465). Some general sanitisation.
15140 * modules/http-method.c: (set_content_type):
15143 (do_close), (do_read), (do_open_directory), (do_read_directory),
15144 (do_get_file_info), (do_make_directory), (do_remove_directory),
15146 Add convenience routines to make adding methods easier.
15147 Implement mkdir, rmdir, rm (much of bugs 1480, 1485).
15149 (process_propfind_propstat), (process_propfind_response),
15150 (make_propfind_request),
15151 Fixed URI handling a bit (decode returned filenames, strip trailing
15154 2000-06-29 Pavel Cisler <pavel@eazel.com>
15156 Fix a bunch of leaks.
15158 * libgnomevfs-pthread/gnome-vfs-job.c:
15159 (execute_load_directory_not_sorted):
15160 Unref allocated GnomeVFSFileInfo when read fails properly.
15161 Delete the list of file info structs when we are done with them properly.
15163 * libgnomevfs/gnome-vfs-directory-filter.c:
15164 (gnome_vfs_directory_filter_destroy):
15165 Free filter object properly.
15167 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
15168 (gnome_vfs_mime_sniff_buffer_new_generic):
15169 Set up buffer ownership for generic sniffers properly so the buffer
15170 gets freed when it should.
15172 2000-06-27 Pavel Cisler <pavel@eazel.com>
15174 * data/mime/gnome-vfs-mime-magic:
15175 * data/mime/gnome-vfs.keys:
15176 Fix magic rules and mime type for image/x-xpixmap
15178 2000-06-27 Michael Meeks <michael@helixcode.com>
15180 * modules/efs-method.c: Kill redundant fields.
15181 (directory_handle_new): kill; redundant.
15182 (do_open_directory): implement handle creation.
15183 (directory_handle_destroy): remove redundant free.
15184 (GET_PATH_MAX): remove; unneeded & ugly.
15185 remove old redundant macros.
15186 remove redundant includes.
15188 2000-06-27 Michael Meeks <michael@helixcode.com>
15190 * mime-type-capplet/Makefile.am (INCLUDES): add libgnomevfs
15192 2000-06-27 Michael Meeks <michael@helixcode.com>
15194 * vfsConf.sh.in: touch to force script re-build.
15196 * test/gnome-file-selection/Makefile.am (INCLUDES): add
15197 -I$(top_srcdir)/libgnomevfs
15199 * libgnomevfs/Makefile.am (libgnomevfsplatofrmincludedir): make path
15200 slightly less gratuitous.
15202 * libgnomevfs/gnome-vfs-types.h: rename include to gnome-vfs-file-size.h
15204 2000-06-26 Pavel Cisler <pavel@eazel.com>
15206 * libgnomevfs/gnome-vfs-mime-magic.c: (gnome_vfs_mime_magic_parse):
15207 Fix patterns with mask to apply the mask on the patterns -- this makes
15208 it allows the masked out bits to be anything.
15210 * test/test-mime.c: (main):
15211 Remove a bogus setting of the suffix_only flag.
15213 * data/mime/gnome-vfs-mime-magic:
15214 Fixed the mime type for compress files.
15215 Remove ambiguous magic rule for application/x-font-tex-tfm that was
15216 misfiring on .Xauthority files.
15217 Change photoshop rules to use the rule with a mask.
15219 * data/mime/gnome-vfs.keys:
15220 Change application/x-patch to text/x-patch
15222 Mon Jun 26 16:04:48 2000 George Lebl <jirka@5z.com>
15224 * configure.in: Test the sizes of int, long, and long long to figure
15225 out if we have a 64bit type. Then set up some variables and build
15226 libgnomevfs/gnome-vfs-file-size.h with this information and a bunch
15227 of defines about the types used. Also since this header will be
15228 installed into <prefix>/lib/vfs/include/libgnomevfs, the
15229 VFS*_INCLUDEDIR's now add this directory
15231 * libgnomevfs/Makefile.am: install gnome-vfs-file-size.h to
15232 $(libdir)/vfs/include/libgnomevfs
15234 * gnome-vfs-constants.h: Remove the GNOME_VFS_*_FORMAT_STR macros as
15235 they are replaced by ones in gnome-vfs-file-size.h
15237 * gnome-vfs-types.h: include gnome-vfs-file-size.h and remove the
15238 GnomeVFSFileSize and GnomeVFSFileOffset typedefs
15240 * gnome-vfs-file-size.h.in: Skeleton file created by configure to
15241 typedef GnomeVFSFileSize and GnomeVFSFileOffset,
15242 GNOME_VFS_*_FORMAT_STR macros and GNOME_VFS_*_IS_<type> macros
15244 2000-06-26 Michael Meeks <michael@helixcode.com>
15246 * doc/uri.txt: update.
15248 * test/Makefile.am: Add automatic regression testing.
15250 * test/test.input: Plaintext to test vs.
15252 * test/test.output: Standard good output
15254 * test/test.cmds: test-shell commands to execute.
15256 * test/test-shell.c (close_file, kill_file_cb, register_file),
15257 (close_files): mange named file handles.
15258 (get_handle, do_create, do_open, get_int, do_read, do_close): implement.
15259 (do_seek): implement. (main): allow comments in the input stream,
15260 s/stderr/vfserr/ (main): Setup vfserr to be stdout for regression tests.
15262 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): kill redundant
15263 check on ref_count.
15265 2000-06-26 Pavel Cisler <pavel@eazel.com>
15267 * data/mime/gnome-vfs-mime-magic:
15268 Added a sniff rule for svg files.
15269 Got rid of questionable sgml sniff rules.
15271 2000-06-26 Michael Meeks <michael@helixcode.com>
15273 * modules/efs-method.c (do_make_directory): add error handling
15274 on efs close. (do_make_directory): commit.
15275 (do_close): re-write, adding commit.
15276 (do_unlink): add commit.
15278 * Makefile.am (SUBDIRS): move SUBDIRS_OAF up the build so
15279 it is made in time for the tests.
15281 * test/test-shell.c (list_commands): expand help.
15282 (syntax_error): kill. (main): update argument handling.
15284 2000-06-26 Pavel Cisler <pavel@eazel.com>
15287 Fix broken build - recent changes to Makefile.am put libraries
15290 2000-06-25 Pavel Cisler <pavel@eazel.com>
15293 Turn -Werror back on.
15295 * libgnomevfs/gnome-vfs-mime-handlers.c: (join_str_list),
15297 Fix code that breaks if USING_OAF is undefined.
15299 2000-06-25 Morten Welinder <terra@diku.dk>
15301 * test/test-mime-handlers.c: conditionalise on USING_OAF and
15302 HAVE_GCONF as needed.
15304 * libgnomevfs/gnome-vfs-mime-handlers.c: conditionalise on
15305 USING_OAF and HAVE_GCONF as needed.
15306 (gnome_vfs_mime_action_free): Add a few "break;"s to this piece of
15309 * test/Makefile.am (noinst_PROGRAMS): Only make oaf-depedent tests
15312 * test/gnome-file-selection/Makefile.am (noinst_PROGRAMS): Ditto.
15314 * modules/default-modules.conf (ftp): Remove Yakk's newftp hack.
15316 * acconfig.h (HAVE_GCONF): Add.
15318 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): Only initialise
15321 * configure.in (set_more_warnings): Don't add -Wsign-promo and
15322 -Wno-sign-compare unless the compiler understands them. Don't add
15325 * test/test-async-cancel.c (my_yield): renamed from yield to avoid
15328 * libgnomevfs/gnome-vfs-mime.c (add_to_key): Fix arguments to
15330 (mime_fill_from_file): Ditto.
15332 * libgnomevfs/gnome-vfs-mime-magic.c (read_string_val): Ditto.
15333 (read_num_val): Ditto.
15334 (eat_white_space): Ditto.
15335 (gnome_vfs_mime_magic_parse): Ditto.
15337 * modules/translate-method.c (my_poptParseArgvString): Ditto.
15339 * modules/ftp-method.c (get_response): Ditto.
15340 (do_read_directory): Ditto.
15342 * modules/http-method.c (parse_status): Ditto.
15343 (header_value_to_number): Ditto.
15345 * libgnomevfs/fnmatch.c (FOLD): Ditto.
15347 * libgnomevfs/gnome-vfs-uri.c (get_method_string): Ditto.
15349 * libgnomevfs/gnome-vfs-private-utils.c (check_end): Ditto.
15351 2000-06-26 Ian McKellar <yakk@yakk.net.au>
15353 * modules/ftp-method.c: (ftp_response_to_vfs_result),
15354 (do_control_write), (do_basic_command), (do_transfer_command),
15355 (ftp_connection_create), (ftp_connection_release), (do_open),
15356 (internal_get_file_info), (do_read_directory):
15357 Added FIXMEs to bugzilla, removed some fixed FIXMEs and fixed some
15358 of the things mentioned in some of the FIXMEs.
15360 2000-06-24 Morten Welinder <terra@diku.dk>
15362 * libgnomevfs/gnome-vfs-parse-ls.c (vfs_parse_filedate): Actually
15363 get the time, don't use an undefined one.
15365 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): Avoid double
15366 free of method string.
15368 * modules/http-method.c (make_request): Feee uri_string in all
15371 2000-06-24 Michael Meeks <michael@helixcode.com>
15373 * modules/efs-method.c (do_make_directory): create if not found.
15375 * test/test-shell.c (do_mv, do_rmdir, do_mkdir, do_rm): implement.
15376 (main): use g_get_current_dir.
15378 2000-06-24 Michael Meeks <michael@helixcode.com>
15380 * modules/efs-method.c (open_efs_file): split.
15381 (do_open, do_create): update. (do_unlink): implement.
15382 (do_open_directory,do_get_file_info, do_make_directory): update.
15383 Elimiate all uses of MAKE_ABSOLUTE, it leaks badly.
15384 (directory_handle_new): clean for no MAKE_ABSOLUTE.
15385 (do_open_directory): add param checks on uri.
15387 2000-06-24 Michael Meeks <michael@helixcode.com>
15389 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): re-order to make
15390 (parse_uri_substring): Add parent arg, since set_uri_element will
15391 trample on memory unless uri->parent != NULL before call. update.
15392 (gnome_vfs_uri_new): update.
15394 * modules/efs-method.c (MAKE_ABSOLUTE): add catch for non-existant
15395 parents. (do_tell): implement. (do_open_directory): open only for read
15396 and use (transfer_dir_to_info): split (do_get_file_info): implement.
15397 (do_get_file_info_from_handle): remove, should be a fallback in the vfs
15400 * configure.in: enable libefs by default.
15402 * doc/uri.txt: revert a daftness.
15404 2000-06-24 Pavel <pavel@eazel.com>
15406 * modules/file-method.c: (file_handle_new), (do_close),
15407 (directory_handle_new), (get_mime_type),
15408 (do_get_file_info),
15409 (do_get_file_info_from_handle), (do_make_directory),
15410 (do_remove_directory), (rename_helper), (do_move), (do_unlink),
15411 (do_set_file_info):
15412 Fixed 1312 - Need to plug in sniff buffer mime magic API into methods.
15413 Fixed 1183 - Made the get_mime_type call correctly handle symlinks.
15414 Fixed 1184 - removed an extra stat call.
15415 Bunch of renamings and cleanup.
15417 * libgnomevfs/gnome-vfs-mime-magic.c:
15418 (gnome_vfs_sniff_buffer_looks_like_text):
15419 Fixed a bug where only text files larger than 256 would get recognized properly.
15420 Get rid of gnome_vfs_mime_magic_matches_p.
15421 Get rid of gnome_vfs_mime_type_from_magic.
15423 * libgnomevfs/gnome-vfs-mime-magic.h:
15424 Get rid of obsolete comment.
15426 * libgnomevfs/gnome-vfs-mime.c:
15427 * libgnomevfs/gnome-vfs-mime.h:
15428 (gnome_vfs_mime_type_from_name_or_default),
15429 (gnome_vfs_mime_type_from_name),
15430 (gnome_vfs_get_mime_type_from_uri_internal),
15431 (gnome_vfs_get_mime_type), (file_seek_binder), (file_read_binder),
15432 (gnome_vfs_get_file_mime_type), (gnome_vfs_get_mime_type_from_uri),
15433 (gnome_vfs_get_mime_type_for_data):
15434 New call gnome_vfs_get_file_mime_type used to detect mime types by the
15436 Renamed a number of routines.
15438 * libgnomevfs/gnome-vfs-types.h:
15439 * libgnomevfs/gnome-vfs-xfer.c: (count_items_and_size),
15440 * modules/extfs-method.c: (read_directory_list):
15441 (directory_add_items_and_size):
15442 * modules/file-method.c: (get_stat_info), (read_directory):
15443 * modules/gconf-method.c: (set_mime_type_value), (file_info_value),
15445 Renamed some of GnomeVFSFileInfoOptions.
15446 Added new GNOME_VFS_FILE_INFO_FORCE_SLOW_MIME_TYPE option.
15447 Renamed GNOME_VFS_XFER_FOLLOWLINKS to GNOME_VFS_XFER_FOLLOW_LINKS.
15449 * modules/ftp-method.c: (get_response), (do_transfer_command),
15450 (ls_to_file_info), (internal_get_file_info), (do_get_file_info):
15451 Fixed some leaks, got rid of checks for NULL before g_free,
15452 switched to use new gnome_vfs_mime_type_from_name_or_default,
15455 * modules/gconf-method.c: (set_mime_type_value):
15456 Fixed bad mime type.
15458 * test/gnome-file-selection/gicon.c: (gicon_get_icon_for_file_2):
15459 * test/gnome-file-selection/gnome-file-selection.c:
15460 (start_populating):
15461 * test/test-async-cancel.c: (test_load_directory_cancel):
15462 * test/test-async-directory.c: (main):
15463 * test/test-directory-visit.c: (main):
15464 * test/test-directory.c: (main):
15465 * test/test-info.c: (main):
15466 * test/test-mime.c: (main):
15467 Changed to match new renamings.
15469 * data/mime/gnome-vfs.keys:
15470 Added description for application/x-executable-file.
15472 2000-06-24 Fatih Demir <kabalak@gmx.net>
15474 * mime-type-capplet: Removed this install-data-local target and
15475 made another normal rule to install the .desktop file
15476 also to the "Settings" menu-tree.
15478 [ PS: Some `install' variants don't support the -D flag, so you'd
15479 avoid whereever it's possible. ]
15481 2000-06-23 Darin Adler <darin@eazel.com>
15483 * libgnomevfs/gnome-vfs-mime-handlers.c:
15484 (gnome_vfs_mime_edit_user_file_full): Added code to handle NULL
15485 for value and write out an empty string. The old code wrote out
15486 "(NULL)" because of the help of glibc, but then I had added checks
15487 for NULL. Now we handle it intentionally.
15488 (gnome_vfs_mime_edit_user_file_args): Got rid of check for NULL
15489 that made it illegal. Fixed a bug that would trash memory where I
15490 was doing the wrong list.
15491 (gnome_vfs_mime_edit_user_file): Make NULL legal here too.
15493 2000-06-23 Michael Meeks <michael@helixcode.com>
15495 * test/test-shell.c (do_info): implement.
15498 2000-06-23 Michael Meeks <michael@helixcode.com>
15500 * test/test-shell.c (get_fname): updates.
15502 * modules/efs-method.c (do_read_directory): implement.
15503 (directory_handle_new): setup new->efs.
15504 Begin to loathe efs.
15506 * doc/uri.txt: update.
15508 * test/Makefile.am (libraries): add LIBEFS_LIBS
15510 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): fix from
15511 Rajit, this still looks rather limited to me.
15513 * configure.in: Add efs check.
15515 * modules/default-modules.conf (efs): add.
15517 2000-06-22 Michael Meeks <michael@helixcode.com>
15519 * configure.in: add --enable-libefs.
15521 2000-06-22 Gene Z. Ragan <gzr@eazel.com>
15523 Fixed bug #581. UI for specifying whether applicaition
15524 can open multiple files at once.
15526 * libgnomevfs/gnome-vfs-mime-handlers.c:
15527 * libgnomevfs/gnome-vfs-mime-handlers.h:
15528 (gnome_vfs_mime_define_application):
15529 Added const char * argument for mime type. Removed placeholder
15532 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
15533 (populate_default_applications_list),
15534 (populate_default_components_box),
15535 (initialize_edit_applications_dialog), (add_new_application),
15536 (show_new_application_window), (show_edit_application_window):
15537 Modified edit applicaiton list dialog to use a GtkList with
15538 embedded check buttons and labels. This allows single list items
15539 to be selected so that individual items can be edited or deleted.
15541 * test/test-mime-handlers-set.c: (main):
15542 Fixed call to gnome_vfs_mime_define_application to use
15545 2000-06-22 Darin Adler <darin@eazel.com>
15547 * libgnomevfs/gnome-vfs-mime-handlers.h:
15548 * libgnomevfs/gnome-vfs-mime-handlers.c:
15549 (gnome_vfs_mime_edit_user_file_full),
15550 (gnome_vfs_mime_edit_user_file_args),
15551 (gnome_vfs_mime_edit_user_file_multiple),
15552 (gnome_vfs_mime_edit_user_file),
15553 (gnome_vfs_mime_set_default_action_type),
15554 (gnome_vfs_mime_set_default_application),
15555 (gnome_vfs_mime_set_default_component),
15556 (gnome_vfs_mime_set_short_list_applications),
15557 (gnome_vfs_mime_set_short_list_components),
15558 (gnome_vfs_mime_id_in_application_list),
15559 (gnome_vfs_mime_id_in_component_list),
15560 (gnome_vfs_mime_add_application_to_short_list),
15561 (gnome_vfs_mime_remove_application_from_list),
15562 (gnome_vfs_mime_remove_application_from_short_list),
15563 (gnome_vfs_mime_add_component_to_short_list),
15564 (gnome_vfs_mime_remove_component_from_list),
15565 (gnome_vfs_mime_remove_component_from_short_list),
15566 (gnome_vfs_mime_add_extension), (gnome_vfs_mime_remove_extension),
15567 (gnome_vfs_mime_extend_all_applications),
15568 (gnome_vfs_mime_remove_from_all_applications),
15569 (gnome_vfs_mime_define_application):
15570 Added some rudimentary error handling.
15573 Some new files are generated but not yet ignored.
15575 2000-06-22 Gene Z. Ragan <gzr@eazel.com>
15577 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
15578 (show_new_application_window), (show_edit_application_window):
15579 Clean up work on layout of capplet dialogs.
15581 2000-06-22 John Sullivan <sullivan@eazel.com>
15583 Moved SUID, SGID, and Sticky bits from flags
15584 field to permissions field because (1) it's
15585 conventional to treat them as permission bits,
15586 especially for display purposes, and (2) there was
15587 no way to set them before.
15589 * libgnomevfs/gnome-vfs-types.h: Added new
15590 GNOME_VFS_PERM_xxx constants for these three bits;
15591 removed old GNOME_VFS_FILE_FLAGS_xxx constants.
15592 * libgnomevfs/gnome-vfs-file-info.h:
15593 updated GNOME_VFS_FILE_INFO_xxx macros for these
15594 three bits to look in permissions field instead of
15596 * libgnomevfs/gnome-vfs-module-shared.c:
15597 (gnome_vfs_stat_to_file_info): Put these bits in
15598 permissions field instead of flags field when
15599 converting from stat result.
15601 Added a few more MIME type descriptions.
15603 * data/mime/gnome-vfs.keys: Added descriptions
15604 for x-special/device-char and friends.
15606 2000-06-22 Rajit Singh <endah@dircon.co.uk>
15608 * modules/efs-method.[ch]: Create.
15610 2000-06-22 Michael Meeks <michael@helixcode.com>
15612 * test/test-shell.c (get_fname): use regexps.
15613 (ms_ole_dump, do_dump): implement.
15615 2000-06-22 Michael Meeks <michael@helixcode.com>
15617 * test/Makefile.am: Add test-shell setup
15619 * test/test-shell.c: Small lightweight gnome-vfs shell for testing.
15621 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15623 Fixed bug #1434, Fix alignment of widgets in main capplet view.
15625 * mime-type-capplet/nautilus-mime-type-capplet.c:
15626 (init_mime_capplet):
15627 Replaced use of multiple pack boxes with a table. Things
15628 look much better now.
15630 2000-06-21 Seth Nickell <seth@eazel.com>
15632 Added more complete symlink support to gnome-vfs.
15634 * libgnomevfs/gnome-vfs-ops.c: (gnome_vfs_create_symbolic_link):
15635 * libgnomevfs/gnome-vfs-ops.h:
15636 * libgnomevfs/gnome-vfs-private-ops.c:
15637 (gnome_vfs_create_symbolic_link_cancellable),
15638 * libgnomevfs/gnome-vfs-private-ops.h:
15639 * libgnomevfs/gnome-vfs-private-types.h:
15640 Added the generic gnome-vfs functions and declarations for
15641 gnome_vfs_create_symbolic_link and children that end up calling
15642 method specific functions.
15644 (gnome_vfs_remove_directory_from_uri_cancellable),
15645 (gnome_vfs_unlink_from_uri_cancellable),
15646 (check_same_fs_in_uri):
15647 Cleaned up formatting in some of the functions.
15649 * modules/file-method.c: (do_create_symbolic_link):
15650 Implemented symlinking for the file-method, with a place-holder
15651 for possible (eventual, post 1.0?) addition of URI links.
15653 * modules/bzip2-method.c:
15654 * modules/extfs-method.c:
15655 * modules/ftp-method.c:
15656 * modules/gzip-method.c:
15657 * modules/pipe-method.c:
15658 * modules/translate-method.c:
15659 Added NULL placeholders for other methods that do not implement
15660 create_symbolic_link.
15662 * test/Makefile.am:
15663 * test/test-symlinks.c: (make_link), (main):
15664 Wrote test code for the new gnome-vfs symlink support. Verifies
15665 by writing data to the new links and checking the target uri.
15667 * libgnomevfs/gnome-vfs-uri.h:
15668 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_get_scheme):
15669 Fixed bug 821 by providing a method for querying a URI's
15670 scheme. (as featured in the addition of symlink support)
15672 2000-06-21 Seth Nickell <seth@eazel.com>
15674 * modules/http-method.c: (http_file_handle_new),
15675 (http_file_handle_destroy), (http_handle_close), (do_close):
15676 Pavel here. Fixed a number of memory thrashers in http_handle_close.
15677 Fixed some white space.
15679 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15681 Final stage in renaming.
15683 * modules/ftp-method.c:
15684 * modules/ftp-method.h:
15685 Changed internal references form new-ftp-method to new-ftp-method.
15687 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15689 Added renamed new-ftp module files as ftp modules.
15691 * modules/ftp-method.c: (FTP_DEBUG), (ftp_response_to_vfs_result),
15692 * modules/ftp-method.h:
15693 (read_response_line), (get_response), (do_control_write),
15694 (do_basic_command), (do_transfer_command), (end_transfer),
15695 (ftp_connection_create), (ftp_connection_uri_hash),
15696 (ftp_connection_uri_equal), (ftp_connection_uri_to_string),
15697 (ftp_uri_to_string), (ftp_connection_aquire),
15698 (ftp_connection_release), (ftp_uri_create), (do_is_local),
15699 (do_open), (do_close), (do_read), (do_write), (ls_to_file_info),
15700 (internal_get_file_info), (do_get_file_info),
15701 (do_get_file_info_from_handle), (do_open_directory),
15702 (do_close_directory), (do_read_directory), (do_check_same_fs),
15703 (do_make_directory), (do_remove_directory), (do_move), (do_unlink),
15704 (vfs_module_init), (vfs_module_shutdown):
15707 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15709 Part of renaming and replacing of old
15710 ftp module with new ftp module.
15712 * modules/Makefile.am:
15713 * modules/ftp-method.c:
15714 * modules/ftp-method.h:
15715 Removed references to new-ftp.
15717 2000-06-21 Rebecka Schulman <rebecka@eazel.com>
15719 * test/test-async-directory.c: (type_to_string):
15720 Fixed constant errors that were uncaught in previous
15723 2000-06-21 Darin Adler <darin@eazel.com>
15725 Improved the API of the utils (bug 1210).
15727 * libgnomevfs/gnome-vfs-utils.h:
15728 * libgnomevfs/gnome-vfs-utils.c:
15729 (gnome_vfs_format_file_size_for_display): Changed name from
15730 gnome_vfs_file_size_as_string.
15731 (gnome_vfs_escape_string_internal), (gnome_vfs_escape_string),
15732 (gnome_vfs_escape_path_string): Replaced the old parameterized
15733 escape_string function with 2 parameter-free versions for paths
15734 and for other strings respectively.
15735 (gnome_vfs_unescape_string_for_display): Added string to the name
15736 to make it more like the other names.
15738 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_append_file_name),
15739 (gnome_vfs_uri_extract_short_name):
15740 * modules/http-method.c: (create_handle), (do_read):
15741 * test/test-async-cancel.c: (test_load_directory_cancel):
15742 * test/test-escape.c: (test_escape), (test_escape_path),
15743 (test_unescape_display), (main):
15744 Updated callers to use calls by their new names.
15746 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15750 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
15751 (initialize_edit_applications_dialog),
15752 (show_new_application_window), (show_edit_application_window):
15753 New dialog and items to indicate and allow user to
15754 set application behavior concerning multiple launch and
15757 * mime-type-capplet/nautilus-mime-type-capplet.c:
15758 (init_mime_capplet):
15759 Removed old UI code and migrated to dialog.
15761 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15763 Follow up to bug #1162.
15765 GnomeVFSFilePermissions had some items to be renamed as well.
15767 * libgnomevfs/gnome-vfs-module-shared.c:
15768 (gnome_vfs_get_special_mime_type), (gnome_vfs_stat_to_file_info):
15769 * libgnomevfs/gnome-vfs-types.h:
15770 * modules/file-method.c: (set_mime_type), (get_stat_info):
15771 * modules/ftp-method.c: (_ftpfs_read_directory), (fill_file_info):
15772 * test/test-directory-visit.c: (type_to_string):
15773 * test/test-directory.c: (type_to_string):
15774 * test/test-info.c: (type_to_string):
15776 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15780 Changed naming of gnome-vfs errors to seperate words with
15781 underscore and replace abbreviations with full words.
15783 * libgnomevfs-corba/gnome-vfs-async-ops.c:
15784 (corba_gnome_vfs_async_open),
15785 (corba_gnome_vfs_async_open_as_channel),
15786 (corba_gnome_vfs_async_create),
15787 (corba_gnome_vfs_async_create_as_channel),
15788 (corba_gnome_vfs_async_close), (corba_gnome_vfs_async_read),
15789 (corba_gnome_vfs_async_write),
15790 (corba_gnome_vfs_async_get_file_info),
15791 (corba_gnome_vfs_async_load_directory),
15792 (corba_gnome_vfs_async_xfer), (corba_gnome_vfs_async_cancel):
15793 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
15794 (pthread_gnome_vfs_async_cancel),
15795 (pthread_gnome_vfs_async_open_uri), (pthread_gnome_vfs_async_open),
15796 (pthread_gnome_vfs_async_open_uri_as_channel),
15797 (pthread_gnome_vfs_async_open_as_channel),
15798 (pthread_gnome_vfs_async_create_uri),
15799 (pthread_gnome_vfs_async_create),
15800 (pthread_gnome_vfs_async_create_as_channel),
15801 (pthread_gnome_vfs_async_close), (pthread_gnome_vfs_async_read),
15802 (pthread_gnome_vfs_async_write),
15803 (pthread_gnome_vfs_async_get_file_info),
15804 (pthread_gnome_vfs_async_load_directory),
15805 (pthread_gnome_vfs_async_load_directory_uri),
15806 (pthread_gnome_vfs_async_xfer):
15807 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_cancel):
15808 * libgnomevfs/gnome-vfs-directory.c: (open),
15809 (gnome_vfs_directory_open), (gnome_vfs_directory_open_from_uri),
15810 (directory_visit_internal), (gnome_vfs_directory_visit_uri),
15811 (gnome_vfs_directory_visit),
15812 (gnome_vfs_directory_visit_files_at_uri):
15813 * libgnomevfs/gnome-vfs-handle.c:
15814 * libgnomevfs/gnome-vfs-inet-connection.c:
15815 (gnome_vfs_inet_connection_create):
15816 * libgnomevfs/gnome-vfs-iobuf.c: (gnome_vfs_iobuf_read),
15817 (gnome_vfs_iobuf_peekc), (gnome_vfs_iobuf_write),
15818 (gnome_vfs_iobuf_flush):
15819 * libgnomevfs/gnome-vfs-method.h:
15820 * libgnomevfs/gnome-vfs-ops.c: (gnome_vfs_open),
15821 (gnome_vfs_create), (gnome_vfs_tell), (gnome_vfs_get_file_info),
15822 (gnome_vfs_truncate), (gnome_vfs_make_directory),
15823 (gnome_vfs_remove_directory), (gnome_vfs_unlink), (gnome_vfs_move),
15824 (gnome_vfs_check_same_fs), (gnome_vfs_set_file_info):
15825 * libgnomevfs/gnome-vfs-private-ops.c:
15826 (gnome_vfs_open_uri_cancellable),
15827 (gnome_vfs_create_uri_cancellable), (gnome_vfs_close_cancellable),
15828 (gnome_vfs_read_cancellable), (gnome_vfs_write_cancellable),
15829 (gnome_vfs_seek_cancellable),
15830 (gnome_vfs_get_file_info_uri_cancellable),
15831 (gnome_vfs_get_file_info_from_handle_cancellable),
15832 (gnome_vfs_truncate_uri_cancellable),
15833 (gnome_vfs_truncate_handle_cancellable),
15834 (gnome_vfs_make_directory_for_uri_cancellable),
15835 (gnome_vfs_find_directory_cancellable),
15836 (gnome_vfs_remove_directory_from_uri_cancellable),
15837 (gnome_vfs_unlink_from_uri_cancellable),
15838 (gnome_vfs_move_uri_cancellable),
15839 (gnome_vfs_check_same_fs_uris_cancellable),
15840 (gnome_vfs_set_file_info_cancellable):
15841 * libgnomevfs/gnome-vfs-private-utils.c: (gnome_vfs_create_temp):
15842 * libgnomevfs/gnome-vfs-result.c: (gnome_vfs_result_from_errno),
15843 (gnome_vfs_result_from_h_errno):
15844 * libgnomevfs/gnome-vfs-seekable.c: (read_file), (write_file),
15845 (init_seek), (do_open), (do_create), (do_truncate_handle):
15846 * libgnomevfs/gnome-vfs-types.h:
15847 * libgnomevfs/gnome-vfs-xfer.c: (handle_overwrite),
15848 (create_directory), (xfer_create_target), (copy_items),
15849 (move_items), (gnome_vfs_new_directory_with_unique_name),
15850 (gnome_vfs_xfer_uri), (gnome_vfs_xfer_private):
15851 * modules/bzip2-method.c: (result_from_bz_result), (do_open),
15853 * modules/extfs-method.c: (do_open), (do_create), (do_write),
15854 (do_truncate_handle), (do_truncate), (do_open_directory),
15855 (do_get_file_info), (do_get_file_info_from_handle),
15856 (do_make_directory), (do_find_directory), (do_remove_directory),
15857 (do_move), (do_unlink), (do_check_same_fs):
15858 * modules/file-method.c: (do_open), (do_create), (do_seek),
15859 (do_tell), (do_truncate_handle), (do_truncate),
15860 (do_open_directory), (do_get_file_info),
15861 (do_get_file_info_from_handle), (do_make_directory),
15862 (do_remove_directory), (do_find_directory), (rename_helper),
15863 (do_move), (do_unlink), (do_set_file_info):
15864 * modules/ftp-method.c: (ftpfs_open_socket),
15865 (ftpfs_connection_connect), (login_server), (linear_start),
15866 (send_ftp_command), (retrieve_file), (get_file_entry),
15867 (ftpfs_open), (ftpfs_create), (ftpfs_open_directory),
15868 (ftpfs_get_file_info):
15869 * modules/gconf-method.c: (do_open), (do_create), (do_close),
15870 (do_read), (do_write), (do_get_file_info_from_handle):
15871 * modules/gzip-method.c: (result_from_z_result), (skip_string),
15872 (skip), (read_guint32), (read_gzip_header), (do_open), (do_create):
15873 * modules/http-method.c: (http_status_to_vfs_result),
15874 (create_handle), (do_open), (make_propfind_request):
15875 * modules/newftp-method.c: (ftp_response_to_vfs_result),
15876 (do_transfer_command), (do_open), (do_read), (do_write),
15877 (internal_get_file_info), (do_move):
15878 * modules/pipe-method.c: (do_open):
15879 * test/test-async-cancel.c: (file_open_fail_callback):
15881 2000-06-21 Gene Z. Ragan <gzr@eazel.com>
15883 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
15884 (initialize_edit_applications_dialog),
15885 (nautilus_mime_type_capplet_show_new_extension_window),
15886 (add_new_application), (show_new_application_window):
15887 More work on adding applications and extension.
15889 * mime-type-capplet/nautilus-mime-type-capplet.c:
15890 (nautilus_mime_type_capplet_add_extension),
15891 (remove_extension_clicked), (none_button_toggled),
15892 (application_button_toggled), (component_button_toggled),
15893 (init_mime_capplet),
15894 (nautilus_mime_type_capplet_get_selected_item_mime_type):
15895 Changed use of GtkFixed to use layout. Layout is now messy
15896 again, but I should be able to get it looking right.
15898 2000-06-20 Pavel Cisler <pavel@eazel.com>
15900 * libgnomevfs/gnome-vfs-mime-magic.c:
15901 (gnome_vfs_mime_magic_matches_p):
15902 Fix a memory thrasher in my new code.
15904 * data/mime/gnome-vfs-mime-magic:
15905 * data/mime/gnome-vfs.keys:
15906 Add proper key entries to Photoshop file type.
15908 2000-06-20 Pavel Cisler <pavel@eazel.com>
15910 * libgnomevfs/gnome-vfs-mime-magic.h:
15911 * libgnomevfs/gnome-vfs-mime-magic.c: (is_octal_digit),
15912 (is_hex_digit), (read_octal_byte), (read_hex_byte),
15913 (read_string_val), (read_hex_pattern), (read_num_val),
15914 (eat_white_space), (match_pattern), (gnome_vfs_mime_magic_parse),
15915 (endian_swap), (try_one_pattern_on_buffer),
15916 (gnome_vfs_mime_magic_matches_p),
15917 (gnome_vfs_mime_try_one_magic_pattern),
15918 (gnome_vfs_mime_get_magic_table),
15919 (gnome_vfs_mime_test_get_magic_table), (print_escaped_string),
15920 (print_hex_pattern), (gnome_vfs_mime_dump_magic_table):
15921 Rewrote most of the mime rule parser, cleaning it up and fixing
15923 Added support for patterns with masks.
15924 Added support for offset ranges.
15925 Added support for comments in the magic rule file.
15926 Got rid of unused entries in the GnomeMagicEntry struct.
15927 Fixed mask support in gnome_vfs_mime_magic_matches_p.
15928 Made gnome_vfs_mime_magic_matches_p and
15929 gnome_vfs_mime_try_one_magic_pattern share code.
15930 Added a way to dump the MIME magic table and to load an
15931 arbitrary table for debugging purposes.
15933 * libgnomevfs/gnome-vfs-mime-magic.c:
15934 (gnome_vfs_sniff_buffer_looks_like_text):
15935 Added support for UTF-8 text.
15937 * libgnomevfs/gnome-vfs-mime-magic.c:
15938 (gnome_vfs_sniff_buffer_looks_like_mp3):
15939 Added an algorithmic sniffer for audio/x-mp3.
15941 * test/test-mime.c: (main):
15942 Added a way to load and dump a specific file with magic rules.
15944 * data/mime/gnome-vfs-mime-magic:
15946 Added sniff rule for Photoshop documents using a pattern with a mask.
15947 Changed html rules to work on an offset range.
15948 Added sniff rules for C and C++ files.
15949 Reordered rules placing ones that require a seek deep into the
15950 examined file last.
15952 2000-06-20 Darin Adler <darin@eazel.com>
15954 * libgnomevfs/gnome-vfs-mime-handlers.c:
15955 (gnome_vfs_mime_get_default_action_type): Another place we need to
15958 2000-06-20 Gene Z. Ragan <gzr@eazel.com>
15960 * mime-type-capplet/nautilus-mime-type-capplet.c:
15961 (mime_list_selected_row_callback), (none_button_toggled),
15962 (application_button_toggled), (component_button_toggled),
15963 (init_mime_capplet), (nautilus_mime_type_capplet_update_info):
15964 Added frame and set of radio buttons to indicate and allow the
15965 user to change the default action that will occur when a file
15966 is clicked/double-clicked in Nautilus. We have three choices that
15967 map to the three types of actions we currently support.
15969 2000-06-20 Gene Z. Ragan <gzr@eazel.com>
15973 * mime-type-capplet/nautilus-mime-type-capplet.c:
15974 (application_menu_activated), (populate_application_menu),
15975 (component_menu_activated), (populate_component_menu):
15976 Add handling of the case where a default application or
15977 component is not in the default applicaiton or component list.
15978 This involved some UI work and adding the default app to
15979 the default list. Hopefully the gnome-vfs-mime-handler API
15980 will not allow this to happen, but we handle it just in case.
15982 Cleaned up the way the menu items for the default application
15983 and component are set and added a signal handler to set
15984 the user's choice of application or component to be the default.
15986 2000-06-20 Gene Z. Ragan <gzr@eazel.com>
15990 * libgnomevfs/gnome-vfs-mime-handlers.c:
15991 * libgnomevfs/gnome-vfs-mime-handlers.h:
15992 (gnome_vfs_mime_add_extension):
15993 Renamed function to be more in accordance with other function
15996 (gnome_vfs_mime_remove_extension):
15997 New function to remove mapped extension from mime type.
15999 * libgnomevfs/gnome-vfs-mime-info.c: (load_mime_list_info_from),
16000 (gnome_vfs_mime_get_extensions), (mime_list_sort), (get_key_name),
16001 (gnome_vfs_mime_commit_registered_types),
16002 (write_mime_data_foreach), (write_registered_mime_data):
16003 A couple of things done here. One was work on the tokenizer
16004 so that it handled a variety of cases when reading in
16005 key data form .mime files. Another was work on saving and
16006 deleting mapped extensions from the .mime file.
16008 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
16009 (nautilus_mime_type_capplet_show_new_extension_window):
16010 Work on saving and deleting mapped extensions from the .mime file.
16012 * mime-type-capplet/nautilus-mime-type-capplet.c:
16013 (populate_extension_list),
16014 (nautilus_mime_type_capplet_add_extension),
16015 (remove_extension_clicked):
16016 Work on saving and deleting mapped extensions from the .mime file.
16018 2000-06-20 John Sullivan <sullivan@eazel.com>
16020 * data/mime/gnome-vfs.keys: Finished renaming of some types
16021 from application/x-foo to text/x-foo.
16022 * data/mime/gnome-vfs.mime: Removed mysterious colons at the
16023 ends of some mime type names that was causing them not to match
16026 2000-06-19 Ramiro Estrugo <ramiro@eazel.com>
16028 * data/mime/gnome-vfs.keys:
16029 Make mozilla the default
16031 2000-06-19 Darin Adler <darin@eazel.com>
16033 * libgnomevfs/gnome-vfs-mime-handlers.c: (mime_type_get_supertype):
16034 Made another function tolerant of NULL since we use NULL to mean
16035 unknown MIME type all the time.
16037 2000-06-19 Darin Adler <darin@eazel.com>
16039 * po/POTFILES.in: Removed mime-data.c to fix build.
16041 2000-06-19 Gene Z. Ragan <gzr@eazel.com>
16043 * mime-type-capplet/mime-data.c:
16044 * mime-type-capplet/mime-data.h:
16045 Removed obsolete files.
16047 * mime-type-capplet/Makefile.am:
16048 Removed above files from Makefile.
16050 * libgnomevfs/gnome-vfs-mime-handlers.c:
16051 * libgnomevfs/gnome-vfs-mime-handlers.h:
16052 (gnome_vfs_mime_add_extension_to_mime_type):
16053 New function. Add extension mapping to named mime type
16054 and save to .mime file.
16056 * libgnomevfs/gnome-vfs-mime-info.c:
16057 * libgnomevfs/gnome-vfs-mime-info.h:
16058 (load_mime_list_info_from),
16059 (load_mime_type_info), (gnome_vfs_mime_get_extensions),
16061 (gnome_vfs_mime_extension_list_free):
16062 New function to deep free the list returned
16063 by gnome_vfs_mime_get_extensions()
16065 (gnome_vfs_mime_registered_mime_type_list_free),
16066 New function to deep free the list returned
16067 by gnome_vfs_mime_get_extensions()
16069 (gnome_vfs_mime_commit_registered_types):
16070 Public function to commit internal hash table
16071 of mime data to disk.
16073 (gnome_vfs_mime_set_registered_type_key):
16074 This functions sets the key data for the registered mime
16077 (write_mime_data_foreach), (write_mime_data):
16078 New functions to write out mime data from hash table.
16080 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
16081 (nautilus_mime_type_capplet_show_new_mime_window),
16082 (nautilus_mime_type_capplet_show_new_extension_window):
16083 Clean up work on dialogs.
16085 * mime-type-capplet/nautilus-mime-type-capplet.c:
16087 (populate_extension_list),
16088 (nautilus_mime_type_capplet_add_extension),
16089 (remove_extension_clicked), (init_mime_capplet),
16090 (delete_mime_clicked), (create_mime_list_and_scroller),
16091 (get_selected_item_mime_type):
16092 Clean up work on main capplet view.
16094 2000-06-17 Gene Z. Ragan <gzr@eazel.com>
16096 File Types and Programs capplet work in progress.
16098 * mime-type-capplet/mime-info.c:
16099 * mime-type-capplet/mime-info.h:
16100 Removed obsolete files from capplet.
16102 * mime-type-capplet/Makefile.am:
16103 Remove above files form makefile.
16105 * libgnomevfs/gnome-vfs-mime-info.c:
16106 * libgnomevfs/gnome-vfs-mime-info.h:
16107 (list_context_new), (context_destroy_and_unlink),
16108 (load_mime_type_info_from),
16109 (load_mime_list_info_from), (mime_list_load),
16110 (load_mime_type_info), (gnome_vfs_mime_init),
16111 (gnome_vfs_mime_info_clear), (gnome_vfs_mime_info_shutdown),
16112 (get_key_name), (gnome_vfs_get_registered_mime_types):
16113 Various fixes and modifications. Fixed a bug in the
16114 mime key database parser that caused comments to be
16115 read in incorrectly.
16117 * mime-type-capplet/mime-data.c:
16118 (add_to_key), (add_mime_vals_to_clist),
16119 (add_new_mime_type), (add_new_mime_type),
16120 (write_mime_foreach):
16121 Capplet work in progress.
16123 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
16124 (nautilus_mime_type_capplet_show_new_mime_window):
16125 Capplet work in progress.
16127 * mime-type-capplet/nautilus-mime-type-capplet.c:
16128 * mime-type-capplet/nautilus-mime-type-capplet.h:
16129 (main), (g_list_free_deep), (try_callback), (revert_callback),
16130 (ok_callback), (cancel_callback), (populate_extension_list),
16131 (mime_list_selected_row_callback), (init_mime_capplet),
16132 (nautilus_mime_type_capplet_update_info), (delete_mime_clicked),
16133 (edit_applications_clicked), (edit_components_clicked),
16134 (insert_mime_vals_into_clist), (create_mime_list_and_scroller):
16135 Capplet work in progress.
16137 2000-06-16 Pavel Cisler <pavel@eazel.com>
16139 * data/mime/gnome-vfs.mime:
16140 Fix two incorrect mime types.
16142 2000-06-16 Pavel Cisler <pavel@eazel.com>
16144 * libgnomevfs/gnome-vfs-mime-magic.c:
16145 (gnome_vfs_sniff_buffer_looks_like_text),
16146 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
16147 Fix bug 1168 - add UTF-8 support to the text mime sniffer.
16149 * libgnomevfs/gnome-vfs-mime-magic.c:
16150 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
16151 (gnome_vfs_get_mime_type_for_buffer),
16152 (gnome_vfs_sniff_buffer_looks_like_mp3):
16153 Fix bug 960 - add algorithmic sniffer for detecting audi/x-mp3 files.
16155 * libgnomevfs/gnome-vfs-private-ops.c:
16156 (gnome_vfs_open_uri_cancellable):
16157 Fix bug 1189 - removed retry code in open and made it respect the
16158 RANDOM flag as set by the caller.
16160 2000-06-16 Darin Adler <darin@eazel.com>
16162 * libgnomevfs/gnome-vfs-mime-handlers.c:
16163 (gnome_vfs_mime_get_default_application): Added a FIXME to note
16164 that we need to enhance the "default-application" feature.
16165 (gnome_vfs_mime_get_default_component): Use the new exported
16166 liboaf.h OAF_ServerInfo_duplicate instead of our own, local,
16168 (gnome_vfs_mime_get_short_list_applications),
16169 (gnome_vfs_mime_get_all_applications),
16170 Prune the list to only ones with applications that "exist"
16171 by calling the new prune_ids_for_nonexistent_applications
16173 (strdup_to), (is_executable_file), (executable_in_path),
16174 (get_executable_name_from_command_string),
16175 (application_known_to_be_nonexistent),
16176 (prune_ids_for_nonexistent_applications):
16177 Write the functions needed for a clean implementation of
16178 prune_ids_for_nonexistent_applications.
16179 (OAF_ServerInfoList_to_ServerInfo_g_list): Use the new exported
16180 liboaf.h OAF_ServerInfo_duplicate instead of our own, local,
16183 2000-06-16 John Sullivan <sullivan@eazel.com>
16185 * data/mime/gnome-vfs.keys,
16186 * data/mime/gnome-vfs.mime:
16187 Changed illegal audio/midi to legal audio/x-midi,
16188 and fixed up some font keys that didn't get
16189 updated in synch earlier.
16191 Fri Jun 16 12:11:32 2000 George Lebl <jirka@5z.com>
16193 * libgnomevfs/gnome-vfs-constants.h: When the long is actually
16194 64bit, use "ld" and "lu" for the format.
16196 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c: Include <string.h>
16199 * modules/gconf-method.c: Include <string.h> and <alloca.h> to
16202 * test/test-async-directory.c (print_list):
16203 test/test-async.c (read_callback): Use the
16204 GNOME_VFS_SIZE_FORMAT_STR format constant to print out sizes
16206 2000-06-16 Darin Adler <darin@eazel.com>
16208 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_get_value),
16209 (gnome_vfs_mime_get_keys): Change to support MIME types of NULL
16210 which will make code simpler since NULL is commonly used to mean
16211 "unknown MIME type".
16213 2000-06-15 Pavel Cisler <pavel@eazel.com>
16215 * data/mime/gnome-vfs-mime-magic:
16216 Add mime magic for shell scripts.
16218 2000-06-15 Pavel Cisler <pavel@eazel.com>
16220 * libgnomevfs/gnome-vfs-module-shared.c:
16221 (gnome_vfs_mime_type_from_mode), (gnome_vfs_get_special_mime_type):
16222 * modules/gconf-method.c: (set_mime_type_dir):
16223 * modules/http-method.c: (process_propfind_propstat):
16224 Convert illegal "special/..." mime types to legal ones.
16226 * data/mime/gnome-vfs-mime-magic:
16227 * data/mime/gnome-vfs.keys:
16228 * data/mime/gnome-vfs.mime:
16229 * libgnomevfs/gnome-vfs-mime-magic.c:
16230 (gnome_vfs_mime_type_from_magic):
16231 Fix all illegal mime types. Reformat the magic table a bit and reorder it
16232 to put ambiguous rules last.
16234 * modules/http-method.c: (process_propfind_propstat):
16235 Change a TODO: to a FIXME:
16236 Get rid of an extra if before a g_free.
16238 2000-06-15 Darin Adler <darin@eazel.com>
16240 * libgnomevfs/gnome-vfs-mime-handlers.c:
16241 (gnome_vfs_mime_get_default_action_type): Fix bug where we would
16242 not fall back to the supertype action if the action type string
16244 (gnome_vfs_mime_get_default_component): Fix bug where we would
16245 free an uninitialized variable.
16247 2000-06-15 Gene Z. Ragan <gzr@eazel.com>
16249 Work in progress on the FIle Types and Programs Capplet
16250 * mime-type-capplet/Makefile.am:
16251 Removed obsolete files form build.
16253 * mime-type-capplet/edit-window.c:
16254 * mime-type-capplet/edit-window.h:
16257 * mime-type-capplet/new-mime-window.c:
16258 * mime-type-capplet/new-mime-window.h:
16261 * mime-type-capplet/mime-data.c: (add_mime_vals_to_clist),
16262 (selected_row_callback):
16264 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
16265 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h:
16266 (edit_applications_dialog_destroy), (application_is_in_list),
16267 (application_button_toggled_callback),
16268 (populate_default_applications_box),
16269 (populate_default_components_box),
16270 (initialize_edit_applications_dialog),
16271 (show_edit_applications_dialog), (show_edit_components_dialog),
16272 (nautilus_mime_type_capplet_show_new_mime_window),
16273 (nautilus_mime_type_capplet_show_new_extension_window):
16275 * mime-type-capplet/nautilus-mime-type-capplet.c:
16276 * mime-type-capplet/nautilus-mime-type-capplet.h:
16277 (revert_callback), (populate_extension_list),
16278 (nautilus_mime_type_capplet_add_extension),
16279 (add_extension_clicked), (remove_extension),
16280 (extension_list_selected), (extension_list_deselected),
16281 (init_mime_capplet), (nautilus_mime_type_capplet_update_info),
16282 (add_mime_clicked), (edit_components_clicked),
16283 (nautilus_mime_type_capplet_update_application_info),
16284 (nautilus_mime_type_capplet_update_component_info):
16286 2000-06-15 Darin Adler <darin@eazel.com>
16288 * libgnomevfs/gnome-vfs-gen-mimedb.c: (main):
16289 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_init):
16290 * libgnomevfs/gnome-vfs-mime-magic.c:
16291 (gnome_vfs_mime_get_magic_table):
16292 * libgnomevfs/gnome-vfs-mime.c: (mime_init):
16293 * mime-type-capplet/mime-data.c: (init_mime_type):
16294 Added FIXMEs to places that get MIME info from the gnome-libs
16295 prefix since we install this stuff in the gnome-vfs prefix.
16296 We already had a bug report about this.
16298 2000-06-15 John Sullivan <sullivan@eazel.com>
16300 * data/mime/gnome-vfs.mime,
16301 * data/mime/gnome-vfs.keys: Added description for .lha,
16302 and extension + description for .lhz.
16304 2000-06-14 Gene Z. Ragan <gzr@eazel.com>
16306 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.c:
16307 * mime-type-capplet/nautilus-mime-type-capplet-dialogs.h:
16308 New files. Trying to clean up current capplet source and
16309 organize it in a sensible way.
16311 (edit_application_dialog_destroy), (edit_component_dialog_destroy),
16312 (populate_default_applications_list),
16313 (populate_preferred_applications_list), (component_is_in_list),
16314 (component_button_toggled_callback),
16315 (populate_default_components_box),
16316 (populate_preferred_components_list),
16317 (initialize_edit_applications_dialog),
16318 (initialize_edit_components_dialog),
16319 (show_edit_applications_dialog), (show_edit_components_dialog),
16320 Brand new functions.
16322 * mime-type-capplet/Makefile.am:
16323 Added new source file listed above.
16325 * mime-type-capplet/nautilus-mime-type-capplet.c:
16326 (init_mime_capplet), (populate_application_menu),
16327 (populate_component_menu), (edit_applications_clicked),
16328 (edit_components_clicked):
16329 Work on setting up info view.
16331 2000-06-14 Maciej Stachowiak <mjs@eazel.com>
16333 Part of task 1057: Terminal-based programs should open into a new
16336 * data/mime/application-registry-hack.keys: Set requires_terminal
16337 setting for everything.
16338 * libgnomevfs/gnome-vfs-mime-handlers.h,
16339 libgnomevfs/gnome-vfs-mime-handlers.c
16340 (gnome_vfs_mime_application_new_from_id): Add requires_terminal
16341 field to the GnomeVFSMimeApplication structure and initialize it
16343 * test/test-mime-handlers.c (print_application): Print the
16344 require_terminal setting.
16346 2000-06-14 John Sullivan <sullivan@eazel.com>
16348 * data/mime/gnome-vfs.keys:
16349 Maciej meant to change application/x-sh to
16350 text/x-sh, but didn't quite finish the job;
16351 also removed application/x-sh and application/x-tcl.
16353 2000-06-14 Pavel Cisler <pavel@eazel.com>
16355 * libgnomevfs/gnome-vfs-mime-handlers.c:
16356 (gnome_vfs_mime_application_list_free),
16357 (gnome_vfs_mime_component_list_free):
16358 Fix two leaks John and I found.
16360 2000-06-13 Gene Z. Ragan <gzr@eazel.com>
16362 More work in progress and added a new file to the capplet build.
16364 * mime-type-capplet/nautilus-mime-type-capplet.c: (main),
16365 (init_mime_capplet), (edit_applications_clicked),
16366 (edit_components_clicked), (edit_application_dialog_destroy),
16367 (initialize_edit_application_dialog),
16368 (show_edit_applications_dialog), (show_edit_components_dialog):
16370 * mime-type-capplet/nautilus-mime-type-capplet.h:
16373 2000-06-13 Gene Z. Ragan <gzr@eazel.com>
16375 Work in progress on the File Types and Program capplet
16377 * mime-type-capplet/edit-window.c: (initialize_main_win):
16378 * mime-type-capplet/mime-data.c: (get_priority), (add_to_key),
16379 (mime_fill_from_file), (add_mime_vals_to_clist),
16380 (selected_row_callback), (create_mime_clist), (add_new_mime_type):
16382 * mime-type-capplet/mime-data.h:
16383 * mime-type-capplet/nautilus-mime-type-capplet.c:
16384 (init_mime_capplet), (nautilus_mime_type_capplet_update_info),
16385 (populate_application_menu), (populate_component_menu),
16386 (free_mime_info), (delete_mime_clicked), (add_mime_clicked),
16387 (edit_applications_clicked), (edit_components_clicked):
16389 2000-06-13 Maciej Stachowiak <mjs@eazel.com>
16391 * data/mime/gnome-vfs.keys, data/mime/gnome-vfs.mime: Update file
16392 manager view IIDs, and use text/x-foo as the preferred mime type
16393 for more things that used to be application/x-foo.
16395 * libgnomevfs/gnome-vfs-mime-handlers.c
16396 (gnome_vfs_mime_get_default_component): Fix type inserted when
16397 adding sort conditions.
16399 * libgnomevfs/gnome-vfs-mime-handlers.c
16400 (gnome_vfs_mime_get_default_component):FIx part of FIXME 1145;
16401 prefer a component of the short list as a fallback default if no
16403 (gnome_vfs_mime_get_short_list_components): Fix a bug in the query.
16405 2000-06-13 Maciej Stachowiak <mjs@eazel.com>
16407 Bugzilla task #1074
16409 * libgnomevfs/gnome-vfs-mime-handlers.c:
16410 (gnome_vfs_mime_get_default_action_type,
16411 gnome_vfs_mime_get_default_application,
16412 gnome_vfs_mime_get_default_component,
16413 gnome_vfs_mime_get_short_list_applications,
16414 gnome_vfs_mime_get_short_list_components,
16415 gnome_vfs_mime_get_all_applications): Added support for trying the
16417 (gnome_vfs_mime_str_list_merge,
16418 gnome_vfs_mime_str_list_apply_delta,
16419 gnome_vfs_mime_do_short_list_processing): New or modified helper
16421 (process_app_list): Changed to take a GList of IDs instead of a
16422 comma-separated string.
16423 * data/mime/gnome-vfs.keys: Added text/* entry.
16425 2000-06-13 Maciej Stachowiak <mjs@eazel.com>
16427 * libgnomevfs/gnome-vfs-mime-handlers.c
16428 (gnome_vfs_mime_get_all_components): Fix broken query.
16430 2000-06-13 Maciej Stachowiak <mjs@eazel.com>
16432 * data/mime/gnome-vfs.keys, data/mime/gnome-vfs.mime: Made
16433 canonical mime types for shell and c-shell scripts text/x-sh and
16434 text/x-csh, not application/x-sh and application/x-csh.
16436 2000-06-12 Maciej Stachowiak <mjs@eazel.com
16438 * libgnomevfs/gnome-vfs-mime-handlers.c
16439 (gnome_vfs_mime_get_all_components): Fix syntax error in query.
16441 2000-06-12 John Sullivan <sullivan@eazel.com>
16443 * libgnomevfs/gnome-vfs-mime-handlers.c:
16444 (gnome_vfs_mime_set_default_application),
16445 (gnome_vfs_mime_set_default_component):
16446 Set the default action type if it had no
16449 2000-06-12 Ramiro Estrugo <ramiro@eazel.com>
16451 * libgnomevfs/Makefile.am:
16452 Make the private header really private by not installing it.
16454 2000-06-12 Eskil Heyn Olsen <eskil@eazel.com>
16456 * gnome-vfs.spec.in: Changed the Requires to what the configure.in
16457 is actually checking for.
16458 * libgnomevfs/Makefile.am: Added
16459 gnome-vfs-mime-sniff-buffer-private.h to HEADERS.
16460 * mime-type-capplet/Makefile.am: added a -D to install of the
16461 .desktop file. Ensures that the dir is there during rpm -ta.
16463 Can now build a gnome-vfs rpm.
16465 2000-06-09 John Sullivan <sullivan@eazel.com>
16467 Fixed bug 1302: can't undo mmap with g_free. Nautilus was
16468 sometimes crashing on exit due to this bug.
16470 * libgnomevfs/gnome-vfs-mime-magic.c:
16471 Added global variables to keep track of mmap size and
16472 whether mmap was used.
16473 (gnome_vfs_mime_get_magic_table):
16474 #ifdef declarations of variables only used in _POSIX_MAPPED_FILES
16475 case; use new globals to keep track of mmap size and
16476 whether mmap was used; check for MAP_FAILED case.
16477 (gnome_vfs_mime_clear_magic_table): Call munmap and not g_free
16480 2000-06-10 Sung-Hyun Nam <namsh@lgic.co.kr>
16482 * configure.in (ALL_LINGUAS): added ko
16484 2000-06-08 Maciej Stachowiak <mjs@eazel.com>
16486 * libgnomevfs/gnome-vfs-mime-handlers.c
16487 (gnome_vfs_mime_get_default_component,
16488 gnome_vfs_mime_get_short_list_components,
16489 gnome_vfs_mime_get_all_components): Fix the queries
16491 2000-06-08 Darin Adler <darin@eazel.com>
16493 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_get_basename),
16494 (gnome_vfs_uri_extract_short_path_name):
16495 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_escape_string),
16496 (gnome_vfs_unescape_string), (gnome_vfs_unescape_for_display):
16497 Added code to handle NULL for the text of a URI. The old code
16498 would overreact and segfault.
16500 2000-06-08 Maciej Stachowiak <mjs@eazel.com>
16502 * libgnomevfs/gnome-vfs-mime-handlers.c
16503 (gnome_vfs_mime_get_short_list_components,
16504 gnome_vfs_mime_get_all_components): Expand the queries to be
16505 closer to giving a superset of what Nautilus does.
16507 2000-06-08 Darin Adler <darin@eazel.com>
16511 * libgnomevfs/Makefile.am:
16512 * libgnomevfs/gnome-vfs-mime-private.h:
16513 Added a private header for some new calls. Made it really
16514 private, meaning it's not installed into the prefix include
16515 directory, unlike the old "private" files which are installed.
16517 * libgnomevfs/gnome-vfs-mime-info.c:
16518 (gnome_vfs_mime_info_shutdown): Added this new function which
16519 calls gnome_vfs_mime_info_clear and then does the rest of the
16520 cleanup which can only be done at shutdown time.
16522 * libgnomevfs/gnome-vfs-mime-info.h: gnome_vfs_mime_info_clear
16523 is now a private call.
16525 * libgnomevfs/gnome-vfs-mime-magic.c:
16526 (gnome_vfs_mime_get_magic_table): Put the mmap call inside an
16527 ifdef _POSIX_MAPPED_FILES for better portability.
16528 (gnome_vfs_mime_clear_magic_table): Added a FIXME because we
16529 can't undo an mmap call with a g_free call!
16531 * libgnomevfs/gnome-vfs-mime.c:
16532 (remove_one_mime_hash_entry): Fixed leak by freeing the items
16533 in the list, not just the list.
16534 (gnome_vfs_mime_shutdown): Fixed leak by destroying the hash
16535 tables and the directory names.
16536 (gnome_vfs_mime_type_or_default): Simplified logic for freeing
16539 * libgnomevfs/gnome-vfs-mime-handlers.h: Some formatting and
16542 2000-06-08 Maciej Stachowiak <mjs@eazel.com
16544 * libgnomevfs/gnome-vfs-mime-handlers.c:
16545 (gnome_vfs_mime_application_free): Free the new "id" field.
16546 (gnome_vfs_mime_action_free): Implemented, to fix bugzilla
16548 (get_user_level): Fixed bugs 1150 and 1151; made it return
16549 "novice" if gconf does not give back some expected value.
16550 (OAF_ServerInfo__copy): Adjust copying until the CORBA_frees don't
16553 * libgnomevfs/gnome-vfs-mime-handlers.c:
16554 (gnome_vfs_mime_get_short_list_applications,
16555 gnome_vfs_mime_get_short_list_components): Refactored and
16556 corrected memory management (should not leak or double-free now).
16558 (gnome_vfs_mime_get_all_components,
16559 gnome_vfs_mime_get_default_component): Fixed bugzilla.eazel.com
16562 (gnome_vfs_mime_str_list_apply_delta,
16563 gnome_vfs_mime_get_value_for_user_level): New helper functions.
16565 2000-06-07 Pavel Cisler <pavel@eazel.com>
16567 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_shutdown):
16568 * libgnomevfs/gnome-vfs-mime-info.c: (gnome_vfs_mime_info_clear),
16569 (gnome_vfs_mime_info_reload):
16570 * libgnomevfs/gnome-vfs-mime-info.h:
16571 * libgnomevfs/gnome-vfs-mime-magic.c:
16572 (gnome_vfs_mime_clear_magic_table):
16573 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
16574 * libgnomevfs/gnome-vfs-mime.c: (mime_extensions_empty),
16575 (maybe_reload), (gnome_vfs_mime_shutdown):
16576 * libgnomevfs/gnome-vfs-mime.h:
16577 Add calls that clear the different mime type tables and call them
16578 from gnome_vfs_shutdown.
16580 * libgnomevfs/gnome-vfs-mime.c:
16581 (gnome_vfs_mime_type_or_default):
16584 2000-06-07 Darin Adler <darin@eazel.com>
16586 * libgnomevfs/gnome-vfs-backend.c: (func_lookup):
16587 Fixed a storage leak.
16589 * test/test-async-cancel.c: (file_open_fail_callback),
16590 (test_open_fail), (main): Added a test.
16592 2000-06-06 Pavel Cisler <pavel@eazel.com>
16594 * libgnomevfs/gnome-vfs-directory-list.c:
16595 (gnome_vfs_directory_list_load),
16596 (gnome_vfs_directory_list_load_from_uri):
16597 Fix a storage and file descriptor leak.
16599 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_mime_type_or_default):
16602 2000-06-06 Ramiro Estrugo <ramiro@eazel.com>
16604 * libgnomevfs/gnome-vfs-mime-handlers.c: (get_user_level):
16605 Use "/apps/nautilus" instead of "/nautilus" to conform to the
16608 Thanks to andersca@gnu.org for pointing this out.
16610 2000-06-06 Ramiro Estrugo <ramiro@eazel.com>
16613 Require only "gconf" not "gconf-gtk"
16615 2000-06-06 Maciej Stachowiak <mjs@eazel.com>
16617 * libgnomevfs/gnome-vfs-mime-info.h,
16618 libgnomevfs/gnome-vfs-mime-info.c
16619 (gnome_vfs_mime_info_reload): New call to force reloading of the
16621 (maybe_reload): Use gnome_vfs_mime_info_reload if we decide to
16624 * libgnomevfs/gnome-vfs-mime-handlers.c:
16625 (gnome_vfs_mime_get_short_list_applications),
16626 (gnome_vfs_mime_set_default_action_type),
16627 (gnome_vfs_mime_set_default_application),
16628 (gnome_vfs_mime_set_default_component),
16629 (gnome_vfs_mime_set_short_list_applications),
16630 (gnome_vfs_mime_set_short_list_components),
16631 (gnome_vfs_mime_extend_all_applications),
16632 (gnome_vfs_mime_remove_from_all_applications),
16633 (gnome_vfs_mime_define_application): call
16634 gnome_vfs_mime_info_reload when done reloading.
16635 (gnome_vfs_mime_set_short_list_applications): Rewritten for
16636 correct memory management and improved clarity.
16638 2000-06-06 John Sullivan <sullivan@eazel.com>
16640 * libgnomevfs/gnome-vfs-mime-handlers.c:
16641 (gnome_vfs_mime_remove_component_from_short_list):
16642 Fixed an application -> component typo.
16644 2000-06-06 Pavel <pavel@eazel.com>
16646 * libgnomevfs-corba/gnome-vfs-slave.c: (copy_metadata):
16647 * libgnomevfs/gnome-vfs-mime-handlers.c:
16648 (gnome_vfs_mime_get_all_applications):
16649 * libgnomevfs/gnome-vfs-module-shared.c:
16650 * modules/extfs-method.c: (do_open_directory):
16651 Renumber some FIXMEs after marking them as duplicates.
16652 Fix a wrong FIXME number.
16654 2000-06-06 Pavel <pavel@eazel.com>
16656 * devel-docs/gnome-vfs-tutorial/gnome-vfs-tutorial.sgml:
16657 * doc/writing-modules.sgml:
16658 * modules/extfs-method.c: (do_open):
16659 Added more bug numbers to FIXMEs.
16660 Changed some mentions of FIXMEs to FixMes to make them
16661 not trigger the FIXME tool.
16663 2000-06-05 Seth Nickell <snickell@stanford.edu>
16665 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_extract_short_name):
16666 Modified to call gnome_vfs_unescape_string on the "short_name"
16668 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_unescape_string):
16669 Added a g_assert to make sure length of returned string is correct
16670 (gnome_vfs_unescape_for_display):
16671 * libgnomevfs/gnome-vfs-utils.h:
16672 New function similar to unescape_string except that it returns
16673 the string formatted better for display - i.e. with "invalid"
16674 escape sequences and ASCII 0 still escaped
16675 * test/test-escape.c: (test_unescape), (test_unescape_display),
16677 Added more test cases for escape code, improve output, added
16678 test code for gnome_vfs_unescape_for_display
16680 2000-06-05 Pavel Cisler <pavel@eazel.com>
16682 * libgnomevfs-corba/gnome-vfs-slave.c: (serve_channel_read),
16683 (serve_channel_write):
16684 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
16685 * mime-type-capplet/edit-window.c: (populate_application_menu):
16686 * mime-type-capplet/mime-data.c: (add_to_key):
16687 * modules/extfs-method.c: (do_open), (read_directory_list),
16688 (do_open_directory), (match):
16689 * modules/extfs/cpio.in:
16690 * modules/extfs/lha.in:
16691 * modules/file-method.c: (read_directory):
16692 * modules/gconf-method.c: (directory_handle_destroy):
16693 Added more bug numbers to FIXMEs.
16694 Fixed one misspelled FIXME that made it show up in the check-FIXME.pl tool.
16696 2000-06-05 Pavel Cisler <pavel@eazel.com>
16698 * libgnomevfs/gnome-vfs-xfer.c: (call_progress),
16699 (count_items_and_size), (handle_name_conflicts), (copy_file),
16700 (copy_directory), (copy_items), (gnome_vfs_xfer_uri_internal),
16701 (gnome_vfs_xfer_private):
16702 Added more bug numbers to FIXMEs.
16704 2000-06-05 Darin Adler <darin@eazel.com>
16706 * libgnomevfs-corba/gnome-vfs-async-ops.c:
16707 * libgnomevfs-corba/gnome-vfs-corba.c: (gnome_vfs_corba_init):
16708 * libgnomevfs-corba/gnome-vfs-slave-notify.c:
16709 (impl_Notify_load_directory):
16710 * libgnomevfs-corba/gnome-vfs-slave-process.c:
16711 (gnome_vfs_slave_process_reset), (gnome_vfs_slave_process_destroy):
16712 * libgnomevfs/gnome-vfs-directory-list.c:
16713 * libgnomevfs/gnome-vfs-handle.c: (gnome_vfs_handle_do_close):
16714 * libgnomevfs/gnome-vfs-parse-ls.c:
16715 * libgnomevfs/gnome-vfs-private-ops.c:
16716 (gnome_vfs_open_uri_cancellable):
16717 * libgnomevfs/gnome-vfs-private-utils.c:
16718 * libgnomevfs/gnome-vfs-result.c: (gnome_vfs_result_from_errno),
16719 (gnome_vfs_result_from_h_errno):
16720 * libgnomevfs/gnome-vfs-seekable.c: (do_open), (do_create),
16721 (do_truncate_handle):
16722 * libgnomevfs/gnome-vfs-shellpattern-filter.c:
16723 (gnome_vfs_shellpattern_filter_new):
16724 * libgnomevfs/gnome-vfs-types.h:
16725 * libgnomevfs/gnome-vfs-uri.c: (get_method_string),
16726 (parse_uri_substring), (gnome_vfs_uri_append_path),
16727 (gnome_vfs_uri_to_string), (gnome_vfs_uri_is_local):
16728 * libgnomevfs/gnome-vfs-utils.h:
16729 Added more bug numbers to FIXMEs.
16731 2000-06-05 John Sullivan <sullivan@eazel.com>
16733 * libgnomevfs/gnome-vfs-mime-handlers.c:
16734 (gnome_vfs_mime_set_default_application):
16737 2000-06-05 John Sullivan <sullivan@eazel.com>
16739 Refactored and made some helper functions public so
16740 clients that modify the program lists don't need to
16741 replicate a bunch of code.
16743 * libgnomevfs/gnome-vfs-mime-handlers.h:
16744 * libgnomevfs/gnome-vfs-mime-handlers.c:
16745 (gnome_vfs_mime_id_in_application_list),
16746 (gnome_vfs_mime_id_in_component_list):
16747 Made these functions public.
16749 (gnome_vfs_mime_id_list_from_application_list),
16750 (gnome_vfs_mime_id_list_from_component_list):
16751 Gave these existing functions more public-sounding
16752 names and made them public.
16754 (gnome_vfs_mime_remove_application_from_list),
16755 (gnome_vfs_mime_remove_component_from_list):
16756 New public helper functions, extracted from the
16757 _short_list versions.
16759 (gnome_vfs_mime_add_application_to_short_list),
16760 (gnome_vfs_mime_add_component_to_short_list),
16761 (gnome_vfs_mime_remove_application_from_short_list),
16762 (gnome_vfs_mime_remove_component_from_short_list):
16763 Modified to call the new helper functions and
16764 reflect the renamings.
16766 2000-06-05 Darin Adler <darin@eazel.com>
16768 * modules/bzip2-method.c:
16769 (bzip2_method_handle_init_for_decompress),
16770 (bzip2_method_handle_init_for_compress), (do_close), (do_read):
16771 * modules/file-method.c: (do_close), (set_mime_type),
16772 (do_find_directory), (rename_helper):
16773 * modules/ftp-method.c:
16774 * modules/gconf-method.c: (directory_handle_destroy),
16776 * modules/gzip-method.c: (gzip_method_handle_init_for_deflate),
16777 (result_from_z_result), (do_open), (do_create), (do_close),
16779 * modules/http-method.c: (http_file_handle_new),
16780 (http_status_to_vfs_result), (create_handle), (do_create):
16781 Added more bug numbers to FIXMEs.
16783 2000-06-05 Pavel Cisler <pavel@eazel.com>
16785 * libgnomevfs/gnome-vfs-mime-handlers.c:
16786 (gnome_vfs_mime_action_free):
16787 * libgnomevfs/gnome-vfs-mime-handlers.h:
16788 * libgnomevfs/gnome-vfs-mime-magic.c:
16789 (gnome_vfs_mime_magic_matches_p),
16790 (gnome_vfs_sniff_buffer_looks_like_text):
16791 * libgnomevfs/gnome-vfs-module-shared.c:
16792 (gnome_vfs_mime_type_from_mode),
16793 (gnome_vfs_get_special_mime_type):
16794 * libgnomevfs/gnome-vfs-parse-ls.c:
16795 Added more bug numbers to FIXMEs.
16797 2000-06-05 Darin Adler <darin@eazel.com>
16799 * libgnomevfs/gnome-vfs-mime-handlers.c:
16800 (gnome_vfs_mime_get_default_component),
16801 (gnome_vfs_mime_get_short_list_components),
16802 (gnome_vfs_mime_get_all_components),
16803 (gnome_vfs_mime_set_default_action_type),
16804 (gnome_vfs_mime_set_default_application),
16805 (gnome_vfs_mime_set_default_component),
16806 (gnome_vfs_mime_set_short_list_applications),
16807 (gnome_vfs_mime_set_short_list_components),
16808 (gnome_vfs_mime_extend_all_applications),
16809 (gnome_vfs_mime_remove_from_all_applications),
16810 (gnome_vfs_mime_define_application), (get_user_level):
16811 * modules/extfs-method.c: (do_open_directory):
16812 Added bug numbers to FIXMEs.
16814 * libgnomevfs-corba/gnome-vfs-async-ops.c:
16815 (corba_gnome_vfs_async_xfer):
16816 Fixed the formatting of a FIXME bug.
16818 2000-06-05 John Sullivan <sullivan@eazel.com>
16820 * libgnomevfs/gnome-vfs-mime-handlers.c:
16821 (gnome_vfs_mime_application_copy),
16822 (gnome_vfs_mime_application_free): Made these
16823 two routines accept NULL parameters.
16825 2000-06-05 Pavel Cisler <pavel@eazel.com>
16827 * libgnomevfs-corba/gnome-vfs-async-ops.c:
16828 (corba_gnome_vfs_async_xfer):
16829 * libgnomevfs-corba/gnome-vfs-slave-notify.c: (impl_Notify_reset):
16830 * libgnomevfs-corba/gnome-vfs-slave-process.c:
16831 * libgnomevfs-corba/gnome-vfs-slave-process.h:
16832 * libgnomevfs-corba/gnome-vfs-slave.c: (copy_metadata):
16833 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
16834 (pthread_gnome_vfs_async_cancel):
16835 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
16836 (gnome_vfs_job_slave_new):
16837 * libgnomevfs-pthread/gnome-vfs-job.c:
16838 * libgnomevfs-pthread/gnome-vfs-job.h:
16839 * libgnomevfs/gnome-vfs-configuration.c:
16840 * libgnomevfs/gnome-vfs-directory.c:
16841 * libgnomevfs/gnome-vfs-messages.h:
16842 * libgnomevfs/gnome-vfs-mime-handlers.c:
16843 (gnome_vfs_mime_get_default_component),
16844 (gnome_vfs_mime_get_short_list_components),
16845 (gnome_vfs_mime_get_all_applications),
16846 (gnome_vfs_mime_get_all_components),
16847 (gnome_vfs_mime_extend_all_applications),
16848 (gnome_vfs_mime_remove_from_all_applications), (join_str_list),
16850 Added bug numbers to FIXMEs.
16852 2000-06-05 Mathieu Lacage <mathieu@gnome.org>
16854 * libgnomevfs/Makefile.am: add OAF_CFLAGS to include
16855 so that oaf.h is picked up when oaf is not in GNOME prefix.
16856 * test/Makefile.am : idem.
16858 2000-06-05 Darin Adler <darin@eazel.com>
16860 * modules/http-method.c:
16861 * modules/newftp-method.c: (do_open_directory),
16862 (do_make_directory):
16863 * modules/pipe-method.c: (do_close):
16864 * test/gnome-file-selection/gicon.c: (get_stock_icon),
16865 (get_stock_overlay), (get_default_icon),
16866 (gicon_get_icon_for_file_2):
16867 * test/gnome-file-selection/gnome-file-selection-history.c:
16868 * test/gnome-file-selection/gnome-file-selection.c:
16869 (update_directory_combo_list), (setup_directory_combo_and_toolbar),
16870 (destroy), (class_init), (init):
16871 * test/test-info.c:
16872 Added bug numbers to FIXMEs.
16874 * mime-type-capplet/edit-window.c: (destruction_handler),
16875 (initialize_main_win), (launch_edit_window),
16876 (populate_application_menu):
16877 Got rid of the fixed-length mime_string field.
16879 * modules/file-method.c: (read_link), (get_stat_info):
16880 Some minor tweaks on the code Rebecca just checked in.
16881 There was a little problem with unsigned integers.
16883 2000-06-05 Rebecca Schulman <rebecka@eazel.com>
16885 * modules/file-method.c
16886 Fixed lack of error handling for readlink call in read_link.
16888 2000-06-05 Darin Adler <darin@eazel.com>
16890 * libgnomevfs/gnome-vfs-mime-handlers.c:
16891 (gnome_vfs_mime_get_default_component),
16892 (gnome_vfs_mime_get_short_list_applications),
16893 (gnome_vfs_mime_get_short_list_components),
16894 (gnome_vfs_mime_get_all_applications),
16895 (gnome_vfs_mime_get_all_components),
16896 (gnome_vfs_mime_set_default_action_type),
16897 (gnome_vfs_mime_set_default_application),
16898 (gnome_vfs_mime_set_default_component),
16899 (gnome_vfs_mime_set_short_list_applications),
16900 (gnome_vfs_mime_set_short_list_components),
16901 (id_list_from_component_list),
16902 (gnome_vfs_mime_add_application_to_short_list),
16903 (gnome_vfs_mime_remove_application_from_short_list),
16904 (gnome_vfs_mime_add_component_to_short_list),
16905 (gnome_vfs_mime_remove_component_from_short_list),
16906 (gnome_vfs_mime_extend_all_applications),
16907 (gnome_vfs_mime_remove_from_all_applications),
16908 (gnome_vfs_mime_define_application), (gnome_vfs_mime_action_free),
16909 (gnome_vfs_mime_application_list_free),
16910 (gnome_vfs_mime_component_list_free), (str_to_bool), (bool_to_str),
16912 Added free calls to get rid of many storage leaks.
16914 Replaced lots of use of \' with just plain '.
16915 Replaced retval with variable names that are words in many places.
16916 Other reformatting and tweaking.
16918 2000-06-05 Ramiro Estrugo <ramiro@eazel.com>
16920 * data/mime/gnome-vfs.keys:
16922 2000-06-04 Ian McKellar <yakk@yakk.net>
16924 * modules/newftp-method.c: (read_response_line),
16925 (ftp_connection_aquire), (do_open), (internal_get_file_info),
16926 (do_open_directory), (do_make_directory), (do_remove_directory),
16927 (do_move), (do_unlink):
16928 Fixed this lots. It should now fail gracefully if it can't connect or
16929 log into a server, and it should reconnect if a connection times out.
16931 2000-06-02 John Sullivan <sullivan@eazel.com>
16933 * libgnomevfs/gnome-vfs-mime-handlers.c:
16934 (gnome_vfs_mime_add_application_to_short_list),
16935 (gnome_vfs_mime_remove_application_from_short_list),
16936 (gnome_vfs_mime_add_component_to_short_list),
16937 (gnome_vfs_mime_remove_component_from_short_list):
16938 Added implementations for these formerly empty functions.
16940 (gnome_vfs_mime_application_has_id),
16941 (gnome_vfs_mime_id_matches_application),
16942 (gnome_vfs_mime_id_matches_component),
16943 (gnome_vfs_mime_application_matches_id),
16944 (gnome_vfs_mime_component_matches_id),
16945 (gnome_vfs_mime_id_in_application_list),
16946 (gnome_vfs_mime_id_in_component_list),
16947 (id_list_from_application_list), (id_list_from_component_list),
16948 (g_list_free_deep): New helper functions used in the
16949 implementations of the add/remove functions. Most of these
16950 are replicated in nautilus_mime_action.c. I will make another
16951 pass to share code later.
16953 (gnome_vfs_mime_get_short_list_applications),
16954 (gnome_vfs_mime_get_short_list_components): Fixed mistakes
16955 where the wrong list items were compared against, and added
16956 clarifying parentheses. There is still a bug that I couldn't
16957 find where these routines do not correctly include user additions
16958 to the lists. I'm writing this up.
16960 2000-06-02 Darin Adler <darin@eazel.com>
16962 * libgnomevfs/gnome-vfs-xfer.c:
16963 (gnome_vfs_new_directory_with_unique_name):
16966 * libgnomevfs/gnome-vfs-mime-handlers.c: (get_user_level):
16967 Tweaked gconf_init and some formatting.
16969 2000-06-02 Gene Z. Ragan <gzr@eazel.com>
16971 * mime-type-capplet/edit-window.c:
16972 (populate_application_menu):
16973 More work on handling the logic of populating the menu
16974 and handling special cases where short list, default application
16975 and applicaiton list may be NULL or empty.
16977 2000-06-02 John Sullivan <sullivan@eazel.com>
16979 * libgnomevfs/gnome-vfs-mime-handlers.h,
16980 * libgnomevfs/gnome-vfs-mime-handlers.c:
16981 (gnome_vfs_mime_add_application_to_short_list),
16982 (gnome_vfs_mime_remove_application_from_short_list),
16983 (gnome_vfs_mime_add_component_to_short_list),
16984 (gnome_vfs_mime_remove_component_from_short_list):
16985 Added prototypes and empty bodies for these new
16986 convenience functions. Implementations coming soon.
16988 2000-06-02 Gene Z. Ragan <gzr@eazel.com>
16990 More work in progress on the capplet. Still incomplete.
16992 * mime-type-capplet/edit-window.c:
16993 (initialize_main_win),
16994 (populate_application_menu):
16995 The Application window now displays the shortlist and selected
16996 the default application if it is present in the short list.
16999 All of the mchinery is hooked up, but the API does not seem to
17000 be registering the new choice.
17002 2000-06-02 Gene Z. Ragan <gzr@eazel.com>
17004 More work in progress on the capplet. Still incomplete.
17006 * mime-type-capplet/edit-window.c: (initialize_main_win_vals),
17007 (show_edit_window), (populate_application_menu),
17008 (populate_component_menu), (application_menu_activate),
17009 (add_application), (show_file_selector):
17012 * mime-type-capplet/mime-data.c: (add_to_key):
17015 2000-06-02 John Sullivan <sullivan@eazel.com>
17017 * data/mime/gnome-vfs.keys:
17018 * data/mime/gnome-vfs.mime:
17019 Added application/x-gnumeric at andersca's suggestion.
17021 2000-06-02 Darin Adler <darin@eazel.com>
17023 * libgnomevfs/gnome-vfs-utils.c:
17024 * libgnomevfs/gnome-vfs-utils.h:
17025 * test/test-escape.c: (main):
17026 Updated escape and test to not escape "+" except if explicitly
17027 asked. This makes the path escape function more useful for the
17028 real case of converting a path to a URI.
17030 * test/.cvsignore: Ignore test-mime-handlers-set.
17032 2000-06-02 Ramiro Estrugo <ramiro@eazel.com>
17034 * libgnomevfs/gnome-vfs-mime-handlers.c: (get_user_level):
17035 Use a GConfEngine directly to avoid depending on the Gtk object
17038 2000-06-01 Maciej Stachowiak <mjs@eazel.com>
17040 * data/mime/gnome-vfs.keys: Define short-list components for
17043 First half of task 370 (write APIs for mime handler stuff)
17045 * libgnomevfs/gnome-vfs-mime-handlers.h,
17046 libgnomevfs/gnome-vfs-mime-handlers.c:
17047 (gnome_vfs_mime_set_default_action_type,
17048 gnome_vfs_mime_set_default_application,
17049 gnome_vfs_mime_set_default_component,
17050 gnome_vfs_mime_set_short_list_applications,
17051 gnome_vfs_mime_set_short_list_components,
17052 gnome_vfs_mime_extend_all_applications,
17053 gnome_vfs_mime_remove_from_all_applications): Implemented (w/ some
17054 slight interface changes relative to old headers/stubs.
17056 (gnome_vfs_mime_define_application): New function.
17058 (bool_to_str, gnome_vfs_strsplit_to_list,
17059 gnome_vfs_strjoin_from_list, comma_separated_str_to_str_list,
17060 str_list_to_comma_separated_str, str_list_difference): More helper functions.
17062 * test/test-mime-handlers-set.c: Test for mime handler setter
17064 * test/Makefile.am: Build it.
17066 * mime-type-capplet/edit-window.c (add_application): Remove
17067 now-invalid call to gnome_vfs_mime_set_default_application w/
17068 comment on how to do it better.
17070 2000-06-01 Darin Adler <darin@eazel.com>
17072 * libgnomevfs/gnome-vfs-utils.h:
17073 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_escape_string),
17074 (hex_to_int), (gnome_vfs_unescape_string): Fixed escape string to
17075 handle characters in a way that matches the URI RFC instead of
17076 being "conservative" and escaping everything. Also fixed to escape
17077 some characters it wasn't escaping and did code cleanup. Changed
17078 the API to gnome_vfs_unescape_string and made it handle cases where
17079 there are bad escape sequences or bad characters by returning NULL.
17081 * modules/file-method.c: (get_path_from_uri), (get_base_from_uri),
17082 (do_open), (do_create), (do_close), (do_read), (do_write),
17083 (do_truncate), (directory_handle_new), (do_open_directory),
17084 (do_get_file_info), (do_get_file_info_from_handle),
17085 (do_make_directory), (do_remove_directory), (do_find_directory),
17086 (rename_helper), (do_move), (do_unlink), (do_check_same_fs),
17087 (do_set_file_info): Handled URI escaping in every call. This
17088 involved unescaping URIs and handling the cases where there are
17091 * test/test-escape.c: (test_escape), (test_unescape), (main):
17092 Added code to test both the escape and unescape functions. It's a
17093 lot easier to get it right if it's tested :-) This test gets run
17094 as part of make check.
17096 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_append_file_name),
17097 (gnome_vfs_uri_extract_short_name): Update for the new name of the
17098 parameter to gnome_vfs_escape_string.
17100 2000-06-01 John Sullivan <sullivan@eazel.com>
17102 * libgnomevfs/gnome-vfs-mime-handlers.c:
17103 (gnome_vfs_mime_application_copy): Oops, this wasn't
17104 updated to copy the new id field, wreaking havoc on
17107 2000-06-01 John Sullivan <sullivan@eazel.com>
17109 * data/mime/gnome-vfs.keys: Fixed the application short
17110 lists for text/plain, text/html, and special/webdav-directory.
17112 2000-06-01 Darin Adler <darin@eazel.com>
17114 * libgnomevfs/gnome-vfs-mime-handlers.c: (get_user_level): Added
17115 fake parameters to the gconf_init call. It just won't put up with
17116 0/NULL as argc/argv.
17118 * test/test-escape.c: (test_escape), (main): More test code (work
17121 2000-06-01 John Sullivan <sullivan@eazel.com>
17123 * data/mime/application-registry-hack.keys:
17124 added entry for eog.
17125 * data/mime/gnome-vfs.keys:
17126 added a couple of text applications to the complete list
17127 for text/html, so we can test full-list-longer-than-short-list.
17129 2000-06-01 Darin Adler <darin@eazel.com>
17131 * data/mime/gnome-vfs.keys: Checked in a full version. I
17132 accidentally truncated this with my last check-in. Also forgot to
17133 mention in my last check-in that I had changed the name from
17134 componet to component for xpdf (which I also updated).
17136 * test/Makefile.am:
17138 * test/test-escape.c: (stop_after_log), (make_asserts_break),
17139 (test_failed), (main): Started a new test for the escape/unescape
17142 2000-06-01 Maciej Stachowiak <mjs@eazel.com>
17144 * libgnomevfs/gnome-vfs-mime-handlers.c (OAF_ServerInfo__copy):
17145 Implement copying of the attribute list properly by jumping
17146 through all the CORBA hoops.
17148 2000-06-01 Darin Adler <darin@eazel.com>
17150 A set of changes to make the short lists be based on the user
17151 level. I'm not wild about adding the GConf dependency nor about
17152 the 3 identical lists for every MIME type, but for now this is
17155 * configure.in: Changed to always require GConf, not just
17158 * data/mime/gnome-vfs.keys: Updated the short list keys to have
17159 a separate list for each user level.
17161 * libgnomevfs/Makefile.am: Added GConf to what's linked with the
17164 * libgnomevfs/gnome-vfs-mime-handlers.c:
17165 (gnome_vfs_mime_get_short_list_applications),
17166 (gnome_vfs_mime_get_short_list_components), (get_user_level):
17167 Added code to get the user level and include the user level name
17168 in the attribute name that's sought ought in the MIME data.
17170 * modules/gconf-method.c: Fixed build warnings.
17172 2000-06-01 Maciej Stachowiak <mjs@eazel.com>
17174 * data/mime/gnome-vfs.keys: Added short list and default
17175 components to all appropriate types. Expanded application info for
17178 2000-06-01 Maciej Stachowiak <mjs@eazel.com>
17180 * libgnomevfs/gnome-vfs-mime-handlers.c
17181 (gnome_vfs_mime_application_new_from_id): Get
17182 "can_open_multiple_files" and "can_open_uris" from the right
17185 2000-06-01 JP Rosevear <jpr@arcavia.com>
17187 * mime-type-capplet/Makefile.am: Make the capplet build if gnomevfs
17188 isn't already installed.
17190 * libgnomevfs-corba/gnome-vfs-corba.c: Use only the oaf stuff
17192 * libgnomevfs-corba/gnome-vfs-slave.c: ditto
17194 * libgnomevfs/Makefile.am: Remove oaf conditionals since we require
17197 * libgnomevfs-corba/Makefile.am:
17199 * configure.in: Check for oaf >= 0.3.0 and make it mandatory
17201 2000-06-01 Maciej Stachowiak <mjs@eazel.com>
17203 * libgnomevfs/gnome-vfs-mime-handlers.h: Added `id' field to
17204 GnomeVFSMimeApplication struct.
17205 * libgnomevfs/gnome-vfs-mime-handlers.c
17206 (gnome_vfs_mime_application_new_from_id): Set the id field.
17208 * libgnomevfs/gnome-vfs-mime-handlers.h,
17209 libgnomevfs/gnome-vfs-mime-handlers.c
17210 (gnome_vfs_mime_get_default_action_type): New function which only
17211 determines and returns the default action type. Needed for
17212 _for_uri versions of stuff in nautilus.
17213 (gnome_vfs_mime_get_default_action): Use it.
17215 * data/mime/gnome-vfs.keys: Populated with a bit more data.
17217 2000-05-31 Maciej Stachowiak <mjs@eazel.com>
17219 * libgnomevfs/gnome-vfs-mime-handlers.h,
17220 libgnomevfs/gnome-vfs-mime-handlers.c: Removed the _for_uri
17221 versions of these calls; they've been moved to Nautilus for now
17222 since they will require reading metadata.
17224 2000-05-31 Darin Adler <darin@eazel.com>
17226 * libgnomevfs/gnome-vfs-directory.c: (directory_visit_internal),
17227 (gnome_vfs_directory_visit_files_at_uri):
17228 * libgnomevfs/gnome-vfs-uri.h:
17229 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_append_file_name):
17230 * libgnomevfs/gnome-vfs-xfer.c: (empty_directory),
17231 (gnome_vfs_visit_list), (handle_name_conflicts), (copy_directory),
17232 (copy_items), (move_items), (gnome_vfs_xfer_delete_items),
17233 (gnome_vfs_new_directory_with_unique_name):
17234 A quick fix to Seth's check-in. He also forgot a ChangeLog.
17235 The change was to adda new append_file_name call that handles
17236 escaping correctly for combining a file name with a URI.
17238 * test/.cvsignore: Ignore some new test programs.
17240 2000-05-31 John Sullivan <sullivan@eazel.com>
17242 * libgnomevfs/gnome-vfs-mime-handlers.c:
17243 (gnome_vfs_mime_get_short_list_applications),
17244 (gnome_vfs_mime_get_short_list_components),
17245 (gnome_vfs_mime_get_all_applications),
17246 (gnome_vfs_mime_get_all_components): Made these
17247 routines bail out immediately when passed NULL
17248 as the mime type. Maciej can flog me and change
17249 them back if he wants. (This prevents lots of
17250 spam when dealing with files that don't have
17253 2000-05-31 John Sullivan <sullivan@eazel.com>
17255 * libgnomevfs/gnome-vfs-mime-handlers.c:
17256 (get_mime_type_from_uri_hack),
17257 (gnome_vfs_mime_get_short_list_applications_for_uri),
17258 (gnome_vfs_mime_get_short_list_components_for_uri),
17259 (gnome_vfs_mime_get_all_applications_for_uri),
17260 (gnome_vfs_mime_get_all_components_for_uri): Added some
17261 temporary hacks so the _for_uri calls "work" by calling
17262 through to the mime-type-based ones.
17264 2000-05-31 John Sullivan <sullivan@eazel.com>
17266 Couldn't wait for Maciej for a few bits here.
17268 * libgnomevfs/gnome-vfs-mime-handlers.h:
17269 * libgnomevfs/gnome-vfs-mime-handlers.c:
17270 (gnome_vfs_mime_application_copy): New function
17271 (gnome_vfs_mime_application_free): Supplied implementation.
17272 (gnome_vfs_mime_application_list_free),
17273 (gnome_vfs_mime_component_list_free): New functions.
17275 2000-05-31 Gene Z. Ragan <gzr@eazel.com>
17277 Work in progress for the modified Files and Programs
17278 capplet that is relacing the old mime types capplet
17279 in the Gnome Control Center.
17281 * mime-type-capplet/Makefile.am:
17282 Added link dependeny to libgnomevfs.
17284 * mime-type-capplet/edit-window.c:
17285 (add_extension), (remove_extension):
17286 Rename functions to be more coherent.
17288 (initialize_main_win), (initialize_main_win_vals):
17289 Modified functions to remove dialog items
17290 that are obsolete in our new designs. Added new
17291 items such as the application and component menus.
17293 (populate_application_menu),
17294 (populate_component_menu), (application_menu_activate):
17295 Application menu functions that list the short
17296 list of applications for a mime type and allow a user
17297 to add applications to the short list.
17299 (add_application), (show_file_selector):
17300 Menu callback and function to display GtkFileSelection to
17301 allow user to locate an application to be associated with
17304 * mime-type-capplet/mime-data.c:
17305 (add_new_mime_type):
17306 Modified functions for new mime APIs.
17308 * mime-type-capplet/new-mime-window.c: (launch_new_mime_window):
17309 Modified functions for new mime APIs.
17311 * modules/file-method.c: (file_handle_new):
17312 Modified functions for new mime APIs.
17314 2000-05-31 Dan Winship <danw@helixcode.com>
17316 * data/mime/gnome-vfs-mime-magic:
17317 * data/mime/gnome-vfs.keys: application/postscript doesn't have an
17318 x-, the registered type for Word is application/msword, and word
17319 processing formats in general are application/*, not text/*
17320 (because text/ means you can read it raw if you have to). Also,
17321 make some descriptions more consistent, and sync some types
17322 between the files where they differed.
17324 2000-05-31 Pablo Saratxaga <pablo@mandrakesoft.com>
17326 * data/mime/gnome-vfs-mime-magic:
17327 * data/mime/gnome-vfs.mime:
17328 * data/mime/gnome-vfs.keys:
17329 add new mime types.
17332 2000-05-31 Ramiro Estrugo <ramiro@eazel.com>
17337 Now hook up the documentation generation up.
17339 2000-05-31 Ramiro Estrugo <ramiro@eazel.com>
17341 * devel-docs/.cvsignore:
17342 * devel-docs/Makefile.am:
17343 * devel-docs/gnome-vfs-mime-type-handling.txt:
17344 * devel-docs/gnome-vfs-tutorial/.cvsignore:
17345 * devel-docs/gnome-vfs-tutorial/Makefile.am:
17346 * devel-docs/gnome-vfs-tutorial/gnome-vfs-tutorial.sgml:
17347 * devel-docs/gnome-vfs/.cvsignore:
17348 * devel-docs/gnome-vfs/Makefile.am:
17349 * devel-docs/gnome-vfs/gnome-vfs-decl.txt:
17350 * devel-docs/gnome-vfs/gnome-vfs-docs.sgml:
17351 * devel-docs/gnome-vfs/gnome-vfs-sections.txt:
17352 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime-info.sgml:
17353 * devel-docs/gnome-vfs/tmpl/gnome-vfs-mime.sgml:
17354 * devel-docs/gnome-vfs/tmpl/libgnome-vfs.sgml:
17357 * man/gnome-vfs-mime.5.in:
17359 Import gnome mime documentation from gnome-libs so that it can be
17360 properly updated over here in gnome-vfs.
17362 2000-05-31 Maciej Stachowiak <mjs@eazel.com>
17364 * libgnomevfs/Makefile.am: Conditionally compile in oaf-based
17367 Complete bugzilla task #586 in a functional albeit somewhat
17368 hackish way that is in need of much code cleanup and some
17369 internals redesign.
17371 * libgnomevfs/gnome-vfs-mime-handlers.c
17372 (gnome_vfs_mime_get_short_list_applications,
17373 gnome_vfs_mime_get_short_list_components): Implemented.
17374 (gnome_vfs_mime_get_default_application,
17375 gnome_vfs_mime_get_all_applications): Updated to expect mime
17376 records to only point to app IDs, which point to app info in an
17378 (str_to_bool, join_str_list, strv_contains_str,
17379 extract_prefix_add_suffix, mime_type_get_supertype,
17380 strsplit_handle_null, gnome_vfs_mime_application_new_from_id,
17381 OAF_ServerInfo__copy, OAF_ServerInfoList_to_ServerInfo_g_list,
17382 process_app_list): New and modified helper functions.
17383 * test/test-mime-handlers.c (main): Add tests for short_list
17385 * data/mime/gnome-vfs.keys: More test data; fix for new data
17387 * data/mime/application-registry-hack.keys: Total hack using bogus
17388 mime types to create an application registry. Need a better
17389 solution than this long-term.
17390 * data/mime/Makefile.am: Install `application-registry-hack.keys'.
17392 2000-05-30 Pavel Cisler <pavel@eazel.com>
17394 * libgnomevfs/gnome-vfs-types.h:
17395 * libgnomevfs/gnome-vfs-xfer.c:
17396 (gnome_vfs_xfer_private):
17397 Removed some obsolete xfer options. Added new ones to make
17398 new copy engine functions not depend so much on subtle values
17399 of input source/target lists of items.
17401 * libgnomevfs/gnome-vfs-xfer.c:
17402 (gnome_vfs_new_directory_with_unique_name):
17403 Darin and mjs hated the old name.
17405 * libgnomevfs/gnome-vfs-xfer.c:
17406 (gnome_vfs_xfer_delete_items):
17407 New call to support a fallback delete for files that cannot be moved
17410 2000-05-30 Maciej Stachowiak <mjs@eazel.com>
17412 * libgnomevfs/gnome-vfs-mime-handlers.c:
17413 (gnome_vfs_mime_get_all_applications,
17414 gnome_vfs_mime_get_all_components): Implemented
17416 (gnome_vfs_mime_get_short_list_applications),
17417 (gnome_vfs_mime_get_short_list_components),
17419 (parse_app_lists, OAF_ServerInfoList_to_ServerInfo_g_list): New
17422 * test/test-mime-handlers.c: Expanded to test the all_applications
17423 and all_components calls.
17425 * libgnomevfs/gnome-vfs-init.c: (gnome_vfs_init): Fix oaf
17426 initialization to use a better dummy argv.
17428 * data/mime/gnome-vfs.keys: Added more test data.
17430 2000-05-30 Pavel Cisler <pavel@eazel.com>
17432 * libgnomevfs/gnome-vfs-xfer.c: (gnome_vfs_new_folder),
17433 (gnome_vfs_xfer_private):
17434 Add yet another flavor to the copy engine to allow creating
17437 * libgnomevfs-corba/gnome-vfs-async-ops.c:
17438 (corba_gnome_vfs_async_xfer):
17439 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
17440 (pthread_gnome_vfs_async_xfer):
17441 Get rid of an assert that no longer applies.
17443 2000-05-30 Maciej Stachowiak <mjs@eazel.com>
17445 * libgnomevfs/Makefile.am: Add OAF_CLAGS.
17446 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): oaf_init if it
17447 hasn't been done already.
17449 * libgnomevfs/gnome-vfs-mime-handlers.c
17450 (gnome_vfs_mime_get_default_action,
17451 gnome_vfs_mime_get_default_application,
17452 gnome_vfs_mime_get_default_component): Implemented more or less
17453 correctly (I hope).
17455 (extract_prefix_add_suffix, mime_type_get_supertype,
17456 OAF_ServerInfo__copy) : Helper functions cut & pasted from
17459 * test/test-mime-handlers.c: Test for gnome-vfs-mime-handlers API.
17460 * test/Makefile.am: Add the above to the build.
17462 * data/mime/gnome-vfs.keys: Put in some default
17463 ation/application/component data for testing purposes.
17465 2000-05-27 Pavel Cisler <pavel@eazel.com>
17467 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
17468 (gnome_vfs_job_slave_new), (gnome_vfs_thread_backend_shutdown),
17469 (gnome_vfs_debug_get_thread_count):
17470 Made gnome_vfs_thread_backend_shutdown work properly by adding the
17471 right call to yield to the gtk idle task that is needed to allow
17472 all the task callbacks to finish. This simplifies the application
17474 Tweaked some debugging messages.
17476 * libgnomevfs-pthread/gnome-vfs-job.c: (job_signal_ack_condition),
17477 (job_ack_notify), (job_notify), (gnome_vfs_job_finish_destroy),
17478 (gnome_vfs_job_prepare), (execute_load_directory_not_sorted),
17479 (execute_load_directory_sorted), (gnome_vfs_job_execute),
17480 (gnome_vfs_job_cancel):
17481 Added a cancel check to job_notify to make sure someone is still
17482 expecting a notification before we start notifying. Add checks
17483 to the return value of job_notify, bailing from all the calls
17485 Added the same check to execute_load_directory_not_sorted to make
17486 it bail out earlier during a cancel.
17487 When cancelling, signal to the possibly waiting job_ack_notify
17488 to make it give up waiting.
17489 Added a lot more debugging code to help me chase down the problems.
17491 * test/test-async-cancel.c: (stop_after_log), (make_asserts_break),
17492 (directory_load_callback), (yield), (test_load_directory_cancel),
17494 Made the test stop in the debugger during an assert.
17495 Added tests for load_directory cancellations.
17497 2000-05-27 Dan Winship <danw@helixcode.com>
17499 * libgnomevfs-corba/gnome-vfs-slave-notify.c
17500 (impl_Notify_open_as_channel): cast "struct sockaddr_un *"
17501 argument to connect to "struct sockaddr *".
17503 * libgnomevfs/gnome-vfs-private.h: Fix the getdelim prototype.
17505 2000-05-26 Maciej Stachowiak <mjs@eazel.com>
17507 * libgnomevfs/gnome-vfs-mime-handlers.h,
17508 libgnomevfs/gnome-vfs-mime-handlers.c: Add stub implementations
17509 for all functions. Add `gnome_vfs_mime_application_free' function.
17511 * libgnomevfs/Makefile.am: Add
17512 `libgnomevfs/gnome-vfs-mime-handlers.c' to the build.
17514 * libgnomevfs/gnome-vfs-mime-handlers.h: Add a "name" field to the
17515 GnomeVFSMimeApplication struct, as John and I discussed.
17517 * libgnomevfs/gnome-vfs-types.h: include <glib.h>, not jsut
17518 <glibconfig.h> (glibconfig is really supposed to be an internal
17521 2000-05-26 Gene Z. Ragan <gzr@eazel.com>
17523 All of the below is work in progress on the Files and Programs
17524 capplet. I am currently retro-fitting jrb's capplet to use
17525 our modified capplet layout and new gnome-vfs mime API.
17526 This capplet does not currently work properly, but does build and
17527 causes no harm if run.
17529 * mime-type-capplet/edit-window.c: (ext_remove), (apply_changes),
17530 (initialize_main_win), (initialize_main_win_vals),
17531 (launch_edit_window), (hide_edit_window), (show_edit_window),
17532 (populate_application_menu), (populate_component_menu):
17534 * mime-type-capplet/mime-data.c: (selected_row_callback),
17537 * mime-type-capplet/nautilus-mime-type.desktop:
17538 Changed entries so capplet would register itself as "Files and Programs"
17540 2000-05-26 John Sullivan <sullivan@eazel.com>
17542 * data/mime/gnome-vfs.keys: Added one more description.
17543 This had been sitting around on my disk for awhile but
17546 2000-05-26 Maciej Stachowiak <mjs@eazel.com>
17548 * libgnomevfs/gnome-vfs-mime-handlers.h: Header for upcoming mime
17550 * libgnomevfs/Makefile.am: Install the new header.
17552 2000-05-24 Pavel Cisler <pavel@eazel.com>
17554 * libgnomevfs/gnome-vfs-mime-magic.c:
17555 (gnome_vfs_sniff_buffer_looks_like_text):
17556 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
17557 * libgnomevfs/gnome-vfs-mime.c: (gnome_vfs_get_mime_type):
17558 Implement a simple version of the call. Rename to a better
17561 * libgnomevfs/gnome-vfs-mime.c:
17562 (gnome_vfs_get_mime_type_from_file_data):
17563 Add detecting text files.
17565 2000-05-24 Pavel Cisler <pavel@eazel.com>
17567 * data/mime/gnome-vfs-mime-magic:
17568 Add a magic rule for rpm files.
17570 * libgnomevfs/gnome-vfs-file-info.c:
17571 (gnome_vfs_file_info_matches):
17572 Fix a bug that would make the routine fail most of the times.
17574 * libgnomevfs/gnome-vfs-mime-magic.c:
17575 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
17576 * libgnomevfs/gnome-vfs-mime-sniff-buffer-private.h:
17577 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
17578 * libgnomevfs/gnome-vfs-mime.c:
17579 (handle_seek_glue), (handle_read_glue),
17580 (gnome_vfs_mime_sniff_buffer_new_from_handle),
17581 (gnome_vfs_mime_sniff_buffer_new_generic),
17582 (gnome_vfs_mime_sniff_buffer_get):
17583 Add callback vectors to mime shiff buffer to allow providing
17584 any seek and read calls to make it work on anything, not just
17585 GnomeVFSHandles. Reworked gnome_vfs_mime_sniff_buffer_get to
17586 use the callback vectors.
17587 Rewrite gnome_vfs_mime_sniff_buffer_new_from_handle to use the
17590 * libgnomevfs/gnome-vfs-mime.c:
17591 * libgnomevfs/gnome-vfs-module-shared.c:
17592 (gnome_vfs_mime_type_from_mode),
17593 (gnome_vfs_get_special_mime_type),
17594 (libgnomevfs/gnome-vfs-module-shared.h):
17595 Move the routine close to an existing call that has similar logic.
17597 * modules/file-method.c:
17601 2000-05-24 Ramiro Estrugo <ramiro@eazel.com>
17603 * mime-type-capplet/.cvsignore,
17604 mime-type-capplet/Makefile.am
17605 mime-type-capplet/mime-type-capplet.c
17606 mime-type-capplet/mime-type.desktop
17607 mime-type-capplet/nautilus-mime-type-capplet.c
17608 mime-type-capplet/nautilus-mime-type.desktop:
17609 Rename the 'mime-type' capplet to 'nautilus-mime-capplet' to avoid
17610 clobbering the control-center's one.
17612 2000-05-23 Maciej Stachowiak <mjs@eazel.com>
17614 * libgnomevfs/gnome-vfs-uri.c (get_method_string): Allow digits,
17615 `+', `-' and `.' in the uri scheme name.
17617 2000-05-23 Pavel Cisler <pavel@eazel.com>
17619 * libgnomevfs/gnome-vfs-mime-magic.c:
17620 * libgnomevfs/gnome-vfs-mime-magic.h:
17621 * libgnomevfs/gnome-vfs-mime.c:
17622 * libgnomevfs/gnome-vfs-mime.h:
17623 (gnome_vfs_mime_try_one_magic_pattern), (gnome_vfs_get_mime_type_for_buffer),
17624 (gnome_vfs_mime_magic_db_load), (gnome_vfs_mime_get_magic_table),
17625 (gnome_vfs_mime_type_from_magic), (gnome_vfs_get_special_mime_type),
17626 (gnome_vfs_get_mime_type_from_name_internal),
17627 (gnome_vfs_get_mime_type_from_name), (gnome_vfs_get_mime_type),
17628 (gnome_vfs_get_mime_type_from_file_data), (gnome_vfs_get_mime_type_for_data),
17629 (gnome_vfs_get_sniff_buffer_looks_like_text):
17630 Add new magic MIME sniffing APIs that can work on a URI as well as
17631 on an in-memory buffer. Fix the broken use of mask.
17632 Fix a bug where octal numbers were not parsed properly -- pretty much
17633 half the rules that used octal numbers never worked. Make the
17634 loading of the MIME-magic entry database thread-safe. Change the
17635 MIME-type lookup sequence for the default call.
17637 * libgnomevfs/Makefile.am:
17638 * libgnomevfs/gnome-vfs-mime-sniff-buffer.h:
17639 * libgnomevfs/gnome-vfs-mime-sniff-buffer.c:
17640 Lazy-reading buffer that can wrap either a file or a memory buffer
17641 and that is passed to the new magic MIME type sniffing calls.
17643 * libgnomevfs/gnome-vfs-mime-magic.c:
17645 Fix a bug Darin helped me find where uppercase hex numbers weren't
17646 converted properly.
17648 * libgnomevfs/gnome-vfs-mime-magic.c:
17650 Fix a bug where octal numbers were not parsed properly -- pretty much
17651 half the rules that used octal numbers never worked.
17653 * data/mime/gnome-vfs-mime-magic:
17654 Re-did the whole file. We'll add more entries in the future,
17655 for now start with a good set of magic rules that are correct
17656 and that are for file types you are actually likely see on your
17657 machine. Ordered the rules such that the more-ambiguous ones
17658 are at the end of the file to minimize the chance of getting
17659 false positive. Fixed a number of incorrect rules in some of
17660 the entries I kept from the old file.
17662 * test/Makefile.am:
17663 * test/test-mime.c:
17664 New testing tool to test the new MIME-magic sniffing routines.
17665 In addition to testing the main gnome_vfs_get_mime_type allows
17666 testing magic-only MIME sniffing (good for verifying that
17667 a new magic entry is correct) and suffix-only MIME sniffing.
17669 2000-05-23 Ramiro Estrugo <ramiro@eazel.com>
17672 Removed -lgnomevfs from CAPPLET_LIBS.
17674 2000-05-23 Ramiro Estrugo <ramiro@eazel.com>
17678 * mime-type-capplet/.cvsignore:
17679 * mime-type-capplet/Makefile.am:
17680 * mime-type-capplet/edit-window.c,
17681 * mime-type-capplet/edit-window.h,
17682 * mime-type-capplet/mime-data.c,
17683 * mime-type-capplet/mime-data.h,
17684 * mime-type-capplet/mime-info.c,
17685 * mime-type-capplet/mime-info.h,
17686 * mime-type-capplet/mime-type-capplet.c,
17687 * mime-type-capplet/mime-type.desktop,
17688 * mime-type-capplet/new-mime-window.c,
17689 * mime-type-capplet/new-mime-window.h:
17690 Copy mime-type capplet from the control-center so that it can be
17691 improved and made to use gnome-vfs.
17693 This has the unfortunate side-effect of introducing a dependency
17694 on libcapplet. This is temporary until the capplet can move back
17695 to the control-center. At that time, the control-center will
17696 depend on gnome-vfs and eveyone will live happily ever after.
17698 2000-05-19 Pavel Cisler <pave@eazel.com>
17700 * libgnomevfs-pthread/gnome-vfs-job.c:
17701 * libgnomevfs-pthread/gnome-vfs-job.h:
17702 (dispatch_job_callback), (serve_channel_write),
17703 (gnome_vfs_job_new): Fixed up the rest of the g_io_channel_read
17704 calls to prevent them from returning without reading any input
17705 when a thread is signalled. Added more debugging code.
17707 2000-05-19 Pavel Cisler <pave@eazel.com>
17709 * libgnomevfs-pthread/gnome-vfs-job.c:
17710 (dispatch_job_callback): Handle a bug where g_io_channel_read
17711 would sometimes return with an error and without any characters
17712 read, failing to synchronize with the slave thread. I need to
17713 figure out why this is happening (probably a race condition in
17714 the g_io_channel setup code) for now added code that forces the
17715 read to be repeated.
17716 Fixes a problem Ettore and Andy were running into.
17718 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
17719 * libgnomevfs-pthread/gnome-vfs-job.c:
17720 * libgnomevfs-pthread/gnome-vfs-job.h:
17721 Clean up debugging code a ton.
17723 2000-05-19 Darin Adler <darin@eazel.com>
17725 * modules/file-method.c: (set_mime_type): Fixed to get the fast
17726 type if the slow type returns NULL.
17728 * modules/pipe-method.c: Got rid of commented out copy of
17729 set_mime_type, since it will just get out of sync. with the real
17732 2000-05-19 Darin Adler <darin@eazel.com>
17734 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new): There was
17735 a bug in the change to free method_string. This should fix it.
17737 * libgnomevfs/gnome-vfs.h: Fixed a FIXME.
17738 * test/gnome-file-selection/Makefile.am: Fixed a FIXME.
17740 2000-05-19 Maciej Stachowiak <mjs@eazel.com>
17742 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new): Actually, now
17743 it looks like Rebecca's change had nothing to do with the problem
17744 I'm seeing, so I'm reverting my change.
17746 * libgnomevfs/gnome-vfs-uri.c: (gnome_vfs_uri_new): Commented out
17747 Rebecca's memory leak fix for now; it looks correct to me but it
17748 must be triggering some other bug because it makes Nautilus do
17749 strange things for me and others.
17751 2000-05-18 Rebecca Schulman <rebecka@eazel.com>
17753 * libgnomevfs/gnome-vfs-uri.c
17754 Fixed a memory leak in gnome_vfs_uri_new. (method_string
17755 sometime was never freed)
17757 2000-05-18 Maciej Stachowiak <mjs@eazel.com>
17759 * data/mime/gnome-vfs-mime-magic: Replaced mime type of "X pixmap
17760 image text" to "image/x-xpm".
17762 2000-05-17 Pavel Cisler <pavel@eazel.com>
17764 * libgnomevfs/gnome-vfs-uri.c:
17765 * libgnomevfs/gnome-vfs-uri.h:
17766 (gnome_vfs_uri_is_parent):
17767 Added a new utility call.
17769 * libgnomevfs/gnome-vfs-uri.c:
17771 Fixed it up to treat NULL and "" the same and cleaning it up.
17772 This fixes a bug in gnome_vfs_uri_equal making it fail on
17773 URIs that should have been evaluated as equal.
17775 * libgnomevfs/gnome-vfs-xfer.c:
17777 Fix a bug where in some cases the error callback would get called
17778 without the names of the files it failed on.
17780 2000-05-17 John Sullivan <sullivan@eazel.com>
17782 * data/mime/gnome-vfs.keys:
17783 Added application/x-asp
17785 2000-05-16 Gene Z. Ragan <gzr@eazel.com>
17787 * libgnomevfs/gnome-vfs-uri.c:
17788 Reverted due to accidental check-in during last commit.
17790 2000-05-16 Gene Z. Ragan <gzr@eazel.com>
17792 * test/gnome-file-selection/main.c: #include
17793 "libgnomevfs/gnome-vfs.h", not "gnome-vfs.h".
17795 2000-05-16 Ettore Perazzoli <ettore@helixcode.com>
17797 * test/gnome-file-selection/gnome-file-selection.c: #include
17798 "libgnomevfs/gnome-vfs.h", not "gnome-vfs.h".
17800 * test/gnome-file-selection/Makefile.am (INCLUDES): Replace
17801 `-I$(top_srcdir)/libgnomevfs' with `-I$(top_srcdir)'.
17803 2000-05-16 Ettore Perazzoli <ettore@helixcode.com>
17805 * libgnomevfs/gnome-vfs-mime-info.c (language_level): Correctly
17806 cast the `void *' pointer before passing to `strcmp()'. Also,
17807 made const-safe and re-indented a bit.
17809 2000-05-16 Ian McKellar <yakk@yakk.net.au>
17811 * modules/newftp-method.c:
17814 2000-05-16 Ian McKellar <yakk@yakk.net.au>
17816 * modules/Makefile.am:
17817 * modules/default-modules.conf:
17818 * modules/newftp-method.c:
17819 * modules/newftp-method.h:
17820 New FTP method. It doesn't currently work with Netpresenz servers, but
17821 it is thread safe. Play with it, break it, mail me the addresses of FTP
17822 servers that don't work. This is a complete reimplementation, so I've
17823 left the old ftp-method in cvs as a reference.
17825 * test/test-info.c: (main):
17826 Accept multiple URIs on the command line.
17828 2000-05-11 Pavel Cisler <pavel@eazel.com>
17830 * libgnomevfs/gnome-vfs-xfer.c:
17831 (gnome_vfs_xfer_uri_internal):
17832 Fix bug 435: gnome_vfs_async_xfer does not report errors that
17833 Darin was running into.
17835 2000-05-11 Pavel Cisler <pavel@eazel.com>
17837 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
17838 Add debugging code to help me fix deadlocks caused by gnome vfs
17839 not shutting down properly.
17841 * libgnomevfs-pthread/gnome-vfs-job.c:
17842 Make the JOB_DEBUG debugging print atomic.
17844 * libgnomevfs/gnome-vfs-backend.h:
17845 * libgnomevfs/gnome-vfs-backend.c:
17846 * libgnomevfs/gnome-vfs-init.h:
17847 * libgnomevfs/gnome-vfs-init.c:
17848 * libgnomevfs-pthread/gnome-vfs-job-slave.c:
17849 * libgnomevfs-pthread/gnome-vfs-job-slave.h:
17850 (gnome_vfs_thread_backend_shutdown),
17851 (gnome_vfs_debug_get_thread_count):
17852 Add a call that will allow apps to synchronize with the slave threads
17853 that are finishing up.
17855 2000-05-10 Dan Winship <danw@helixcode.com>
17857 * data/mime/gnome-vfs.keys: Add message/* and multipart/* mime
17858 types. They aren't useful for identifying files, but they may be
17859 useful for mail programs, and it would be dumb to have a separate
17860 MIME type database for that. Also fix up some descriptions, add
17861 some more types, and remove text/vnd.latex-z, because it's not
17862 what you think (and not useful).
17864 * data/mime/gnome-vfs.mime: Sync.
17866 2000-05-09 Pavel Cisler <pavel@eazel.com>
17868 * libgnomevfs/gnome-vfs-gen-mimedb: Removed from CVS.
17869 Oops, checked this in by accident.
17871 2000-05-09 Pavel Cisler <pavel@eazel.com>
17873 * libgnomevfs-pthread/gnome-vfs-job.c:
17875 Add a missing job_close that was triggering an assert for
17876 various file system operations.
17878 2000-05-09 Pavel Cisler <pavel@eazel.com>
17880 * libgnomevfs-pthread/gnome-vfs-job.c:
17881 (job_oneway_notify):
17882 Handle the case where job_oneway_notify gets called from
17883 gnome_vfs_job_destroy properly - the current_op is NULL
17884 but we may still have a pending notify_op.
17886 * libgnomevfs-pthread/gnome-vfs-job.c:
17887 (gnome_vfs_job_cancel):
17888 Fix a crash during cancellation - the call was dereferencing
17889 a null job when cancelling.
17891 2000-05-08 Darin Adler <darin@eazel.com>
17893 A fix for canceling. Cancels can still be done until the caller
17894 is notified, even if the work is done.
17896 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_cancel):
17897 Allow the caller to cancel a task even if we are done with it.
17898 * test/test-async-cancel.c: (test_get_file_info): Tweak message.
17900 2000-05-08 Darin Adler <darin@eazel.com>
17902 Another cut at fixing the pthread back end for GNOME VFS.
17904 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
17905 (pthread_gnome_vfs_async_cancel),
17906 (pthread_gnome_vfs_async_open_uri), (pthread_gnome_vfs_async_open),
17907 (pthread_gnome_vfs_async_open_uri_as_channel),
17908 (pthread_gnome_vfs_async_open_as_channel),
17909 (pthread_gnome_vfs_async_create_uri),
17910 (pthread_gnome_vfs_async_create),
17911 (pthread_gnome_vfs_async_create_as_channel),
17912 (pthread_gnome_vfs_async_close), (pthread_gnome_vfs_async_read),
17913 (pthread_gnome_vfs_async_write),
17914 (pthread_gnome_vfs_async_get_file_info),
17915 (pthread_gnome_vfs_async_load_directory),
17916 (pthread_gnome_vfs_async_load_directory_uri),
17917 (pthread_gnome_vfs_async_xfer),
17918 (pthread_gnome_vfs_async_add_status_callback),
17919 (pthread_gnome_vfs_async_remove_status_callback):
17920 Changed to use the separate op structure so we can support starting
17921 a new operation before we have notified about the last one.
17923 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
17924 Re-enabled destroying the GnomeVFSJob objects, although the actual
17925 destroying takes place on the main thread after a subsequent notify.
17926 (gnome_vfs_job_slave_new), (gnome_vfs_job_slave_destroy),
17927 (pthread_gnome_vfs_debug_get_thread_count):
17928 Added thread count interface for testing and debugging.
17930 * libgnomevfs-pthread/gnome-vfs-job.h:
17931 * libgnomevfs-pthread/gnome-vfs-job.c: (job_oneway_notify),
17932 (job_notify), (dispatch_open_callback), (dispatch_create_callback),
17933 (dispatch_open_as_channel_callback),
17934 (dispatch_create_as_channel_callback), (dispatch_close_callback),
17935 (dispatch_read_callback), (dispatch_write_callback),
17936 (dispatch_load_directory_callback),
17937 (dispatch_get_file_info_callback), (dispatch_xfer_callback),
17938 (close_callback), (handle_cancelled_open), (dispatch_job_callback),
17939 (gnome_vfs_job_new), (gnome_vfs_job_destroy),
17940 (gnome_vfs_job_finish_destroy), (gnome_vfs_op_destroy),
17941 (gnome_vfs_job_release_current_op),
17942 (gnome_vfs_job_release_notify_op), (gnome_vfs_job_prepare),
17943 (serve_channel_read), (execute_open), (execute_open_as_channel),
17944 (execute_create), (execute_create_as_channel), (execute_close),
17945 (execute_read), (execute_write),
17946 (execute_load_directory_not_sorted),
17947 (execute_load_directory_sorted), (execute_get_file_info),
17948 (execute_load_directory), (xfer_callback), (execute_xfer),
17949 (gnome_vfs_job_execute), (gnome_vfs_job_cancel):
17950 Changed to use the separate op structure so we can support starting
17951 a new operation before we have notified about the last one. Also added
17952 code to handle the case of an open that's cancelled after the file is
17953 opened, but before the callback has been called.
17955 * libgnomevfs/gnome-vfs-backend.c:
17956 (gnome_vfs_debug_get_thread_count): Added thread count interface for
17957 testing and debugging.
17959 * libgnomevfs/gnome-vfs-utils.h:
17960 * libgnomevfs/gnome-vfs-utils.c: (gnome_vfs_file_size_to_string),
17961 (gnome_vfs_escape_string), (gnome_vfs_ascii_hex_to_char),
17962 (gnome_vfs_unescape_string): Remove the "_ht" and HT from the names.
17965 * test/Makefile.am:
17966 * test/test-async-cancel.c: (get_free_file_descriptor_count),
17967 (get_used_file_descriptor_count), (wait_for_boolean),
17968 (wait_until_vfs_threads_gone),
17969 (wait_until_vfs_threads_gone_no_main),
17970 (wait_until_file_descriptors_gone), (test_failed),
17971 (get_file_info_callback), (first_get_file_info),
17972 (test_get_file_info), (file_open_callback), (file_close_callback),
17973 (file_read_callback), (test_open_read_cancel_close),
17974 (test_open_cancel), (main):
17975 Added a new test, test-async-cancel. This one is run as part of make
17976 check and it checks for all the problems I was trying to fix.
17978 * configure.in: Turned on -Werror for all directories. Also turned
17979 on extra warnings like in Nautilus.
17980 * libgnomevfs/gnome-vfs-parse-ls.c: (finduid), (findgid):
17982 * test/gnome-file-selection/gnome-file-selection.c: Fixed a warning.
17984 * libgnomevfs-corba/Makefile.am:
17985 * libgnomevfs-pthread/Makefile.am:
17986 * libgnomevfs/Makefile.am:
17987 * modules/Makefile.am:
17988 Took out now-unnecessary $(WERROR) lines.
17990 2000-05-08 Ettore Perazzoli <ettore@helixcode.com>
17992 * libgnomevfs-corba/Makefile.am: Don't use `GNOME_CFLAGS'.
17994 2000-05-08 Pavel Cisler <pavel@eazel.com>
17996 * libgnomevfs/gnome-vfs-xfer.c:
17998 Fix it to return a correct value.
18000 2000-05-07 Maciej Stachowiak <mjs@eazel.com>
18002 * libgnomevfs/gnome-vfs-backend.c
18003 (report_failure_get_file_info_callback),
18004 libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_empty_trash): Fixed
18005 some uninitialized variable warnings.
18007 2000-05-07 Maciej Stachowiak <mjs@eazel.com>
18009 * data/mime/gnome-vfs-mime: Fixed some of the broken mime types.
18011 2000-05-07 Pavel Cisler <pavel@eazel.com>
18013 * gnome-vfs/configure.in:
18014 * libgnomevfs/Makefile.am:
18015 * libgnomevfs-corba/Makefile.am:
18016 * libgnomevfs-pthread/Makefile.am:
18017 * modules/Makefile.am:
18018 * test/Makefile.am:
18019 Turn on a flag to treat warnings as errors. This would have caught
18020 the two bugs I fixed in my previous checkin.
18022 * libgnomevfs/gnome-vfs-mime-info.c:
18023 * libgnomevfs/gnome-vfs.h:
18024 * modules/extfs-method.c:
18025 * test/test-async-directory.c:
18026 Fix all warnings in gnome-vfs.
18028 2000-05-07 Pavel Cisler <pavel@eazel.com>
18030 * modules/translate-method.c: (tr_args_parse):
18031 Fixed the translate module that got broken recently.
18032 (b_strcasecmp->g_strcasecmp). This broke viewing
18033 man pages, etc. in Nautilus.
18035 * modules/translate-method.c: (tr_do_find_directory):
18036 Fixed an obvious bug in parameter passing that was
18037 triggering a warning.
18039 2000-05-06 Darin Adler <darin@eazel.com>
18041 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
18042 Turned off the call to gnome_vfs_destroy, reintroducing the
18043 leak. Hopefully this makes things work again, but the leak
18044 is back until I get a real fix.
18046 * libgnomevfs/gnome-vfs-context.h: Fixed a typo in the macro
18047 that made it work only on variables named "context".
18049 2000-05-05 Darin Adler <darin@eazel.com>
18051 * libgnomevfs-pthread/gnome-vfs-job.c: (gnome_vfs_job_destroy):
18052 Oops. One loose end. Gotta avoid a little race condition.
18054 2000-05-05 Darin Adler <darin@eazel.com>
18056 Fixed the leak of a ton of objects and 4 file descriptors for
18059 * libgnomevfs-pthread/gnome-vfs-job-slave.c: (thread_routine):
18060 Destroy jobs when we are done with them.
18062 * libgnomevfs-pthread/gnome-vfs-job.c: (dispatch_close_callback):
18063 Took out the bogus call to destroy the job in here.
18064 (dispatch_job_callback): Added logic to get rid of the callback
18065 when we are done with it. Since there's no remove call, we need
18066 to send an additional notify just to get the call to remove
18068 (gnome_vfs_job_new): Initialize want_notify_ack which had a
18069 random value in the old code. Also initialize the new "done"
18070 flag which is used to kill the above callback.
18071 (gnome_vfs_job_destroy): Got rid of bogus code in here that
18072 acquired the access lock, since this is only called from code
18073 that already has it. Added a call to job_notify so the callback
18074 can release itself. Removed the call to cancel the slave since
18075 the job is destroyed by the slave. Uncommented the code to free
18076 the execution condition, since that was an artifact of the old
18077 bad way the code was structured.
18078 * libgnomevfs-pthread/gnome-vfs-job.h: Added the "done" field.
18080 * libgnomevfs/.cvsignore: Ignore gnome-vfs-gen-mimedb.
18082 2000-05-05 John Sullivan <sullivan@eazel.com>
18084 * libgnomevfs/gnome-vfs-gen-mimedb: Removed from CVS. This
18085 is a generated file and I shouldn't have checked it in earlier.
18087 * libgnomevfs/gnome-vfs-mime-info.h,
18088 * libgnomevfs/gnome-vfs-mime-info.c:
18089 (gnome_vfs_mime_program_list), (gnome_vfs_mime_program_name_list),
18090 (gnome_vfs_mime_program_name_list_free): Removed these
18091 list-based functions with Miguel's blessing. They shouldn't
18092 have gotten into the old gnome-mime.c, and they're not
18093 needed for Nautilus or apparently anything else.
18094 * libgnomevfs/gnome-vfs-mime.h,
18095 * libgnomevfs/gnome-vfs-mime.c:
18096 Added #include <time.h> to shut up warning.
18097 (gnome_vfs_mime_type_list), (gnome_vfs_mime_type_list_or_default),
18098 (gnome_vfs_mime_type_list_of_file),
18099 (gnome_vfs_mime_type_list_or_default_of_file): Removed these
18100 list-based functions with Miguel's blessing. They shouldn't
18101 have gotten into the old gnome-mime.c, and they're not
18102 needed for Nautilus or apparently anything else.
18104 2000-05-03 Pavel Cisler <pavel@eazel.com>
18106 * libgnomevfs/gnome-vfs-xfer.c (remove_file), (remove_directory),
18107 (gnome_vfs_xfer_empty_trash), (gnome_vfs_xfer_uri_internal):
18108 Make emptying Trash update the progress_info structure properly
18109 to allow the progress dialog to display the right numbers.
18111 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_uri_internal):
18112 Call progress with GNOME_VFS_XFER_PHASE_READYTOGO when emptying
18113 the Trash properly.
18115 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_private):
18118 2000-05-03 Dave Camp <campd@oit.edu>
18120 * modules/gconf-method.c (do_open):
18123 (do_open_directory):
18124 (do_close_directory):
18125 (do_read_directory):
18126 (do_get_file_info): Fixed prototypes to match the current gnome-vfs
18128 (MAKE_ABSOLUTE): Make sure there is no trailing '/', as gconf doesn't
18130 (directory_handle_new): Create a mutex for accessing the pairs.
18131 (directory_handle_destroy): Free the pair mutex.
18132 (set_mime_type_value): Change the mime-types.
18133 (set_stat_info_dir):
18134 (set_stat_info_value): Reflect changes in gnome-vfs api.
18135 (do_get_file_info):
18136 (do_open_directory): Perform locking for gconf accesses, and reflect
18138 (read_directory): Perform locking when accessing the pairs, and
18139 correctly free the gconf pairs.
18140 (vfs_module_init): Reflect gconf api changes, and initialize a mutex
18142 (vfs_module_shutdown): Free the gconf mutex.
18144 2000-05-03 Michael Meeks <michael@helixcode.com>
18146 * libgnomevfs/gnome-vfs-file-info.c: s/strcasecmp/g_strcasecmp/
18148 * modules/translate-method.c: s/strcasecmp/g_strcasecmp/,
18151 2000-05-02 John Sullivan <sullivan@eazel.com>
18153 * data/mime/gnome-vfs.mime:
18154 Added a bunch of MIME types that were in the 1.0 branch
18155 of gnome-libs but not in HEAD.
18157 * data/mime/gnome-vfs.keys:
18158 Added a few missing keys that people had run into, and
18159 put the icon for core files here so it doesn't need to
18160 be special-cased in Nautilus.
18162 2000-05-02 John Sullivan <sullivan@eazel.com>
18164 * data/mime/gnome-vfs.keys: Added description for
18167 2000-05-02 Dave Camp <campd@oit.edu>
18169 * libgnomevfs/gnome-vfs-ops.h (gnome_vfs_move_uri):
18170 * libgnomevfs/gnome-vfs-ops.h (gnome_vfs_move):
18171 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_move_uri):
18172 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_move): Renamed parameters,
18173 as the 'new' parameter was causing problems with C++ compilers.
18175 2000-05-02 John Sullivan <sullivan@eazel.com>
18177 * data/mime/gnome-vfs.mime: Alphabetized the mime types,
18178 and removed the duplicate entry for video/x-msvideo (avi)
18180 2000-05-02 John Sullivan <sullivan@eazel.com>
18182 Another step towards getting all the MIME handling code
18183 into gnome-vfs and out of gnome-libs. This step gets the
18184 data files and mime-magic stuff into gnome-vfs.
18186 * data/mime/gnome-vfs-mime-magic,
18187 * data/mime/gnome-vfs.mime,
18188 * data/mime/gnome-vfs.keys:
18189 New data files, cloned from "mime-magic", "gnome.mime",
18190 and "nautilus.keys", which these ones obviate.
18194 * data/.cvsignore:,
18195 * data/Makefile.am,
18196 * data/mime/.cvsignore,
18197 * data/mime/Makefile.am: New files -- build system fu to
18198 get the new data files installed in the right places
18200 * gnome-vfs.spec.in: Added new data files to RPM. Not sure
18201 I got this part right, will ask Ramiro about it.
18203 * libgnomevfs/gnome-vfs-gen-mimedb,
18204 * libgnomevfs/gnome-vfs-gen-mimedb.c: New files, copied
18205 over from gnome-libs. These are used so a tool can be
18206 called to compile the mime-magic data into a database form.
18207 * libgnomevfs/Makefile.am: Build system fu to handle
18208 gnome-vfs-gen-mimedb.
18210 * libgnomevfs/gnome-vfs-mime-info.c (mime_info_load): Use
18211 gnome-vfs.keys and skip gnome.keys if found.
18213 * libgnomevfs/gnome-vfs-mime-magic.c:
18214 (gnome_vfs_mime_magic_db_load): Use gnome-vfs-mime-magic.dat
18215 instead of mime-magic.dat.
18216 (gnome_vfs_mime_type_from_magic): Use gnome-vfs-mime-magic
18217 instead of mime-magic.
18219 * libgnomevfs/gnome-vfs-mime.c (mime_load): Use gnome-vfs.mime
18220 and skip gnome.mime if found.
18222 2000-05-01 John Sullivan <sullivan@eazel.com>
18224 First steps at the grand move-MIME-handling-code-to-
18227 * libgnomevfs/gnome-vfs-mime-info.c,
18228 * libgnomevfs/gnome-vfs-mime-info.h,
18229 * libgnomevfs/gnome-vfs-mime-magic.c,
18230 * libgnomevfs/gnome-vfs-mime-magic.h,
18231 * libgnomevfs/gnome-vfs-mime.c,
18232 * libgnomevfs/gnome-vfs-mime.h:
18233 New files, cloned from similarly-named ones in gnome-libs.
18234 I started with the HEAD versions of these files, which
18235 include some mime-list API that I'm not sure yet if we
18236 actually need (but is currently sitting there uncalled,
18237 so no biggie for now). All code should now start using
18238 these instead of the code in gnome-libs, which will
18239 eventually be obsoleted.
18241 * libgnomevfs/Makefile.am:
18242 Put these new files into the build.
18244 * modules/extfs-method.c (read_directory_list):
18245 * modules/file-method.c (set_mime_type):
18246 * modules/ftp-method.c (_ftpfs_read_directory), (fill_file_info):
18247 * modules/pipe-method.c (set_mime_type):
18248 * test/gnome-file-selection/gicon.c (gicon_get_icon_for_file_2):
18249 Update all callers in gnome-vfs to use the new gnome-vfs mime
18252 2000-05-01 Ian McKellar <yakk@yakk.net>
18254 * modules/ftp-method.c:
18255 (ftpfs_chdir_internal): Assume path=="" is equivalent to path=="/".
18256 (ftpfs_open_directory): Check return value of retrieve_dir.
18258 FTP URIs should now work. Miguel says that ftp-method needs to be made
18259 thread-safe, but I'm not sure how to do this.
18261 2000-04-26 Pavel Cisler <pavel@eazel.com>
18263 * libgnomevfs/gnome-vfs-xfer.c:
18264 (gnome_vfs_xfer_empty_trash):
18265 Set up progress phase properly. This fixes a problem with the
18266 progress dialog getting instantiated twice.
18268 * libgnomevfs/gnome-vfs-xfer.c:
18269 (remove_directory):
18270 Properly initialize and return result.
18273 2000-04-26 Darin Adler <darin@eazel.com>
18275 * gnome-vfs-private-ops.c:
18276 (gnome_vfs_open_uri_cancellable),
18277 (gnome_vfs_create_uri_cancellable), (gnome_vfs_close_cancellable),
18278 (gnome_vfs_read_cancellable), (gnome_vfs_write_cancellable),
18279 (gnome_vfs_seek_cancellable),
18280 (gnome_vfs_get_file_info_uri_cancellable),
18281 (gnome_vfs_get_file_info_from_handle_cancellable),
18282 (gnome_vfs_truncate_uri_cancellable),
18283 (gnome_vfs_truncate_handle_cancellable),
18284 (gnome_vfs_make_directory_for_uri_cancellable),
18285 (gnome_vfs_find_directory_cancellable),
18286 (gnome_vfs_remove_directory_from_uri_cancellable),
18287 (gnome_vfs_unlink_from_uri_cancellable),
18288 (gnome_vfs_move_uri_cancellable),
18289 (gnome_vfs_check_same_fs_uris_cancellable),
18290 (gnome_vfs_set_file_info_cancellable):
18291 Changed these all so they will handle the case where the are
18292 cancelled before they even begin.
18294 2000-04-26 Darin Adler <darin@eazel.com>
18296 * libgnomevfs/gnome-vfs-job.c: (execute_get_file_info):
18297 Fixed bug that would result in a thread that never dies.
18299 2000-04-26 Pavel Cisler <pavel@eazel.com>
18301 * libgnomevfs/gnome-vfs-xfer.c
18302 Fix a crash caused by using the wrong call to free a uri_list.
18304 2000-04-26 Pavel Cisler <pavel@eazel.com>
18306 Added gnome_vfs_find_directory to return well known directories.
18307 For now only returns Trash.
18308 * libgnomevfs/gnome-vfs-find-directory.c:
18309 * libgnomevfs/gnome-vfs-find-directory.h:
18310 * libgnomevfs/gnome-vfs-private-ops.c:
18311 * libgnomevfs/gnome-vfs-private-ops.h:
18312 * libgnomevfs/gnome-vfs-private-types.h:
18313 * libgnomevfs/gnome-vfs-types.h:
18314 * libgnomevfs/Makefile.am:
18315 (gnome_vfs_find_directory_cancellable),
18316 (gnome_vfs_find_directory):
18317 Added gnome_vfs_find_directory to return well known directories.
18318 For now only returns Trash.
18320 * modules/file-method.c:
18321 * modules/translate-method.c:
18322 (do_find_directory), (tr_do_find_directory):
18323 Add support for find_directory.
18325 * modules/bzip2-method.c:
18326 * modules/extfs-method.c:
18327 * modules/ftp-method.c:
18328 * modules/gconf-method.c:
18329 * modules/gzip-method.c:
18330 * modules/http-method.c:
18331 * modules/pipe-method.c:
18332 Add empty support for find_directory to the remaining methods.
18334 * libgnomevfs/gnome-vfs-xfer.c:
18335 (remove_directory), (empty_directory), (remove_file),
18336 (directory_add_items_and_size), (calc_items_and_size),
18337 (gnome_vfs_xfer_empty_trash), (gnome_vfs_xfer_uri_internal),
18338 (libgnomevfs-corba/gnome-vfs-async-ops.c),
18339 (libgnomevfs-pthread/gnome-vfs-async-ops.c):
18340 Add support for emptying Trash (or any other list of directories).
18342 2000-04-26 Ian McKellar <yakk@yakk.net>
18344 Fixed bug #489 (http://bugzilla.eazel.com/show_bug.cgi?id=489)
18346 * modules/http-method.c: checked for handle==NULL in
18347 http_file_handle_destroy and http_handle_close.
18349 2000-04-25 Darin Adler <darin@eazel.com>
18351 Changed the async. get_file_info to do multiple files at a time.
18352 We don't even have a single-file version any more. We can always
18353 re-add it if it turns out to be useful.
18355 * idl/gnome-vfs-slave.idl:
18356 * libgnomevfs/gnome-vfs-async-ops.h:
18357 * libgnomevfs/gnome-vfs-backend.c
18358 (report_failure_get_file_info_callback),
18359 (report_failure_get_file_info), (gnome_vfs_async_get_file_info):
18360 * libgnomevfs/gnome-vfs-types.h:
18361 * libgnomevfs-corba/gnome-vfs-async-ops.c
18362 (gnome_vfs_uri_list_to_corba_uri_list),
18363 (corba_gnome_vfs_async_get_file_info):
18364 * libgnomevfs-corba/gnome-vfs-slave-notify.c
18365 (strdup_or_null), (impl_Notify_get_file_info):
18366 * libgnomevfs-corba/gnome-vfs-slave.c (impl_Request_get_file_info):
18367 * libgnomevfs-pthread/gnome-vfs-async-ops.c
18368 (pthread_gnome_vfs_async_get_file_info):
18369 * libgnomevfs-pthread/gnome-vfs-job.h:
18370 * libgnomevfs-pthread/gnome-vfs-job.c
18371 (dispatch_get_file_info_callback), (execute_get_file_info):
18372 Changed get_file_info to work for multiple files.
18374 * libgnomevfs/gnome-vfs-file-info.h:
18375 Removed gnome_vfs_file_info_destroy macro.
18376 * libgnomevfs/gnome-vfs-file-info.c:
18377 (gnome_vfs_file_info_list_ref), (gnome_vfs_file_info_list_unref),
18378 (gnome_vfs_file_info_list_copy), (gnome_vfs_file_info_list_free):
18379 Added utility functions for manipulating a GList that contains
18380 GnomeVFSFileInfo pointers in it.
18382 * libgnomevfs/gnome-vfs-uri.h:
18383 * libgnomevfs/gnome-vfs-uri.c:
18384 (gnome_vfs_uri_list_ref), (gnome_vfs_uri_list_unref),
18385 (gnome_vfs_uri_list_copy), (gnome_vfs_uri_list_free):
18386 Added utility functions for manipulating a GList that contains
18387 GnomeVFSURI pointers in it.
18389 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_unescape_string):
18391 * libgnomevfs-corba/gnome-vfs-corba.c (gnome_vfs_corba_init):
18393 * libgnomevfs-corba/gnome-vfs-slave.c (init_corba):
18394 Fixed a warning (bad OAF init call).
18395 * modules/http-method.c (do_write): Fixed a warning.
18396 * libgnomevfs-corba/gnome-vfs-slave.c (xfer_progress_callback):
18399 * modules/extfs-method.c (free_directory_entries):
18400 Replaced a lingering gnome_vfs_file_info_destroy with a call to
18401 gnome_vfs_file_info_unref.
18402 (do_open_directory): Got rid of #warning which was redundant with
18403 a FIXME. (We'll be making all FIXME into bug reports.)
18405 * modules/ftp-method.c (ftpfs_open_socket), (retrieve_file),
18406 (ftpfs_open), (ftpfs_create): Turned #warning into FIXME. (We'll
18407 be making all FIXME into bug reports.)
18408 (_ftpfs_read_directory): Fixed a bad bug where the mime type was
18409 filled in without g_strdup. Potential memory trasher.
18411 * libgnomevfs-corba/gnome-vfs-slave.c (load_directory_not_sorted):
18412 Replaced a lingering gnome_vfs_file_info_destroy with a call to
18413 gnome_vfs_file_info_unref.
18415 * libgnomevfs/gnome-vfs-backend.c
18416 (gnome_vfs_async_load_directory):
18417 * libgnomevfs/gnome-vfs-directory-list.c:
18418 * libgnomevfs/gnome-vfs-directory-list.h:
18419 (gnome_vfs_directory_list_load), (gnome_vfs_directory_list_load_from_uri):
18420 * libgnomevfs/gnome-vfs-directory.h:
18421 * libgnomevfs/gnome-vfs-directory.c (open_from_uri), (open),
18422 (gnome_vfs_directory_open), (gnome_vfs_directory_open_from_uri)
18423 (directory_visit_internal), (gnome_vfs_directory_visit_uri),
18424 (gnome_vfs_directory_visit),
18425 (gnome_vfs_directory_visit_files_at_uri),
18426 (gnome_vfs_directory_visit_files):
18427 * libgnomevfs/gnome-vfs-ops.h:
18428 * libgnomevfs/gnome-vfs-ops.c:
18429 (gnome_vfs_get_file_info), (gnome_vfs_get_file_info_uri),
18430 (gnome_vfs_get_file_info_from_handle):
18431 * libgnomevfs/gnome-vfs-private-ops.h:
18432 * libgnomevfs/gnome-vfs-private-ops.c:
18433 (gnome_vfs_get_file_info_uri_cancellable):
18434 (gnome_vfs_get_file_info_from_handle_cancellable):
18435 * libgnomevfs/gnome-vfs-private-utils.h:
18436 * libgnomevfs/gnome-vfs-private-utils.c
18437 (gnome_vfs_string_list_from_string_array)
18438 (gnome_vfs_forkexec),
18439 (gnome_vfs_process_run_cancellable):
18440 * libgnomevfs/gnome-vfs-process.h:
18441 * libgnomevfs/gnome-vfs-process.c (gnome_vfs_process_new):
18442 * libgnomevfs-corba/gnome-vfs-async-ops.c
18443 (corba_gnome_vfs_async_load_directory),
18444 (corba_gnome_vfs_async_load_directory_uri):
18445 * libgnomevfs-corba/gnome-vfs-slave-launch.c
18446 (gnome_vfs_slave_launch):
18447 * modules/extfs-method.c (do_open):
18448 * libgnomevfs-pthread/gnome-vfs-async-ops.c (copy_meta_keys),
18449 (pthread_gnome_vfs_async_get_file_info):
18450 Added const as needed.
18452 * libgnomevfs/gnome-vfs-cancellation.c:
18453 * libgnomevfs/gnome-vfs-context.c:
18454 * libgnomevfs/gnome-vfs-directory-filter.c:
18455 * libgnomevfs/gnome-vfs-directory-list.c:
18456 * libgnomevfs/gnome-vfs-directory.c:
18457 * libgnomevfs/gnome-vfs-directory.h:
18458 * libgnomevfs/gnome-vfs-file-info.h:
18459 * libgnomevfs/gnome-vfs-handle.c:
18460 * libgnomevfs/gnome-vfs-handle.h:
18461 * libgnomevfs/gnome-vfs-inet-connection.c:
18462 * libgnomevfs/gnome-vfs-iobuf.c:
18463 * libgnomevfs/gnome-vfs-messages.c:
18464 * libgnomevfs/gnome-vfs-private-types.h:
18465 * libgnomevfs/gnome-vfs-private.h:
18466 * libgnomevfs/gnome-vfs-regexp-filter.c:
18467 * libgnomevfs/gnome-vfs-shellpattern-filter.c:
18468 * libgnomevfs/gnome-vfs-types.h:
18469 * libgnomevfs/gnome-vfs-utils.h:
18470 * libgnomevfs-pthread/gnome-vfs-job.h:
18471 Got rid of leading underscores in many places where they were
18472 unnecessary and violate the ANSI C standard. There are still more.
18474 2000-04-25 Ettore Perazzoli <ettore@helixcode.com>
18476 * libgnomevfs-corba/Makefile.am: Use `OAF_CFLAGS' too to make sure
18477 we get the right `CFLAGS'.
18479 2000-04-20 Pavel Cisler <pavel@eazel.com>
18481 * libgnomevfs/gnome-vfs-xfer.c:
18483 Move the call_progress call after where the file was moved, that way the
18484 file is in guaranteed to be in it's final destination when the callback
18487 2000-04-19 Pavel Cisler <pavel@eazel.com>
18489 * libgnomevfs/gnome-vfs-file-info.c:
18490 * libgnomevfs/gnome-vfs-file-info.h:
18491 (gnome_vfs_file_info_matches):
18494 * libgnomevfs/gnome-vfs-xfer.c:
18495 Added a bunch of call_progress calls to ensure we can follow all
18496 the file system changes during a copy.
18498 2000-04-19 Pablo Saratxaga <pablo@mandrakesoft.com>
18500 * configure.in (ALL_LINGUAS): added Catalan
18502 2000-04-18 Pavel Cisler <pavel@eazel.com>
18504 Fixed two bugs Darin ran into.
18506 * libgnomevfs/gnome-vfs-xfer.c:
18507 (call_progress_with_current_names), (handle_error),
18508 (handle_overwrite):
18509 Made error/overwrite dialogs properly show the file that was being copied
18510 while an error ocurred.
18512 * libgnomevfs/gnome-vfs-xfer.c:
18513 (handle_name_conflicts):
18514 Add a way for the progress callback to find out if a single or multiple
18515 items ended up conflicting. That way the progress callback can determine
18516 if to add a Replace All option or not.
18518 * libgnomevfs/gnome-vfs-xfer.c:
18519 (gnome_vfs_xfer_private):
18520 Added a workaround for a bug that happens when the caller of the
18521 routine tries to handle a returned error by calling the progress
18522 callback -- the problem is that that at that point the progress
18523 could have already cleaned up after itself knwong that the copy
18524 operation is over and could have deleted it's user data.
18526 * libgnomevfs/gnome-vfs-xfer.c:
18527 * test/test-xfer.c:
18530 2000-04-18 Pavel Cisler <pavel@eazel.com>
18532 * libgnomevfs/gnome-vfs-xfer.c:
18534 Made the error return value get set to GNOME_VFS_OK after
18535 Skip is selected -- This caused gnome_vfs_xfer_private to
18536 return an unexpected error that execute_xfer didn't know how
18539 * libgnomevfs-pthread/gnome-vfs-job.c:
18541 Properly set up the dummy progress_info and progress_state
18542 structs used for reporting unexpexted error results returned
18543 by gnome_vfs_xfer_private.
18545 2000-04-18 Pavel Cisler <pavel@eazel.com>
18547 Fixed a bug in error reporting that I introduced in my
18550 * libgnomevfs/gnome-vfs-xfer.c:
18552 Set the progress_info->status value to the correct error value.
18554 Fix a bug in a retry case - the result value needs to get reset to
18555 GNOME_VFS_OK after Retry is selected.
18557 2000-04-17 Maciej Stachowiak <mjs@eazel.com>
18559 Work with either OAF or GOAD:
18561 * libgnomevfs-corba/gnome-vfs-corba.c,
18562 libgnomevfs-corba/gnome-vfs-salve.c: initialize appropriately for
18564 * libgnomevfs-corba/gnome-vfs-async-ops.c,
18565 libgnomevfs-corba/gnome-vfs-slave-notify.c,
18566 libgnomevfs-corba/gnome-vfs-slave-process.c: Remove gratuitous
18567 include of <libgnorba/gnorba.h>
18568 * libgnomevfs-corba/Makefile.am: Link against the appropriate
18569 choice of OAF or GNORBA.
18570 * configure.in, acconfig.h: Add --enable-oaf option and if used,
18573 2000-04-17 Pavel Cisler <pavel@eazel.com>
18575 Made it possible for the gnome-vfs async copy engine to have
18576 two kinds of progress callbacks - one that gets called every
18577 hundred milliseconds or when user response is required and one
18578 that gets called for every single copy operation primitive.
18579 The latter is not called in the context of the master process
18580 and is much lighterweight to invoke. Nautilus will be using
18581 this callback mechanism to queue up notification records during
18584 * libgnomevfs/gnome-vfs-async-ops.h:
18585 * libgnomevfs/gnome-vfs-backend.c:
18586 * libgnomevfs-corba/gnome-vfs-async-ops.c:
18587 * libgnomevfs-pthread/gnome-vfs-job.c:
18588 * libgnomevfs-pthread/gnome-vfs-job.h:
18589 (gnome_vfs_xfer_async), (corba_gnome_vfs_async_xfer),
18590 (pthread_gnome_vfs_async_xfer):
18591 Add optional sync callback and parameters. Pass the new
18594 * libgnomevfs/gnome-vfs-private-ops.h:
18595 * libgnomevfs/gnome-vfs-xfer.c:
18596 (gnome_vfs_xfer_private):
18597 Add new private common copy engine entry point.
18599 * libgnomevfs/gnome-vfs-private-types.h:
18600 * libgnomevfs/gnome-vfs-xfer.c:
18601 Add new GnomeVFSProgressCallbackState that contains the
18602 two callback, their user data, the timing logic for calling the
18603 update callback often.
18604 (handle_error), (remove_file), (remove_directory), (copy_file_data),
18605 (xfer_open_source), (xfer_create_target), (gnome_vfs_xfer_uri_internal),
18606 (gnome_vfs_xfer_uri), (gnome_vfs_xfer), (gnome_vfs_xfer_private)
18607 Rework xfer calls to pass around the new GnomeVFSProgressCallbackState
18610 * libgnomevfs/gnome-vfs-private-types.h:
18611 * libgnomevfs/gnome-vfs-xfer.c:
18612 (call_progress), (progress_set_source_target_uris),
18613 (progress_set_source_target_names), (init_progress),
18614 (call_progress_uri), (call_progress_often),
18615 (call_progress_with_uris_often):
18616 Reworked progress calls to use GnomeVFSProgressCallbackState.
18618 * libgnomevfs/gnome-vfs-types.h
18619 * libgnomevfs-corba/gnome-vfs-slave-notify.c:
18620 * libgnomevfs-corba/gnome-vfs-slave.c:
18621 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
18622 * test/test-xfer.c:
18623 Add new enum values so that progress callbacks can
18624 detect whether a copy, move or remove operations is being performed.
18625 Got rid of the GNOME_VFS_XFER_PHASE_XFERRING enum value.
18627 * gnome-vfs/libgnomevfs/gnome-vfs-xfer.h
18628 Got rid of an obsolete comment.
18630 2000-04-13 Darin Adler <darin@eazel.com>
18632 * libgnomevfs/gnome-vfs-async-ops.h:
18633 * libgnomevfs/gnome-vfs-backend.c:
18634 Changed the async. operations so they report their errors through
18635 the callbacks all the time instead of sometimes returning an error
18636 code immediately. This is more convenient for callers, although
18637 it's a bit more complex to implement.
18639 * libgnomevfs-pthread/gnome-vfs-async-ops.c
18640 (pthread_gnome_vfs_async_load_directory):
18641 * test/test-async-directory.c (main):
18642 * test/test-async.c (main):
18643 * test/test-channel.c (main):
18644 Fix callers so they no longer expect a result code.
18646 * .cvsignore: Another generated file to ignore.
18648 2000-04-12 Pavel Cisler <pavel@eazel.com>
18650 * libgnomevfs/gnome-vfs-xfer.c.c:
18651 (gnome_vfs_xfer_uri_internal), (count_items_and_size):
18652 Make the move operation properly preflight by only adding up
18653 the items to move nonrecursively.
18655 2000-04-11 Pavel Cisler <pavel@eazel.com>
18657 * libgnomevfs/gnome-vfs-xfer.c.c:
18658 (gnome_vfs_xfer_uri), (gnome_vfs_xfer_uri_internal),
18659 (handle_name_conflicts):
18660 Fixed problems with using "Skip" during a move/copy conflict.
18661 The first problem was that a skip flag wasn't being checked properly.
18662 The second, bigger problem, was that the handle_name_conflicts
18663 had no good way of telling the rest of the copy engine that
18664 a given file was skipped. Now it gets a copy of the source/
18665 targe item lists and optionally removes the items the user
18668 2000-04-11 John Sullivan <sullivan@eazel.com>
18670 * modules/file-method.c:
18671 (do_get_file_info): statbuf was passed to set_mime_type
18672 uninitialized. Fixed by passing &statbuf to get_stat_info,
18673 which was obviously the original intention.
18675 2000-04-11 Darin Adler <darin@eazel.com>
18677 * libgnomevfs/gnome-vfs-backend.c (gnome_vfs_async_create_uri):
18678 Added another missing async. cover routine.
18680 2000-04-06 Pavel Cisler <pavel@eazel.com>
18682 * libgnomevfs/gnome-vfs-xfer.c:
18683 * libgnomevfs/gnome-vfs-types.h:
18684 Fixed up the copy engine.
18685 Added an option to create duplicate items with the help of
18686 the progress_callback.
18687 Worked around a problem where calling progress_callback in async
18688 mode was causing context switches each time and degreaded performance.
18689 For now made it only call the callback every 200 ms for cases where
18690 response is not important. This will get reworked eventually.
18691 (progress_set_source_target_names), (progress_set_source_target_uris),
18692 (call_progress), (call_progress_uri), (call_progress_often),
18693 (call_progress_with_uris_often):
18694 Added a bunch of convenience calls for calling the progress callback.
18695 (gnome_vfs_visit_list):
18696 Convenience call to iterate a base uri and a list of name, similar to
18697 the visit directory calls.
18698 (count_items_and_size):
18699 New preflight call - calculates the sum and total size of copied files.
18700 Made all preflight operations call progress_info and be interruptible.
18701 (handle_name_conflicts):
18702 New preflight call - finds out if there are conflicts in the target
18703 destination and optionally prompts the user to remove them.
18704 (create_directory), (copy_directory), (gnome_vfs_xfer_uri):
18705 Reworked the copy engine to use a recursive directory copy instead
18706 one that first creates a flat list. This way the copy will be able to
18707 deal with directories being moved from under the copy operation
18709 (remove_file), (remove_directory):
18710 Call progress callback to make them interruptible, make remove_directory
18711 optionally recursive.
18713 * libgnomevfs-pthread/gnome-vfs-job.c:
18714 (xfer_callback):Fixed a bug where notify.progress_info was not being
18717 * libgnomevfs-pthread/gnome-vfs-job.c:
18718 * libgnomevfs-corba/gnome-vfs-slave.c:
18719 Renamed the GNOME_VFS_XFER_PHASE_UNKNOWN to GNOME_VFS_XFER_PHASE_INITIAL
18720 (the phase is always known and an initial phase was needed).
18722 2000-04-06 Ian McKellar <yakk@yakk.net>
18724 * modules/http-method.c:
18725 Added code to recognise stupid web servers that return an invalid
18726 reply to PROPFIND requests.
18728 2000-04-05 Darin Adler <darin@eazel.com>
18730 * libgnomevfs/gnome-vfs-xfer.c (fast_move): Fixed an infinite
18731 loop. (It even had a comment that said it was an infinite loop.)
18733 * libgnomevfs/gnome-vfs-seekable.c (init_seek): Got rid of \n
18736 2000-04-05 Ian McKellar <yakk@yakk.net>
18738 * modules/http-method.c:
18739 Added a create method, and fixed the write/close method so that
18740 Nautilus can successfully store metafiles, and so writing to WebDAV
18741 repositories will work in the future.
18743 2000-04-04 Andy Hertzfeld <andy@eazel.com>
18745 * libgnomevfs/gnome-vfs-uri.c:
18746 fixed critical assertion that Nautilus was encountering using
18747 non-filesystem uris by making sure the uri was reference before
18750 2000-04-04 Ian McKellar <yakk@yakk.net>
18752 * modules/http-method.c:
18753 Fixed WebDAV directory code to remove leading "/" from filenames.
18755 2000-03-29 Darin Adler <darin@eazel.com>
18757 * libgnomevfs/gnome-vfs-directory.c (open_from_uri):
18758 Use CHECK_IF_SUPPORTED macro to be consistent with the rest of the file.
18760 * libgnomevfs/gnome-vfs-private-ops.c:
18761 (gnome_vfs_open_uri_cancellable), (gnome_vfs_create_uri_cancellable),
18762 (gnome_vfs_set_file_info_cancellable):
18763 Added missing checks for NULL in the module. The rest of the operations
18764 had checks for NULL.
18766 * libgnomevfs/gnome-vfs-uri.c:
18767 (gnome_vfs_uri_is_local): Check for a NULL is_local pointer. Unlike the
18768 other operations, for this one it's illegal to be NULL since there is
18769 no way to return the NOTSUPPORTED error code.
18771 * test/.cvsignore: Missing file.
18773 2000-03-28 Pavel Cisler <pavel@eazel.com>
18775 * libgnomevfs/gnome-vfs-xfer.c:
18776 (move_file): initialize "skip" properly.
18778 * libgnomevfs/gnome-vfs-uri.c:
18779 (gnome_vfs_uri_get_parent): strip trailing slashes. Handle
18780 multiple slashes properly.
18782 * libgnomevfs-pthread/gnome-vfs-job.c:
18783 (execute_xfer): pass the proper job structure.
18785 * libgnomevfs-pthread/gnome-vfs-async-ops.c:
18786 (pthread_gnome_vfs_async_xfer): pass the proper job type selector.
18788 2000-03-28 John Sullivan <sullivan@eazel.com>
18790 (gnome_vfs_uri_extract_short_name): Check for empty-string
18791 host name as well as NULL.
18793 2000-03-28 John Sullivan <sullivan@eazel.com>
18797 (gnome_vfs_uri_extract_short_name): Made this function return the
18798 host name (if any) when there's no path. Formerly it just returned
18800 (gnome_vfs_uri_extract_short_path_name): New function, really a
18801 renaming of the old gnome_vfs_uri_extract_short_name. There are those
18802 who argue that this should be renamed extract_basename and the current
18803 get_basename (which doesn't handle trailing path separators according
18804 to XPG spec) should be abolished.
18806 2000-03-25 Yukihiro Nakai <nakai@gnome.gr.jp>
18808 * configure.in: Added Japanese translation from Akira Tagoh.
18810 2000-03-20 Pablo Saratxaga <pablo@mandrakesoft.com>
18812 * configure.in,po/lt.po: Added Lithuanian language file
18814 2000-03-13 Elliot Lee <sopwith@redhat.com>
18816 * modules/Makefile.am: Finish the help-method move. Move module-shared stuff to
18818 * libgnomevfs/Makefile.am: Install our "private" headers for use by modules.
18820 * modules/http-method.c: #if 0 debug messages.
18821 * libgnomevfs/gnome-vfs-uri.c: Fix split_toplevel_uri for URIs with a hostname but no path.
18822 * modules/Makefile.am: Move help-method over to nautilus.
18824 2000-03-10 Ian McKellar <yakk@yakk.net>
18826 * modules/http-method.c
18827 Added made do_get_file_info* understand WebDAV servers.
18828 Also, made WebDAV collections return the mime-type special/webdav-directory.
18830 2000-03-10 Pavel Machek <pavel@artax.karlin.mff.cuni.cz>
18832 * TODO: added pointers to other similar projects
18834 2000-03-09 Jonathan Blandford <jrb@redhat.com>
18836 * libgnomevfs/gnome-vfs-types.h: Add a urn field to
18837 GnomeVFSToplevelURI. This will let us add VFS modules that simply
18838 change a totally virtual name to a actual URL.
18840 * modules/help-method.c: New module to allow for "help:*" URL's.
18841 * modules/help-method.h:
18843 * modules/Makefile.am: added help module.
18845 * libgnomevfs/gnome-vfs-method.c (gnome_vfs_transform_get): Allow
18846 Transformations. Clean up the code a little.
18848 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): changed to
18849 allow for translations. Also, code cleaned up a lot.
18851 2000-03-09 Ian McKellar <yakk@yakk.net>
18853 * modules/http-method.c
18854 Added (open|read|close)_directory support for WebDAV servers.
18856 * configure.in, modules/Makefile.am
18857 Added checks for gnome-xml as are required for the WebDAV directory
18860 2000-03-07 Ian McKellar <yakk@yakk.net>
18862 * modules/http-method.c
18863 Added PUT support (i.e. WebDAV or HTTP/1.1 file upload).
18865 * test/test-sync-write.c
18866 Added a test program which writes from stdin to a URI.
18869 Patched test-sync.c to handle larger files.
18871 2000-03-06 Ettore Perazzoli <ettore@helixcode.com>
18873 * libgnomevfs/gnome-vfs-private-ops.c
18874 (gnome_vfs_get_file_info_uri_cancellable): If the `get_file_info'
18875 method is not implemented, return `GNOME_VFS_ERROR_NOTSUPPORTED'
18876 instead of crashing.
18878 * configure.in: Generate `gnome-vfs.spec' from
18879 `gnome-vfs.spec.in'.
18881 * gnome-vfs.spec.in: New file. From Ross Golder
18882 <rossigee@bigfoot.com>.
18884 2000-03-03 Maciej Stachowiak <mjs@eazel.com>
18886 * libgnomevfs/gnome-vfs-utils.c, libgnomevfs/gnome-vfs-utils.h
18887 (gnome_vfs_escape_string, gnome_vfs_unescape_string): New
18888 functions to escape and unescape URI strings; patch from Gene
18889 Z. Ragan <gzr@diskzero.com>.
18891 2000-03-02 Maciej Stachowiak <mjs@eazel.com>
18893 * modules/http-method.c (get_file_info_from_http_handle): Don't
18894 pretend we know the file size when we don't.
18896 2000-02-24 Ettore Perazzoli <ettore@helixcode.com>
18898 * test/test-directory.c (print_list): Deal with a NULL MIME type.
18900 Patch from Marcus Nilsson <marcusn@docs.uu.se>:
18901 * modules/file-method.c (struct _DirectoryHandle): Made
18902 `current_entry' a pointer to a `struct dirent *' instead of just a
18904 (read_directory): Updated accordingly.
18905 (directory_handle_new): Allocate `current_entry' with
18906 `g_malloc()', allocating extra space as required by `readdir_r()'.
18907 (directory_handle_destroy): Free `current_entry'.
18909 2000-02-22 Ettore Perazzoli <ettore@helixcode.com>
18911 * Version 0.1 is released.
18913 2000-02-21 Ettore Perazzoli <ettore@helixcode.com>
18915 * libgnomevfs/gnome-vfs-cancellation.c
18916 (gnome_vfs_cancellation_check): If the cancellation is NULL, just
18918 (gnome_vfs_cancellation_ack): If the cancellation is NULL, just
18921 * test/test-xfer.c (xfer_progress_callback): Use
18922 `GNOME_VFS_SIZE_FORMAT_STR' to match the types.
18924 * test/test-async-directory.c (main) [!WITH_CORBA]: Do not define
18925 `ev', so that we don't get annoying compiler warnings.
18927 * test/test-xfer.c (xfer_progress_callback): Add casts.
18929 * test/test-directory-visit.c (directory_visit_callback): Add
18932 * test/test-directory.c (print_list): Add cast.
18934 * test/test-async-directory.c (main): Removed unused variable.
18936 * modules/translate-method.c (tr_do_read_directory): Added cast to
18937 placate the compiler.
18939 * modules/file-method.c (do_get_file_info_from_handle):
18940 s/gnome_vfs_extract_short_name/gnome_vfs_uri_extract_short_name/.
18941 `gnome_vfs_extract_short_name' does not even exist!
18943 * modules/extfs-method.c: Add missing NULL pointer in
18944 initialization of `method'.
18946 * libgnomevfs-corba/gnome-vfs-slave.c (serve_channel_read): Use
18947 `GNOMEVFSFileSize' instead of `gulong'.
18948 (serve_channel_write): Likewise.
18950 * modules/Makefile.am (libhttp_la_LIBADD): Do not link the HTTP
18951 module with `-lghttp' (we don't actually use it).
18953 2000-02-21 Jonathan Blandford <jrb@redhat.com>
18955 * libgnomevfs/gnome-vfs-cancellation.c
18956 (gnome_vfs_cancellation_check): change g_return_if_fail to be a
18957 g_return_val_if_fail. I don't know if the g_ function is right
18958 here, but until that gets straightened out, make it compile.
18960 2000-02-21 Elliot Lee <sopwith@redhat.com>
18961 * libgnomevfs/gnome-vfs-configuration.c: "Home made check" is supposed to be there.
18962 g_return_if_fail inappropriate, change reverted.
18964 2000-02-20 Mathieu Lacage <mathieu@advogato.org>
18966 * libgnomevfs/gnome-vfs-configuration.c: plug memory leak in
18967 module_path_element_free intorduced by someone who forgot
18968 the arg element. Change a home-made check in g_return_if_fail.
18969 * libgnomevfs/gnome-vfs-cancelation.c: Change home-made check
18970 in g_return_if_fail.
18972 2000-02-18 Maciej Stachowiak <mjs@eazel.com>
18974 * modules/file-method.c (do_get_file_info,
18975 do_get_file_info_from_handle): Use gnome_vfs_extract_short_name on
18976 the URI rather than g_basename on the filename to get the
18977 basename. g_basename is broken.
18979 2000-02-17 Jonathan Blandford <jrb@redhat.com>
18981 * modules/default-modules.conf (ghelp): add ghelp to the list of
18984 2000-02-16 Elliot Lee <sopwith@redhat.com>
18985 * test/test-async.c: Exit after receiving read(), no matter what result is received.
18986 * modules/pipe-method.c: Check fread() result for being > 0, not !EOF
18987 * libgnomevfs/gnome-vfs-uri.c: Don't add leading /
18988 * libgnomevfs/gnome-vfs-backend.c: Add assert to ensure initialization.
18989 * modules/default-methods.conf: Pass filename to gnome-man2html2 instead of redirecting
18992 2000-02-15 John Sullivan <sullivan@eazel.com>
18994 * libgnomevfs/gnome-vfs-configuration.c:
18995 (gnome_vfs_configuration_get_module_path): Just clarified an
18998 2000-02-14 Maciej Stachowiak <mjs@eazel.com>
19000 * libgnomevfs/gnome-vfs-types.h: Added a GnomeVFSFIleInfoFields
19001 enumeration, and added a field of this type (valid_fields) to
19002 GnomeVFSFileInfo, so that cases where get_file_info returns
19003 incomplete information can be handled gracefully.
19004 * modules/extfs-method.c, modules/file-method.c,
19005 modules/ftp-method.c, modules/http-method.c,
19006 modules/module-shared.c, modules/pipe-method.c,
19007 modules/translate-method.c: Set the valid_fields
19009 2000-02-09 Elliot Lee <sopwith@redhat.com>
19011 * libgnomevfs/gnome-vfs-messages.c, libgnomevfs/gnome-vfs-method.c,
19012 libgnomevfs/gnome-vfs-process.c, libgnomevfs-corba/gnome-vfs-async-ops.c,
19013 libgnomevfs-corba/gnome-vfs-slave-launch.c, libgnomevfs-corba/gnome-vfs-slave-notify.c,
19014 libgnomevfs-corba/gnome-vfs-slave-process.c, modules/ftp-method.c: Remove excess
19017 * libgnomevfs/gnome-vfs-handle.c, libgnomevfs/gnome-vfs-handle.h,
19018 libgnomevfs/gnome-vfs-ops.c, libgnomevfs/gnome-vfs-ops.h,
19019 libgnomevfs/gnome-vfs-private-ops.c,
19020 libgnomevfs/gnome-vfs-private-ops.h,
19021 libgnomevfs/gnome-vfs-private-types.h,
19022 libgnomevfs/gnome-vfs-seekable.c: Add gnome_vfs_truncate and gnome_vfs_truncate_handle.
19023 * modules/bzip2-method.c, modules/extfs-method.c,
19024 modules/file-method.c, modules/ftp-method.c,
19025 modules/gconf-method.c, modules/gzip-method.c,
19026 modules/http-method.c, modules/pipe-method.c,
19027 modules/translate-method.c: Implement truncate (or don't).
19028 * libgnomevfs-corba/gnome-vfs-corba.c: putenv("GNOME_DISABLE_CRASH_DIALOG=1") so we don't get stupid crash dialogs.
19029 * libgnomevfs-pthread/gnome-vfs-async-ops.c: Fix obvious get_file_info bug.
19031 2000-02-07 Elliot Lee <sopwith@redhat.com>
19033 * libgnomevfs-corba/gnome-vfs-slave-notify.c: When memcpy'ing over a new GnomeVFSFileInfo, reset the refcount to 1
19034 so that we can unref it later.
19035 * libgnomevfs-corba/gnome-vfs-slave.c: Fix stupid cut & paste bug that was using the wrong loop variable.
19036 Also unref the file_info instead of destroying it.
19038 2000-02-02 Elliot Lee <sopwith@redhat.com>
19040 * idl/gnome-vfs-slave.idl, libgnomevfs/gnome-vfs-async-ops.h,
19041 libgnomevfs/gnome-vfs-backend.c, libgnomevfs/gnome-vfs-types.h, libgnomevfs-corba/*.[ch], libgnomevfs-pthread/*.[ch]:
19042 Implement asynchronous get_file_info operation. Compiles but is untested.
19044 * libgnomevfs/gnome-vfs-method.c: Pass method_name and config options to the module.
19045 * libgnomevfs/gnome-vfs-private-types.h: Pass GnomeVFSMethod
19046 pointer as first arg to all method implementation routines.
19047 * libgnomevfs/*.c, modules/*.c: Reflect above changes.
19048 * libgnomevfs/gnome-vfs-configuration.[ch]: Parse and return
19049 module arguments from config file. Fix miscellaneous bugs.
19050 * modules/translate-method.c, modules/Makefile.am: Implement a
19051 'URI translation' module that just translates URIs according to configuration options, then passes them
19052 on to the real module.
19054 2000-02-01 Darin Adler <darin@eazel.com>
19056 * libgnomevfs-corba/gnome-vfs-slave-notify.c:
19057 Make more-easily-understood g_warning messages for
19058 cases where the wrong operation is in progress.
19060 * libgnomevfs/gnome-vfs-uri.c: Use defines instead of
19061 hard-coded '/' characters consistently.
19063 2000-01-28 Elliot Lee <sopwith@redhat.com>
19065 * libgnomevfs/gnome-vfs-configuration.c: Support reading multiple configuration files from multiple directories.
19066 * libgnomevfs/gnome-vfs-{configuration,private}.h: Move #defines from gnome-vfs-configuration.h to gnome-vfs-private.h
19067 * libgnomevfs/Makefile.am: Add defines of sysconfdir and libdir to cflags, remove prefix define.
19068 * modules/Makefile.am: Rename modules.conf to default-modules.conf, and install into $(sysconfdir)/vfs/modules instead.
19070 2000-01-27 Elliot Lee <sopwith@redhat.com>
19072 * modules/pipe-method.[ch]: Implement a stupid one-cent trick pipe method - produces output of a pipe.
19074 2000-01-27 John Sullivan <sullivan@eazel.com>
19076 Moved, renamed, and made public GnomeVFSFileInfo-comparing routines.
19078 * libgnomevfs/gnome-vfs-file-info.c:
19079 * libgnomevfs/gnome-vfs-file-info.h:
19080 (gnome_vfs_file_info_compare_for_sort),
19081 (gnome_vfs_file_info_compare_for_sort_reversed):
19082 New functions, moved & renamed from static functions in
19083 gnome-vfs-directory-list.c. Changed third parameter from
19084 constgpointer to const GnomeVFSDirectorySortRule * for clarity.
19086 * libgnomevfs/gnome-vfs-directory-list.c:
19087 (compare_for_sort), (compare_for_sort_reversed): Removed.
19088 (gnome_vfs_directory_list_sort): Updated to reflect name change.
19090 2000-01-18 Ettore Perazzoli <ettore@helixcode.com>
19092 * libgnomevfs/gnome-vfs-directory.c (directory_visit_internal):
19093 Unref instead of destroying the file info.
19094 (directory_visit_internal): Likewise.
19095 (directory_visit_internal): Likewise.
19096 (directory_visit_internal): Likewise.
19097 (gnome_vfs_directory_visit_files_at_uri): Likewise.
19099 * libgnomevfs/gnome-vfs-directory-list.c (remove_entry): Unref
19100 instead of destroying the file info.
19101 (gnome_vfs_directory_list_destroy): Likewise.
19102 (load_from_handle): Likewise.
19104 2000-01-18 John Sullivan <sullivan@eazel.com>
19106 * libgnomevfs/gnome-vfs-directory-list.c: (compare_for_sort):
19107 Made sorting by mime type handle NULL mime types (e.g. directories).
19109 2000-01-18 Federico Mena Quintero <federico@helixcode.com>
19111 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_destroy): Removed.
19112 It does not make sense to have this function, as we have proper
19113 reference counting of URIs.
19114 (gnome_vfs_uri_new): Use gnome_vfs_uri_unref() instead of
19115 destroy() for the new_uri.
19116 (gnome_vfs_uri_unref): Added a sanity check for the reference
19119 2000-01-18 Elliot Lee <sopwith@redhat.com>
19121 * configure.in: We want ORBit, not gnorba.
19123 2000-01-16 John Sullivan <sullivan@eazel.com>
19125 Split utils into public and private, and moved file-size-as-string
19126 method into new public utils.
19128 * libgnomevfs/gnome-vfs-private-utils.h:
19129 * libgnomevfs/gnome-vfs-private-utils.c:
19130 New files, containing most of what was in gnome-vfs-utils.h/c.
19132 * libgnomevfs/gnome-vfs-utils.h:
19133 * libgnomevfs/gnome-vfs-utils.c:
19134 Moved everything from here to gnome-vfs-private-utils.h/c, except...
19135 (gnome_vfs_size_as_string): Renamed to gnome_vfs_file_size_as_string,
19136 changed parameter from ulong to GnomeVFSFileSize, replaced
19137 implementation with similar but slightly cleaner code written by Havoc
19138 in nautilus/src/file-manager/fm-directory-view.c
19140 * Makefile.am: Moved gnome-vfs-utils.h to public headers, added
19141 gnome-vfs-private-utils.h/.c to the build.
19143 * modules/http-method.c: (create_handle), (do_read): Updated all
19144 callers of gnome_vfs_size_as_string to reflect new name.
19146 2000-01-16 Federico Mena Quintero <federico@helixcode.com>
19148 * libgnomevfs-pthread/Makefile.am: Do not put $(VFS_LIBS) in the
19151 2000-01-14 Darin Adler <darin@eazel.com>
19153 * libgnomevfs/gnome-vfs-uri.h: libgnomevfs/gnome-vfs-uri.c:
19154 (gnome_vfs_uri_extract_short_name): Added a new function to get the
19155 short form of a uri. This is the same as the XPG version of basename,
19156 and the basename tool, but g_basename, gnome_vfs_uri_get_basename, and
19157 gnome_vfs_uri_extract_dirname use a different definition, where the
19158 basename of a uri that points to a directory with a trailing '/' is
19159 NULL. The short_name variant is useful when you want to know the name
19160 of a directory even though the uri might end in '/'.
19162 2000-01-11 Darin Adler <darin@eazel.com>
19164 * libgnomevfs-corba/gnome-vfs-slave-notify:
19165 (impl_Notify_dying): Changed the messages to use g_message instead
19166 of g_warning, since they are normal.
19168 2000-01-11 Ettore Perazzoli <ettore@helixcode.com>
19170 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_get_basename): Do not
19173 2000-01-06 Darin Adler <darin@eazel.com>
19175 * libgnomevfs/gnome-vfs-backend.c: (gnome_vfs_async_open_uri):
19176 Implemented this missing routine.
19178 2000-01-04 John Sullivan <sullivan@eazel.com>
19180 * libgnomevfs/gnome-vfs-uri.c: (gnome-vfs-uri-new):
19181 Removed g_return_val_if_fail() for empty string case,
19182 since rest of routine handles empty string identically
19183 to any other bogus string.
19184 * libgnomevfs/gnome-vfs-ops.c: (gnome_vfs_get_file_info):
19185 Avoid calling gnome_vfs_uri_unref on NULL uri, to avoid
19188 2000-01-02 Tomasz K³oczko <kloczek@pld.org.pl>
19189 * configure.in, po/pl.po: added Polish translation
19190 (based on GNOME PL translation resources).
19192 1999-12-30 Miguel de Icaza <miguel@gnu.org>
19194 * libgnomevfs-corba/gnome-vfs-async-ops.c
19195 (corba_gnome_vfs_async_cancel): Removed C++ comment.
19197 1999-12-29 Elliot Lee <sopwith@redhat.com>
19199 * acconfig.h, libgnomevfs/gnome-vfs-backend.[ch],
19200 libgnomevfs/gnome-vfs-init.[ch], libgnomevfs-{pthread,corba}/*:
19201 Load the corba & pthread backends via gmodule instead of linking
19203 * modules/*-method.c: Fix warnings.
19205 1999-12-29 Jesus Bravo Alvarez <jba@pobox.com>
19207 * configure.in: (ALL_LINGUAS) Added Galician (gl).
19209 1999-12-28 Martin Norbäck <d95mback@dtek.chalmers.se>
19211 * configure.in: Added sv to ALL_LINGUAS.
19213 1999-12-28 Yuri Syrota <rasta@renome.rovno.ua>
19215 * configure.in: Added "uk" to ALL_LINGUAS.
19217 1999-12-27 Matthias Warkus <mawa@iname.com>
19219 * configure.in: Added de to ALL_LINGUAS.
19221 1999-12-21 Elliot Lee <sopwith@redhat.com>
19223 * modules/ftp-method.c: Fix get_file_info so MIME type gets filled in.
19225 * modules/http-method.c: Don't pass the full URL, since this violates the HTTP spec.
19226 * libgnomevfs/gnome-vfs-uri.c: Properly implement handling of all the hide_options.
19228 * modules/http-method.c: Don't treat redirections as an error.
19230 This is not quite the "right" solution, since redirections are
19231 similar to symlinks, and this change doesn't check for the
19232 GNOME_VFS_FILE_INFO_FOLLOW_SYMLINKS flag. It's also possible that
19233 the MIME type returned from a redirection is different than the
19234 MIME type of the target.
19236 1999-12-18 Havoc Pennington <hp@pobox.com>
19238 * libgnomevfs/gnome-vfs-file-info.c (gnome_vfs_file_info_new):
19240 (gnome_vfs_file_info_init): init refcount
19241 (gnome_vfs_file_info_destroy): remove in favor of unref(),
19242 with compatibility #define
19243 (gnome_vfs_file_info_unref): new function
19244 (gnome_vfs_file_info_ref): new function
19246 * libgnomevfs/gnome-vfs-types.h: Add refcount to GnomeVFSFileInfo.
19247 The refcount won't be used if the object is on the stack of course.
19249 1999-12-16 Maciej Stachowiak <mjs@eazel.com>
19251 * libgnomevfs-corba/gnome-vfs-async-ops.c,
19252 libgnomevfs-corba/gnome-vfs-slave-process.c : Avoid leaving around
19253 gnome-vfs-slave processes.
19255 * libgnomevfs/gnome-vfs-method.c (gnome_vfs_method_get): Avoid
19256 reinitializing the method table (nautilus was causing this to
19259 1999-12-16 Ettore Perazzoli <ettore@helixcode.com>
19261 * libgnomevfs-corba/gnome-vfs-slave-notify.c
19262 (impl_Notify_load_directory): Actually set the list in the
19263 `GnomeVFSAsyncDirectoryOpInfo' struct when creating it from
19266 1999-12-15 Elliot Lee <sopwith@redhat.com>
19268 * libgnomevfs*/*.c: Fix warnings.
19269 * configure.in: Add --with-default-backend=...
19271 1999-12-15 Darin Adler <darin@eazel.com>
19273 * libgnomevfs/gnome-vfs-method.c: (load_module):
19274 Changed "Loading module" message to a g_message, since we
19275 want to ignore it, and we don't want to ignore g_warnings.
19276 * libgnomevfs/gnome-vfs-process.c: (wake_up):
19277 Changed "Process died" message to a g_message, since we
19278 want to ignore it, and we don't want to ignore g_warnings.
19279 (gnome_vfs_process_new): Changed "Process died" message to
19280 a g_message, since we want to ignore it, and we don't want
19281 to ignore g_warnings.
19283 1999-12-15 Elliot Lee <sopwith@redhat.com>
19284 * libgnomevfs/gnome-vfs-ops.c: Sanity check for an invalid URI.
19285 * libgnomevfs/gnome-vfs-ops.[ch]: Use char instead of gchar.
19286 * libgnomevfs-corba/gnome-vfs-slave-process.c: Use g_message instead
19287 of the incorrect g_warning.
19289 1999-12-15 Darin Adler <darin@eazel.com>
19291 * libgnomevfs/gnome-vfs-async-ops.h
19292 * libgnomevfs/gnome-vfs-context.c
19293 * libgnomevfs/gnome-vfs-directory-list.c
19294 * libgnomevfs/gnome-vfs-directory-list.h
19295 * libgnomevfs/gnome-vfs-directory.c
19296 * libgnomevfs/gnome-vfs-directory.h
19297 * libgnomevfs/gnome-vfs-messages.c
19298 * libgnomevfs/gnome-vfs-ops.c
19299 * libgnomevfs/gnome-vfs-ops.h
19300 * libgnomevfs/gnome-vfs-private-ops.c
19301 * libgnomevfs/gnome-vfs-private-ops.h
19302 * libgnomevfs/gnome-vfs-utils.c
19303 * libgnomevfs/gnome-vfs-utils.h
19304 * libgnomevfs-corba/gnome-vfs-async-ops.c
19305 * libgnomevfs-corba/gnome-vfs-slave-notify.c
19306 * libgnomevfs-pthread/gnome-vfs-async-ops.c
19308 Made meta_keys[] take const char* instead of char*.
19309 Fixed some warnings.
19311 1999-12-14 Darin Adler <darin@eazel.com>
19313 * .cvsignore: Ignore more generated files.
19314 * libgnomevfs-corba/.cvsignore: Ignore more generated files.
19315 * modules/extfs/.cvsignore: Ignore more generated files.
19316 * test/.cvsignore: Ignore more generated files.
19318 1999-12-14 Elliot Lee <sopwith@redhat.com>
19320 * libgnomevfs-corba/gnome-vfs-async-ops.c: Implement gnome_vfs_async_load_directory_uri
19321 in terms of gnome_vfs_async_load_directory by converting the GnomeVFSURI to a string.
19322 Also, fill in the 'op_info' in gnome_vfs_async_load_directory.
19324 1999-12-09 Havoc Pennington <hp@redhat.com>
19326 * modules/gconf-method.c (vfs_module_init): Some updates, the
19327 GConf stuff is updated but it still doesn't match the latest
19328 virtual table that modules are expected to have.
19330 * modules/Makefile.am (libgconf_la_LIBADD): add GTK_LIBS
19331 (INCLUDES): add GCONF_CFLAGS
19333 * configure.in (VFS_LIBS): use the located $GCONF_CONFIG instead
19334 of just "gconf-config", look for GTK to use the GConfClient
19337 1999-12-08 Ramiro Estrugo <ramiro@eazel.com>
19339 * modules/extfs/Makefile.am
19340 take out non existance extfs.ini from EXTRA_DIST to unbreak
19343 1999-12-07 Havoc Pennington <hp@pobox.com>
19345 * libgnomevfs-pthread/gnome-vfs-job.c (serve_channel_read): handle
19346 cancellation during the read, and then check for it before we
19347 write, and after each write.
19349 * libgnomevfs/gnome-vfs-iobuf.c (gnome_vfs_iobuf_read): Return
19350 immediately if the number of bytes to read is 0.
19352 * libgnomevfs-pthread/gnome-vfs-job.c (serve_channel_read):
19353 Rewrite this to use nonblocking writes; allows us to
19354 keep reading while the main thread is blocked.
19356 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_size_to_string): fix
19357 operator precedence problem
19359 * libgnomevfs-pthread/gnome-vfs-job.c (serve_channel_write): Take
19360 a context argument, and then use gnome_vfs_write_cancellable() so
19361 status messages can trickle up. The messages are coming from the
19362 slave thread; so the status message callback setup is supposed to
19363 be thread safe. The one in Explorer is indeed.
19364 (serve_channel_read): Parallel change, add the context object.
19366 1999-12-06 Havoc Pennington <hp@pobox.com>
19368 * libgnomevfs-corba/gnome-vfs-slave-process.c
19369 (gnome_vfs_slave_process_new): Creates a context object.
19371 * libgnomevfs/gnome-vfs-async-ops.h
19372 (gnome_vfs_async_remove_status_callback): declare status callback
19373 add/remove functions.
19375 * libgnomevfs-pthread/gnome-vfs-async-ops.c
19376 (gnome_vfs_async_add_status_callback): implement status callback ops
19378 * libgnomevfs-corba/gnome-vfs-async-ops.c
19379 (gnome_vfs_async_remove_status_callback): implement status
19382 * libgnomevfs/gnome-vfs-messages.c: Add ID numbers for callback
19385 * modules/http-method.c (create_handle): Emit message about # of
19387 (do_close): emit message saying "closing"
19388 (do_read): emit message about bytes read.
19390 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_size_to_string): New
19391 function, returns a string representing a size in bytes
19393 * libgnomevfs-pthread/gnome-vfs-job.h: replace cancellation with context
19395 * modules/gzip-method.c: replace cancellation with context
19397 * modules/bzip2-method.c: replace cancellation with context
19399 * modules/ftp-method.c: replace cancellation with context
19401 * modules/http-method.c: replace cancellation with context
19403 * modules/file-method.c: replace cancellation with context
19405 * modules/extfs-method.c: replace cancellation with context
19407 1999-12-03 Havoc Pennington <hp@pobox.com>
19409 * libgnomevfs/gnome-vfs-private-ops.h: replace cancellation with
19412 * libgnomevfs/gnome-vfs-handle.h: replace cancellation with
19415 * libgnomevfs/gnome-vfs-private-ops.c: replace cancellation with
19418 * libgnomevfs/gnome-vfs-seekable.c: replace cancellation with
19421 * libgnomevfs/gnome-vfs-directory.c: Replace cancellation with
19424 * libgnomevfs/gnome-vfs-private.h: add gnome-vfs-context.h,
19425 include <config.h> too
19427 * libgnomevfs/gnome-vfs.h: add gnome-vfs-messages.h
19429 * libgnomevfs/gnome-vfs-private-types.h: typedef the
19430 GnomeVFSContext type; change GnomeVFSCancellation to
19431 GnomeVFSContext for all functions in the GnomeVFSMethod vtable
19433 * libgnomevfs/gnome-vfs-context.c,
19434 libgnomevfs/gnome-vfs-context.h: Proposed API for a context object
19435 to be passed to VFS module functions.
19437 1999-12-04 Ettore Perazzoli <ettore@gnu.org>
19439 * libgnomevfs-pthread/gnome-vfs-async-ops.c
19440 (gnome_vfs_async_cancel): Added comment about the need for freeing
19443 1999-12-02 Havoc Pennington <hp@pobox.com>
19445 * libgnomevfs/gnome-vfs-messages.c: all my filter predicates were
19448 1999-12-02 Havoc Pennington <hp@pobox.com>
19450 * libgnomevfs/gnome-vfs-messages.h,
19451 libgnomevfs/gnome-vfs-messages.c: New file, a simple data type to
19452 manage status-message callback lists. Untested, not in the build.
19454 1999-11-29 Elliot Lee <sopwith@redhat.com>
19456 * libgnomevfs-corba/*.c: Don't __alloc() buffers for temporary usage only.
19457 * libgnomevfs/gnome-vfs-cancellation.c (gnome_vfs_cancellation_cancel): Now guaranteed signal-safe.
19459 * libgnomevfs/gnome-vfs-method.c: If init_path_list() has already been called, return TRUE to indicate success.
19461 * libgnomevfs/gnome-vfs-result.c: I declare the errno->GnomeVFSResult translation function "complete enough".
19463 1999-11-24 Elliot Lee <sopwith@redhat.com>
19465 * modules/Makefile.am: Try using $(GLIB_LIBS) to pick up the -L thingie for -lghttp
19466 * Makefile.am: Remove 'intl' dir from build.
19468 1999-11-19 Kjartan Maraas <kmaraas@online.no>
19470 * configure.in: Added "no" to ALL_LINGUAS.
19472 1999-11-18 Ettore Perazzoli <ettore@gnu.org>
19474 * modules/file-method.c: Removed the static function prototypes
19475 and moved the method struct to the end of the file so that they
19476 are not needed anymore.
19477 (rename_helper): New helper function, cut & paste from
19480 (do_set_file_info): New function, implementing the `set_file_info'
19482 (do_make_directory): Use `MAKE_ABSOLUTE' to make sure the path we
19484 (do_move): Likewise.
19485 (do_unlink): Likewise.
19486 (do_check_same_fs): Likewise.
19487 (directory_handle_new): Likewise.
19488 (do_get_file_info): Likewise.
19489 (do_create): Likewise (forgot to use `file_name' instead of
19492 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_check_same_fs): Check
19493 that `same_fs_return' is not NULL.
19495 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_set_file_info_uri): New
19497 (gnome_vfs_set_file_info): New function.
19498 * libgnomevfs/gnome-vfs-ops.h: Prototypes here.
19500 * libgnomevfs/gnome-vfs-private-ops.c
19501 (gnome_vfs_set_file_info_cancellable): New function.
19502 * libgnomevfs/gnome-vfs-private-ops.h: Prototype here.
19504 * libgnomevfs/gnome-vfs-private-types.h: New function typedef
19505 `GnomeVFSMethodSetFileInfo'. New member `set_file_info' in
19508 * libgnomevfs/gnome-vfs-types.h: New enum
19509 `GnomeVFSSetFileInfoMask'.
19511 * libgnomevfs/gnome-vfs-types.h: Renamed
19512 `GNOME_VFS_FILE_INFO_NOOPTION' to `GNOME_VFS_FILE_INFO_DEFAULT'.
19513 * libgnomevfs/gnome-vfs-xfer.c (create_xfer_file_list): Updated
19516 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_extract_dirname): New
19519 1999-11-12 Ettore Perazzoli <ettore@gnu.org>
19521 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_append_path): Make sure
19522 `uri_string' is always freed.
19524 * libgnomevfs/gnome-vfs-configuration.c (parse_file): Free the
19525 line buffer on exit.
19527 1999-11-08 Ettore Perazzoli <ettore@gnu.org>
19529 * libgnomevfs/gnome-vfs-xfer.c (xfer_create_target): Set `retry'
19530 to `FALSE' at the start of the `while' loop.
19531 (xfer_open_source): Likewise.
19532 (xfer_file): Likewise.
19533 (copy_directory): Likewise.
19534 (move_file): Likewise.
19536 1999-10-29 Elliot Lee <sopwith@redhat.com>
19538 * test/test-somethingorother.c: Make it use the file info flags
19539 instead of ->is_symlink.
19541 * libgnomevfs/Makefile.am: Put our build tree on the include path
19542 before installed stuff.
19544 1999-10-23 Ettore Perazzoli <ettore@gnu.org>
19546 * libgnomevfs/gnome-vfs-directory-filter.c
19547 (gnome_vfs_directory_filter_apply): If `filter' is NULL, just
19550 * libgnomevfs/gnome-vfs-iobuf.c (gnome_vfs_iobuf_read): Only read
19551 as much bytes as the stream gives us; not more.
19553 * modules/ftp-method.c (_ftpfs_read_directory): Set the "local"
19554 flag in the info to `FALSE'.
19555 (fill_file_info): Likewise.
19557 * modules/file-method.c (get_stat_info): Set the "local" flag to
19559 (get_stat_info_from_handle): Likewise.
19561 * modules/extfs-method.c (read_directory_list): Set the "local"
19562 flag in the info object to FALSE.
19564 * modules/module-shared.c (gnome_vfs_stat_to_file_info): Do not
19565 set the "local" flag anymore.
19567 * modules/ftp-method.c (print_vfs_message): Made static.
19568 (insert_dots): Use `gnome_vfs_parse_ls_lga()' instead of
19569 `vfs_parse_ls_lga()', which does not exist anymore.
19570 (retrieve_dir): Likewise.
19572 * libgnomevfs/gnome-vfs-directory.c (directory_visit_internal):
19573 Updated to match the `GnomeVFSFileInfo' changes.
19574 * modules/module-shared.c (gnome_vfs_stat_to_file_info): Likewise.
19575 * modules/file-method.c (get_stat_info): Likewise.
19576 * modules/http-method.c (get_file_info_from_http_handle): Likewise.
19577 * modules/ftp-method.c (fill_file_info): Likewise.
19578 (_ftpfs_read_directory): Likewise.
19579 * test/gnome-file-selection/gnome-file-selection.c
19580 (populate_callback): Likewise.
19581 * test/test-directory.c (print_list): Likewise.
19582 * test/test-directory-visit.c (directory_visit_callback): Likewise.
19583 * test/test-info.c (print_file_info): Likewise.
19585 * libgnomevfs/gnome-vfs-file-info.h (GNOME_VFS_FILE_INFO_SYMLINK):
19587 (GNOME_VFS_FILE_INFO_LOCAL): New macro.
19588 (GNOME_VFS_FILE_INFO_SUID): New macro.
19589 (GNOME_VFS_FILE_INFO_SGID): New macro.
19590 (GNOME_VFS_FILE_INFO_STICKY): New macro.
19591 (GNOME_VFS_FILE_INFO_SET_SYMLINK): New macro.
19592 (GNOME_VFS_FILE_INFO_SET_LOCAL): New macro.
19593 (GNOME_VFS_FILE_INFO_SET_SUID): New macro.
19594 (GNOME_VFS_FILE_INFO_SET_SGID): New macro.
19595 (GNOME_VFS_FILE_INFO_SET_STICKY): New macro.
19597 * libgnomevfs/gnome-vfs-types.h: New enum
19598 `GnomeVFSFileFlags'.
19599 (struct _GnomeVFSFileInfo): Replaced the various gboolean 1-bit flags
19600 with a single `GnomeVFSFileFlags' member called `flags'.
19602 * test/test-info.c (main): Follow links.
19604 * modules/file-method.c (read_link): Zero-terminate the returned
19607 * modules/module-shared.c (gnome_vfs_stat_to_file_info):
19608 Unconditionally set the type to `GNOME_VFS_FILE_TYPE_UNKNOWN' if
19609 all else fails, even if `file_info' refers to a symlink.
19611 * modules/ftp-method.c: #include <gnome.h>, "gnome-vfs.h" and
19612 "gnome-vfs-private.h".
19614 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_get_file_info): If the
19615 `get_file_info' function is not implemented, return
19616 `GNOME_VFS_ERROR_NOTSUPPORTED'.
19618 * test/test-info.c: New program for testing the
19619 `gnome_vfs_get_file_info()' API call.
19621 * libgnomevfs/gnome-vfs-iobuf.c (gnome_vfs_iobuf_read): Argh.
19622 Don't put more than `bytes' bytes in `buffer'!
19624 1999-10-22 Ettore Perazzoli <ettore@gnu.org>
19626 * libgnomevfs/gnome-vfs-iobuf.c (gnome_vfs_iobuf_read): Do not use
19627 `bytes_read' if NULL.
19628 (gnome_vfs_iobuf_write): Likewise with `bytes_written'.
19629 (flush): Flush output, not input. :-P
19630 (refill_input_buffer): Changed to return a `GnomeVFSResult'.
19631 Return `GNOME_VFS_ERROR_EOF' at EOF.
19632 (gnome_vfs_iobuf_read): Updated accordingly.
19634 * libgnomevfs/gnome-vfs-method.c (load_module): Don't check for
19635 the `create' function anymore.
19637 * libgnomevfs/gnome-vfs-private.h: #include
19638 "gnome-vfs-inet-connection.h".
19640 * libgnomevfs/gnome-vfs-inet-connection.c: New file implementing
19641 Internet connections.
19642 * libgnomevfs/gnome-vfs-inet-connection.h: Corresponding header file.
19644 * libgnomevfs/gnome-vfs-private-types.h: New opaque typedef
19645 `GnomeVFSInetConnection'.
19647 * modules/Makefile.am: Compile the HTTP method again.
19649 * modules/http-method.c: New re-implementation from scratch, with
19650 great help from the GNU Wget sources.
19651 * modules/http-method.h: Corresponding header file.
19653 * libgnomevfs/gnome-vfs-utils.c: #include <ctype.h>.
19654 (gnome_vfs_atotm): New function, from GNU Wget.
19655 * libgnomevfs/gnome-vfs-utils.h (gnome_vfs_atotm): Prototype here.
19657 1999-10-21 Ettore Perazzoli <ettore@gnu.org>
19659 * libgnomevfs/gnome-vfs-iobuf.c (refill_input_buffer): New helper
19661 (gnome_vfs_iobuf_read): Changed to use it.
19662 (gnome_vfs_iobuf_peekc): New function.
19664 * libgnomevfs/gnome-vfs-private-types.h: New opaque
19665 `GnomeVFSIOBuf' typedef for the struct defined in
19666 `gnome-vfs-iobuf.c'.
19668 * libgnomevfs/gnome-vfs-private.h: #include "gnome-vfs-iobuf.h".
19670 * libgnomevfs/gnome-vfs-iobuf.h: New header file for
19671 `gnome-vfs-iobuf.c'.
19673 * libgnomevfs/gnome-vfs-iobuf.c: New file implementing buffered
19674 I/O on top of low-level Unix file descriptors.
19676 1999-10-20 Ettore Perazzoli <ettore@gnu.org>
19678 * modules/extfs-method.c (match): Apply filter.
19679 (vfs_module_shutdown): Close all the handles.
19680 (do_close): Remove the handle from the handle list.
19682 * README: Added some info about the `vfs-run' wrapper.
19684 * configure.in: Subst `@TOP_BUILDDIR@' with the path to the top
19685 building directory. Build `$(top_builddir)/test/vfs-run' from
19686 `$(top_srcdir)/test/vfs-run.in'.
19688 * test/vfs-run.in (GNOME_VFS_MODULE_PATH): New file.
19690 * libgnomevfs/gnome-vfs-method.c (gnome_vfs_method_get): Set the
19691 effective UID/GID to the real UID/GID when loading the module, and
19692 restore them afterwards. This should prevent exploits to
19693 setuid/setgid applications by using `GNOME_VFS_MODULE_PATH'.
19694 (module_get_sane_handle): Renamed to `load_module'. Added
19695 debugging message displaying the complete name of the module that
19698 * libgnomevfs/gnome-vfs-method.c: New variable `module_path_list'.
19699 (init_hash_table): New helper function.
19700 (gnome_vfs_method_init): Use it.
19701 (init_path_list): New helper function to initialize
19702 `module_path_list' through the `GNOME_VFS_MODULE_PATH' environment
19704 (install_path_list): New helper function used by `init_path_list'.
19705 (gnome_vfs_method_init): Use it.
19706 (load_module_in_path_list): New function to search for a module in
19708 (gnome_vfs_method_get): Use it.
19709 (module_get_sane_handle): Made const-safe.
19711 1999-10-19 Ettore Perazzoli <ettore@gnu.org>
19713 * modules/extfs-method.c (read_directory_list): New parameter
19714 `info_options'. If the `GNOME_VFS_FILE_INFO_GETMIMETYPE' bit is
19715 set, set the MIME type in the file information struct according to
19717 (do_open_directory): Updated accordingly.
19719 * modules/ftp-method.c: Do not #include "parse.h" anymore.
19721 * libgnomevfs/gnome-vfs-cancellation.c [HAVE_CONFIG_H]: #include
19724 * modules/Makefile.am (CPPFLAGS): #define `_GNU_SOURCE'.
19725 * libgnomevfs-pthread/Makefile.am (CPPFLAGS): Likewise.
19726 * libgnomevfs-corba/Makefile.am (CPPFLAGS): Likewise.
19727 * libgnomevfs/Makefile.am (CPPFLAGS): Likewise.
19729 * modules/extfs-method.c: Implemented directory reading.
19731 * modules/extfs-method.c (get_script_path): New helper function.
19733 (ERROR_IF_NOT_LOCAL): New macro.
19736 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_hequal): New function.
19737 (gnome_vfs_uri_hash): New function.
19738 * libgnomevfs/gnome-vfs-uri.h (gnome_vfs_uri_hash): Prototypes here.
19740 * modules/ftp-method.c (resolve_symlink_with_ls_options): Use
19741 `gnome_vfs_parse_ls_lga()' instead of `vfs_parse_ls_lga()', which
19742 does not exist anymore.
19744 * modules/parse.c: Removed.
19745 * modules/parse.h: Removed.
19747 * libgnomevfs/gnome-vfs-parse-ls.c: Removed global variables
19748 `columns', `column_ptr'.
19749 (vfs_split_text): New parameters `columns', `column_ptr'.
19750 (gnome_vfs_vfs_parse_ls_lga): Updated accordingly.
19751 (is_num): Get a string as the single parameter.
19752 (gnome_vfs_vfs_parse_ls_lga): Updated accordingly.
19753 (vfs_parse_filedate): New parameter `columns'.
19754 (gnome_vfs_vfs_parse_ls_lga): Updated accordingly.
19756 * configure.in: Check for `getdelim' and use our version if
19759 * libgnomevfs/Makefile.am: Added `getdelim' to `EXTRA_DIST'.
19761 * libgnomevfs/gnome-vfs-private.h [! HAVE_GETDELIM]: Declare
19762 prototype for `getdelim()'.
19764 * libgnomevfs/getdelim.c: New file, implementing `getdelim()' for
19767 1999-10-18 Ettore Perazzoli <ettore@gnu.org>
19769 * libgnomevfs/gnome-vfs-parse-ls.c: New file, derived from former
19770 `modules/parse.c'. Reindented; made all the helper functions
19771 static; glibified a bit.
19772 * libgnomevfs/gnome-vfs-parse-ls.h: Corresponding header file.
19774 1999-10-17 Ettore Perazzoli <ettore@gnu.org>
19776 * modules/extfs-method.c (do_open): If the return value from the
19777 script is nonzero, return `GNOME_VFS_ERROR_NOTFOUND'. Check that
19778 the parent URI is accessed through the `file' method. Completed
19779 parameters passed to the extfs script.
19781 * modules/modules.conf: Added entries for `extfs'.
19783 * modules/extfs/README: New file.
19784 * modules/extfs/a: New file.
19785 * modules/extfs/deb.in: New file.
19786 * modules/extfs/hp48: New file.
19787 * modules/extfs/mailfs: New file.
19788 * modules/extfs/patchfs: New file.
19789 * modules/extfs/rpm: New file.
19790 * modules/extfs/rpms: New file.
19791 * modules/extfs/trpm: New file.
19792 * modules/extfs/ar.in: New file.
19793 * modules/extfs/arj: New file.
19794 * modules/extfs/cpio.in: New file.
19795 * modules/extfs/lha.in: New file.
19796 * modules/extfs/rar.in: New file.
19797 * modules/extfs/zip.in: New file.
19798 * modules/extfs/zoo.in: New file.
19799 * configure.in: Generate scripts from the `.in' files.
19801 * configure.in: Check for `awk' using `AC_PROG_AWK'.
19803 * modules/extfs: New subdirectory.
19804 * modules/extfs/Makefile.am: New file.
19805 * modules/Makefile.am: Updated accordingly.
19807 * modules/extfs-method.c: Replaced member `fd' in `ExtfsHandle'
19808 with `vfs_handle' (i.e. we use a VFS handle instead of a UNIX file
19809 descriptor). #include <errno.h>.
19810 (VFS_HANDLE): New helper macro.
19811 (extfs_handle_close): Updated accordingly. Return value changed
19812 from `void' to `GnomeVFSResult', so that we can return the result
19813 of the `close' operation. Also, remove `local_path'.
19814 (do_open): Updated accordingly. Also updated for the new version
19815 of `gnome_vfs_create_temp()'.
19816 (do_close): Implementated (`close' operation).
19817 (do_read): Implemented (`read' operation).
19818 (do_tell): Implemented (`tell') operation.
19819 (do_write): Return `GNOME_VFS_ERROR_READONLYFS' instead of
19820 `GNOME_VFS_ERROR_NOTSUPPORTED'.
19822 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_create_temp): Changed
19823 so that it returns a GnomeVFSHandle instead of a plain Unix file
19824 descriptor. Abort if creating the file fails with something
19825 different from a "file exists" error.
19827 1999-10-15 Ettore Perazzoli <ettore@gnu.org>
19829 * modules/Makefile.am (CPPFLAGS): #define `PREFIX'.
19831 * libgnomevfs/gnome-vfs-process.c (gnome_vfs_process_new): Use
19832 `gnome_fs_forkexec()'.
19834 * libgnomevfs/gnome-vfs-process.c (get_max_fds): Removed.
19835 (shut_down_file_descriptors): Removed.
19836 * libgnomevfs/gnome-vfs-utils.c: Moved here.
19838 * libgnomevfs/gnome-vfs-utils.c
19839 (gnome_vfs_process_run_cancellable): New function.
19840 (gnome_vfs_forkexec): New function, cut & paste from
19841 `gnome_vfs_process_new()'.
19842 (gnome_vfs_create_temp): New function.
19843 * libgnomevfs/gnome-vfs-utils.h: Prototypes here.
19845 * libgnomevfs/gnome-vfs-process.c: #include "gnome-vfs.h" and
19846 "gnome-vfs-private.h", instead of just "gnome-vfs-process.h".
19848 * libgnomevfs/gnome-vfs-process.h
19849 (gnome_vfs_process_run_cancellable): Prototype.
19851 * libgnomevfs/gnome-vfs-process.h: New enum
19852 `GnomeVFSProcessRunResult'.
19854 1999-10-14 Ettore Perazzoli <ettore@gnu.org>
19856 * modules/extfs-method.c: New file, implementing MC-style extfs.
19857 * modules/extfs-method.h: Corresponding header.
19858 * modules/Makefile.am: Compile it in `libextfs.so'.
19860 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_uri): Report
19861 progress for the operation of deleting the source directories.
19862 Free progress info at each iteration.
19864 * libgnomevfs/gnome-vfs-types.h: New GnomeVFSXferPhase value
19865 `GNOME_VFS_XFER_PHASE_DELETESOURCE'.
19867 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_uri): Report
19868 `GNOME_VFS_XFER_PHASE_FILECOMPLETED' for the last file too.
19869 (remove_directory): New helper function.
19870 (gnome_vfs_xfer_uri): Use it.
19872 * libgnomevfs/gnome-vfs-xfer.c (fast_move): New function,
19873 implementing fast moving through `gnome_vfs_move()'.
19874 (gnome_vfs_xfer_uri): Use it if we are transferring files between
19875 two directories on the same file system and we are requested to
19876 remove the sources.
19878 1999-10-13 Ettore Perazzoli <ettore@gnu.org>
19880 * libgnomevfs/gnome-vfs-xfer.c (init_progress): New helper
19882 (gnome_vfs_xfer_uri): Use it. Leak fix: free progress info if the
19883 progress callback returns `FALSE' in the `READYTOGO' or `XFERRING'
19886 * modules/Makefile.am: Add `modules.conf' to `EXTRA_DIST'.
19888 * libgnomevfs/gnome-vfs-cancellation.c
19889 (gnome_vfs_cancellation_check): Do not complain if `cancellation'
19892 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_move_uri): New function.
19893 (gnome_vfs_move): New function.
19894 (gnome_vfs_check_same_fs_uris): New function.
19895 (gnome_vfs_check_same_fs): New function.
19896 * libgnomevfs/gnome-vfs-ops.h (gnome_vfs_move): Prototypes here.
19898 * libgnomevfs/gnome-vfs-private-ops.c
19899 (gnome_vfs_move_uri_cancellable): New function.
19900 (gnome_vfs_check_same_fs_uris_cancellable): New function.
19901 * libgnomevfs/gnome-vfs-private-ops.h
19902 (gnome_vfs_move_uri_cancellable): Prototypes here.
19904 * modules/file-method.c (do_check_same_fs): New function,
19905 installed as the `check_same_fs' op implementation.
19907 * libgnomevfs/gnome-vfs-private-types.h: New type
19908 `GnomeVFSCheckSameFSFunc'. New member `check_same_fs' in
19911 * modules/file-method.c (do_move): New function, implementing the
19914 * libgnomevfs/gnome-vfs-private-types.h: `GnomeVFSMethodRenameFunc'
19915 removed; replaced by `GnomeVFSMethodMoveFunc' with different
19916 parameters. `rename' member in `struct _GnomeVFSMethod' removed;
19917 replaced by `move'.
19919 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_get_basename): New
19921 * libgnomevfs/gnome-vfs-uri.h: Prototype here.
19923 * test/test-xfer.c: New file, implementing a test for the xfer
19925 * test/Makefile.am: Compile it as `test-xfer'.
19927 * test/test-copy.c: Removed.
19929 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_uri): Honour
19930 `GNOME_VFS_XFER_REMOVESOURCE'. This needs to be optimized for the
19931 "files are in the same file system" case of course.
19933 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_open): Doc'ed.
19934 (gnome_vfs_open_uri): Doc'ed.
19935 (gnome_vfs_create): Doc'ed.
19936 (gnome_vfs_create_uri): Doc'ed.
19937 (gnome_vfs_close): Doc'ed.
19938 (gnome_vfs_read): Doc'ed.
19939 (gnome_vfs_write): Doc'ed.
19940 (gnome_vfs_seek): Doc'ed.
19941 (gnome_vfs_tell): Doc'ed.
19942 (gnome_vfs_get_file_info): Doc'ed.
19943 (gnome_vfs_get_file_info_uri): Doc'ed.
19944 (gnome_vfs_get_file_info_from_handle): Doc'ed.
19945 (gnome_vfs_make_directory_for_uri): Doc'ed.
19946 (gnome_vfs_make_directory): Doc'ed.
19947 (gnome_vfs_remove_directory_from_uri): Doc'ed.
19948 (gnome_vfs_remove_directory): Doc'ed.
19949 (gnome_vfs_unlink_from_uri): Doc'ed.
19950 (gnome_vfs_unlink): Doc'ed.
19952 * test/test-directory.c (main): Local variable `args' made const.
19954 * test/test-directory.c (filter_list): `#if 0'ed out just to make
19955 the compiler happy.
19957 * libgnomevfs/gnome-vfs-result.c (gnome_vfs_result_from_errno):
19958 Re-indented to make sorting easier. Convert `EBUSY', `ENOTEMPTY',
19959 `EROFS', `EMLINK', `EXDEV', `EFAULT', `ELOOP', as well, using the
19960 new GnomeVFSResult values.
19962 * libgnomevfs/gnome-vfs-types.h: New errors
19963 `GNOME_VFS_ERROR_DIRECTORYBUSY', `GNOME_VFS_ERROR_DIRECTORYNOTEMPTY',
19964 `GNOME_VFS_ERROR_TOOMANYLINKS', `GNOME_VFS_ERROR_READONLYFS',
19965 `GNOME_VFS_ERROR_NOTSAMEFS', `GNOME_VFS_ERROR_NAMETOOLONG'.
19966 * libgnomevfs/gnome-vfs-result.c: Added corresponding string
19969 1999-10-12 Ettore Perazzoli <ettore@gnu.org>
19971 * modules/file-method.c (do_open): When getting `EINTR', do not
19972 restart the operation if a cancellation is pending.
19973 (do_create): Likewise.
19974 (do_close): Likewise.
19975 (do_read): Likewise.
19977 * libgnomevfs-pthread/gnome-vfs-job.c (dispatch_job_callback):
19978 Slightly made cleaner.
19982 * libgnomevfs-pthread/gnome-vfs-job.c (execute_open): Use
19983 cancellable version of the primitive.
19984 (execute_open_as_channel): Likewise.
19985 (execute_create): Likewise.
19986 (execute_create_as_channel): Likewise.
19987 (execute_close): Likewise
19988 (execute_read): Likewise.
19990 * libgnomevfs/gnome-vfs-configuration.c [HAVE_CONFIG_H]: #include
19993 * libgnomevfs/gnome-vfs-private.h: #include "gnome-vfs-private-ops.h".
19995 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_open_uri): Made a simple
19996 wrapper for the cancellable version in `gnome-vfs-private-ops.c'.
19997 (gnome_vfs_create_uri): Likewise.
19998 (gnome_vfs_close): Likewise.
19999 (gnome_vfs_read): Likewise.
20000 (gnome_vfs_write): Likewise.
20001 (gnome_vfs_seek): Likewise.
20002 (gnome_vfs_get_file_info_uri): Likewise.
20003 (gnome_vfs_get_file_info_from_handle): Likewise.
20004 (gnome_vfs_make_directory_for_uri): Likewise.
20005 (gnome_vfs_remove_directory_from_uri): Likewise.
20006 (gnome_vfs_unlink_from_uri): Likewise.
20008 * libgnomevfs/gnome-vfs-private-ops.h: New file.
20010 * libgnomevfs/gnome-vfs-private-ops.c: New file.
20012 * libgnomevfs/gnome-vfs-result.c: New error description for
20013 `GNOME_VFS_ERROR_CANCELLED'.
20015 * libgnomevfs/gnome-vfs-types.h: New error `GNOME_VFS_ERROR_CANCELLED'.
20017 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_cancel): Use
20018 the new `cancellation' member instead of `cancelled'.
20019 (dispatch_job_callback): Likewise.
20020 (gnome_vfs_job_new): Initialize `cancellation'.
20021 (gnome_vfs_job_destroy): Destroy it.
20022 (execute_open): Do not check `cancelled' anymore.
20023 (execute_create): Likewise.
20024 (execute_load_directory_not_sorted): Likewise.
20025 (execute_load_directory_sorted): Likewise.
20026 (xfer_callback): Likewise.
20028 * libgnomevfs-pthread/gnome-vfs-job.h (struct _GnomeVFSJob):
20029 Removed member `cancelled'. Replaced by new member
20030 `cancellation', of type `GnomeVFSCancellation'.
20032 * modules/bzip2-method.c: Updated all the method implementation
20033 functions to accept the `cancellation' parameter. It is not
20034 honoured yet though.
20035 * modules/file-method.c: Likewise.
20036 * modules/gzip-method.c: Likewise.
20037 * modules/http-method.c: Likewise.
20039 * libgnomevfs/gnome-vfs-seekable.c: Updated to accept the
20040 `cancellation' parameter. It does not honour it yet though.
20041 (read_file): Pass `NULL' as the `cancellation' parameter for
20043 (write_file): Likewise for `write'.
20044 (do_close): Likewise for `close'.
20046 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_open_uri): Pass `NULL' as
20047 the `cancellation' parameter to the `open' implementation.
20048 (gnome_vfs_open_uri): Likewise.
20049 (gnome_vfs_create_uri): Pass `NULL' as the `cancellation'
20050 parameter to the `create' implementation.
20051 (gnome_vfs_close): Pass `NULL' as the `cancellation' parameter to
20052 `gnome_vfs_handle_do_close()'.
20053 (gnome_vfs_read): Likewise with `gnome_vfs_handle_do_read()'.
20054 (gnome_vfs_write): Likewise with `gnome_vfs_handle_do_write()'.
20055 (gnome_vfs_seek): Likewise with `gnome_vfs_handle_do_seek()'.
20056 (gnome_vfs_get_file_info): Likewise with the `get_file_info'
20058 (gnome_vfs_get_file_info_uri): Likewise.
20059 (gnome_vfs_get_file_info_from_handle): Likewise with
20060 `gnome_vfs_handle_do_get_file_info()'.
20061 (gnome_vfs_make_directory_for_uri): Likewise with the
20062 `make_directory' implementation.
20063 (gnome_vfs_make_directory): Likewise.
20064 (gnome_vfs_remove_directory_from_uri): Likewise with the
20065 `remove_directory'implementation.
20066 (gnome_vfs_unlink_from_uri): Likewise for `unlink'.
20068 * libgnomevfs/gnome-vfs-handle.c (gnome_vfs_handle_do_close): New
20069 parameter `cancellation'.
20070 (gnome_vfs_handle_do_read): Likewise.
20071 (gnome_vfs_handle_do_write): Likewise.
20072 (gnome_vfs_handle_do_seek): Likewise.
20073 (gnome_vfs_handle_do_get_file_info): Likewise.
20074 * libgnomevfs/gnome-vfs-handle.h: Updated prototypes accordingly.
20076 * libgnomevfs/gnome-vfs-directory.c (open): New parameter
20078 (open_from_uri): Likewise. Pass it to the `open_directory'
20080 (gnome_vfs_directory_open): Updated accordingly.
20081 (gnome_vfs_directory_open_from_uri): Update accordingly.
20082 (gnome_vfs_directory_read_next): Pass `NULL' as the `cancellation'
20083 parameter in the call to the `read_directory' implementation.
20084 (gnome_vfs_directory_close): Pass `NULL' as the `cancellation'
20085 parameter in the call to the `close_directory' implementation.
20087 * libgnomevfs/gnome-vfs-private-types.h: New opaque typedef
20088 `GnomeVFSCancellation'. Added new `cancellation' parameter to all
20089 the method implementation typedefs.
20091 * libgnomevfs/gnome-vfs-private.h: #include
20092 "gnome-vfs-cancellation.h".
20094 * libgnomevfs/gnome-vfs-cancellation.c: New file, implementing
20095 cancellation for the VFS method implementations.
20097 * libgnomevfs/gnome-vfs-cancellation.h: New file.
20099 * modules/modules.conf: Added `ugzip' for compatibility with the
20100 Midnight Commander's VFS.
20102 * libgnomevfs/gnome-vfs-configuration.c (parse_line): Set
20103 `method_start' again after saving a method name.
20105 1999-10-11 Ettore Perazzoli <ettore@gnu.org>
20107 * test/test-sync.c (main): Abort reporting an error if
20108 `gnome_vfs_uri_new()' returns NULL.
20110 * modules/modules.conf: New file: configuration for the current VFS
20112 * modules/Makefile.am: Install it in the `modulesdir'.
20114 * libgnomevfs/gnome-vfs-method.c (gnome_vfs_method_get): Use
20115 `gnome_vfs_configuration_get_module_path()' to retrieve the module
20116 name. This also fixes a memory leak introduced by Michael's
20117 commit of 1999-08-31.
20119 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): Initialize the
20120 configuration system by calling `gnome_vfs_configuration_init()'.
20122 * libgnomevfs/gnome-vfs-constants.h: New constant
20123 `GNOME_VFS_MODULE_CFGFILE', `GNOME_VFS_MODULE_DIR'.
20125 * libgnomevfs/gnome-vfs-private.h: #include
20126 "gnome-vfs-configuration.h".
20128 * libgnomevfs/gnome-vfs-configuration.c: New file.
20130 * libgnomevfs/gnome-vfs-configuration.h: New file.
20132 1999-10-10 Ettore Perazzoli <ettore@gnu.org>
20134 * libgnomevfs/gnome-vfs-file-info.c: Doc'ed.
20136 * libgnomevfs/gnome-vfs-directory.c: Doc'ed.
20138 * libgnomevfs/gnome-vfs-directory-list.c: Doc'ed.
20140 * libgnomevfs/gnome-vfs-directory-filter.c: Doc'ed.
20142 * doc/writing-modules.sgml: New file.
20144 1999-10-08 Ettore Perazzoli <ettore@gnu.org>
20146 * modules/Makefile.am (CPPFLAGS): #define
20147 `_POSIX_PTHREAD_SEMANTICS'.
20148 * libgnomevfs/Makefile.am (CPPFLAGS): Likewise.
20150 * libgnomevfs-corba/gnome-vfs-slave-notify.c: #define `SUN_LEN()'
20151 if not already #defined.
20153 * libgnomevfs-corba/gnome-vfs-slave.c (setup_and_serve_channel):
20154 Change `socklen_t' into `int'.
20155 (setup_and_serve_channel): Use `[AP]F_UNIX' instead of
20156 `[AP]F_LOCAL' if the latter are not available.
20158 * libgnomevfs-corba/gnome-vfs-slave-process.c: #include
20159 <sys/types.h> first, <sys/socket.h> afterwards as pointed out by
20161 * libgnomevfs-corba/gnome-vfs-slave-notify.c: Likewise.
20163 1999-10-07 Ettore Perazzoli <ettore@gnu.org>
20165 * libgnomevfs/gnome-vfs-process.c: If the
20166 `GNOME_VFS_PROCESS_SETSID' option is set, call `setsid()'
20167 after forking and calling the user-specified function.
20169 * libgnomevfs/gnome-vfs-private.h: Do not #include
20170 "gnome-vfs-process.h".
20172 * libgnomevfs/gnome-vfs.h: #include "gnome-vfs-process.h". This
20173 makes the GnomeVFSProcess stuff public, thus making my work on the
20174 file manager slightly easier. It should not be public in the
20175 final version though; instead, I would like to have something like
20176 this in glib or gnome-libs.
20178 * libgnomevfs/Makefile.am: Install `gnome-vfs-process.h'.
20180 * libgnomevfs/gnome-vfs-process.h (gnome_vfs_process_new): Update
20183 * libgnomevfs/gnome-vfs-process.c (gnome_vfs_process_new): New
20184 parameter `options' instead of `use_search_path' and
20185 `close_file_descriptors'.
20186 * libgnomevfs-corba/gnome-vfs-slave-launch.c
20187 (gnome_vfs_slave_launch): Updated accordingly.
20189 * libgnomevfs/gnome-vfs-process.h: New enum
20190 `GnomeVFSProcessOptions'.
20192 * libgnomevfs/gnome-vfs-types.h: New value
20193 `GNOME_VFS_URI_HIDE_TOPLEVEL_METHOD' in `GnomeVFSURIHideOptions'.
20194 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_to_string): Honour
20197 1999-10-07 Miguel de Icaza <miguel@gnu.org>
20199 * modules/ftp-method.c (linear_read): Close first to comply to
20202 1999-10-04 Ettore Perazzoli <ettore@comm2000.it>
20204 * modules/module-shared.c (gnome_vfs_set_meta_for_list): Use
20205 `gnome_vfs_set_meta()' instead of `set_meta()'.
20207 * libgnomevfs/gnome-vfs-seekable.c (init_seek): Removed local
20208 variable `txt_uri'.
20210 * libgnomevfs-corba/gnome-vfs-slave.c (load_directory_sorted):
20211 Updated to use `gnome_vfs_directory_list_load()' instead of
20212 `gnome_vfs_directory_load()'.
20213 * libgnomevfs-pthread/gnome-vfs-job.c
20214 (execute_load_directory_sorted): Likewise.
20215 * test/test-directory.c (main): Likewise.
20217 * libgnomevfs/gnome-vfs-directory-list.c
20218 (gnome_vfs_directory_list_load): New version of
20219 `gnome_vfs_directory_load', for consistency.
20220 (gnome_vfs_directory_list_load_from_uri): Likewise for
20221 `gnome_vfs_directory_load_from_uri'.
20223 * libgnomevfs/gnome-vfs-directory.c (gnome_vfs_directory_load):
20225 (gnome_vfs_directory_load_from_uri): Removed.
20226 (gnome_vfs_uri_append_path): If the original URI is empty, return
20227 the URI from the new path.
20229 1999-09-30 Ettore Perazzoli <ettore@comm2000.it>
20231 * libgnomevfs/gnome-vfs-uri.c (my_streq): New function.
20232 (compare_elements): Use it instead of `strcmp' so that it works
20233 even with NULL fields.
20234 (gnome_vfs_uri_equal): Likewise.
20236 1999-09-29 Rodrigo Stulzer Lopes <rodrigo@conectiva.com.br>
20238 * configure.in: add pt_BR to ALL_LINGUAS
20240 1999-09-29 Ettore Perazzoli <ettore@comm2000.it>
20242 * modules/ftp-method.c (MUTEX_LOCK): New macro to lock a mutex.
20243 Defined to empty if `G_THREADS_ENABLED' is not defined.
20244 (MUTEX_UNLOCK): New macro to unlock a mutex. Defined to empty if
20245 `G_THREADS_ENABLED' is not defined.
20246 (ftpfs_connection_new) [G_THREADS_ENABLED]: Initialize
20248 (ftpfs_connection_unref): Perform locking. Free the lock if
20249 refcounting is zero.
20251 * modules/ftp-method.h [G_THREADS_ENABLED]: New member
20252 `access_lock' in `ftpfs_connection_t'.
20254 * modules/ftp-method.c: Define a static lock for
20255 `connections_hash'.
20256 (ftpfs_connection_destroy): Removed.
20257 (ftpfs_connection_unref): Perform locking on `connections_hash'.
20258 (lookup_conn): Likewise.
20259 (ftpfs_connection_new): Likewise.
20261 * modules/ftp-method.c (ftpfs_open_directory): Use the raw URI
20262 path, without using `g_dirname()'.
20264 1999-09-28 Ettore Perazzoli <ettore@comm2000.it>
20266 * modules/bzip2-method.c: Re-indented in GNOME style.
20268 * configure.in: Added `--enable-gconf' option to explicitly enable
20269 the GConf module backend; if not specified, GConf support is not
20270 compiled even if GConf is available. For now, the GConf API is
20271 too much of a moving target to rely on it by default.
20273 * modules/ftp-method.c (ftpfs_get_file_info): `#if 0'ed completely
20274 to get it to compile. Always return `GNOME_VFS_ERROR_NOTSUPPORTED'.
20276 1999-09-27 Miguel de Icaza <miguel@gnu.org>
20278 * modules/module-shared.c (gnome_vfs_set_meta_for_list,
20279 gnome_vfs_set_meta, gnome_vfs_stat_to_file_info,
20280 gnome_vfs_mime_type_from_mode): moved here some code from the file
20281 backend that can be reused by the ftp backend.
20283 * modules/ftp-method.c: directory listings work. Still some work
20286 1999-09-27 Cody Russell <bratsche@dfw.net>
20288 * modules/bzip2-method.c: At Ettore's request, reformatted the
20289 code to look more like the rest of the code. Function return
20290 values are now on the preceeding line of the function name.
20292 1999-09-27 Ettore Perazzoli <ettore@comm2000.it>
20294 * libgnomevfs-pthread/gnome-vfs-job.c (dispatch_open_callback):
20295 Unref before calling the callback, not after that.
20296 (dispatch_create_callback): Likewise.
20297 (dispatch_open_as_channel_callback): Likewise.
20299 * modules/bzip2-method.c (do_open): Removed unused variables.
20301 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_equal): New function.
20303 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_open_from_uri): Renamed
20304 to `gnome_vfs_open_uri'.
20305 (gnome_vfs_create_for_uri): Renamed to `gnome_vfs_create_uri'.
20306 (gnome_vfs_get_file_info_from_uri): Renamed to
20307 `gnome_vfs_get_file_info_uri'.
20309 * libgnomevfs-pthread/gnome-vfs-job.c (execute_open_as_channel):
20310 Close and unref channels.
20311 (execute_create_as_channel): Likewise.
20312 (gnome_vfs_job_destroy): Use `g_io_channel_close()' instead of
20314 (execute_open_as_channel): Wait for ack from the notification.
20315 (execute_create_as_channel): Likewise.
20317 * libgnomevfs/gnome-vfs-init.c (gnome_vfs_init): Ignore SIGPIPE.
20319 1999-09-26 Dave Camp <campd@oit.edu>
20321 * modules/gconf-method.c (do_get_file_info_from_handle): New method.
20322 (vfs_module_init): Don't pass the "application" parameter to
20325 11999-09-25 Cody Russell <bratsche@dfw.net>
20327 * modules/bzip2-method.c: Removed MAKE_ABSOLUTE().
20329 1999-09-25 Ettore Perazzoli <ettore@comm2000.it>
20331 * libgnomevfs/gnome-vfs-constants.h (GNOME_VFS_OFFSET_FORMAT_STR)
20332 [!HAVE_GINT64]: Change "L" to "l".
20334 * modules/bzip2-method.c (struct _Bzip2MethodHandle): Removed
20335 `modification_time' member.
20336 (bzip2_method_handle_new): Removed `modification_time' parameter.
20337 (do_open): Do not pass it as an uninitialized value nor zero
20338 anymore. Open the file using the parent URI correctly.
20339 (bzip2_read_open): Removed bogus static prototype.
20340 (do_open): Write mode `#if 0'ed out as it wouldn't work anyway.
20342 * modules/Makefile.am: Enable compilation of the bzip2 module.
20344 1999-09-25 Kjartan Maraas <kmaraas@online.no>
20346 * configure.in: Added da to ALL_LINGUAS.
20348 1999-09-18 Cody Russell <bratsche@dfw.net>
20350 * modules/bzip2-method.[ch]: Added. Note that this method is not
20351 currently finished, and so I've disabled building of it for now.
20353 * modules/Makefile.am: Added Bzip2, but it's currently commented
20356 * configure.in: Fixed a typo. "gconf will not be build"
20359 1999-09-18 Ettore Perazzoli <ettore@comm2000.it>
20361 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_new):
20362 Initialize the `cancelled' member to `FALSE'.
20363 (gnome_vfs_job_cancel): Set `cancelled' to `TRUE'.
20364 (dispatch_job_callback): If the job was cancelled, do not dispatch
20366 (execute_open): If the job was cancelled, return FALSE so that the
20368 (execute_create): Likewise.
20369 (execute_load_directory_not_sorted): Interrupt if job is
20370 cancelled. Also, close the directory handle on exit.
20371 (execute_load_directory_sorted): Likewise.
20372 (xfer_callback): If the job is cancelled, return FALSE.
20374 * libgnomevfs-pthread/gnome-vfs-job.h (struct _GnomeVFSJob): New
20375 member `cancelled'.
20377 1999-09-18 Michael Meeks <michael@nuclecu.unam.mx>
20379 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_has_parent): remove
20382 * modules/ftp-method.c, gzip-method.c, gconf-method.c:
20383 pad method structure.
20385 * modules/http-method.c: Add comment explaining the coding stall.
20387 * modules/file-method.c (do_unlink): implement.
20389 * libgnomevfs/gnome-vfs-seekable.c (do_close, init_seek): do unlink of
20392 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_unlink),
20393 (gnome_vfs_unlink_for_uri): Added.
20395 * libgnomevfs/gnome-vfs-ops.h: add unlinks.
20397 * libgnomevfs/gnome-vfs-private-types.h: Add unlink, update truncate.
20399 1999-09-17 Ettore Perazzoli <ettore@comm2000.it>
20401 * libgnomevfs/gnome-vfs-constants.h: #include "gnome-vfs-types.h"
20402 and <glibconfig.h>. #define `GNOME_VFS_SIZE_FORMAT_STR' and
20403 `GNOME_VFS_OFFSET_FORMAT_STR' according to the size of
20404 `GnomeVFSFileSize' and `GnomeVFSFileOffset'
20405 (i.e. according to whether gint64 exists or not).
20407 * libgnomevfs/gnome-vfs-types.h: #include <glibconfig.h>.
20409 1999-09-16 Ettore Perazzoli <ettore@comm2000.it>
20411 * libgnomevfs-pthread/gnome-vfs-job.c
20412 (execute_load_directory_sorted): If the directory is empty, notify
20415 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_has_parent): New function.
20416 (gnome_vfs_uri_get_parent): New function.
20417 (set_uri_element): Make sure there is a slash at the beginning of
20420 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_to_string): Do not
20421 try to copy `toplevel_info' if it is NULL.
20422 (gnome_vfs_uri_dup): If `uri' is NULL, do not spit out a warning.
20424 * libgnomevfs-pthread/gnome-vfs-job.c
20425 (dispatch_load_directory_callback): Do not unref the URI here
20426 unless we are reporting an error!
20427 (execute_open): Return FALSE if the operation failed, so that the
20429 (execute_create): Likewise.
20430 (execute_open_as_channel): Return FALSE on any error, and after closing
20432 (execute_create_as_channel): Likewise.
20434 * libgnomevfs/gnome-vfs-directory.c (directory_visit_internal): Use new
20435 `gnome_vfs_uri_append_path()' instead of old
20436 `gnome_vfs_uri_append_text()'.
20437 (gnome_vfs_directory_visit_files_at_uri): Likewise.
20438 (CHECK_IF_SUPPORTED): Removed bogus `vfs' parameter. All
20439 occurrences updated.
20441 * libgnomevfs/gnome-vfs-xfer.c (create_xfer_file_list): Use new
20442 `gnome_vfs_uri_append_path()' instead of old
20443 `gnome_vfs_uri_append_text()'.
20444 (gnome_vfs_xfer_uri): Likewise.
20446 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_dup): Handle the
20447 toplevel URI element correctly.
20448 (gnome_vfs_uri_append_text): Removed.
20449 (gnome_vfs_uri_append_path): New function.
20451 1999-09-15 Ettore Perazzoli <ettore@comm2000.it>
20453 * test/Makefile.am (EXTRA_DIST): Add all the `.c' files.
20455 * libgnomevfs-corba/Makefile.am (gnome_vfs_slave_SOURCES): List
20456 built sources on top.
20457 (libgnomevfs_corba_la_SOURCES): Likewise.
20459 * libgnomevfs/Makefile.am (noinst_HEADERS): Add
20460 `gnome-vfs-module.h'.
20462 1999-09-14 Ettore Perazzoli <ettore@comm2000.it>
20464 * libgnomevfs-pthread/gnome-vfs-job.c (dispatch_open_callback):
20466 (dispatch_create_callback): Likewise.
20467 (dispatch_open_as_channel_callback): Likewise.
20468 (dispatch_create_as_channel_callback): Likewise.
20469 (dispatch_load_directory_callback): Likewise.
20471 * libgnomevfs-pthread/gnome-vfs-async-ops.c
20472 (gnome_vfs_async_open_uri): New function.
20473 (gnome_vfs_async_open_uri_as_channel): New function.
20474 (gnome_vfs_async_create_uri): New function.
20475 (gnome_vfs_async_load_directory_uri): New function.
20476 (gnome_vfs_async_open): Updated to work with the GnomeVFSJob
20477 changes using the GnomeVFSURI-based counterpart.
20478 (gnome_vfs_async_open_as_channel): Likewise.
20479 (gnome_vfs_async_create): Likewise.
20480 (gnome_vfs_async_create_as_channel): Likewise.
20481 (gnome_vfs_async_load_directory): Likewise.
20483 * libgnomevfs-pthread/gnome-vfs-job.c (execute_open): Updated to
20484 work with the GnomeVFSJob changes.
20485 (execute_open_as_channel): Likewise.
20486 (execute_create): Likewise.
20487 (execute_create_as_channel): Likewise.
20488 (execute_load_directory_not_sorted): Likewise.
20489 (execute_load_directory_sorted): Likewise.
20491 * libgnomevfs-pthread/gnome-vfs-job.h: Use a `GnomeVFSURI' instead
20492 of a string for all the jobs, except for the xfer one.
20494 * libgnomevfs/gnome-vfs-async-ops.h (gnome_vfs_async_open_uri):
20495 New function prototype.
20496 (gnome_vfs_async_open_uri_as_channel): New function prototype.
20497 (gnome_vfs_async_create_uri): New function prototype.
20498 (gnome_vfs_async_create_uri_as_channel): New function prototype.
20499 (gnome_vfs_async_load_directory_uri): New function prototype.
20501 * libgnomevfs/gnome-vfs-directory-list.c
20502 (gnome_vfs_directory_list_sort): Re-assign `entries' to sort the
20503 list, and set the current position to "none".
20504 (gnome_vfs_directory_list_set_position): Allow setting a NULL
20507 * libgnomevfs/gnome-vfs-directory-filter.c
20508 (gnome_vfs_directory_filter_new): Do not return NULL if type is
20509 "none", but some option is specified.
20511 * libgnomevfs/gnome-vfs-types.h: New GnomeVFSDirectoryFilterOption
20512 `GNOME_VFS_DIRECTORY_FILTER_NOSELFDIR' to skip `.' and
20513 `GNOME_VFS_DIRECTORY_FILTER_NOPARENTDIR' to skip `..'.
20514 * libgnomevfs/gnome-vfs-directory-filter.c (common_filter): Honour
20517 * test/test-directory.c (sort_list): Measure sorting speed if
20518 `--measure-speed' is specified.
20519 (main): Sort the list even if `--measure-speed' is specified.
20520 Removed bogus filtering (it did not fit with the popt argument
20523 * test/test-async-directory.c: New option `--sort' (`-s').
20524 (main): Do not sort the directory unless it is specified.
20526 * test/test-async-directory.c: Changed alias for `--measure-speed'
20528 * test/test-directory.c: Likewise.
20530 * idl/gnome-vfs-slave.idl
20531 (GNOME::VFS:Slave::Notify::load_directory): The problem with
20532 `oneway' notifications was an ORBit bug, and has now been
20533 fixed: make this method `oneway' again.
20535 * libgnomevfs/gnome-vfs-directory-list.c
20536 (gnome_vfs_directory_list_get): New function.
20537 * libgnomevfs/gnome-vfs-directory-list.h: Prototype here.
20539 1999-09-13 Ettore Perazzoli <ettore@comm2000.it>
20541 * idl/gnome-vfs-slave.idl: Made all the Notify methods non-oneway.
20542 [No matter what Sopwith says, ORBit does seem to discard oneway
20543 calls. Too bad, this could give us up to 20% more speed in
20546 1999-09-12 Ettore Perazzoli <ettore@comm2000.it>
20548 * libgnomevfs-corba/gnome-vfs-async-ops.c
20549 (gnome_vfs_async_cancel): New function. Just a stub for now.
20551 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_cancel): New
20552 function. Just a stub for now.
20554 * libgnomevfs-pthread/gnome-vfs-job.h (gnome_vfs_job_cancel):
20557 * libgnomevfs-pthread/gnome-vfs-async-ops.c
20558 (gnome_vfs_async_cancel): New function.
20560 * libgnomevfs/gnome-vfs-async-ops.h (gnome_vfs_async_cancel): New
20563 * libgnomevfs-pthread/gnome-vfs-job.c (execute_close): Notify with
20564 ack and return `FALSE' so that the thread is killed.
20565 (execute_load_directory_not_sorted): Always return FALSE.
20566 (execute_load_directory_sorted): Likewise.
20567 (gnome_vfs_job_new): Start the slave only when the `GnomeVFSJob'
20568 structure has all the members filled.
20570 * libgnomevfs-corba/gnome-vfs-slave.c: Do not #define
20572 (DPRINTF): Flush stdout.
20574 * test/test-directory.c: Added speed measurement options.
20575 (main): Honour them.
20577 * libgnomevfs/gnome-vfs-directory-list.h
20578 (gnome_vfs_directory_list_get_num_entries): New Prototype.
20580 * libgnomevfs/gnome-vfs-directory-list.c
20581 (struct _GnomeVFSDirectoryList): New member `num_entries'.
20582 (remove_entry): Decrement it.
20583 (gnome_vfs_directory_list_new): Initialize it.
20584 (gnome_vfs_directory_list_prepend): Increment it.
20585 (gnome_vfs_directory_list_append): Increment it.
20586 (gnome_vfs_directory_list_get_num_entries): New function, returning
20589 * libgnomevfs/gnome-vfs-utils.c: #include <string.h>.
20591 1999-09-11 Ettore Perazzoli <ettore@comm2000.it>
20593 * test/test-async-directory.c (print_list): Flush stdout after
20596 * libgnomevfs-pthread/gnome-vfs-job.c
20597 (execute_load_directory_sorted): Set result to
20598 `GNOME_VFS_ERROR_EOF' for the last notification.
20600 * test/test-async-directory.c: Added command-line options to
20601 control the number of items per notification and measure speed.
20602 (main): Set them up and honour them.
20603 (directory_load_callback): Do not print anything if measuring speed.
20605 * test/test-async-directory.c (main): Initialize the libraries
20606 correctly according to the version we are compiling (CORBA or
20608 (print_list): New parameter `num_entries'. Only print out the
20609 first `num_entries' elements.
20610 (directory_load_callback): Pass the number of entries.
20612 * test/Makefile.am: Compile `test-async-directory' in two
20613 versions: a CORBA and a pthread one.
20615 * libgnomevfs-pthread/gnome-vfs-job.c (JOB_DEBUG): Debugging
20616 macro, normally disabled.
20617 (job_notify): Set `want_notify_ack' before calling `wakeup'.
20618 (job_ack_notify): Debugging messages.
20619 (wakeup): Likewise.
20620 (job_oneway_notify): Likewise.
20621 (job_notify): Likewise.
20622 (job_close): Likewise.
20624 * test/gnome-file-selection/Makefile.am: Compile the pthread
20625 version of `gnome-file-selection-test' as well.
20627 * test/gnome-file-selection/gnome-file-selection.c (struct
20628 _GnomeFileSelectionPrivate): Removed `GnomeVFSAsyncContext'
20629 member, replaced by a `GnomeVFSAsyncHandle' member.
20630 (destroy): Don't free the context as it does not exist anymore.
20631 (init): Do not initialize the context. Instead, set the handle to
20633 (start_populating): Load the directory with the new API.
20634 (populate_callback): Updated for the new API (get a
20635 GnomeVFSAsyncHandle, not a GnomeVFSAsyncContext).
20637 * test/Makefile.am (SUBDIRS): Compile `gnome-file-selection'
20640 * modules/ftp-method.c: Do not #include "util-url.h" anymore.
20642 * modules/util-url.c: Removed.
20643 * modules/util-url.h: Removed.
20645 * modules/ftp-method.c (ftpfs_chdir_internal): Ooops. Use `TRUE'
20646 instead of `WAIT_REPLY'.
20647 (ftpfs_get_current_directory): Use `FALSE' instead of `NONE'.
20649 1999-09-10 Ettore Perazzoli <ettore@comm2000.it>
20651 * modules/ftp-method.c: Removed `reply_str' global. Removed
20652 `NONE', `WAIT_REPLY', `WANT_STRING' #defines.
20653 (command): New parameters `reply_string' and `reply_string_len':
20654 copy the response in there instead of using the silly global.
20655 (login_server): Pass `TRUE' instead of `WAIT_REPLY' to `command()'
20656 for the `wait_reply' parameter. Pass NULL, 0 as `reply_string',
20657 `reply_string_len'.
20658 (ftpfs_chdir_internal): Likewise.
20659 (open_data_connection): Likewise.
20660 (changetype): Likewise.
20661 (initconn): Likewise.
20662 (abort_transfer): Pass `FALSE' instead of `NONE' to `command()'
20663 for the `wait_reply' parameter. Pass NULL, 0 as `reply_string',
20664 `reply_string_len'.
20665 (ftpfs_get_current_directory): Likewise.
20666 (setup_passive): Allocate the reply in a local buffer, update the
20667 call to `command()'.
20669 * modules/ftp-method.c: Removed variable `force_expiration', it
20670 does not seem to be have meaningful use. #define `logfile' to
20671 `stdout' so that we get some useful debugging messages. Removed
20672 `code' global (this was *evil*). Removed `got_sigpipe' global.
20673 (retrieve_dir): Do not reference it anymore.
20674 (get_reply): Return the code without dividing it by 100.
20675 (command): Return 421 for a transient error. Return `COMPLETE *
20676 100' instead of `COMPLETE'.
20677 (login_server): Divide return values from `get_reply' and
20678 `command' by 100 before comparing with the `ftp.h' constants.
20679 (abort_transfer): Compare `get_reply()' return value with 426
20680 instead of comparing it with 4 and checking the global `code' with
20682 (store_file): Divide return value from `get_reply()' by 100.
20683 (linear_read): Likewise.
20684 (ftpfs_get_current_directory): Likewise.
20685 (retrieve_dir): Likewise.
20686 (abort_transfer): Divide return value from `command()' by 100.
20687 (login_server): Likewise.
20688 (setup_passive): Likewise.
20689 (ftpfs_get_current_directory): Likewise.
20690 (ftpfs_chdir_internal): Likewise.
20691 (open_data_connection): Likewise.
20692 (changetype): Likewise.
20693 (initconn): Likewise.
20694 (is_connection_closed): Removed unused function.
20695 (sig_pipe): Do not set `got_sigpipe' anymore.
20696 (net_init): Likewise.
20697 (command): Likewise.
20699 * modules/ftp-method.c (ftpfs_connection_new): New parameter
20700 `result_return' used to return the VFS error code for a failure.
20701 (ftpfs_uri_new): Likewise.
20702 (ftpfs_open_socket): Return a GnomeVFSResult, and set the
20703 connection on `conn' directly. Return
20704 `GNOME_VFS_ERROR_INVALIDHOSTNAME' if the host name is not valid.
20705 If `gethostbyname()' fails, translate `h_errno' using
20706 `gnome_vfs_result_from_h_errno()'. If any of the other Unix
20707 functions fails, return a sensible error code using
20708 `gnome_vfs_result_from_errno()'.
20709 (login_server): Return value changed to `GnomeVFSResult'. Return
20710 `GNOME_VFS_ERROR_LOGINFAILED' on error. Use login "anonymous" if
20712 (ftpfs_open): Use the new result parameter in `ftpfs_uri_new()'.
20713 (ftpfs_create): Likewise.
20714 (command): Adapted to the new `ftpfs_connection_connect()'.
20715 (ftpfs_connection_connect): Return type changed to
20716 `GnomeVFSResult'. Return an appropriate result value.
20717 (hash_conn): Deal with NULL host/user names gracefully.
20718 (get_file_entry): Return `GNOME_VFS_ERROR_NOTFOUND' if the file is
20719 not found, instead of `GNOME_VFS_ERROR_GENERIC'.
20721 * libgnomevfs/gnome-vfs-result.c: #include <netdb.h> and declare
20722 `h_errno' as extern
20723 (gnome_vfs_result_from_h_errno): New function.
20724 * libgnomevfs/gnome-vfs-result.h (gnome_vfs_result_from_h_errno):
20727 * libgnomevfs/gnome-vfs-types.h: New errors
20728 `GNOME_VFS_ERROR_HOSTNOTFOUND', `GNOME_VFS_ERROR_INVALIDHOSTNAME',
20729 `GNOME_VFS_ERROR_HOSTHASNOADDRESS', `GNOME_VFS_ERROR_LOGINFAILED'.
20730 * libgnomevfs/gnome-vfs-result.c: Added the corresponding
20731 description strings.
20733 * modules/ftp-method.c (resolve_symlink_without_ls_options): Use
20734 `gnome_vfs_canonicalize_pathname()' instead of
20735 `canonicalize_pathname' from `util-url.c'.
20736 (ftpfs_open): Return `GNOME_VFS_ERROR_INVALIDURI' instead of
20737 `GNOME_VFS_ERROR_WRONGFORMAT'.
20738 (ftpfs_create): Likewise.
20739 (ftpfs_connection_new): Get const string parameters, and
20740 g_strdup() all of them when filling the connection struct.
20741 (ftpfs_parse_uri): Renamed to `ftpfs_uri_new'. Use the new
20742 members in `GnomeVFSToplevelURI' instead of parsing the string.
20743 (ftpfs_connection_new): Removed unused parameter `path'; callers
20745 (lookup_conn): If the specified port is zero, use the default FTP
20747 (ftpfs_connection_new): Likewise.
20749 * test/test-sync.c (main): Do things through a GnomeVFSURI and use
20750 `gnome_vfs_uri_to_string()', so that we can debug the new stuff.
20752 * libgnomevfs/gnome-vfs-xfer.c (gnome_vfs_xfer_uri): Hide password
20753 when setting source/target URIs in the progress info.
20755 * libgnomevfs/gnome-vfs-uri.c (set_uri_element): New helper
20756 function. It sets the URI element canonicalizing it as well.
20757 (gnome_vfs_uri_new): Changed to use `set_uri_element' and allocate
20758 the special toplevel URI element.
20759 (gnome_vfs_uri_to_string): New parameter `hide_options'. Add
20760 host/user information to the string, hiding the information
20761 specified in `hide_options'.
20763 * libgnomevfs/gnome-vfs-types.h: New enum `GnomeVFSURIHideOptions'.
20765 * libgnomevfs/gnome-vfs-utils.c (gnome_vfs_canonicalize_pathname):
20766 New function, stolen from `util-url.c'. Slightly changed so that
20767 it does not remove trailing slashes anymore (we do want them!).
20769 * libgnomevfs/gnome-vfs-uri.c: Use the constants defined in
20770 `gnome-vfs-constants.h'.
20772 * libgnomevfs/gnome-vfs.h: #include `gnome-vfs-constants.h'.
20774 * libgnomevfs/gnome-vfs-constants.h: New file defining VFS
20777 1999-09-09 Ettore Perazzoli <ettore@comm2000.it>
20779 * libgnomevfs/gnome-vfs-uri.c (gnome_vfs_uri_new): Allocate the
20780 toplevel URI as a `GnomeVFSToplevelURI'.
20781 (gnome_vfs_uri_get_toplevel): New function.
20782 (gnome_vfs_uri_get_host_name): New function.
20783 (gnome_vfs_uri_get_host_port): New function.
20784 (gnome_vfs_uri_get_user_name): New function.
20785 (gnome_vfs_uri_get_password): New function.
20786 (gnome_vfs_uri_set_host_name): New function.
20787 (gnome_vfs_uri_set_host_port): New function.
20788 (gnome_vfs_uri_set_user_name): New function.
20789 (gnome_vfs_uri_set_password): New function.
20790 (destroy_element): If it's a toplevel URI, free its extra strings
20792 (string_head): New helper function.
20793 (split_toplevel_uri): New function, derived from the Midnight
20794 Commander code in `util-url.c'. Changed semantics and parameters,
20795 optimized and prettified a little bit.
20797 * libgnomevfs/gnome-vfs-types.h: New type `GnomeVFSToplevelURI'.
20799 1999-09-08 Ettore Perazzoli <ettore@comm2000.it>
20801 * libgnomevfs-pthread/gnome-vfs-job.c (execute_open): Do not set
20802 `handle' on the notification.
20803 (execute_create): Likewise.
20804 (execute_close): Likewise.
20806 * libgnomevfs-pthread/gnome-vfs-async-ops.c
20807 (gnome_vfs_async_close): Do not set `handle' on the request.
20808 (gnome_vfs_async_read): Likewise.
20809 (gnome_vfs_async_write): Likewise.
20811 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_new):
20812 Initialize the `handle' member to NULL.
20813 (execute_open): Set `handle'.
20814 (execute_create): Likewise.
20815 (execute_close): Use `job->handle' instead of the (now gone)
20816 request-specific member.
20817 (execute_read): Likewise.
20818 (execute_write): Likewise.
20819 (execute_close): Set `handle' to NULL.
20821 * libgnomevfs-pthread/gnome-vfs-job.h: Removed `handle' members
20822 from all the `*Job' structs.
20823 (struct _GnomeVFSJob): New member `handle'.
20825 * libgnomevfs-pthread/gnome-vfs-job.c (execute_xfer): Return FALSE.
20826 (execute_load_directory): Return FALSE;
20828 * libgnomevfs-pthread/gnome-vfs-async-ops.c
20829 (gnome_vfs_async_context_new): Removed.
20830 (gnome_vfs_async_context_destroy): Removed.
20831 (struct _GnomeVFSAsyncContext): Removed.
20832 (struct _GnomeVFSAsyncHandle): Removed.
20833 (gnome_vfs_async_open): Updated for the new API. Create a new job
20834 for this file and return it as the handle.
20835 (gnome_vfs_async_open_as_channel): Likewise.
20836 (gnome_vfs_async_create): Likewise.
20837 (gnome_vfs_async_create_as_channel): Likewise.
20838 (gnome_vfs_async_close): Updated for the new API.
20839 (gnome_vfs_async_read): Updated for the new API.
20840 (gnome_vfs_async_write): Updated for the new API.
20841 (gnome_vfs_async_load_directory): Updated for the new API. Create
20842 a new job for this file and return it as the handle.
20843 (gnome_vfs_async_xfer): Likewise.
20845 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_new): Removed
20846 parameter `context'.
20847 (dispatch_open_callback): Updated to match the new number of
20848 parameters of callback functions. Pass the job as the
20849 `GnomeVFSAsyncHandle' parameter.
20850 (dispatch_create_callback): Likewise.
20851 (dispatch_open_as_channel_callback): Likewise.
20852 (dispatch_create_as_channel_callback): Likewise.
20853 (dispatch_read_callback): Likewise.
20854 (dispatch_write_callback): Likewise.
20855 (dispatch_xfer_callback): Likewise.
20856 (dispatch_close_callback): Likewise. Destroy the job on return.
20857 (dispatch_load_directory_callback): Likewise.
20859 * libgnomevfs-pthread/gnome-vfs-job.h (struct _GnomeVFSJob):
20860 Removed member `context'.
20862 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_new): Create
20863 new slave first. If this fails, return NULL.
20865 * test/test-channel.c (io_channel_callback): Handle combined
20868 * libgnomevfs/gnome-vfs-types.h: Removed `GnomeVFSAsyncContext'
20871 * libgnomevfs-corba/gnome-vfs-slave-notify.c (impl_Notify_open):
20872 Duplicate the file handle object.
20873 (impl_Notify_close): Relese the file handle object.
20875 * test/test-async.c: Adapted to the new API.
20876 * test/test-async-channel.c: Likewise.
20877 * test/test-channel.c: Likewise.
20879 * test/Makefile.am: Do not compile the pthread versions of the
20880 tests anymore. Do not compile the gnome-file-selection test for
20883 * libgnomevfs-corba/gnome-vfs-async-ops.c: Updated all the
20884 functions to handle the new parameters and use the new modules.
20885 (gnome_vfs_async_context_destroy): Removed.
20886 (gnome_vfs_async_context_reset): Removed.
20887 (gnome_vfs_async_context_new): Removed.
20888 (create_notify_object): Removed.
20889 (context_from_servant): Removed.
20891 * libgnomevfs-corba/gnome-vfs-slave-notify.c: New file,
20892 implementing the `GNOME::VFS::Slave::Notify' interface.
20893 * libgnomevfs-corba/gnome-vfs-slave-notify.h: Header for it.
20895 * libgnomevfs-corba/gnome-vfs-slave-process.c: New file,
20896 replacing GnomeVFSAsyncContext handling.
20897 * libgnomevfs-corba/gnome-vfs-slave-process.h: Header for it.
20899 * libgnomevfs/gnome-vfs-types.h: Removed
20900 `GnomeVFSAsyncContextResetCallback' typedef.
20902 * libgnomevfs/gnome-vfs-types.h: The callbacks no longer take a
20903 `GnomeVFSAsyncContext *' parameter. Instead, they now take a
20904 `GnomeVFSAsyncHandle *' parameter.
20906 * libgnomevfs/gnome-vfs-async-ops.h: Removed prototypes for
20907 (gnome_vfs_async_context_new): Removed prototype.
20908 (gnome_vfs_async_context_reset): Removed prototype.
20909 (gnome_vfs_async_context_destroy): Remove prototype.
20910 (gnome_vfs_async_open): Removed parameter `context'; new parameter
20912 (gnome_vfs_async_open_as_channel): Likewise.
20913 (gnome_vfs_async_create): Likewise.
20914 (gnome_vfs_async_create_as_channel): Likewise.
20915 (gnome_vfs_async_load_directory): Likewise.
20916 (gnome_vfs_async_xfer): Likewise.
20918 1999-09-08 Michael Meeks <michael@nuclecu.unam.mx>
20920 * libgnomevfs/gnome-vfs-seekable.c (init_seek): Split out file read
20921 (read_file): to here & added (write_file): to put back the cache.
20922 (do_close): write file back. (init_seek): Add dirty bit.
20923 NB. dirt bit could cause problems with 0 length created files.
20925 1999-09-07 Michael Meeks <michael@imaginator.com>
20927 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_open_from_uri): Added new
20928 improved re-open for non-random capable file methods.
20930 * doc/writing-modules.txt: Updated.
20932 * libgnomevfs/gnome-vfs-seekable.c: Actualy does something now.
20934 * modules/file-method.c (do_create): Fixed unix_mode on created file
20935 to allow reading from a created file.
20937 1999-09-06 Ettore Perazzoli <ettore@comm2000.it>
20939 * libgnomevfs-pthread/gnome-vfs-job.c (gnome_vfs_job_new):
20940 Initialize `wakeup_channel_lock'.
20941 (gnome_vfs_job_destroy): Free it.
20942 (wakeup): New helper function.
20943 (job_oneway_notify): Use it. Lock the channel mutex before doing
20945 (job_notify): Likewise.
20946 (job_ack_notify): Unlock the channel mutex.
20948 * libgnomevfs-pthread/gnome-vfs-job.h: New member
20949 `wakeup_channel_lock' in `GnomeVFSJob'.
20951 * libgnomevfs-pthread/gnome-vfs-job.c (job_notify): Set
20952 `want_notify_ack' to TRUE before waiting for the acknowledgment
20954 (job_ack_notify): Signal the acknowledgment condition only if
20955 `want_notify_ack' is TRUE.
20957 * libgnomevfs-pthread/gnome-vfs-job.h: New member
20958 `want_notify_ack' in `GnomeVFSJob'.
20960 1999-09-06 Michael Meeks <michael@imaginator.com>
20962 * libgnomevfs/gnome-vfs-private.h: Add include gnome-vfs-seekable.h
20964 * libgnomevfs/gnome-vfs-seekable.[ch]: Created.
20966 * libgnomevfs/Makefile.am: Include them.
20968 * libgnomevfs/gnome-vfs-handle.c (gnome_vfs_handle_new): Added
20969 OPEN_RANDOM hook here.
20971 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_open_from_uri): and removed
20974 * test/test-seek.c: Implemented fully.
20976 * modules/file-method.c (do_tell, do_seek): correct order to offset
20979 * test/gnome-file-selection/gicon.c (gicon_get_icon_for_file): Add
20982 1999-09-06 Ettore Perazzoli <ettore@comm2000.it>
20984 * libgnomevfs-corba/gnome-vfs-async-ops.c
20985 (impl_Notify_open_as_channel): If the operation fails, the context
20986 is not busy anymore.
20988 * libgnomevfs/gnome-vfs-method.c: New type `MethodElement'.
20989 (gnome_vfs_method_get): Put `MethodElement's in the hash table
20990 instead of `GnomeVFSMethod's.
20991 (module_get_sane_handle): Do not check for get_file_info.
20993 * modules/file-method.c (do_open): Removed wrong directory test.
20994 (do_create): Removed stupid stat check.
20995 (do_seek): Call LSEEK() correctly.
20996 (do_tell): Likewise.
20998 1999-09-05 Michael Meeks <michael@imaginator.com>
21000 * test/Makefile.am (noinst_PROGRAMS): Added test_seek.
21002 * libgnomevfs/gnome-vfs-method.c (module_get_sane_handle):
21003 Add check for 'seek' and no 'tell'.
21005 1999-09-05 Ettore Perazzoli <ettore@comm2000.it>
21007 * modules/file-method.c (do_open): Fstat the file; if it's a
21008 directory, return `GNOME_VFS_ERROR_ISDIRECTORY'.
21009 (do_create): Likewise.
21011 1999-09-04 Ettore Perazzoli <ettore@comm2000.it>
21013 * modules/file-method.c (stat_to_file_info): New helper function.
21014 (get_stat_info_from_handle): New function to get GnomeVFSFileInfo
21015 from an existing handle.
21016 (do_get_file_info_from_handle): New function, implementing the
21017 `get_file_info_from_handle' method.
21019 * modules/ftp-method.c: Likewise.
21020 * modules/gconf-method.c: Likewise.
21021 * modules/http-method.c: Likewise.
21023 * modules/gzip-method.c: Set the `get_file_info_from_handle'
21026 * libgnomevfs/gnome-vfs-private-types.h: New member
21027 `get_file_info_from_handle' in `GnomeVFSMethod'.
21029 * libgnomevfs/gnome-vfs-handle.c
21030 (gnome_vfs_handle_do_get_file_info): New function.
21032 * libgnomevfs/gnome-vfs-ops.c
21033 (gnome_vfs_get_file_info_from_handle): New function.
21035 * libgnomevfs/gnome-vfs-private-types.h: New typedef.
21036 `GnomeVFSMethodGetFileInfoFromHandleFunc'.
21038 * modules/file-method.c (do_create): Renamed `file_method' to
21041 1999-09-02 Ettore Perazzoli <ettore@comm2000.it>
21043 * libgnomevfs/gnome-vfs-process.c: Improved SIGCHLD handling.
21044 (sigchld_handler): Instead of waking the GLIB loop up once for
21045 every dead child, wake it up only for registered children.
21046 (foreach_pid_func): Helper function for `sigchld_handler'. It
21047 sends a pointer to the process struct and the exit status to the
21048 wake up GIOChannel.
21049 (wake_up): Handle the information as sent by `foreach_pid_func'.
21051 1999-09-01 Dave Camp <campd@oit.edu>
21053 * modules/gconf-method.c: Explicitly set the `remove_directory'
21056 1999-09-01 Ettore Perazzoli <ettore@comm2000.it>
21058 * modules/http-method.c: Explicitly set the `remove_directory'
21061 * modules/ftp-method.c (ftpfs_remove_directory): New function, for
21062 future implementation of the `remove_directory' method.
21064 * modules/gzip-method.c: Explicitly set the `remove_directory' and
21065 `rename' methods to NULL.
21067 * modules/file-method.c (do_remove_directory): New function,
21068 implementing the `remove_directory' method.
21070 * libgnomevfs/gnome-vfs-ops.c
21071 (gnome_vfs_remove_directory_from_uri): New function.
21072 (gnome_vfs_remove_directory): New function.
21074 * libgnomevfs/gnome-vfs-private-types.h: New typedef
21075 `GnomeVFSMethodRemoveDirectoryFunc'. Added member
21076 `remove_directory' to `GnomeVFSMethod'.
21078 * libgnomevfs/gnome-vfs-ops.c (gnome_vfs_tell): Removed parameter
21081 * libgnomevfs/gnome-vfs-handle.c (gnome_vfs_handle_do_tell):
21082 Removed parameter `whence'.
21084 * libgnomevfs/gnome-vfs-private-types.h: Removed parameter
21085 `whence' from the `GnomeVFSMethodTellFunc' function typedef.
21086 * modules/file-method.c: Updated accordingly.
21087 * modules/ftp-method.c: Updated accordingly.
21088 * modules/http-method.c: Updated accordingly.
21090 1999-09-01 Dave Camp <campd@oit.edu>
21092 * modules/gconf-method.c (set_mime_type_value): Return a
21093 GnomeVFSResult, check return value of calls.
21094 (set_mime_type_dir): Ditto.
21095 (set_stat_info_dir): Ditto.
21096 (file_info_value): Ditto.
21097 (file_info_dir): Ditto.
21098 (read_directory): Ditto.
21100 1999-09-01 Dave Camp <campd@oit.edu>
21102 * configure.in: Check for GConf.
21104 * modules/Makefile.am: Build libgconf.la if HAVE_GCONF is set.
21106 * modules/gconf-method.c: New file.
21108 1999-09-01 Ettore Perazzoli <ettore@comm2000.it>
21110 * test/test-async-directory.c (directory_load_callback): Added
21113 * modules/file-method.c: Removed `init()' prototype.
21114 * modules/gzip-method.c: Likewise.
21116 * libgnomevfs-pthread/gnome-vfs-job.c (serve_channel_read): Use
21117 `GnomeVFSFileSize' appropriately.
21118 (serve_channel_write): Likewise.
21120 * test/test-async-directory.c (print_list): Fix format string to
21122 * test/test-async.c (read_callback): Likewise.
21123 * test/test-copy.c (xfer_progress_callback): Likewise.
21124 * test/test-directory.c (print_list): Likewise.
21125 * test/test-directory-visit.c (directory_visit_callback): Likewise.
21127 * modules/file-method.c: #define `_LARGEFILE64_SOURCE' before
21128 including anything. #define `OPEN' to `open64' if available, to
21129 `open' otherwise. #define `LSEEK' to `lseek64' if available, to
21130 `lseek' otherwise. Likewise, #define `OFF_T' to either `off_t' or
21131 `off64_t', accordingly.
21132 (do_open): Use the `OPEN' macro instead of `open()'.
21133 (do_create): Likewise.
21134 (do_seek): Use the `LSEEK' macro instead of `lseek()'.
21135 (do_tell): Likewise.
21136 (do_tell): Use the `OFF_T' instead of `off_t'.
21138 * libgnomevfs/gnome-vfs-types.h: Define `GnomeVFSFileSize' as
21139 `guint64' and `GnomeVFSFileOffset' to `gint64' if we have gint64
21142 * configure.in: Check for `open64' and `lseek64'.
21144 * libgnomevfs/gnome-vfs-types.h: Added comment with instructions
21145 for modifying the GnomeVFSResult properly.
21147 * libgnomevfs/gnome-vfs-result.c: Added status strings for
21148 `GNOME_VFS_ERROR_INTERRUPTED' and `GNOME_VFS_ERROR_FILEEXISTS'.
21150 1999-08-31 Michael Meeks <michael@imaginator.com>
21152 * modules/file-method.c: Rename module init and add shutdown & include.
21153 * modules/ftp-method.c: ditto.
21154 * modules/gzip-method.c: ditto.
21155 * modules/http-method.c: ditto.
21157 * libgnomevfs/gnome-vfs-module.h: Create.
21159 * libgnomevfs/gnome-vfs-method.c (module_get_sane_handle): Add &
21160 use new function name macros.
21161 (gnome_vfs_method_get): move some stuff & call get_sane_handle.
21163 1999-08-31 Miguel de Icaza <miguel@gnu.org>
21165 * modules/ftp-method.c: new global: got_sigpipe.
21166 (ftpfs_connection_connect): Init sigpipe handler; Only connect if
21167 connection is invalid.
21168 (get_file_entry): Apply IS_LINEAR on proper flags.
21169 (ftpfs_open): Use the linear state as computed in get_file_entry.
21170 (ftpfs_read): Implemented.
21171 (ftpfs_close): Implemented.
21172 (ftpfs_create): Implemented.
21173 (ftpfs_seek): Implemented.
21174 (ftpfs_tell): Implemented.
21176 1999-08-30 Miguel de Icaza <miguel@gnu.org>
21178 * modules/ftp-method.c (ftpfs_dir_unref): New method.
21180 1999-08-29 Miguel de Icaza <miguel@gnu.org>
21182 * libgnomevfs/gnome-vfs-types.h: New error types.
21184 * libgnomevfs/gnome-vfs-result.c: Return nice results for it.
21186 1999-08-30 Miguel de Icaza <miguel@nuclecu.unam.mx>
21188 * modules/ftp-method.c (IS_LINEAR): Define macro.
21189 GNOME_VFS_OPEN_RANDOM means we need seek support, otherwise we are
21190 a linear transfer. Cool.
21192 1999-08-28 Ettore Perazzoli <ettore@comm2000.it>
21194 * libgnomevfs-corba/gnome-vfs-async-ops.c
21195 (impl_Notify_load_directory): Copy `name' and allocate it
21198 * libgnomevfs-corba/gnome-vfs-slave.c (allocate_info_list):
21199 Initialize `name' to NULL.
21200 (copy_file_info): Copy `name' into the CORBA `FileInfo' struct
21201 using `set_corba_string'.
21203 * idl/gnome-vfs-slave.idl: Added member `name' to `FileInfo'.
21205 * modules/file-method.c (read_directory): Allocate the name in the
21206 `GnomeVFSFileInfo' struct dynamically.
21207 (do_get_file_info): Set `name' in the info using `g_basename'.
21209 * libgnomevfs/gnome-vfs-file-info.c (gnome_vfs_file_info_clear):
21211 (gnome_vfs_file_info_copy): Realloc `name' in the destination
21212 `GnomeVFSFileInfo'.
21214 * libgnomevfs/gnome-vfs-types.h: Removed #definition of
21215 `GNOME_VFS_FILE_NAME_LEN'. Member `name' of `GnomeVFSFileInfo'
21216 changed from `char []' to `char *'.
21218 1999-08-27 Miguel de Icaza <miguel@nuclecu.unam.mx>
21220 * modules/util-url.c, modules/ftp-method.c: New files for the
21221 implementation of the FTP backend.
21223 1999-08-26 Miguel de Icaza <miguel@nuclecu.unam.mx>
21225 * test/gnome-file-selection/gnome-file-selection.c
21226 (setup_directory_clist): Also push the colormap and pop the
21229 1999-08-27 Ettore Perazzoli <ettore@comm2000.it>
21231 * test/gnome-file-selection/gicon.c: Do not #define `ICONDIR'
21234 * test/gnome-file-selection/Makefile.am (INCLUDES): Added quick &
21235 dirty `-DICONDIR' definition.
21237 1999-08-26 Ettore Perazzoli <ettore@comm2000.it>
21239 * libgnomevfs-pthread/gnome-vfs-job.h: Changed `is_empty' member
21240 of `GnomeVFSJob' from 1-bit wide gboolean to plain gboolean.
21242 * modules/Makefile.am (modules_LTLIBRARIES): Removed previously
21243 commented HTTP module.
21245 * test/Makefile.am: Minor cleanup.
21246 (noinst_PROGRAMS): Replace `test-async-pthread' with
21247 `test-async_pthread' and `test-async-corba' with
21248 `test-async_corba'. Added `test-channel_corba' and
21249 `test-channel_pthread'.
21250 (test-channel_corba): New target, compiling `test-channel.c' with
21251 the CORBA-based VFS.
21252 (test-channel_pthread): New target, compiling `test-channel.c'
21253 with the PThread-based VFS.
21255 * libgnomevfs-pthread/gnome-vfs-job.c (serve_channel_write): New
21257 (serve_channel_read): New function.
21258 (execute_open_as_channel): New function.
21259 (execute_create_as_channel): New function.
21260 (gnome_vfs_job_execute): Call `execute_open_as_channel()' and
21261 `execute_create_as_channel()' for jobs
21262 `GNOME_VFS_JOB_OPEN_AS_CHANNEL' and
21263 `GNOME_VFS_JOB_CREATE_AS_CHANNEL', respectively.
21264 (dispatch_open_or_create_as_channel_callback): New function.
21265 (dispatch_job_callback): Handle `GNOME_VFS_JOB_OPEN_AS_CHANNEL'
21266 and `GNOME_VFS_JOB_CREATE_AS_CHANNEL' through it.
21268 * libgnomevfs-pthread/gnome-vfs-async-ops.c
21269 (gnome_vfs_async_open_as_channel): New function.
21270 (gnome_vfs_async_create_as_channel): New function.
21272 * libgnomevfs-pthread/gnome-vfs-job.h: New structs
21273 `GnomeVFSOpenAsChannelJob', `GnomeVFSCreateAsChannelJob'; added
21274 corresponding members to `GnomeVFSJob'. New values
21275 `GNOME_VFS_JOB_OPEN_AS_CHANNEL' and
21276 `GNOME_VFS_JOB_CREATE_AS_CHANNEL' in `GnomeVFSJobType'.
21278 * test/test-async-directory.c: Removed translation marks.
21279 * test/test-async.c: Likewise.
21280 * test/test-directory-visit.c: Likewise.
21281 * test/test-directory.c: Likewise.
21283 * libgnomevfs/gnome-vfs-result.c (gnome_vfs_result_from_errno):
21284 Translate `EPERM' with `GNOME_VFS_ERROR_NOTPERMITTED'.
21286 * libgnomevfs/gnome-vfs-types.h: Added value
21287 `GNOME_VFS_ERROR_NOTPERMITTED' to GnomeVFSError.
21289 * test/test-channel.c: New test program.
21291 * libgnomevfs-corba/gnome-vfs-slave.h (setup_and_serve_channel):
21293 (serve_channel_read): New function.
21294 (serve_channel_write): New function.
21295 (impl_Request_open_as_channel): New function.
21296 (impl_Request_create_as_channel): New function.
21297 (init_Request): Install `impl_Request_open_as_channel' and
21298 `impl_Request_create_as_channel' as the implementations for
21299 `Request::open_as_channel' and `Request::create_as_channel',
21302 * libgnomevfs-corba/gnome-vfs-async-ops.c: New values
21303 `GNOME_VFS_ASYNC_OP_OPEN_AS_CHANNEL',
21304 `GNOME_VFS_ASYNC_OP_CREATE_AS_CHANNEL'
21305 `GNOME_VFS_ASYNC_OP_CHANNEL' in enum `GnomeVFSAsyncOperation'.
21306 Sorted values in alphabetical order.
21307 (gnome_vfs_async_open_as_channel): New function.
21308 (gnome_vfs_async_create_as_channel): New function.
21309 (impl_Notify_open_as_channel): New function.
21310 (create_notify_object): Install it as the implementation of
21311 `Notify::open_as_channel'.
21313 * idl/gnome-vfs-slave.idl (Request::open_as_channel): New method.
21314 (Request::create_as_channel): New method.
21315 (Notify::open_as_channel): New method.
21317 * libgnomevfs/gnome-vfs-async-ops.h
21318 (gnome_vfs_async_open_as_channel): Declare new function.
21319 (gnome_vfs_async_create_as_channel): Declare new function.
21321 * libgnomevfs/gnome-vfs-types.h: New typedefs
21322 `GnomeVFSAsyncOpenAsChannelCallback',
21323 `GnomeVFSAsyncCreateAsChannelCallback'.
21325 * libgnomevfs-corba/gnome-vfs-async-ops.c
21326 (gnome_vfs_async_create): Added precondition that file must be
21328 (impl_Notify_reset): Oops. Removed typo (`*' before parameter
21331 1999-08-26 Michael Meeks <michael@imaginator.com>
21333 * test/gnome-file-selection/gnome-file-selection.c
21334 (clean_file_list): Added. (change_dir): Clean list.
21335 (populate_callback): Add only files.
21337 1999-08-26 Michael Meeks <michael@imaginator.com>
21339 * test/gnome-file-selection/gnome-file-selection.c (destroy):
21341 (GnomeFileSelectionPrivate): Changed file_list to GList.
21342 (select_icon_callback): use this list, add lots of preconditions.
21344 1999-08-26 Michael Meeks <michael@imaginator.com>
21346 * libgnomevfs/gnome-vfs-types.h: Add GnomeVFSFileSize, and
21347 GnomeVFSFileOffset ( unsigned, signed ). and push through the
21348 whole API - How will CORBA deal with this ?
21350 1999-08-25 Michael Meeks <michael@imaginator.com>
21352 * doc/writing-modules.txt: Started.
21354 1999-08-25 Michael Meeks <michael@imaginator.com>
21356 * http-method.[ch]: First pass at implementing.
21358 * modules/file-method.c: Add NULL RenameFunc to methods, and
21359 remove const from do_make_directory's GnomeVFSURI.
21361 * modules/Makefile.am: Add libhttp.la, commented out.
21363 1999-08-25 Ettore Perazzoli <ettore@comm2000.it>
21365 * modules/file-method.c: Preconditions return `GNOME_VFS_INTERNAL'
21366 instead of `GNOME_VFS_BAD_POINTER'.
21368 * libgnomevfs/gnome-vfs-types.h: Removed value
21369 `GNOME_VFS_BAD_POINTER' from the `GnomeVFSResult' enum.
21371 1999-08-25 Michael Meeks <michael@imaginator.com>
21373 * modules/file-method.c: Update all preconditions to return BAD_POINTER
21374 as their GnomeVFSResult instead of FALSE.
21376 * libgnomevfs/gnome-vfs-types.h: Added GNOME_VFS_ERROR_BAD_POINTER.
21378 * modules/gzip-method.h: Rename conditional include
21379 from _FILE_H to _GZIP_H
21381 1999-08-25 Ettore Perazzoli <ettore@comm2000.it>
21383 * configure.in: Add gnomeui libs to `VFSCORBA_LIBS'.
21386 * libgnomevfs/gnome-vfs-types.h: Add GnomeVFSFileSize, and
21387 GnomeVFSFileOffset ( unsigned, signed ). and push through the
21388 whole API - How will CORBA deal with this ?
21390 1999-08-25 Michael Meeks <michael@imaginator.com>
21392 * doc/writing-modules.txt: Started.
21394 1999-08-25 Michael Meeks <michael@imaginator.com>
21396 * http-method.[ch]: First pass at implementing.
21398 * modules/file-method.c: Add NULL RenameFunc to methods, and
21399 remove const from do_make_directory's GnomeVFSURI.
21401 * modules/Makefile.am: Add libhttp.la, commented out.
21403 1999-08-25 Ettore Perazzoli <ettore@comm2000.it>
21405 * modules/file-method.c: Preconditions return `GNOME_VFS_INTERNAL'
21406 instead of `GNOME_VFS_BAD_POINTER'.
21408 * libgnomevfs/gnome-vfs-types.h: Removed value
21409 `GNOME_VFS_BAD_POINTER' from the `GnomeVFSResult' enum.
21411 1999-08-25 Michael Meeks <michael@imaginator.com>
21413 * modules/file-method.c: Update all preconditions to return BAD_POINTER
21414 as their GnomeVFSResult instead of FALSE.
21416 * libgnomevfs/gnome-vfs-types.h: Added GNOME_VFS_ERROR_BAD_POINTER.
21418 * modules/gzip-method.h: Rename conditional include
21419 from _FILE_H to _GZIP_H
21421 1999-08-25 Ettore Perazzoli <ettore@comm2000.it>
21423 * configure.in: Add gnomeui libs to `VFSCORBA_LIBS'.