From 0e004c696b0e68b2cff37a4c3315b022a35eaf43 Mon Sep 17 00:00:00 2001 From: Perberos Date: Thu, 1 Dec 2011 22:24:23 -0300 Subject: moving from https://github.com/perberos/mate-desktop-environment --- libcaja-private/caja-metadata.h | 82 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 libcaja-private/caja-metadata.h (limited to 'libcaja-private/caja-metadata.h') 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 +*/ + +#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 + +/* 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 */ -- cgit v1.2.1