diff options
author | rootavish <[email protected]> | 2014-08-14 07:41:35 +0530 |
---|---|---|
committer | rootavish <[email protected]> | 2014-08-14 07:41:35 +0530 |
commit | 700637ca1dd675ce18f2e9e56387dab86020a623 (patch) | |
tree | c442065088b57266d7d9519b07f3226474c8293d /libdocument | |
parent | 89bf352b3d2725b11328e7641cef5c3cc2a8ea39 (diff) | |
download | atril-700637ca1dd675ce18f2e9e56387dab86020a623.tar.bz2 atril-700637ca1dd675ce18f2e9e56387dab86020a623.tar.xz |
Inverted colors(night) viewing mode for ePub
Added the capability to view and epub document with inverted colors, yet to test for documents where we write the stylesheet, although the code is there.
Diffstat (limited to 'libdocument')
-rw-r--r-- | libdocument/ev-document.c | 14 | ||||
-rw-r--r-- | libdocument/ev-document.h | 5 |
2 files changed, 19 insertions, 0 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c index a242bdf6..667f89f1 100644 --- a/libdocument/ev-document.c +++ b/libdocument/ev-document.c @@ -910,3 +910,17 @@ ev_rect_cmp (EvRectangle *a, (ABS (a->x2 - b->x2) < EPSILON) && (ABS (a->y2 - b->y2) < EPSILON)); } + +void +ev_document_toggle_night_mode(EvDocument *document,gboolean night) +{ + EvDocumentClass *klass = EV_DOCUMENT_GET_CLASS(document); + return klass->toggle_night_mode(document,night) ; +} + +void +ev_document_check_add_night_sheet(EvDocument *document) +{ + EvDocumentClass *klass = EV_DOCUMENT_GET_CLASS(document); + return klass->check_add_night_sheet(document) ; +}
\ No newline at end of file diff --git a/libdocument/ev-document.h b/libdocument/ev-document.h index 24e31912..46a0971c 100644 --- a/libdocument/ev-document.h +++ b/libdocument/ev-document.h @@ -118,6 +118,9 @@ struct _EvDocumentClass gboolean (* get_backend_info)(EvDocument *document, EvDocumentBackendInfo *info); gboolean (* support_synctex) (EvDocument *document); + + void (* toggle_night_mode) (EvDocument *document,gboolean night); + void (*check_add_night_sheet)(EvDocument *document); }; GType ev_document_get_type (void) G_GNUC_CONST; @@ -184,6 +187,8 @@ EvMapping *ev_document_synctex_forward_search gint ev_rect_cmp (EvRectangle *a, EvRectangle *b); +void ev_document_toggle_night_mode (EvDocument *document,gboolean night); +void ev_document_check_add_night_sheet (EvDocument *document); #define EV_TYPE_RECTANGLE (ev_rectangle_get_type ()) struct _EvRectangle |