![]() |
![]() |
![]() |
Thunar Extensions Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <thunarx/thunarx.h> struct ThunarxPreferencesProviderIface; ThunarxPreferencesProvider; GList * thunarx_preferences_provider_get_actions (ThunarxPreferencesProvider *provider
,GtkWidget *window
);
struct ThunarxPreferencesProviderIface { GList *(*get_actions) (ThunarxPreferencesProvider *provider, GtkWidget *window); };
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:
1 2 |
g_list_foreach (list, (GFunc) g_object_unref, NULL); g_list_free (list); |
|
a ThunarxPreferencesProvider. |
|
the GtkWindow within which the actions will be used. |
Returns : |
the list of GtkActions that provider has
to offer as preferences within window . |