From a80770a32050557730c8a1810cc64627120eb266 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Tue, 19 Apr 2011 17:46:44 +0200 Subject: [PATCH] Save zathura object in zathura_ocument_t --- document.c | 1 + document.h | 1 + 2 files changed, 2 insertions(+) diff --git a/document.c b/document.c index 9ee63ae..db8dd07 100644 --- a/document.c +++ b/document.c @@ -219,6 +219,7 @@ zathura_document_open(zathura_t* zathura, const char* path, const char* password document->rotate = 0; document->data = NULL; document->pages = NULL; + document->zathura = zathura; document->functions.document_free = NULL; document->functions.document_index_generate = NULL; diff --git a/document.h b/document.h index 358b945..5fc5ae6 100644 --- a/document.h +++ b/document.h @@ -164,6 +164,7 @@ struct zathura_document_s double scale; /**> Scale value */ int rotate; /**> Rotation */ void* data; /**> Custom data */ + zathura_t* zathura; /** Zathura object */ struct {