1. 18 Jul, 2005 1 commit
  2. 15 Jul, 2005 4 commits
    • Benedikt Meurer's avatar
      2005-07-16 Benedikt Meurer <benny@xfce.org> · d36df4cd
      Benedikt Meurer authored
      	* thunar/thunar-folder.{c,h}: Add a "files-removed" signal, which can
      	  be used by ThunarFolder implementation to solve the reload problem,
      	  and probably other problems as well (like asynchronous loading).
      	* thunar/thunar-local-folder.c(thunar_local_folder_rescan): Use
      	  "files-removed" instead of destroying the no longer present files,
      	  so we don't accidently terminate other stuff here.
      	* thunar/thunar-list-model.c: Handle the "files-removed" signal of the
      	  ThunarFolder.
      
      
      
      
      (Old svn revision: 16391)
      d36df4cd
    • Benedikt Meurer's avatar
      2005-07-15 Benedikt Meurer <benny@xfce.org> · 60b7a2ea
      Benedikt Meurer authored
      	* thunar/thunar-details-view.c: Unselect all selected items if the
      	  user clicks on an empty area of the treeview and neither Control
      	  nor Shift is active.
      	* thunar/thunar-properties-dialog.{c,h}: Add the first draft for the
      	  ThunarPropertiesDialog class, which implements a properties dialog for
      	  a single file.
      	* thunar/Makefile.am: Add ThunarPropertiesDialog to the build framework.
      	* thunar/thunar-standard-view-ui.xml, thunar/thunar-standard-view.c,
      	  thunar/thunar-window-ui.xml: Add the "properties" action to the
      	  menu structure, which displays a properties dialog for the selected
      	  file.
      
      
      
      
      (Old svn revision: 16390)
      60b7a2ea
    • Benedikt Meurer's avatar
      2005-07-15 Benedikt Meurer <benny@xfce.org> · 53eb3dae
      Benedikt Meurer authored
      	* thunar-vfs/thunar-vfs-volume.{c,h}: Extend the ThunarVfsVolumeManager
      	  interface to be able to query the ThunarVfsVolume for a given
      	  ThunarVfsInfo.
      	* thunar-vfs/thunar-vfs-volume-{bsd,sysv}.c: Catch up with the latest
      	  ThunarVfsVolumeManager changes.
      	* thunar-vfs/thunar-vfs-volume-bsd.c(thunar_vfs_volume_bsd_new): Add
      	  support for SCSI direct access devices.
      	* thunar/thunar-file.{c,h}: Add thunar_file_get_volume() to be able
      	  to query the ThunarVfsVolume for a given ThunarFile, if possible.
      	* thunar/thunar-local-file.c: Implement the newly added get_volume()
      	  method based on the ThunarVfsVolumeManager.
      	* thunar/thunar-list-model.c: Use the new volume related functionality
      	  to display the free space of the currently active directory in the
      	  statusbar.
      
      
      
      
      (Old svn revision: 16389)
      53eb3dae
    • Benedikt Meurer's avatar
      2005-07-15 Benedikt Meurer <benny@xfce.org> · a13c5705
      Benedikt Meurer authored
      	* docs/papers/HackingOnThunar.odt: Improve the "Hacking on Thunar"
      	  guide.
      	* thunar-vfs/thunar-vfs-volume.{c,h}: Change the icon lookup mechanism
      	  to return an icon name instead of a GtkIconInfo object. Also allow
      	  the ThunarVfsVolume implementation to specify a custom icon by
      	  overriding the lookup_icon_name() method. Add a new method
      	  get_free_space() which can be used to determine the amount of free
      	  space on a given volume.
      	* thunar-vfs/thunar-vfs-volume-bsd.c: Catch up with the changes to
      	  ThunarVfsVolume.
      	* thunar/thunar-favourites-model.c: Cache icons for the favourites and
      	  reload them whenever the file/volume changes. Adopt the new icon
      	  lookup mechanism for ThunarVfsVolume.
      
      
      
      
      (Old svn revision: 16388)
      a13c5705
  3. 14 Jul, 2005 1 commit
  4. 13 Jul, 2005 3 commits
    • Benedikt Meurer's avatar
      2005-07-13 Benedikt Meurer <benny@xfce.org> · 1c51815e
      Benedikt Meurer authored
      	* thunar/thunar-clipboard-manager.c: Fake an "owner-changed" event
      	  for the clipboard if either GDK or the Xserver do not support the
      	  XFixes extension.
      	* thunar/thunar-standard-view.c: Monitor the associated clipboard for
      	  changes. Enable the "paste" action only if the both the current
      	  directory is writable and the clipboard contents are pastable.
      
      
      
      
      (Old svn revision: 16386)
      1c51815e
    • Benedikt Meurer's avatar
      2005-07-13 Benedikt Meurer <benny@xfce.org> · 5b032926
      Benedikt Meurer authored
      	* thunar-vfs/thunar-vfs-user.c(thunar_vfs_user_manager_init): Use
      	  direct hashing instead of int hashing.
      	* thunar/thunar-local-file.c(thunar_local_file_get_emblem_names): If
      	  the file cannot be written, return the "noread" emblem as well.
      	* thunar/thunar-file.{c,h}: Add can_execute(), can_read() and
      	  can_write() methods, and a default implementation, so not every
      	  class derived from ThunarFile needs to implement these methods of
      	  its own.
      	* thunar/thunar-standard-view.c(thunar_standard_view_selection_changed):
      	  Update the "cut" and "paste" actions depending on whether the
      	  current directory is writable.
      
      
      
      
      (Old svn revision: 16385)
      5b032926
    • Benedikt Meurer's avatar
      2005-07-12 Benedikt Meurer <benny@xfce.org> · 7894110d
      Benedikt Meurer authored
      	* thunar/thunar-vfs-uri.c(thunar_vfs_uri_list_to_string): Use GString
      	  to build the URI list string.
      	* thunar/thunar-vfs-uri.{c,h}: Add a method thunar_vfs_uri_list_copy()
      	  which duplicates a list of ThunarVfsURIs.
      	* thunar-vfs/thunar-vfs-volume-bsd.c(thunar_vfs_volume_bsd_finalize):
      	  Properly remove the update timer here.
      	* thunar/thunar-list-model.c(thunar_list_model_remove): Perform the
      	  GtkTreeModel delete operation prior to notifying the "num-files"
      	  property to make sure the selection of the view is updated before
      	  the standard-view requests the statusbar text for the selection.
      	* TODO: Add another two issues.
      	* thunar/thunar-clipboard-manager.{c,h}, thunar/Makefile.am: Add the new
      	  ThunarClipboardManager class, which does the interaction with the
      	  clipboard.
      	* thunar/thunar-standard-view.{c,h}: Implement Copy/Cut operations based
      	  on the newly added ThunarClipboardManager class.
      	* thunar/thunar-standard-view-ui.xml, thunar/thunar-window-ui.xml: Add
      	  clipboard operations to the "Edit" menu.
      
      
      
      
      (Old svn revision: 16384)
      7894110d
  5. 12 Jul, 2005 1 commit
  6. 11 Jul, 2005 2 commits
    • Benedikt Meurer's avatar
      2005-07-12 Benedikt Meurer <benny@xfce.org> · dce6e204
      Benedikt Meurer authored
      	* thunar/thunar-standard-view-ui.xml, thunar/thunar-window-ui.xml:
      	  Specify the name in addition to the action.
      
      
      
      
      (Old svn revision: 16382)
      dce6e204
    • Benedikt Meurer's avatar
      2005-07-11 Benedikt Meurer <benny@xfce.org> · 139930da
      Benedikt Meurer authored
      	* thunar/thunar-navigator.c(thunar_navigator_class_init): Use
      	  EXO_PARAM_READWRITE instead of G_PARAM_READWRITE.
      	* thunar/thunar-list-model.c: Fix several bugs related to incorrect
      	  signal registration/removal in the hidden files handling.
      	* thunar/thunar-view.{c,h}: Add a new "ui-manager" property, which is
      	  set by the surrounding window for the view in question. The view in
      	  turn can hook its own actions - and thereby menu and toolbar items -
      	  into the ui manager, using GtkUIManager's merging capabilities.
      	* thunar/thunar-window.c(thunar_window_init): Tell the main view about
      	  our UI manager.
      	* thunar/thunar-window-ui.xml, thunar/thunar-standard-view-ui.xml,
      	  thunar/thunar-standard-view.{c,h}, thunar/Makefile.am: Add initial
      	  support for menu merging to the standard view class - and thereby to
      	  the icon and details view. You can now control the "show-hidden"
      	  property of the main view's model from the menu bar.
      
      
      
      
      (Old svn revision: 16381)
      139930da
  7. 10 Jul, 2005 1 commit
    • Benedikt Meurer's avatar
      2005-07-10 Benedikt Meurer <benny@xfce.org> · 54ce86c5
      Benedikt Meurer authored
      	* thunar/thunar-list-model.{c,h}: Readd the get_statusbar_text() method.
      	* thunar/thunar-favourites-view.c(thunar_favourites_view_row_activated):
      	  Make sure the activated row is not the separator row, as calling
      	  thunar_navigator_change_directory() with NULL for the directory
      	  parameter will lead to a crash.
      	* thunar/thunar-standard-view.{c,h}, thunar/thunar-details-view.{c,h},
      	  thunar/thunar-icon-view.{c,h}, thunar/Makefile.am: Add a new abstract
      	  base class ThunarStandardView, which is inherited by ThunarIconView
      	  and ThunarDetailsView. ThunarStandardView itself is derived from
      	  GtkScrolledWindow. This change was made to reduce the amount of
      	  duplicated code in ThunarIconView and ThunarDetailsView, and to
      	  workaround the problem that Gtk style properties don't pickup the
      	  custom properties for certain widgets once you have a derived class.
      	* thunar/thunar-statusbar.{c,h}: Revert to the previous ThunarStatusbar
      	  implementation, which has a single "text" property that is bound to
      	  the "statusbar-text" property of the active view.
      	* thunar/thunar-view.{c,h}: ThunarView now inherits (in terms of
      	  interface inheritance) from ThunarNavigator, which will allow for
      	  unified handling in ThunarWindow. In addition, the ThunarView now
      	  provides a "loading" and a "statusbar-text" property (both readonly)
      	  to put the view back in control of the loading process.
      
      
      
      
      (Old svn revision: 16380)
      54ce86c5
  8. 07 Jul, 2005 1 commit
  9. 05 Jul, 2005 2 commits
  10. 03 Jul, 2005 1 commit
    • Benedikt Meurer's avatar
      2005-07-03 Benedikt Meurer <benny@xfce.org> · 9f3325e9
      Benedikt Meurer authored
      	* thunar/thunar-favourites-model.c(thunar_favourites_model_get_value):
      	  The ThunarVfsVolume interface does no longer provide the "name"
      	  property.
      	* thunar-vfs/thunar-vfs-volume-bsd.c: Read the label from the ISO9660
      	  volume descriptor block whenever a new medium is inserted and use
      	  this label as name.
      
      
      
      
      (Old svn revision: 16365)
      9f3325e9
  11. 02 Jul, 2005 1 commit
    • Benedikt Meurer's avatar
      2005-07-02 Benedikt Meurer <benny@xfce.org> · d9753842
      Benedikt Meurer authored
      	* thunar/thunar-window-ui.xml, thunar/Makefile.am,
      	  thunar/thunar-window.c: The UI description for the ThunarWindow is
      	  now placed in a separate XML file for easier editing, and compiled
      	  into the binary using the exo-csource utility.
      
      
      
      
      (Old svn revision: 16364)
      d9753842
  12. 01 Jul, 2005 1 commit
    • Benedikt Meurer's avatar
      2005-07-02 Benedikt Meurer <benny@xfce.org> · 2c1bfce3
      Benedikt Meurer authored
      	* configure.in.in: Add checks for functions used in the user module.
      	* thunar-vfs/thunar-vfs-user.{c,h}: Add a user module to the VFS
      	  library, which is extensible and performs some caching to reduce
      	  the overhead caused by the underlying NSS implementation.
      	* docs/papers/HackingOnThunar.odt: Add comments about the newly added
      	  ThunarVfsUser module.
      	* thunar-vfs/thunar-vfs-info.h: Add ThunarVfsUserId and ThunarVfsGroupId
      	  typedefs.
      	* thunar-vfs/thunar-vfs.h, thunar-vfs/Makefile.am: Add the new
      	  ThunarVfsUser module to the build framework.
      	* thunar/thunar-file.{c,h}, thunar/thunar-local-file.c,
      	  thunar/thunar-trash-file.c: Add two new methods to the ThunarFile
      	  class - get_group() and get_user() - and add an implementation of
      	  these methods to the local and trash backends.
      
      
      
      
      (Old svn revision: 16363)
      2c1bfce3
  13. 29 Jun, 2005 3 commits
    • Benedikt Meurer's avatar
      2005-06-29 Benedikt Meurer <benny@xfce.org> · a66bc09c
      Benedikt Meurer authored
      	* thunar/thunar-details-view-icon-renderer.c
      	  (thunar_details_view_icon_renderer_render): Add support to render
      	  the primary emblem of the given file.
      	* thunar/thunar-file.{c,h}: Add support to query the list of emblems
      	  for a given ThunarFile.
      	* thunar/thunar-local-file.c: Implement the ThunarFile emblem support
      	  for symbolic links.
      
      
      
      
      (Old svn revision: 16362)
      a66bc09c
    • Benedikt Meurer's avatar
      2005-06-29 Benedikt Meurer <benny@xfce.org> · 38937c9e
      Benedikt Meurer authored
      	* thunar/thunar-details-view-icon-renderer.{c,h}: Add a custom icon
      	  renderer for the details view.
      	* thunar/thunar-list-model.{c,h}: Allow consumers of this model to
      	  query the file for a given row.
      	* thunar/Makefile.am: Add the new ThunarDetailsViewIconRenderer class
      	  to the build framework.
      	* thunar/thunar-details-view.c(thunar_details_view_init): Use the custom
      	  icon renderer instead of the generic pixbuf renderer provided by Gtk+.
      
      
      
      
      (Old svn revision: 16361)
      38937c9e
    • Benedikt Meurer's avatar
      2005-06-29 Benedikt Meurer <benny@xfce.org> · 27f028c7
      Benedikt Meurer authored
      	* thunar/thunar-location-buttons.c: Make this behave like GtkFileChooser
      	  again.
      
      
      
      
      (Old svn revision: 16360)
      27f028c7
  14. 28 Jun, 2005 1 commit
  15. 26 Jun, 2005 2 commits
    • Benedikt Meurer's avatar
      2005-06-26 Benedikt Meurer <benny@xfce.org> · c2ee9b2c
      Benedikt Meurer authored
      	* thunar-vfs/thunar-vfs-info.{c,h}: Do not automatically determine the
      	  link target for ThunarVfsInfo objects. Instead, we'll add a method
      	  to ThunarVfsInfo later, so modules can do this on-demand. This speeds
      	  up loading directories with lots of symlinks within.
      	* TODO: Remove the ThunarVfsInfo symlink item.
      
      
      
      
      (Old svn revision: 16358)
      c2ee9b2c
    • Benedikt Meurer's avatar
      2005-06-26 Benedikt Meurer <benny@xfce.org> · e5aa4256
      Benedikt Meurer authored
      	* thunar-vfs/thunar-vfs-uri.{c,h}: Don't use a GObject for the
      	  ThunarVfsURI class. GObject is really overhead here, as we don't need
      	  anything of whats provided by GObject.
      	* TODO: Add note about missing GValue handling for ThunarVfsURI.
      	* TODO: Add note to fix ThunarVfsInfo to not implicitly query the
      	  link target.
      	* thunar-vfs/*.[ch], thunar/*.[ch]: Use thunar_vfs_uri_unref() and
      	  thunar_vfs_uri_ref() instead of g_object_unref() and g_object_ref(),
      	  as ThunarVfsURI is no longer a GObject derived type.
      	* thunar/thunar-window.c: Make loading new directories look and feel
      	  "smoother". Still not perfect.
      
      
      
      
      (Old svn revision: 16357)
      e5aa4256
  16. 25 Jun, 2005 4 commits
    • Benedikt Meurer's avatar
      2005-06-25 Benedikt Meurer <benny@xfce.org> · ec386592
      Benedikt Meurer authored
      	* thunar/thunar-local-file.c: Use a static variable for the VFS monitor
      	  instead of a class variable, that never gets freed with static types.
      	* thunar/thunar-favourites-model.c: Watch the files in the favourites
      	  list for changes, so that folders that no longer exists are
      	  automatically removed from the list.
      
      
      
      
      (Old svn revision: 16356)
      ec386592
    • Benedikt Meurer's avatar
      2005-06-25 Benedikt Meurer <benny@xfce.org> · 35df50c2
      Benedikt Meurer authored
      	* thunar/thunar-navigator.c(thunar_navigator_get_type): Do not require
      	  derived classes to inherit GtkWidget. This enables us to let arbitrary
      	  classes implement the ThunarNavigator interface and therefore reduce
      	  the amount of hardcoded knowledge in ThunarWindow.
      	* thunar/thunar-side-pane.c(thunar_side_pane_get_type): Require derived
      	  classes to inhert GtkWidget.
      
      
      
      
      (Old svn revision: 16355)
      35df50c2
    • Benedikt Meurer's avatar
      2005-06-25 Benedikt Meurer <benny@xfce.org> · cd6a9d98
      Benedikt Meurer authored
      	* thunar/thunar-details-view.c(thunar_details_view_init): Use a
      	  GtkCellRendererText instead of an ExoCellRendererEllipsizedText
      	  for the name column.
      	* thunar/thunar-details-view.c, thunar/thunar-icon-view.c: Set proper
      	  ATK name and descriptions here.
      
      
      
      
      (Old svn revision: 16354)
      cd6a9d98
    • Benedikt Meurer's avatar
      2005-06-25 Benedikt Meurer <benny@xfce.org> · de852fee
      Benedikt Meurer authored
      	* thunar/main.c(main): Disable thread support for now, as it's not used
      	  and just slows down stuff.
      	* thunar/thunar-file.{c,h}, thunar/thunar-local-file.{c,h},
      	  thunar/thunar-local-folder.c, thunar/thunar-trash-file.c: Watch local
      	  directories and trashed files for changes.
      
      
      
      
      (Old svn revision: 16353)
      de852fee
  17. 24 Jun, 2005 3 commits
    • Benedikt Meurer's avatar
      2005-06-25 Benedikt Meurer <benny@xfce.org> · f2fd68a7
      Benedikt Meurer authored
      	* thunar/thunar-location-buttons.c
      	  (thunar_location_buttons_set_current_directory): Don't display the
      	  real root node - the 'computer:'-node - if a sub-node is active. So
      	  currently we have four distinctive possible roots for the location
      	  buttons bar, which are the home directory of the user, the file system
      	  root node ('file:/'), the trash root ('trash:') and the real computer
      	  root node ('computer:'), which are checked in the given order.
      	* thunar/thunar-list-model.c(thunar_list_model_get_value): Use slightly
      	  larger icons for the details view.
      	* thunar/thunar-window.c: Add preliminary menu support with 'Close'
      	  and 'Go up'.
      
      
      
      
      (Old svn revision: 16352)
      f2fd68a7
    • Benedikt Meurer's avatar
      2005-06-24 Benedikt Meurer <benny@xfce.org> · c0587880
      Benedikt Meurer authored
      	* thunar-vfs/thunar-vfs-uri.{c,h}: Add support for the 'computer://'
      	  URI.
      	* thunar/thunar-trash-folder.c, thunar/thunar-local-folder.c,
      	  thunar/thunar-folder.c: Drop the GObject properties, as they are
      	  mostly useless here.
      	* thunar/main.c(main): Use thunar_vfs_uri_new() for the optional
      	  command line parameter to be able to open arbitrary URIs from the
      	  command line.
      	* thunar/Makefile.am: Add new class ThunarComputerFolder to the build
      	  framework.
      	* thunar/thunar-computer-folder.{c,h}: Add ThunarComputerFolder class,
      	  which implements the 'computer:' URI. This vfolder is the root of all
      	  other root folders, currently 'file:/' and 'trash:'.
      	* thunar/thunar-file.{c,h}, thunar/thunar-folder.c,
      	  thunar/thunar-list-model.c, thunar/thunar-local-file.c,
      	  thunar/thunar-local-folder.c, thunar/thunar-statusbar.c,
      	  thunar/thunar-trash-file.c, thunar/thunar-trash-folder.c: Add support
      	  for the 'computer:' vfolder as overall root node. Rearrange the
      	  get_size() method to be able to support objects for which no size
      	  is known, currently vfolders and directories in general. The virtual
      	  get_mime_info() method now automatically takes a reference on the
      	  returned object for the caller.
      
      
      
      
      (Old svn revision: 16351)
      c0587880
    • Benedikt Meurer's avatar
      2005-06-24 Benedikt Meurer <benny@xfce.org> · 4e66145c
      Benedikt Meurer authored
      	* configure.in.in: Add check for localtime_r.
      	* thunar/thunar-file.{c,h}: Add support to query accessed, changed and
      	  modified dates of ThunarFiles.
      	* thunar/thunar-local-file.c, thunar/thunar-trash-file.c: Implement
      	  the virtual get_date() method.
      	* thunar/thunar-list-model.{c,h}: Add new columns accessed date,
      	  modified date and mime type. Fix the sorting for the mime comment
      	  column.
      	* thunar/thunar-details-view.c: Display type and date modified columns
      	  as well.
      
      
      
      
      (Old svn revision: 16350)
      4e66145c
  18. 22 Jun, 2005 2 commits
    • Benedikt Meurer's avatar
      2005-06-23 Benedikt Meurer <benny@xfce.org> · 992ce7db
      Benedikt Meurer authored
      	* docs/papers/HackingOnThunar.odt, docs/papers/Makefile.am,
      	  configure.in.in, docs/Makefile.am: Add initial draft of the "Hacking
      	  on Thunar" paper.
      
      
      
      
      (Old svn revision: 16349)
      992ce7db
    • Benedikt Meurer's avatar
      2005-06-22 Benedikt Meurer <benny@xfce.org> · a40a1cca
      Benedikt Meurer authored
      	* thunar/thunar-local-file.c, thunar/thunar-local-folder.c: If for
      	  some reason the constructor fails, we need to make sure to handle
      	  the floating reference correctly, therefore we call gtk_object_sink()
      	  instead of g_object_unref() in this case now.
      
      
      
      
      (Old svn revision: 16348)
      a40a1cca
  19. 21 Jun, 2005 3 commits
    • Benedikt Meurer's avatar
      2005-06-22 Benedikt Meurer <benny@xfce.org> · 717c9458
      Benedikt Meurer authored
      	* thunar/thunar-file.c, thunar/thunar-local-folder.c: Add an assertion
      	  to verify that an object has a floating reference before we call
      	  gtk_object_sink() on it.
      
      
      
      
      (Old svn revision: 16347)
      717c9458
    • Benedikt Meurer's avatar
      2005-06-22 Benedikt Meurer <benny@xfce.org> · 305049cc
      Benedikt Meurer authored
      	* TODO: Addd new TODO items and remove solved issues.
      	* thunar/Makefile.am: Add new class ThunarTrashFile to the build
      	  framework.
      	* thunar-vfs/thunar-vfs-monitor.c(thunar_vfs_monitor_add_info): Do not
      	  use kevent for symlinks, it's way easier to watch them using regular
      	  polling. This shouldn't be a problem anyways, as watching symlinks
      	  is not a common case.
      	* thunar-vfs/thunar-vfs-trash.{c,h}: Add functionality to handle trash:
      	  URIs and determine the real path for a file in a particular trash
      	  can.
      	* thunar-vfs/thunar-vfs-trash.c(thunar_vfs_trash_manager_get_trashes):
      	  Fix a typo where the order of arguments to the g_list_prepend()
      	  function was wrong.
      	* thunar/thunar-trash-file.{c,h}: Add a ThunarTrashFile class, which
      	  represents a trashed file.
      	* thunar/thunar-trash-folder.c: Add support for listing the contents
      	  of the various trash cans, and also provide a simple proxy mechanism,
      	  that automatically forwards the constructor invokation to the
      	  ThunarTrashFile class if required. The trash can handling must be
      	  improved, see bug #1027.
      
      
      
      
      (Old svn revision: 16346)
      305049cc
    • Benedikt Meurer's avatar
      2005-06-21 Benedikt Meurer <benny@xfce.org> · a47e6313
      Benedikt Meurer authored
      	* thunar/thunar-window.c(thunar_window_set_current_directory): Use
      	  thunar_file_open_as_folder() to open new folders.
      	* thunar/thunar-folder.{c,h}: ThunarFolder is now an interface, which
      	  can be implemented in different ways.
      	* thunar/thunar-local-folder.{c,h}: The previous ThunarFolder is now
      	  named ThunarLocalFolder.
      	* thunar/thunar-file.{c,h}: Add thunar_file_open_as_folder() virtual
      	  method, which allows the ThunarFile implementation to choose an
      	  appropriate ThunarFolder implementation and thereby removes the
      	  need for the surrounding modules to "guess" the correct ThunarFolder.
      	* thunar/thunar-local-file.c: Implement the open_as_folder() method
      	  for local files by simply instantiating a ThunarLocalFolder on the
      	  file in question.
      	* thunar/thunar-trash-folder.{c,h}: The ThunarTrashFile class is now
      	  named ThunarTrashFolder as it really represents the trash toplevel
      	  folder. It also implements the ThunarFolder interface now. The real
      	  folder implementation is missing currently.
      	* thunar/Makefile.am: Sync the build framework with the changes
      	  described above.
      
      
      
      
      (Old svn revision: 16345)
      a47e6313
  20. 20 Jun, 2005 3 commits
    • Benedikt Meurer's avatar
      2005-06-20 Benedikt Meurer <benny@xfce.org> · 96245579
      Benedikt Meurer authored
      	* thunar-vfs/thunar-vfs-monitor.c(thunar_vfs_monitor_event): Remove
      	  unused variables.
      	* thunar/thunar-folder.c: Apply the same optimization concerning signal
      	  id lookups and closure generations as done with ThunarListModel
      	  earlier.
      	* thunar/thunar-folder.c: Actually react to events on the corresponding
      	  file. We still need a mode in which we'll handle errors in async
      	  folder reloads.
      	* thunar/thunar-local-file.c: Drop the cached MIME type whenever the
      	  file changes. The MIME type will be recalculated on demand when
      	  needed.
      	* thunar/thunar-icon-factory.c: Instead of binding to the icon theme
      	  instance's "changed" signal and risking that somebody else already
      	  registered a handler earlier, we use a signal emission hook now, which
      	  is garantied to be fired before any of the signal handlers are
      	  invoked. See the code for details and additional comments.
      
      
      
      
      (Old svn revision: 16344)
      96245579
    • Benedikt Meurer's avatar
      2005-06-20 Benedikt Meurer <benny@xfce.org> · 11772bb1
      Benedikt Meurer authored
      	* thunar/thunar-local-file.h: Add missing THUNAR_LOCAL_FILE_GET_CLASS().
      	* configure.in.in: Add checks for kqueue() and required headers.
      	* thunar-vfs/thunar-vfs-info.{c,h}: thunar_vfs_info_update() is now
      	  part of the public API as it's used by monitor and will be used
      	  by the ThunarLocalFile implementation later as well.
      	* thunar-vfs/thunar-vfs-monitor.{c,h}: Add implementation for most
      	  of the ThunarVfsMonitor. The current implementation uses kqueue()
      	  if available with a fallback to regular polling.
      
      
      
      
      (Old svn revision: 16343)
      11772bb1
    • Benedikt Meurer's avatar
      2005-06-20 Benedikt Meurer <benny@xfce.org> · 2928c9a9
      Benedikt Meurer authored
      	* thunar/thunar-list-model.c: Instead of resolving the ids for the
      	  "destroy" and "changed" signals on ThunarFile everytime we need to
      	  register it, we query the signal id in the constructor and remember
      	  it. In addition, instead of creating a closure for every signal
      	  registration on a ThunarFile, we create a closure for "changed" and
      	  a closure for "destroy" in the constructor and reuse that closure
      	  everytime we need to register a signal handler.
      	* thunar/thunar-list-model.c: Watch hidden files for "destroy" condition
      	  as well.
      	* thunar/thunar-trash-file.c: Emit the "changed" signal whenever the
      	  "empty" property on the trash manager changes.
      	* thunar/thunar-file.{c,h}: Add a method thunar_file_changed(), which
      	  is used by derived classes to emit the "changed" signal on a given
      	  ThunarFile.
      
      
      
      
      (Old svn revision: 16342)
      2928c9a9