- Sep 06, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-list-model.c: Don't emit the "row-inserted" and "row-deleted" signals when changing folders unless somebody is actually interested in these signals. * thunar/thunar-list-model.c(thunar_list_model_set_folder): Actually specify the correct path when deleting the previous items from the model. * thunar/thunar-local-folder.c(thunar_local_folder_file_destroy): No need to request a new list from GLib here. * thunar/thunar-local-folder.c(thunar_local_folder_infos_ready): Don't add new files to two lists. Instead add them to one temporary list and append the temporary list to the internal list later. * thunar/thunar-local-file.c(thunar_local_file_get_for_info): Fix an invalid instance cast check. * thunar/thunar-file.c: Manage the file cache directly without using weak references to avoid problems and save memory (weak references are allocated in the GObject dataset). (Old svn revision: 17436)
-
Benedikt Meurer authored
* thunar/thunar-local-file.c: Store the VFS monitor handle in the GObject dataset as it's used only for explicit file monitoring (e.g. for the properties dialog). * thunar/thunar-list-model.c(thunar_list_model_get_iter): Skip every second comparison for iter lookups. * icons/, configure.in.in, Makefile.am: Add the Thunar icon. (Old svn revision: 17401)
-
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)
-
Benedikt Meurer authored
* thunar/thunar-launcher.c, thunar/thunar-list-model.c, thunar/thunar-open-with-action.c, thunar/thunar-properties-dialog.c: We don't need to check the result of thunar_file_get_mime_info() any more as it's garantied to be a valid ThunarVfsMimeInfo. (Old svn revision: 17373)
-
Benedikt Meurer authored
* thunar/thunar-computer-folder.c, thunar/thunar-file.c, thunar/thunar-list-model.c: Always return a valid ThunarVfsMimeInfo from the get_mime_info() method. (Old svn revision: 17372)
-
Benedikt Meurer authored
* thunar/thunar-list-model.{c,h}: Drop the unused icon columns from the ThunarListModel. (Old svn revision: 17371)
-
- Sep 04, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-icon-renderer.c(thunar_icon_renderer_render): Generate the colorized/spotlighted version of the icon only if the icon area is affected by expose event. (Old svn revision: 17343)
-
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/Makefile.am: Add the thumbnail frame source image to the distribution. * thunar/thunar-icon-factory.c: Add some more cleverness in determining whether or not to add a frame to a thumbnail. (Old svn revision: 17329)
-
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-icon-renderer.c(thunar_icon_renderer_render): Don't scale the icon if it fits into the cell area. (Old svn revision: 17295)
-
Benedikt Meurer authored
* thunar/thunar-text-renderer.c: Select the text prior to the last dot when starting to edit a cell. * thunar/thunar-properties-dialog.c(thunar_properties_dialog_update): Place input focus on the name entry widget and select the text prior to the last dot. (Old svn revision: 17294)
-
Benedikt Meurer authored
* thunar/thunar-open-with-action.c(thunar_open_with_action_activated): Remove obsolete code. * thunar/thunar-standard-view.c (thunar_standard_view_button_release_event): Don't popup the context menu using the just released button, as that would render the items unclickable. (Old svn revision: 17288)
-
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)
-
Benedikt Meurer authored
* thunar/thunar-icon-factory.c(thunar_icon_factory_lookup_icon): Add support to load icons from absolute paths. * thunar/thunar-local-file.c(thunar_local_file_get_icon_name): Allow the VFS layer to pass absolute paths for the file icon hint. This is required for some .desktop files, that specify absolute icon paths instead of themed icon names. * thunar/thunar-location-buttons.c(thunar_location_buttons_make_button): Don't permit location buttons to grab the focus. (Old svn revision: 17283)
-
Benedikt Meurer authored
* thunar/thunar-standard-view.c: Be sure to override the default drag-data-delete handler of ExoIconView/GtkTreeView. * thunar/thunar-icon-view.c(thunar_icon_view_get_path_at_pos): The exo_icon_view_get_path_at_pos() method really accepts widget coordinates now, like GtkTreeView does, so we don't need to translate the widget coordinates to icon window coordinates first. (Old svn revision: 17278)
-
Benedikt Meurer authored
* thunar/thunar-standard-view.c(thunar_standard_view_get_dest_actions): Set the drop-file icon renderer property only if we have a valid drag action. * thunar/thunar-local-file.c(thunar_local_file_accepts_uri_drop): Do not accept directory drops if the directory isn't writable. (Old svn revision: 17269)
-
Benedikt Meurer authored
* thunar/thunar-icon-renderer.c(thunar_icon_renderer_render): Prelight drop destination icons. (Old svn revision: 17268)
-
Benedikt Meurer authored
* thunar/thunar-computer-folder.c, thunar/thunar-desktop-view.c, thunar/thunar-favourites-model.c, thunar/thunar-file.{c,h}, thunar/thunar-list-model.c, thunar/thunar-local-file.c, thunar/thunar-location-buttons.c, thunar/thunar-path-entry.c, thunar/thunar-properties-dialog.c, thunar/thunar-standard-view.c, thunar/thunar-statusbar.c, thunar/thunar-trash-file.c, thunar/thunar-trash-folder.c, thunar/thunar-window.c: Add an icon state parameter to the ThunarFile icon loader, which allows to grab icons for a certain state from a given file. * thunar/thunar-file.c: Drop the cached icon, as the ThunarIconFactory does this pretty well already and we don't need to keep an additional cached version of every file's icon. * thunar/thunar-icon-renderer.c, thunar/thunar-standard-view.c: Use the drop icon for the views while dragging over an item/row in the view. (Old svn revision: 17267)
-
- 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-favourites-model.c: Drop the icon caching from the favourites model as it causes trouble with icon theme changing and is unnecessary since the ThunarIconFactory already performs quite well at caching icons. * thunar/thunar-location-buttons.c: Reload the icons for the location buttons when the active icon/gtk theme is changed. (Old svn revision: 17200)
-
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)
-
Benedikt Meurer authored
* thunar/thunar-favourites-view.c(thunar_favourites_view_init): Use auto-sizing for the favourites column. * thunar/thunar-favourites-model.{c,h}, thunar/thunar-favourites-view.c: Add support for Gtk+ 2.8 shortcuts, which allow the user to assign aliases with mutable shortcuts. (Old svn revision: 17180)
-
- Aug 29, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-details-view.c, thunar/thunar-icon-view.c, thunar/thunar-standard-view.{c,h}: Turn the name cell renderer into a property of the ThunarStandardView class, so related functionality can be easily shared between the icon and details views. * thunar/thunar-standard-view-ui.xml, thunar/thunar-window-ui.xml: Add placeholder for alteration actions to the "Edit" menu in the thunar window and fill this placeholder with the "Rename" action in the standard view. In addition, add the "Rename" action to the file context menu. * thunar/thunar-file.{c,h}: Add rename functionality to the ThunarFile interface. * thunar/thunar-standard-view.c(thunar_standard_view_selection_changed): Enable the "Rename" action if exactly one file is selected and that file is renameable. (Old svn revision: 17172)
-
Benedikt Meurer authored
* thunar/thunar-favourites-model.c: Use GLib linked lists to manage the favourites. * thunar/thunar-favourites-model.c: Monitor the bookmarks file for changes. (Old svn revision: 17169)
-
Benedikt Meurer authored
* thunar/thunar-window-ui.xml, thunar/thunar-window.c: Add side pane selection to the View menu. (Old svn revision: 17162)
-
Benedikt Meurer authored
* configure.in.in: Check for Intel MMX Intrinsics header. * thunarx/thunarx-gdk-pixbuf-extensions.c: Use Intel MMX Intrinsics to speed up pixbuf operations, if supported by the compiler (the -mmmx option in gcc). * thunar/thunar-window.c(thunar_window_action_location_bar_changed): Apply the location bar patch submitted by Jeffs Franks <jcfranks@tpg.com.au> in a slightly modified form. (Old svn revision: 17161)
-
- Aug 28, 2005
-
-
Benedikt Meurer authored
* po/POTFILES.in: Remove thunar-vfs-mime.{c,h}. * po/*.po: Update .po files. (Old svn revision: 17154)
-
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 23, 2005
-
-
Daichi Kawahata authored
(Old svn revision: 17055)
-
- Aug 22, 2005
-
-
Benedikt Meurer authored
* thunar/thunar-path-entry.c: Add drag support for the path entry icon. * thunar/thunar-window-ui.xml, thunar/thunar-window.c: Add view selection to the "View" menu. * thunar/thunar-icon-view.c(thunar_icon_view_button_press_event): Use gtk_accelerator_get_default_mod_mask() rather than hardcoding GDK_CONTROL_MASK. * thunar/thunar-details-view.c(thunar_details_view_button_press_event): Add support to open the folder menu by right-clicking on an empty area in the tree view. * thunar/thunar-details-view.c: Work-around the problem that GtkTreeView resets the search column whenever the model changes. * thunar/thunar-standard-view.c(thunar_standard_view_grab_focus): Properly forward any grab-focus request to the child view. * thunar/thunar-marshal.list, thunar/Makefile.am, thunar/thunar-text-renderer.c: Add initial cell editing support to the text renderer. We'll need a multiline entry widget for the icon view. * thunar/thunar-details-view.c, thunar/thunar-icon-view.c, thunar/thunar-standard-view.c, thunar/thunar-standard-view.h: Add drag source support to the standard views. * thunar/thunar-list-model.c: Don't implement GtkTreeDragSource, as that's handled by ThunarStandardView now. (Old svn revision: 17053)
-