Commit c54c1daa authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

[shell] Add ev_metadata_is_empty()

It can be used to know whether a document has already metadata
parent 47fc87d9
......@@ -136,6 +136,12 @@ ev_metadata_new (GFile *file)
return metadata;
ev_metadata_is_empty (EvMetadata *metadata)
return g_hash_table_size (metadata->items) == 0;
ev_metadata_get_string (EvMetadata *metadata,
const gchar *key,
......@@ -35,6 +35,7 @@ typedef struct _EvMetadataClass EvMetadataClass;
GType ev_metadata_get_type (void) G_GNUC_CONST;
EvMetadata *ev_metadata_new (GFile *file);
gboolean ev_metadata_is_empty (EvMetadata *metadata);
gboolean ev_metadata_get_string (EvMetadata *metadata,
const gchar *key,
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment