-
Notifications
You must be signed in to change notification settings - Fork 345
Expand file tree
/
Copy pathnemo-global-preferences.h
More file actions
345 lines (277 loc) · 15.6 KB
/
nemo-global-preferences.h
File metadata and controls
345 lines (277 loc) · 15.6 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
/* -*- Mode: C; indent-tabs-mode: f; c-basic-offset: 4; tab-width: 4 -*- */
/* nemo-global-preferences.h - Nemo specific preference keys and
functions.
Copyright (C) 1999, 2000, 2001 Eazel, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this program; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 51 Franklin Street - Suite 500,
Boston, MA 02110-1335, USA.
Authors: Ramiro Estrugo <ramiro@eazel.com>
*/
#ifndef NEMO_GLOBAL_PREFERENCES_H
#define NEMO_GLOBAL_PREFERENCES_H
#include <gio/gio.h>
G_BEGIN_DECLS
/* Trash options */
#define NEMO_PREFERENCES_CONFIRM_MOVE_TO_TRASH "confirm-move-to-trash"
#define NEMO_PREFERENCES_CONFIRM_TRASH "confirm-trash"
#define NEMO_PREFERENCES_ENABLE_DELETE "enable-delete"
#define NEMO_PREFERENCES_SWAP_TRASH_DELETE "swap-trash-delete"
/* Desktop options */
#define NEMO_PREFERENCES_DESKTOP_IS_HOME_DIR "desktop-is-home-dir"
/* Display */
#define NEMO_PREFERENCES_SHOW_HIDDEN_FILES "show-hidden-files"
#define NEMO_PREFERENCES_SHOW_ADVANCED_PERMISSIONS "show-advanced-permissions"
#define NEMO_PREFERENCES_DATE_FORMAT "date-format"
#define NEMO_PREFERENCES_DATE_FONT_CHOICE "date-font-choice"
#define NEMO_PREFERENCES_MONO_FONT_NAME "monospace-font-name"
/* Mouse */
#define NEMO_PREFERENCES_MOUSE_USE_EXTRA_BUTTONS "mouse-use-extra-buttons"
#define NEMO_PREFERENCES_MOUSE_FORWARD_BUTTON "mouse-forward-button"
#define NEMO_PREFERENCES_MOUSE_BACK_BUTTON "mouse-back-button"
typedef enum
{
NEMO_DATE_FORMAT_LOCALE,
NEMO_DATE_FORMAT_ISO,
NEMO_DATE_FORMAT_INFORMAL
} NemoDateFormat;
typedef enum
{
NEMO_DATE_FONT_CHOICE_AUTO,
NEMO_DATE_FONT_CHOICE_SYSTEM,
NEMO_DATE_FONT_CHOICE_NONE
} NemoDateFontChoice;
typedef enum
{
NEMO_NEW_TAB_POSITION_AFTER_CURRENT_TAB,
NEMO_NEW_TAB_POSITION_END,
} NemoNewTabPosition;
/* Sidebar panels */
#define NEMO_PREFERENCES_TREE_SHOW_ONLY_DIRECTORIES "show-only-directories"
/* Single/Double click preference */
#define NEMO_PREFERENCES_CLICK_POLICY "click-policy"
/* Quick renames with two single clicks and pause in-between*/
#define NEMO_PREFERENCES_CLICK_TO_RENAME "quick-renames-with-pause-in-between"
/* Activating executable text files */
#define NEMO_PREFERENCES_EXECUTABLE_TEXT_ACTIVATION "executable-text-activation"
/* Image viewers to pass nemo view sort order to */
#define NEMO_PREFERENCES_IMAGE_VIEWERS_WITH_EXTERNAL_SORT "image-viewers-with-external-sort"
/* Spatial or browser mode */
#define NEMO_PREFERENCES_ALWAYS_USE_BROWSER "always-use-browser"
#define NEMO_PREFERENCES_NEW_TAB_POSITION "tabs-open-position"
#define NEMO_PREFERENCES_SHOW_LOCATION_ENTRY "show-location-entry"
#define NEMO_PREFERENCES_SHOW_PREVIOUS_ICON_TOOLBAR "show-previous-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_NEXT_ICON_TOOLBAR "show-next-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_UP_ICON_TOOLBAR "show-up-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_EDIT_ICON_TOOLBAR "show-edit-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_RELOAD_ICON_TOOLBAR "show-reload-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_HOME_ICON_TOOLBAR "show-home-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_COMPUTER_ICON_TOOLBAR "show-computer-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_SEARCH_ICON_TOOLBAR "show-search-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_NEW_FOLDER_ICON_TOOLBAR "show-new-folder-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_OPEN_IN_TERMINAL_TOOLBAR "show-open-in-terminal-toolbar"
#define NEMO_PREFERENCES_SHOW_ICON_VIEW_ICON_TOOLBAR "show-icon-view-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_LIST_VIEW_ICON_TOOLBAR "show-list-view-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_COMPACT_VIEW_ICON_TOOLBAR "show-compact-view-icon-toolbar"
#define NEMO_PREFERENCES_SHOW_ROOT_WARNING "show-root-warning"
#define NEMO_PREFERENCES_SHOW_SHOW_THUMBNAILS_TOOLBAR "show-show-thumbnails-toolbar"
#define NEMO_PREFERENCES_SHOW_TOGGLE_EXTRA_PANE_TOOLBAR "show-toggle-extra-pane-toolbar"
/* Which views should be displayed for new windows */
#define NEMO_WINDOW_STATE_START_WITH_STATUS_BAR "start-with-status-bar"
#define NEMO_WINDOW_STATE_START_WITH_SIDEBAR "start-with-sidebar"
#define NEMO_WINDOW_STATE_START_WITH_TOOLBAR "start-with-toolbar"
#define NEMO_WINDOW_STATE_START_WITH_MENU_BAR "start-with-menu-bar"
#define NEMO_WINDOW_STATE_SIDE_PANE_VIEW "side-pane-view"
#define NEMO_WINDOW_STATE_GEOMETRY "geometry"
#define NEMO_WINDOW_STATE_MAXIMIZED "maximized"
#define NEMO_WINDOW_STATE_SIDEBAR_WIDTH "sidebar-width"
#define NEMO_WINDOW_STATE_MY_COMPUTER_EXPANDED "my-computer-expanded"
#define NEMO_WINDOW_STATE_BOOKMARKS_EXPANDED "bookmarks-expanded"
#define NEMO_WINDOW_STATE_DEVICES_EXPANDED "devices-expanded"
#define NEMO_WINDOW_STATE_NETWORK_EXPANDED "network-expanded"
/* Saved session (last closed window) */
#define NEMO_WINDOW_STATE_SAVED_SPLIT_VIEW "saved-split-view"
#define NEMO_WINDOW_STATE_SAVED_TABS_LEFT "saved-tabs-left"
#define NEMO_WINDOW_STATE_SAVED_TABS_RIGHT "saved-tabs-right"
#define NEMO_WINDOW_STATE_SAVED_ACTIVE_TAB_LEFT "saved-active-tab-left"
#define NEMO_WINDOW_STATE_SAVED_ACTIVE_TAB_RIGHT "saved-active-tab-right"
/* Sorting order */
#define NEMO_PREFERENCES_SORT_DIRECTORIES_FIRST "sort-directories-first"
#define NEMO_PREFERENCES_SORT_FAVORITES_FIRST "sort-favorites-first"
#define NEMO_PREFERENCES_DEFAULT_SORT_ORDER "default-sort-order"
#define NEMO_PREFERENCES_DEFAULT_SORT_IN_REVERSE_ORDER "default-sort-in-reverse-order"
/* The default folder viewer - one of the two enums below */
#define NEMO_PREFERENCES_DEFAULT_FOLDER_VIEWER "default-folder-viewer"
#define NEMO_PREFERENCES_INHERIT_FOLDER_VIEWER "inherit-folder-viewer"
#define NEMO_PREFERENCES_SHOW_FULL_PATH_TITLES "show-full-path-titles"
#define NEMO_PREFERENCES_CLOSE_DEVICE_VIEW_ON_EJECT "close-device-view-on-device-eject"
#define NEMO_PREFERENCES_START_WITH_DUAL_PANE "start-with-dual-pane"
#define NEMO_PREFERENCES_RESTORE_TABS_ON_STARTUP "restore-tabs-on-startup"
#define NEMO_PREFERENCES_IGNORE_VIEW_METADATA "ignore-view-metadata"
#define NEMO_PREFERENCES_SHOW_BOOKMARKS_IN_TO_MENUS "show-bookmarks-in-to-menus"
#define NEMO_PREFERENCES_SHOW_PLACES_IN_TO_MENUS "show-places-in-to-menus"
#define NEMO_PREFERENCES_RECENT_ENABLED "remember-recent-files"
#define NEMO_PREFERENCES_SIDEBAR_BOOKMARK_BREAKPOINT "sidebar-bookmark-breakpoint"
enum
{
NEMO_DEFAULT_FOLDER_VIEWER_ICON_VIEW,
NEMO_DEFAULT_FOLDER_VIEWER_COMPACT_VIEW,
NEMO_DEFAULT_FOLDER_VIEWER_LIST_VIEW,
NEMO_DEFAULT_FOLDER_VIEWER_OTHER
};
/* These IIDs are used by the preferences code and in nemo-application.c */
#define NEMO_ICON_VIEW_IID "OAFIID:Nemo_File_Manager_Icon_View"
#define NEMO_COMPACT_VIEW_IID "OAFIID:Nemo_File_Manager_Compact_View"
#define NEMO_LIST_VIEW_IID "OAFIID:Nemo_File_Manager_List_View"
#define NEMO_DESKTOP_ICON_VIEW_IID "OAFIID:Nemo_File_Manager_Desktop_Icon_View"
#define NEMO_DESKTOP_ICON_GRID_VIEW_IID "OAFIID:Nemo_File_Manager_Desktop_Icon_Grid_View"
/* Icon View */
#define NEMO_PREFERENCES_ICON_VIEW_DEFAULT_ZOOM_LEVEL "default-zoom-level"
#define NEMO_PREFERENCES_ICON_VIEW_LABELS_BESIDE_ICONS "labels-beside-icons"
/* Which text attributes appear beneath icon names */
#define NEMO_PREFERENCES_ICON_VIEW_CAPTIONS "captions"
/* The default size for thumbnail icons */
#define NEMO_PREFERENCES_ICON_VIEW_THUMBNAIL_SIZE "thumbnail-size"
/* ellipsization preferences */
#define NEMO_PREFERENCES_ICON_VIEW_TEXT_ELLIPSIS_LIMIT "text-ellipsis-limit"
#define NEMO_PREFERENCES_DESKTOP_TEXT_ELLIPSIS_LIMIT "text-ellipsis-limit"
/* Compact View */
#define NEMO_PREFERENCES_COMPACT_VIEW_DEFAULT_ZOOM_LEVEL "default-zoom-level"
#define NEMO_PREFERENCES_COMPACT_VIEW_ALL_COLUMNS_SAME_WIDTH "all-columns-have-same-width"
/* List View */
#define NEMO_PREFERENCES_LIST_VIEW_DEFAULT_ZOOM_LEVEL "default-zoom-level"
#define NEMO_PREFERENCES_LIST_VIEW_DEFAULT_VISIBLE_COLUMNS "default-visible-columns"
#define NEMO_PREFERENCES_LIST_VIEW_DEFAULT_COLUMN_ORDER "default-column-order"
#define NEMO_PREFERENCES_LIST_VIEW_ENABLE_EXPANSION "enable-folder-expansion"
#define NEMO_PREFERENCES_MAX_THUMBNAIL_THREADS "thumbnail-threads"
enum
{
NEMO_CLICK_POLICY_SINGLE,
NEMO_CLICK_POLICY_DOUBLE
};
enum
{
NEMO_EXECUTABLE_TEXT_LAUNCH,
NEMO_EXECUTABLE_TEXT_DISPLAY,
NEMO_EXECUTABLE_TEXT_ASK
};
typedef enum
{
NEMO_SPEED_TRADEOFF_ALWAYS,
NEMO_SPEED_TRADEOFF_LOCAL_ONLY,
NEMO_SPEED_TRADEOFF_NEVER
} NemoSpeedTradeoffValue;
#define NEMO_PREFERENCES_SHOW_DIRECTORY_ITEM_COUNTS "show-directory-item-counts"
#define NEMO_PREFERENCES_SHOW_IMAGE_FILE_THUMBNAILS "show-image-thumbnails"
#define NEMO_PREFERENCES_IMAGE_FILE_THUMBNAIL_LIMIT "thumbnail-limit"
#define NEMO_PREFERENCES_INHERIT_SHOW_THUMBNAILS "inherit-show-thumbnails"
#define NEMO_PREFERENCES_DESKTOP_FONT "font"
#define NEMO_PREFERENCES_DESKTOP_HOME_VISIBLE "home-icon-visible"
#define NEMO_PREFERENCES_DESKTOP_COMPUTER_VISIBLE "computer-icon-visible"
#define NEMO_PREFERENCES_DESKTOP_TRASH_VISIBLE "trash-icon-visible"
#define NEMO_PREFERENCES_DESKTOP_VOLUMES_VISIBLE "volumes-visible"
#define NEMO_PREFERENCES_DESKTOP_NETWORK_VISIBLE "network-icon-visible"
#define NEMO_PREFERENCES_DESKTOP_BACKGROUND_FADE "background-fade"
#define NEMO_PREFERENCES_DESKTOP_TEXT_SHADOW "desktop-text-shadow"
#define NEMO_PREFERENCES_DESKTOP_TEXT_SHADOW_USE_THEME "desktop-text-shadow-use-theme"
#define NEMO_PREFERENCES_DESKTOP_IGNORED_DESKTOP_HANDLERS "ignored-desktop-handlers"
/* bulk rename utility */
#define NEMO_PREFERENCES_BULK_RENAME_TOOL "bulk-rename-tool"
/* Lockdown */
#define NEMO_PREFERENCES_LOCKDOWN_COMMAND_LINE "disable-command-line"
/* Desktop background */
#define NEMO_PREFERENCES_DESKTOP_LAYOUT "desktop-layout"
#define NEMO_PREFERENCES_SHOW_ORPHANED_DESKTOP_ICONS "show-orphaned-desktop-icons"
#define NEMO_PREFERENCES_SHOW_DESKTOP "show-desktop-icons" /* DEPRECATED */
#define NEMO_PREFERENCES_USE_DESKTOP_GRID "use-desktop-grid"
#define NEMO_PREFERENCES_DESKTOP_HORIZONTAL_GRID_ADJUST "horizontal-grid-adjust"
#define NEMO_PREFERENCES_DESKTOP_VERTICAL_GRID_ADJUST "vertical-grid-adjust"
/* File size unit prefix */
#define NEMO_PREFERENCES_SIZE_PREFIXES "size-prefixes"
/* media handling */
#define GNOME_DESKTOP_MEDIA_HANDLING_AUTOMOUNT "automount"
#define GNOME_DESKTOP_MEDIA_HANDLING_AUTOMOUNT_OPEN "automount-open"
#define GNOME_DESKTOP_MEDIA_HANDLING_AUTORUN "autorun-never"
#define NEMO_PREFERENCES_MEDIA_HANDLING_DETECT_CONTENT "detect-content"
/* Terminal */
#define GNOME_DESKTOP_TERMINAL_EXEC "exec"
/* Tooltips */
#define NEMO_PREFERENCES_TOOLTIPS_DESKTOP "tooltips-on-desktop"
#define NEMO_PREFERENCES_TOOLTIPS_ICON_VIEW "tooltips-in-icon-view"
#define NEMO_PREFERENCES_TOOLTIPS_LIST_VIEW "tooltips-in-list-view"
#define NEMO_PREFERENCES_TOOLTIP_FILE_TYPE "tooltips-show-file-type"
#define NEMO_PREFERENCES_TOOLTIP_MOD_DATE "tooltips-show-mod-date"
#define NEMO_PREFERENCES_TOOLTIP_ACCESS_DATE "tooltips-show-access-date"
#define NEMO_PREFERENCES_TOOLTIP_CREATED_DATE "tooltips-show-birth-date"
#define NEMO_PREFERENCES_TOOLTIP_FULL_PATH "tooltips-show-path"
#define NEMO_PREFERENCES_DISABLE_MENU_WARNING "disable-menu-warning"
/* Plugins */
#define NEMO_PLUGIN_PREFERENCES_DISABLED_EXTENSIONS "disabled-extensions"
#define NEMO_PLUGIN_PREFERENCES_DISABLED_ACTIONS "disabled-actions"
#define NEMO_PLUGIN_PREFERENCES_DISABLED_SCRIPTS "disabled-scripts"
#define NEMO_PLUGIN_PREFERENCES_DISABLED_SEARCH_HELPERS "disabled-search-helpers"
/* Connect-to server dialog last-used method */
#define NEMO_PREFERENCES_LAST_SERVER_CONNECT_METHOD "last-server-connect-method"
/* File operations queue */
#define NEMO_PREFERENCES_NEVER_QUEUE_FILE_OPS "never-queue-file-ops"
#define NEMO_PREFERENCES_CLICK_DOUBLE_PARENT_FOLDER "click-double-parent-folder"
#define NEMO_PREFERENCES_EXPAND_ROW_ON_DND_DWELL "expand-row-on-dnd-dwell"
#define NEMO_PREFERENCES_SHOW_MIME_MAKE_EXECUTABLE "enable-mime-actions-make-executable"
#define NEMO_PREFERENCES_DEFERRED_ATTR_PRELOAD_LIMIT "deferred-attribute-preload-limit"
#define NEMO_PREFERENCES_SEARCH_CONTENT_REGEX "search-content-use-regex"
#define NEMO_PREFERENCES_SEARCH_FILES_REGEX "search-files-use-regex"
#define NEMO_PREFERENCES_SEARCH_REGEX_FORMAT "search-regex-format"
#define NEMO_PREFERENCES_SEARCH_USE_RAW "search-content-use-raw"
#define NEMO_PREFERENCES_SEARCH_FILE_CASE "search-file-case-sensitive"
#define NEMO_PREFERENCES_SEARCH_CONTENT_CASE "search-content-case-sensitive"
#define NEMO_PREFERENCES_SEARCH_SKIP_FOLDERS "search-skip-folders"
#define NEMO_PREFERENCES_SEARCH_FILES_RECURSIVELY "search-files-recursively"
#define NEMO_PREFERENCES_SEARCH_VISIBLE_COLUMNS "search-visible-columns"
#define NEMO_PREFERENCES_SEARCH_SORT_COLUMN "search-sort-column"
#define NEMO_PREFERENCES_SEARCH_REVERSE_SORT "search-reverse-sort"
void nemo_global_preferences_init (void);
void nemo_global_preferences_finalize (void);
char *nemo_global_preferences_get_default_folder_viewer_preference_as_iid (void);
gboolean nemo_global_preferences_get_inherit_folder_viewer_preference (void);
gboolean nemo_global_preferences_get_inherit_show_thumbnails_preference (void);
gboolean nemo_global_preferences_get_ignore_view_metadata (void);
int nemo_global_preferences_get_size_prefix_preference (void);
char *nemo_global_preferences_get_desktop_iid (void);
gint nemo_global_preferences_get_tooltip_flags (void);
gboolean nemo_global_preferences_should_load_plugin (const gchar *name, const gchar *key);
gchar **nemo_global_preferences_get_fileroller_mimetypes (void);
gchar *nemo_global_preferences_get_mono_system_font (void);
gchar *nemo_global_preferences_get_mono_font_family_match (const gchar *in_family);
extern GSettings *nemo_preferences;
extern GSettings *nemo_icon_view_preferences;
extern GSettings *nemo_list_view_preferences;
extern GSettings *nemo_compact_view_preferences;
extern GSettings *nemo_desktop_preferences;
extern GSettings *nemo_tree_sidebar_preferences;
extern GSettings *nemo_window_state;
extern GSettings *gtk_filechooser_preferences;
extern GSettings *nemo_plugin_preferences;
extern GSettings *nemo_menu_config_preferences;
extern GSettings *nemo_search_preferences;
extern GSettings *gnome_lockdown_preferences;
extern GSettings *gnome_background_preferences;
extern GSettings *gnome_media_handling_preferences;
extern GSettings *gnome_terminal_preferences;
extern GSettings *cinnamon_privacy_preferences;
extern GSettings *cinnamon_interface_preferences;
extern GSettings *gnome_interface_preferences;
/* Cached for fast access and used in nemo-file.c for constructing date/time strings */
extern GTimeZone *prefs_current_timezone;
extern gboolean prefs_current_24h_time_format;
extern NemoDateFormat prefs_current_date_format;
extern GTimer *nemo_startup_timer;
G_END_DECLS
#endif /* NEMO_GLOBAL_PREFERENCES_H */