summaryrefslogtreecommitdiff
path: root/shell/ev-metadata.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2015-07-24 09:32:31 +0200
committerinfirit <[email protected]>2015-07-24 09:32:31 +0200
commit380b232a6fe2a8871a2fe44bd196ae32b6a4d3e5 (patch)
treee78dedc6069f4250dd9e22205a677ea25c8f07a8 /shell/ev-metadata.c
parent1d28040885192ecf832c655d955e9e65d6ef0249 (diff)
downloadatril-380b232a6fe2a8871a2fe44bd196ae32b6a4d3e5.tar.bz2
atril-380b232a6fe2a8871a2fe44bd196ae32b6a4d3e5.tar.xz
Save always settings that can bse saved as default in metadata
We relided on default values to store settings in metadata, so that settings that don't change are not saved in metdata. Now that default settings can change, that approach doesn't work, so we need o save all settings in metadata. evince commit: 720eebf9f0dd2e6a2765f6117f3bce9d7c74fcfa evince bug: https://bugzilla.gnome.org/show_bug.cgi?id=639003
Diffstat (limited to 'shell/ev-metadata.c')
-rw-r--r--shell/ev-metadata.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/shell/ev-metadata.c b/shell/ev-metadata.c
index da393e1b..dba8e511 100644
--- a/shell/ev-metadata.c
+++ b/shell/ev-metadata.c
@@ -290,6 +290,13 @@ ev_metadata_set_boolean (EvMetadata *metadata,
}
gboolean
+ev_metadata_has_key (EvMetadata *metadata,
+ const gchar *key)
+{
+ return g_hash_table_lookup (metadata->items, key) != NULL;
+}
+
+gboolean
ev_is_metadata_supported_for_file (GFile *file)
{
GFileAttributeInfoList *namespaces;