ThunarxPreferencesProvider

ThunarxPreferencesProvider — The interface to extensions that provide preferences

Stability Level

Stable, unless otherwise indicated

Synopsis

#include <thunarx/thunarx.h>

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

Object Hierarchy

  GInterface
   +----ThunarxPreferencesProvider

Prerequisites

ThunarxPreferencesProvider requires GObject.

Description

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 Compress file and Uncompress file 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.

Example 6. Preferences provider example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38