![]() |
![]() |
![]() |
Thunar Extensions Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites |
ThunarxPropertyPageProviderThunarxPropertyPageProvider — The interface to extensions that provide additional property pages |
#include <thunarx/thunarx.h> ThunarxPropertyPageProvider; struct ThunarxPropertyPageProviderIface; GList * thunarx_property_page_provider_get_pages (ThunarxPropertyPageProvider *provider
,GList *files
);
To add a property page to the file properties dialog, extensions must implement the
ThunarxPropertyPageProvider interface. This interface has only one virtual
method, get_pages
, that is passed a list of ThunarxFileInfo objects and returns a list
of ThunarxPropertyPage objects.
typedef struct _ThunarxPropertyPageProvider ThunarxPropertyPageProvider;
Property page provider type.
struct ThunarxPropertyPageProviderIface { GList *(*get_pages) (ThunarxPropertyPageProvider *provider, GList *files); };
Interface with virtual methods implemented by extensions that provide additional pages for the file properties dialog.
GList * thunarx_property_page_provider_get_pages (ThunarxPropertyPageProvider *provider
,GList *files
);
Returns the list of ThunarxPropertyPages that provider
has to offer for files
.
Extensions that implement this interface, must first check whether they support all the
ThunarxFileInfos in the list of files
. Most extensions will probably only support
ThunarxPropertyPages for exactly one file of a certain type. For example an MP3-Tag
editor property page will most probably support only a single audio file, and so the method
would be implemented like this
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |