summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-metadata.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:24:23 -0300
committerPerberos <[email protected]>2011-12-01 22:24:23 -0300
commit0e004c696b0e68b2cff37a4c3315b022a35eaf43 (patch)
tree43261e815529cb9518ed7be37af13b846af8b26b /libcaja-private/caja-metadata.h
downloadcaja-0e004c696b0e68b2cff37a4c3315b022a35eaf43.tar.bz2
caja-0e004c696b0e68b2cff37a4c3315b022a35eaf43.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'libcaja-private/caja-metadata.h')
-rw-r--r--libcaja-private/caja-metadata.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/libcaja-private/caja-metadata.h b/libcaja-private/caja-metadata.h
new file mode 100644
index 00000000..59eb1193
--- /dev/null
+++ b/libcaja-private/caja-metadata.h
@@ -0,0 +1,82 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ caja-metadata.h: #defines and other metadata-related info
+
+ Copyright (C) 2000 Eazel, Inc.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: John Sullivan <[email protected]>
+*/
+
+#ifndef CAJA_METADATA_H
+#define CAJA_METADATA_H
+
+/* Keys for getting/setting Caja metadata. All metadata used in Caja
+ * should define its key here, so we can keep track of the whole set easily.
+ * Any updates here needs to be added in caja-metadata.c too.
+ */
+
+#include <glib.h>
+
+/* Per-file */
+
+#define CAJA_METADATA_KEY_DEFAULT_VIEW "caja-default-view"
+
+#define CAJA_METADATA_KEY_LOCATION_BACKGROUND_COLOR "folder-background-color"
+#define CAJA_METADATA_KEY_LOCATION_BACKGROUND_IMAGE "folder-background-image"
+
+#define CAJA_METADATA_KEY_ICON_VIEW_ZOOM_LEVEL "caja-icon-view-zoom-level"
+#define CAJA_METADATA_KEY_ICON_VIEW_AUTO_LAYOUT "caja-icon-view-auto-layout"
+#define CAJA_METADATA_KEY_ICON_VIEW_TIGHTER_LAYOUT "caja-icon-view-tighter-layout"
+#define CAJA_METADATA_KEY_ICON_VIEW_SORT_BY "caja-icon-view-sort-by"
+#define CAJA_METADATA_KEY_ICON_VIEW_SORT_REVERSED "caja-icon-view-sort-reversed"
+#define CAJA_METADATA_KEY_ICON_VIEW_KEEP_ALIGNED "caja-icon-view-keep-aligned"
+#define CAJA_METADATA_KEY_ICON_VIEW_LAYOUT_TIMESTAMP "caja-icon-view-layout-timestamp"
+
+#define CAJA_METADATA_KEY_LIST_VIEW_ZOOM_LEVEL "caja-list-view-zoom-level"
+#define CAJA_METADATA_KEY_LIST_VIEW_SORT_COLUMN "caja-list-view-sort-column"
+#define CAJA_METADATA_KEY_LIST_VIEW_SORT_REVERSED "caja-list-view-sort-reversed"
+#define CAJA_METADATA_KEY_LIST_VIEW_VISIBLE_COLUMNS "caja-list-view-visible-columns"
+#define CAJA_METADATA_KEY_LIST_VIEW_COLUMN_ORDER "caja-list-view-column-order"
+
+#define CAJA_METADATA_KEY_COMPACT_VIEW_ZOOM_LEVEL "caja-compact-view-zoom-level"
+
+#define CAJA_METADATA_KEY_WINDOW_GEOMETRY "caja-window-geometry"
+#define CAJA_METADATA_KEY_WINDOW_SCROLL_POSITION "caja-window-scroll-position"
+#define CAJA_METADATA_KEY_WINDOW_SHOW_HIDDEN_FILES "caja-window-show-hidden-files"
+#define CAJA_METADATA_KEY_WINDOW_MAXIMIZED "caja-window-maximized"
+#define CAJA_METADATA_KEY_WINDOW_STICKY "caja-window-sticky"
+#define CAJA_METADATA_KEY_WINDOW_KEEP_ABOVE "caja-window-keep-above"
+
+#define CAJA_METADATA_KEY_SIDEBAR_BACKGROUND_COLOR "caja-sidebar-background-color"
+#define CAJA_METADATA_KEY_SIDEBAR_BACKGROUND_IMAGE "caja-sidebar-background-image"
+#define CAJA_METADATA_KEY_SIDEBAR_BUTTONS "caja-sidebar-buttons"
+
+#define CAJA_METADATA_KEY_ICON_POSITION "caja-icon-position"
+#define CAJA_METADATA_KEY_ICON_POSITION_TIMESTAMP "caja-icon-position-timestamp"
+#define CAJA_METADATA_KEY_ANNOTATION "annotation"
+#define CAJA_METADATA_KEY_ICON_SCALE "icon-scale"
+#define CAJA_METADATA_KEY_CUSTOM_ICON "custom-icon"
+#define CAJA_METADATA_KEY_SCREEN "screen"
+#define CAJA_METADATA_KEY_EMBLEMS "emblems"
+
+/* This is where desktop item metadata are stored in mateconf */
+#define CAJA_DESKTOP_METADATA_MATECONF_PATH "/apps/caja/desktop-metadata"
+
+guint caja_metadata_get_id (const char *metadata);
+
+#endif /* CAJA_METADATA_H */