![]() |
![]() |
![]() |
Thunar Extensions Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites |
ThunarxPreferencesProviderThunarxPreferencesProvider — The interface to extensions that provide preferences |
#include <thunarx/thunarx.h> struct ThunarxPreferencesProviderIface; ThunarxPreferencesProvider; GList * thunarx_preferences_provider_get_actions (ThunarxPreferencesProvider *provider
,GtkWidget *window
);
The ThunarxPreferencesProvider interface is implemented by extensions that
want to register additional actions in the preferences menu of the file
manager. In general this should only be done by extensions that are closely
tied to the file manager (for example, the thunar-uca
is
such an extension, while an extension that just adds and to the
context menu of compressed files should not add their own preferences to
the file manager menu, because it should use desktop-wide settings for
archive managers instead).
The GtkActions returned from the
thunarx_preferences_provider_get_actions()
method must be namespaced with the
model to avoid collision with internal file manager actions and actions provided
by other extensions. For example, the preferences action provided by the
thunar-uca
extension is called
ThunarUca::manage-actions
.