The ThunarVfsMimeApplication class should be extended to support desktop actions.
Created attachment 418 thunar-vfs-mime-action.h
Created attachment 419 thunar-vfs-mime-action.c
The obvious problem with the thunar-vfs-mime-action.[ch] files is that a lot of the code of ThunarVfsMimeApplication would be repeated for ThunarVfsMimeAction, and since there's no interface/base class for these two, one needs different code paths in the user interface to process them.
Committed with revision 19750. 2006-02-05 Benedikt Meurer <benny@xfce.org> * thunar-vfs/thunar-vfs-mime-action-private.h, thunar-vfs/Makefile.am, thunar-vfs/thunar-vfs-mime-action.{c,h},thunar-vfs/thunar-vfs.symbols, thunar-vfs/thunar-vfs-mime-handler-private.h, thunar-vfs/thunar-vfs.h, thunar-vfs/thunar-vfs-mime-handler.{c,h}, thunar-vfs/thunar-vfs-mime-application.{c,h}, thunar-vfs/thunar-vfs-mime-database.c: Import ThunarVfsMimeAction class to support desktop actions in Thunar. The abstract base class ThunarVfsMimeHandler is used to avoid duplicating the existing code for ThunarVfsMimeApplication in ThunarVfsMimeAction, and it will also make it easier to handle both ThunarVfsMimeApplication's and ThunarVfsMimeAction's in the user interface code. Bug #1374.