ThunarxPreferencesProvider

ThunarxPreferencesProvider

Synopsis

#include <thunarx/thunarx.h>

                    ThunarxPreferencesProviderIface;
                    ThunarxPreferencesProvider;
GList *             thunarx_preferences_provider_get_actions
                                                        (ThunarxPreferencesProvider *provider,
                                                         GtkWidget *window);

Description

Details

ThunarxPreferencesProviderIface

typedef struct {
  GList *(*get_actions) (ThunarxPreferencesProvider *provider,
                         GtkWidget                  *window);
} ThunarxPreferencesProviderIface;


ThunarxPreferencesProvider

typedef struct _ThunarxPreferencesProvider ThunarxPreferencesProvider;


thunarx_preferences_provider_get_actions ()

GList *             thunarx_preferences_provider_get_actions
                                                        (ThunarxPreferencesProvider *provider,
                                                         GtkWidget *window);

Returns the list of GtkActions that provider has to offer as preferences within window. These actions will usually be added to the builtin list of preferences in the "Edit" menu of the file manager's window.

Plugin writers that implement this interface should make sure to choose descriptive action names and tooltips, and not to crowd the "Edit" menu too much. That said, think twice before implementing this interface, as too many preference actions will render the file manager useless over time!

The caller is responsible to free the returned list of actions using something like this when no longer needed:

provider :

a ThunarxPreferencesProvider.

window :

the GtkWindow within which the actions will be used.

Returns :

the list of GtkActions that provider has to offer as preferences within window.