mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
e0081be7cd
We changed the icons zoom levels icon sizes, which works fine on the common nautilus window since the icons are positioned every time we create a new view, etc. The desktop view save the icon positions, so when we changed to a larger size of icons by default the icons overlapped each one, looking really bad for the people who update from an older version of nautilus. This doesn't happen in clean installs, since there is not saved positions of the icons. To fix this rearrange the icons every time we found that the icons were stored with a icon size different than what we have now or if we don't have this metadata available. That will only happen the first time the user runs nautilus with this patch, since that key of the metadata won't be available; or every time we change the hardcoded icon sizes for the zoom levels. https://bugzilla.gnome.org/show_bug.cgi?id=745669
73 lines
3.6 KiB
C
73 lines
3.6 KiB
C
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
|
|
|
|
nautilus-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, see <http://www.gnu.org/licenses/>.
|
|
|
|
Author: John Sullivan <sullivan@eazel.com>
|
|
*/
|
|
|
|
#ifndef NAUTILUS_METADATA_H
|
|
#define NAUTILUS_METADATA_H
|
|
|
|
/* Keys for getting/setting Nautilus metadata. All metadata used in Nautilus
|
|
* should define its key here, so we can keep track of the whole set easily.
|
|
* Any updates here needs to be added in nautilus-metadata.c too.
|
|
*/
|
|
|
|
#include <glib.h>
|
|
|
|
/* Per-file */
|
|
|
|
#define NAUTILUS_METADATA_KEY_LOCATION_BACKGROUND_COLOR "folder-background-color"
|
|
#define NAUTILUS_METADATA_KEY_LOCATION_BACKGROUND_IMAGE "folder-background-image"
|
|
|
|
#define NAUTILUS_METADATA_KEY_ICON_VIEW_AUTO_LAYOUT "nautilus-icon-view-auto-layout"
|
|
#define NAUTILUS_METADATA_KEY_ICON_VIEW_SORT_BY "nautilus-icon-view-sort-by"
|
|
#define NAUTILUS_METADATA_KEY_ICON_VIEW_SORT_REVERSED "nautilus-icon-view-sort-reversed"
|
|
#define NAUTILUS_METADATA_KEY_ICON_VIEW_KEEP_ALIGNED "nautilus-icon-view-keep-aligned"
|
|
#define NAUTILUS_METADATA_KEY_ICON_VIEW_LAYOUT_TIMESTAMP "nautilus-icon-view-layout-timestamp"
|
|
|
|
#define NAUTILUS_METADATA_KEY_DESKTOP_ICON_SIZE "nautilus-desktop-icon-size"
|
|
|
|
#define NAUTILUS_METADATA_KEY_LIST_VIEW_SORT_COLUMN "nautilus-list-view-sort-column"
|
|
#define NAUTILUS_METADATA_KEY_LIST_VIEW_SORT_REVERSED "nautilus-list-view-sort-reversed"
|
|
#define NAUTILUS_METADATA_KEY_LIST_VIEW_VISIBLE_COLUMNS "nautilus-list-view-visible-columns"
|
|
#define NAUTILUS_METADATA_KEY_LIST_VIEW_COLUMN_ORDER "nautilus-list-view-column-order"
|
|
|
|
#define NAUTILUS_METADATA_KEY_WINDOW_GEOMETRY "nautilus-window-geometry"
|
|
#define NAUTILUS_METADATA_KEY_WINDOW_SCROLL_POSITION "nautilus-window-scroll-position"
|
|
#define NAUTILUS_METADATA_KEY_WINDOW_SHOW_HIDDEN_FILES "nautilus-window-show-hidden-files"
|
|
#define NAUTILUS_METADATA_KEY_WINDOW_MAXIMIZED "nautilus-window-maximized"
|
|
#define NAUTILUS_METADATA_KEY_WINDOW_STICKY "nautilus-window-sticky"
|
|
#define NAUTILUS_METADATA_KEY_WINDOW_KEEP_ABOVE "nautilus-window-keep-above"
|
|
|
|
#define NAUTILUS_METADATA_KEY_SIDEBAR_BACKGROUND_COLOR "nautilus-sidebar-background-color"
|
|
#define NAUTILUS_METADATA_KEY_SIDEBAR_BACKGROUND_IMAGE "nautilus-sidebar-background-image"
|
|
#define NAUTILUS_METADATA_KEY_SIDEBAR_BUTTONS "nautilus-sidebar-buttons"
|
|
|
|
#define NAUTILUS_METADATA_KEY_ICON_POSITION "nautilus-icon-position"
|
|
#define NAUTILUS_METADATA_KEY_ICON_POSITION_TIMESTAMP "nautilus-icon-position-timestamp"
|
|
#define NAUTILUS_METADATA_KEY_ANNOTATION "annotation"
|
|
#define NAUTILUS_METADATA_KEY_ICON_SCALE "icon-scale"
|
|
#define NAUTILUS_METADATA_KEY_CUSTOM_ICON "custom-icon"
|
|
#define NAUTILUS_METADATA_KEY_CUSTOM_ICON_NAME "custom-icon-name"
|
|
#define NAUTILUS_METADATA_KEY_SCREEN "screen"
|
|
#define NAUTILUS_METADATA_KEY_EMBLEMS "emblems"
|
|
|
|
guint nautilus_metadata_get_id (const char *metadata);
|
|
|
|
#endif /* NAUTILUS_METADATA_H */
|