From e6f916768f8ff18363e3057c18b57cfdd5931d0b Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Thu, 30 May 2019 17:41:42 +0200 Subject: [PATCH] Add format to :info --- zathura/commands.c | 3 ++- zathura/types.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zathura/commands.c b/zathura/commands.c index 377b672..8f1a86f 100644 --- a/zathura/commands.c +++ b/zathura/commands.c @@ -179,7 +179,8 @@ cmd_info(girara_session_t* session, girara_list_t* UNUSED(argument_list)) { _("Creator"), ZATHURA_DOCUMENT_INFORMATION_CREATOR }, { _("Producer"), ZATHURA_DOCUMENT_INFORMATION_PRODUCER }, { _("Creation date"), ZATHURA_DOCUMENT_INFORMATION_CREATION_DATE }, - { _("Modification date"), ZATHURA_DOCUMENT_INFORMATION_MODIFICATION_DATE } + { _("Modification date"), ZATHURA_DOCUMENT_INFORMATION_MODIFICATION_DATE }, + { _("Format"), ZATHURA_DOCUMENT_INFORMATION_FORMAT } }; girara_list_t* information = zathura_document_get_information(zathura->document, NULL); diff --git a/zathura/types.h b/zathura/types.h index e02efc5..1ff0948 100644 --- a/zathura/types.h +++ b/zathura/types.h @@ -71,7 +71,8 @@ typedef enum zathura_document_information_type_e ZATHURA_DOCUMENT_INFORMATION_PRODUCER, /**< Producer of the document */ ZATHURA_DOCUMENT_INFORMATION_CREATION_DATE, /**< Creation data */ ZATHURA_DOCUMENT_INFORMATION_MODIFICATION_DATE, /**< Modification data */ - ZATHURA_DOCUMENT_INFORMATION_OTHER /**< Any other information */ + ZATHURA_DOCUMENT_INFORMATION_OTHER, /**< Any other information */ + ZATHURA_DOCUMENT_INFORMATION_FORMAT /**< Format of the document */ } zathura_document_information_type_t; /**