- Oct 02, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-monitor.c: Fire notifications asynchronously, so events can be injected from threads other than the main thread. This also fixes problems with Gamins kqueue/inotify backends. (Old svn revision: 17960)
-
- Sep 22, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-*.c: Documentation tweaks. * configure.in.in, docs/reference/Makefile.am, docs/reference/thunar-vfs/: Prepare Thunar-VFS reference manual. * thunar/thunar-list-model.c(thunar_list_model_get_statusbar_text): Use ngettext() for the statusbar text. * thunar/thunar-launcher.c(thunar_launcher_update): Use ngettext() for the "Open in n New Windows" menu label. * thunar/thunar-launcher.c(thunar_launcher_open_new_windows): Use ngettext() for the question whether to open n separate windows. * thunar/thunar-launcher.c(thunar_launcher_open_uris): Use ngettext() to format the error message when opening multiple URIs at once failes. * po/*.po: Update po files. * configure.in.in, examples/open-terminal-here/Makefile.am, thunar-vfs/Makefile.am, thunar/Makefile.am, thunarx/Makefile.am: Don't add debugging and visibility flags to CFLAGS, CPPFLAGS and LDFLAGS, but use PLATFORM_CFLAGS, PLATFORM_CPPFLAGS and PLATFORM_LDFLAGS instead to avoid trouble with certain conftests when checking the distribution. (Old svn revision: 17769)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-trash.h: Fix typo. * thunar/thunar-chooser-dialog.c(thunar_chooser_dialog_response): Handle absolute paths properly for custom commands. (Old svn revision: 17764)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-application.{c,h}, thunar-vfs/thunar-vfs.symbols: Load the supported mime types for the applications. * thunar-vfs/thunar-vfs-mime-application.{c,h}, thunar-vfs/thunar-vfs.symbols: Add a new constructor thunar_vfs_mime_application_new_from_file() for the special case where a particular file should be loaded by path. * thunar-vfs/thunar-vfs-mime-application.c (thunar_vfs_mime_application_equal): Properly initialize the application variables. * thunar-vfs/thunar-vfs-mime-application.c (thunar_vfs_mime_application_lookup_icon_name): Permit applications to specify absolute paths for the icon name. * thunar-vfs/thunar-vfs-mime-database.{c,h}, thunar-vfs/thunar-vfs.symbols: Extend the mime database by a new method thunar_vfs_mime_database_set_default_application(), which is used to set the default application for a given mime type. * thunar-vfs/thunar-vfs-sysdep.c(_thunar_vfs_sysdep_parse_exec): Fix typo to properly execute applications that require a terminal. * thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_applications): Always prepend the default applications for the given mime info to the list returned from this method. * thunar/thunar-favourites-model.c(thunar_favourites_model_save): Use g_mkstemp() to create the temporary file. * thunar-vfs/thunar-vfs-mime-application.{c,h}, thunar-vfs/thunar-vfs.symbols: Add public flags to the mime applications. * thunar-vfs/thunar-vfs-mime-application.c (thunar_vfs_mime_application_new_from_file): Strip off known suffixes for image files if a themed icon is specified. This way we can work-around quite a few broken .desktop files. * thunar-vfs/thunar-vfs-mime-database.{c,h}, thunar-vfs/thunar-vfs.symbols: Support the addition of custom applications using thunar_vfs_mime_database_add_application() in a way compatible to what Nautilus does (which is actually quite a mess). * thunar/thunar-chooser-dialog.{c,h}, thunar/thunar-chooser-model.{c,h}, thunar/Makefile.am: Import the "Open With" dialog based on the two classes ThunarChooserDialog and ThunarChooserModel, which in turn are based on the new functionality provided by Thunar-VFS, and thereby permit the user to associate applications with files (actually mime types) and add new applications. * thunar/thunar-launcher.c: Connect the "Open With Other" action to the new ThunarChooserDialog. * thunar/thunar-favourites-model.c: Document the drag source functions. * README: Add a list of dependencies for Thunar. * TODO: Drop completed items. (Old svn revision: 17760)
-
- Sep 17, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-database.c: Include exo/exo.h. (Old svn revision: 17664)
-
- Sep 15, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-volume-bsd.c, thunar-vfs/thunar-vfs-volume-sysv.c: Include thunar-vfs-alias.h. (Old svn revision: 17636)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-interactive-job.{c,h}, thunar-vfs/thunar-vfs-job.{c,h}, thunar-vfs/thunar-vfs-listdir-job.{c,h}, thunar-vfs/thunar-vfs-transfer-job.{c,h}, thunar-vfs/thunar-vfs-unlink-job.{c,h}: Allocate a new main loop for every running job so we can terminate them properly and be sure to run the finalize method in the main thread. This enables us to use arbitrary GObjects within a job without having to worry about the reference counting problem in GLib 2.6. The jobs are GObjects as well now to easily support language bindings and allow us to drop the problematic ExoObject class. (Old svn revision: 17633)
-
- Sep 14, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-application.{c,h}, thunar-vfs/thunar-vfs-mime-database.c, thunar-vfs/thunar-vfs.symbols, thunar/thunar-launcher.c, thunar/thunar-marshal.list, thunar/thunar-open-with-action.c: Turn ThunarVfsMimeApplication into a boxed type. * thunar/thunar-window.c: Apply Daichis patch to make the dynamic actions titles translatable (#1153). (Old svn revision: 17605)
-
- Sep 13, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-info.c, thunar-vfs/thunar-vfs-mime-database.c, thunar-vfs/thunar-vfs-mime-info.{c,h}, thunar-vfs/thunar-vfs-thumb.c, thunar-vfs/thunar-vfs.symbols: Turn ThunarVfsMimeInfo into a boxed type. * thunar-vfs/thunar-vfs-mime-provider.c: No need to provide fallback implementations for the virtual methods, as both providers implement all virtual methods. * thunar-vfs/thunar-vfs-mime-provider.{c,h}, thunar-vfs/thunar-vfs-mime-cache.c, thunar-vfs/thunar-vfs-mime-legacy.c, thunar-vfs/thunar-vfs-mime-database.c: Derive the MIME providers from GObject instead of ExoObject. * thunar-vfs/thunar-vfs-mime-database.c, thunar-vfs/thunar-vfs-info.c, thunar-vfs/thunar-vfs-thumb.c, thunar-vfs/thunar-vfs.c, thunar/thunar-computer-folder.c, thunar/thunar-file.c, thunar/thunar-open-with-action.c, thunar/thunar-trash-folder.c: Derive ThunarVfsMimeDatabase from GObject instead of ExoObject. (Old svn revision: 17595)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-sysdep.h: Add inline atomic operations. * thunar-vfs/thunar-vfs-info.c, thunar-vfs/thunar-vfs-listdir-job.c, thunar-vfs/thunar-vfs-mime-application.c, thunar-vfs/thunar-vfs-mime-database.c, thunar-vfs/thunar-vfs-monitor.c, thunar-vfs/thunar-vfs-sysdep.c, thunar-vfs/thunar-vfs-thumb.c, thunar-vfs/thunar-vfs-transfer-job.c, thunar-vfs/thunar-vfs-trash.c, thunar-vfs/thunar-vfs-uri.{c,h}, thunar-vfs/thunar-vfs.c, thunar-vfs/thunar-vfs.symbols, thunar/thunar-clipboard-manager.c, thunar/thunar-computer-folder.c, thunar/thunar-favourites-model.c, thunar/thunar-favourites-view.c, thunar/thunar-file.c, thunar/thunar-icon-factory.c, thunar/thunar-local-file.c, thunar/thunar-local-folder.c, thunar/thunar-location-buttons.c, thunar/thunar-path-entry.c, thunar/thunar-standard-view.c, thunar/thunar-statusbar.c, thunar/thunar-trash-file.c, thunar/thunar-trash-folder.c: Turn ThunarVfsURI into a boxed type to make language bindings easier and reduce the overhead. Drop the foreign host support code, as we can't use it anyways, since nearly every other existing application that handles file URIs is broken when it comes to file URIs with authorities. Simplify the thunar_vfs_uri_to_string() method again and return only escaped versions of the URI. * thunar/thunar-path-entry.c(thunar_path_entry_set_current_file): Display file URIs for non-UTF8 paths. * tests/test-thunar-vfs-uri.c, tests/test-thunar-vfs-volume-bsd.c: Update the tests. * thunar-vfs/Makefile.am, thunar-vfs/thunar-vfs-info.h, thunar-vfs/thunar-vfs-types.h: Move the system-dependent types to thunar-vfs-types.h. * thunar-vfs/thunar-vfs-info.{c,h}, thunar-vfs/thunar-vfs.symbols: Turn ThunarVfsInfo into a boxed type. (Old svn revision: 17594)
-
- Sep 11, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-standard-view.c: Sort the extension actions by their names instead of their labels. * thunar/thunar-extension-manager.c(thunar_extension_class_init): Properly initialize the parent class reference. * examples/open-terminal-here/Makefile.am: Don't specify CLEANFILES explicitly. * thunar/thunar-file.c(thunar_file_get_mime_info): Documentation fix. * thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_info_for_file): When generating an application/x-extension-<EXT> mime type and no valid extension is found for the file name, fallback to the whole filename as suggested by jrb. This way we can make sure that we will never return application/octet-stream from this method and thereby allow the program chooser to set default applications for every mime type used in the file manager. * thunar/Makefile.am: Add $(top_builddir) to INCLUDES. (Old svn revision: 17560)
-
- Sep 06, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-uri.c: Invoke the parent's finalize method, as that will be required for language bindings once we have weak/toggle references for ExoObject. * thunar/thunar-local-file.c(thunar_local_file_rename): Re-register with the VFS monitor if the rename succeeds. * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_hash): Don't hash the hostname if it's NULL. * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_equal): We don't need to query the hostname string here, as local files will always have host set to NULL. * tests/test-thunar-vfs-uri.c(main): Extend the ThunarVfsURI test. * pixmaps/, Makefile.am, configure.in.in, thunar/thunar-window.c, thunar/Makefile.am: Initial idea for the about dialog logo. (Old svn revision: 17389)
-
- Sep 05, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-info.{c,h}, thunar-vfs/thunar-vfs-listdir-job.c: Use GList instead of GSList to manage ThunarVfsInfo lists, which increases data locality and decreases memory usage (as there's no need to keep another allocator around any more). * thunar/thunar-computer-folder.c, thunar/thunar-folder.{c,h}, thunar/thunar-list-model.c, thunar/thunar-local-folder.c, thunar/thunar-trash-folder.c: Use GList instead of GSList to manage the list of files for a folder for the same reason. * thunar/thunar-file.{c,h}, thunar/thunar-folder.c, thunar/thunar-local-folder.c, thunar/thunar-local-file.c: ThunarFile is derived from GObject now, instead of GtkObject. * thunar/thunar-list-model.c: No need to implement GtkTreeDragDest, as that's handled in ThunarStandardView. (Old svn revision: 17375)
-
- Sep 04, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-uri.c(escape): And of course, we need to escape the '+' and '%' characters in URIs. (Old svn revision: 17342)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-uri.c(escape): Also escape '&' in URIs. (Old svn revision: 17339)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-thumb.{c,h}: Implement the store thumbnail functionality. * thunar-vfs/thunar-vfs-sysdep.c, thunar-vfs/thunar-vfs-trash.c, thunar-vfs/thunar-vfs-uri.{c,h}, thunar-vfs/thunar-vfs.symbols, thunar/thunar-clipboard-manager.c, thunar/thunar-favourites-model.c, thunar/thunar-favourites-view.c, thunar/thunar-file.c, thunar/thunar-location-buttons.c, thunar/thunar-path-entry.c, thunar/thunar-standard-view.c, thunar/thunar-statusbar.c: Improve the thunar_vfs_uri_to_string() method to support UTF-8 URI strings and escaping of URIs, which is required for proper Drag'n'Drop interaction with other applications. (Old svn revision: 17336)
-
Benedikt Meurer authored
* thunar/thunar-file.{c,h}: Store the watch count in the GObject data list, as it seldomly used. * thunar/thunar-file.c(thunar_file_load_icon): Try to load the "loading" icon directly instead of checking the icon theme first. * thunar/thunar-standard-view.c: Revert the "num-files" special handling as it leads to a bug where the actions aren't updated properly when changing directories. * thunar-vfs/thunar-vfs-sysdep.h: Fix typo. * thunar-vfs/thunar-vfs-transfer-job.c, thunar-vfs/thunar-vfs-unlink-job.c: Unlink thumbnails after removing a file to reduce the junk in ~/.thumbnails/. * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_get_md5sum): Escape the path properly, so the thumbnail paths we determine are equal to those of other file managers. (Old svn revision: 17333)
-
- Sep 03, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs.symbols, thunar-vfs/thunar-vfs-mime-info.{c,h}, thunar-vfs/thunar-vfs-mime-database.c: Determine media and subtype of a ThunarVfsMimeInfo on-demand. * thunar-vfs/thunar-vfs-info.c(thunar_vfs_info_new_for_uri): Move the .desktop file handling to the regular file case. * thunar-vfs/thunar-vfs-thumb.{c,h}, thunar-vfs/thunar-vfs.symbols, thunar-vfs/Makefile.am, thunar-vfs/thunar-vfs.h: Import the ThunarVfsThumbFactory class, which implements the freedesktop thumbnail management specification. * thunarx/thunarx-gdk-pixbuf-extensions.{c,h}: Add new helper function thunarx_gdk_pixbuf_frame(), which is used to embed an arbitrary image into a frame (e.g. for thumbnails). * thunar/thunar-favourites-model.c, thunar/thunar-file.c, thunar/thunar-icon-factory.{c,h}, thunar/thunar-icon-renderer.c, thunar/thunar-list-model.c, thunar/thunar-location-buttons.c, thunar/thunar-window.c: Make sure we don't leak the default icon factory instance on exit. * thunar/Makefile.am, thunar/thunar-thumbnail-frame.{h,png}: Import the thumbnail frame image used by Nautilus. * thunar/thunar-icon-factory.{c,h}: Add thumbnail loading support to the icon factory and reorganize the internals a bit. * thunar/thunar-file.c: Load thumbnails for regular if possible. (Old svn revision: 17328)
-
- Sep 02, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-standard-view.c: Avoid going through the selection changed handling whenever the number of files in a model changes, as the only thing that needs updating here is the statusbar text. * thunar-vfs/thunar-vfs-mime-cache.c (thunar_vfs_mime_cache_lookup_parents): Fix the offset from which the parent mime type name is read. * thunar-vfs/thunar-vfs-mime-cache.c(cache_node_lookup_suffix): Optimize the tail-recursive suffix lookup. * thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_info_for_file): Use fast stack memory for the extattr and content lookups. (Old svn revision: 17285)
-
- Sep 01, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-listdir-job.c: Fix the pre-sorting of files, so upper layers always receive the info list sorted by name. * thunar/thunar-details-view.c(thunar_details_view_button_press_event), thunar/thunar-icon-view.c(thunar_icon_view_button_press_event): Don't popup the context menu immediately on right-clicks, but schedule the menu popup using thunar_standard_view_queue_popup(). * thunar/thunar-standard-view.{c,h}: Add the ability to start a drag operation using the right mouse button. * thunar/thunar-file.{c,h}: Add virtual method accepts_uri_drop() and method thunar_file_accepts_uri_drop(), which are used to determine whether it is possible to drop a certain list of ThunarVfsURIs on a given ThunarFile (using a set of actions specified by the drag source). * thunar/thunar-local-file.c: Implement the accepts_uri_drop() method for local file handling. * thunar/thunar-progress-dialog.c(thunar_progress_dialog_ask), (thunar_progress_dialog_error): Be sure to display the progress dialog prior to opening an error or question dialog. * thunar-vfs/thunar-vfs-info.c(thunar_vfs_info_rename): Fix gcc4 warning. * thunar-vfs/thunar-vfs.symbols: Add missing thunar_vfs_rename symbol. * thunar/thunar-favourites-model.c(thunar_favourites_model_get_value): Work-around a compiler bug with newer gcc versions. * thunar/thunar-standard-view.{c,h}: Turn ThunarStandardView into a valid drop site with support for text/uri-list drops. * thunar/Makefile.am, thunar/thunar-dnd.{c,h}: Add DnD helper functions, which can be used by other modules as well (e.g. for the desktop view). (Old svn revision: 17266)
-
- Aug 30, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-local-file.c(thunar_local_folder_infos_ready): Do not compare the newly inserted files, as they are garantied to be different from each other. * thunar-vfs/thunar-vfs-info.c(thunar_vfs_info_matches): Move the URI comparison to the end as that takes most of the time. * thunar-vfs/thunar-vfs-listdir-job.c(thunar_vfs_listdir_job_execute): Pre-sort the names in ascending order to get faster inserts for the usual case where the user sorts its views by name. (Old svn revision: 17197)
-
Benedikt Meurer authored
* thunar/thunar-properties-dialog.c: Adjust the "editability" of the name entry widget depending on whether the file can be renamed. * thunar-vfs/thunar-vfs-info.{c,h}: Add methd thunar_vfs_info_rename() which supports renaming of regular files and .desktop files. * thunar/thunar-file.{c,h}: Add _thunar_file_cache_rename() to support ThunarFile implementations that provide the thunar_file_rename() method. * thunar/thunar-local-file.c: Add support to rename local files based on thunar_vfs_info_rename(). * thunar/thunar-properties-dialog.c: Allow users to rename files using the name entry widget. * thunar/thunar-list-model.c(thunar_list_model_file_changed): Re-sort the model as the file may have changed its name. * thunar/thunar-list-model.c(thunar_list_model_sort): Avoid the GArray overhead and try to use stack memory if possible. * thunar/thunar-standard-view.h, thunar/thunar-details-view.c, thunar/thunar-icon-view.c: Add virtual methods set_cursor() and scroll_to_path() to the ThunarStandardView class and implement them in ThunarDetailsView and ThunarIconView. * thunar/thunar-standard-view.c: Implement the "Rename" action based on the inline editing capabilities of ThunarTextRenderer. (Old svn revision: 17194)
-
- Aug 28, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-list-model.c(thunar_list_model_sort): Use temporary storage on the stack, rather than the heap. * thunar/thunar-list-model.c: Derive from GObject rather than GtkObject, as we don't need GtkObject's features anymore in ThunarListModel. * thunar/thunar-list-model.c(thunar_list_model_class_init): Use EXO_PARAM_* macros rather than G_PARAM_*. * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_equal): Add a check to see whether the compared references refer to the same object, which can happen quite often (in case of a positive match). * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_list_to_string): Prealloc a buffer of 512 bytes for the URI list string representation. * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_list_free): Use g_list_foreach() to unref the URIs. * thunar/thunar-local-file.c(thunar_local_file_get_emblem_names): Properly verify the parent uri when testing for the Desktop directory. * thunar-vfs/thunar-vfs.{c,h}, thunar-vfs/Makefile.am: Drop the thunar_vfs_mime_info_get() and thunar_vfs_mime_info_get_for_file() methods, and merge the thunar-vfs-mime initialization into the thunar-vfs initialization routines. (Old svn revision: 17153)
-
Benedikt Meurer authored
* thunar/thunar-file.{c,h}, thunar/thunar-local-file.c, thunar/thunar-standard-view.c: Rename can_execute(), can_read() and can_write() to is_executable(), is_readable() and is_writable() to get consistent naming. * thunar-vfs/thunar-vfs-info.{c,h}: Add THUNAR_VFS_FILE_FLAGS_EXECUTABLE to the ThunarVfsFileFlags, which will be set if a ThunarVfsInfo can be executed, either as regular binary or as .desktop file. * thunar-vfs/thunar-vfs-mime-application.c, thunar-vfs/thunar-vfs-sysdep.{c,h}: Move the Exec parsing code from ThunarVfsMimeApplication to thunar-vfs-sysdep, so it can be used by other modules as well. * thunar-vfs/thunar-vfs-info.{c,h}, thunar-vfs/thunar-vfs.symbols: Add new method thunar_vfs_info_execute(), which is used to execute files with a list of URIs. These method can handle both regular executable files as well as .desktop files. * thunar/thunar-file.{c,h}, thunar/thunar-launcher.c, thunar/thunar-local-file.c: Add support to execute files that are marked as executable by the ThunarVfsInfo module. * thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_info_locked), (thunar_vfs_mime_database_get_infos_for_info_locked): Be sure to always unalias MIME-types prior to returning them from the mime database instance. This way we don't need to care for unaliasing when determining the MIME-type comment or MIME-type icon. * thunar-vfs/thunar-vfs-mime-database.{c,h}, thunar-vfs/thunar-vfs.symbols: Add new method thunar_vfs_mime_database_get_infos_for_info() to the public API, to allow other components to access the subclassing information. * FAQ, Makefile.am: Add initial items for the list of frequently asked questions. * TODO: Remove obsolete items. (Old svn revision: 17147)
-
- Aug 27, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-info.{c,h}: Add support to pass hints from the ThunarVfsInfo to the upper layers. Use these hints to pass icon and name information from .desktop files. * thunar-vfs/thunar-vfs.symbols: Add new symbols. * thunar/thunar-local-file.c: Use the new hints to display appropriate names and icons for .desktop files. (Old svn revision: 17137)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-trash.c: Use ThunarVfsMonitor instead of polling the trash files/ directories manually. (Old svn revision: 17134)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-legacy.c: Add support for MIME-type aliases and parents to the legacy implementation. * configure.in.in, thunar-vfs/thunar-vfs-mime-database.c: Add support for determining the MIME type from an extended attribute on SunOS and Linux. (Old svn revision: 17126)
-
- Aug 20, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-job.c(thunar_vfs_job_emit): Use G_VA_COPY to copy variable argument lists in a portable manner. (Old svn revision: 17042)
-
- Aug 11, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-application.c (thunar_vfs_mime_application_new_from_desktop_id): Use "Name" instead of "GenericName" for the application's name, as the "Name" usually includes the project name in addition to the functional description of the application, which provides better results than having several applications named "Text Editor", etc. * configure.in.in: Prefer Gamin over FAM to avoid the C++ dependency if possible. Besides that, Gamin offers several other advantages over FAM, which makes it better suitable to be used in Thunar. * po/POTFILES.in: Add missing source files here, and remove obsolete files. * Thunar.desktop.in, Makefile.am, configure.in.in, po/POTFILES.in: Add desktop file for Thunar. (Old svn revision: 16851)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-jobs.{c,h}, thunar-vfs/Makefile.am, thunar-vfs/thunar-vfs.{c,h}: Merge thunar-vfs-jobs.[ch] into thunar-vfs.[ch]. * thunar-vfs/thunar-vfs-mime-database.c, thunar/thunar-local-folder.c, thunar-vfs/thunar-vfs-monitor.{c,h}, thunar/thunar-local-file.c: Rename thunar_vfs_monitor_get() to thunar_vfs_monitor_get_default(). * thunar-vfs/thunar-vfs-mime-database.{c,h}, thunar-vfs/thunar-vfs-mime.c, thunar-vfs/thunar-vfs-info.c, thunar/thunar-launcher.c, thunar/thunar-open-with-action.c, thunar/thunar-trash-folder.c: Rename thunar_vfs_mime_database_get() to thunar_vfs_mime_database_get_default(). * thunar-vfs/, thunar/Makefile.am, tests/Makefile.am, configure.in.in: Turn libthunar-vfs into a shared library, so we can use it in other applications/plugins as well. (Old svn revision: 16849)
-
- Aug 10, 2005
-
-
Benedikt Meurer authored
* configure.in.in: Bump version to 0.1.1. * thunar-vfs/thunar-vfs-mime-info.h: Add list handling method thunar_vfs_mime_info_list_free(). * thunar-vfs/thunar-vfs-mime-info.c(thunar_vfs_mime_info_get_comment): Automatically generate a comment for 'application/x-extension-<EXT>' types if no comment is found on the disk. * thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_info_for_file): Automatically generate an 'application/x-extension-<EXT>' type on the fly if all other checks fail and the file name has an extension. * thunar-vfs/thunar-vfs-mime-cache.c, thunar-vfs/thunar-vfs-mime-legacy.c, thunar-vfs/thunar-vfs-mime-database.c, thunar-vfs/thunar-vfs-mime-provider.{c,h}: Add provider methods to unalias mime types and to determine the parents of a given mime type. Use these information to query additional MIME applications. (Old svn revision: 16839)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-database.c (thunar_vfs_mime_database_get_default_application): Fall back to the first available application if no explicit default application is set by the user. * thunar/thunar-file.{c,h}, thunar/thunar-launcher.c: Rename thunar_file_list_dup() to thunar_file_list_copy() to get consistent naming. * thunar-vfs/thunar-vfs-mime-application.{c,h}: Add support methods required for hashing. * thunar-vfs/thunar-vfs-mime-application.{c,h}: Add methods to launch an application on a given list of URIs on a specific screen. Implement the Desktop Entry Specification 0.9.4, except for startup notification support, which will be added soon. * thunar/thunar-launcher.c, thunar/thunar-open-with-action.c: Allow users to open files using the newly added ThunarVfsMimeApplication functionality. (Old svn revision: 16828)
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-database.c: According to the specification the defaults.list may specify more than one desktop-id per MIME type, where the first available application should be used. (Old svn revision: 16825)
-
- Aug 09, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-info.{c,h}: Add support methods required for hashing. * thunar-vfs/Makefile.am, thunar-vfs/thunar-vfs-mime-application.{c,h}, thunar-vfs/thunar-vfs-mime-database.{c,h}: Add initial MIME application support to the MIME database. * thunar/thunar-launcher.{c,h}: Add ThunarLauncher class, which provides actions to launch files using appropriate MIME applications. The ThunarLauncher class will also be used by the desktop view. * thunar/thunar-open-with-action.{c,h}: Add special action class ThunarOpenWithAction, which provides a GtkAction implementation, that - when used as menu - displays a submenu with all available MIME applications for a given file. * thunar/thunar-window-ui.xml: Add a placeholder to include the launcher support in the "File" menu on the main menu bar. * thunar/thunar-standard-view.c, thunar/thunar-standard-view-ui.xml, thunar/thunar-icon-view.c, thunar/thunar-details-view.c: Add file launcher support based on the new ThunarLauncher class. * thunar/thunar-file.{c,h}: Add methods to handle lists of ThunarFile items easily. * thunar/thunar-icon-factory.c(thunar_icon_factory_load_icon): Handle the case of passing a NULL or empty name properly. (Old svn revision: 16816)
-
- Aug 07, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-mime-legacy.c: Add support for the various globs to the legacy mime provider. * thunar-vfs/thunar-vfs-mime-database.c(thunar_vfs_mime_database_init): Read atleast 64 bytes from every file to reliably detect text files. * thunar-vfs/thunar-vfs-mime-database.c: When looking up the MIME info for a given file, and the magic check doesn't return a match, we'll return "application/x-executable" for every regular file that is atleast 1 byte in size and has the executable bit set, as this is more precise than "application/octet-stream". (Old svn revision: 16494)
-
- Aug 06, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-info.{c,h}: Determine the display_name for each file info. * thunar-vfs/thunar-vfs-info.c(thunar_vfs_info_new_for_uri): Hand the display name to thunar_vfs_mime_database_get_info_for_file(), so we don't need to determine it again. * thunar-vfs/thunar-vfs-uri.c(thunar_vfs_uri_get_display_name): Don't use g_filename_display_basename(), because it may returned a somehow translated file name. * thunar/thunar-local-file.c: Use the display_name supplied with the ThunarVfsInfo rather than determining it again. (Old svn revision: 16479)
-
Benedikt Meurer authored
* configure.in.in, thunar-vfs/thunar-vfs-mime-database.c: Add support to query the MIME type stored in the extended attribute "user.mime_type" as specified in the Shared MIME-info spec. * docs/design/mime.xmi, docs/design/Makefile.am: Import description for the ThunarVFS mime module. * thunar-vfs/thunar-vfs-mime-cache.c(thunar_vfs_mime_cache_lookup_glob): Use correct offset when iterating over the GlobEntries. * thunar-vfs/thunar-vfs-mime-cache.c (thunar_vfs_mime_cache_lookup_literal): Fix the offset returned for the MIME-type name. (Old svn revision: 16478)
-
Benedikt Meurer authored
* configure.in.in: Check for fnmatch.h and sys/mman.h. Add checks for working mmap and posix_madvise. * configure.in.in, thunar-vfs/xdgmime/, thunar-vfs/Makefile.am: Drop the xdgmime library. * thunar-vfs/thunar-vfs-mime-cache.{c,h}, thunar-vfs/thunar-vfs-mime-database.{c,h}, thunar-vfs/thunar-vfs-mime-info.{c,h}, thunar-vfs/thunar-vfs-mime-legacy.{c,h}, thunar-vfs/thunar-vfs-mime-provider.{c,h}, thunar-vfs/thunar-vfs-mime.{c,h}: Import thread-safe replacement for the xdgmime library. Works only with very recent shared-mime-info right now. * thunar-vfs/Makefile.am: Add new files to the build framework. * thunar-vfs/thunar-vfs-job.c, thunar-vfs/thunar-vfs-mime.c, thunar-vfs/thunar-vfs.c, thunar-vfs/thunar-vfs.h, thunar/main.c: Add ability to shutdown the VFS library. (Old svn revision: 16477)
-
- Aug 04, 2005
-
-
Benedikt Meurer authored
* configure.in.in: Add "r" in front of the revision for the version string. * thunar-vfs/thunar-vfs-job.{c,h}, thunar-vfs/thunar-vfs-listdir-job.c, thunar-vfs/thunar-vfs-mime.{c,h}, thunar-vfs/thunar-vfs-unlink-job.c, thunar-vfs/thunar-vfs-uri.{c,h}, thunar-vfs/thunar-vfs-transfer-job.c, thunar/thunar-progress-dialog.c: Use ExoObject as base class for ThunarVfsJob, ThunarVfsMimeInfo and ThunarVfsUri, which were fun- damental types previously. ExoObject does exactly what we need here, without any additional overhead. In particular, the ref- counting is atomic, even with GLib < 2.7.4. * configure.in.in: Connect greek translations, previously committed by Stavros Giannouris <stavrosg2002@freemail.gr>. * thunar/thunar-file.c: Use exo-noops for the defaults where possible instead of providing several fallback implementations. * configure.in.in: Bump version number to 0.1.0. (Old svn revision: 16464)
-
- Aug 03, 2005
-
-
Benedikt Meurer authored
* thunar-vfs/thunar-vfs-job.c(thunar_vfs_job_emit_valist): Lower the Job signal priority to increase the responsiveness of the user interface. (Old svn revision: 16446)
-