summaryrefslogtreecommitdiff
path: root/libview/ev-document-model.c
diff options
context:
space:
mode:
authorrootavish <[email protected]>2014-08-14 07:41:35 +0530
committerrootavish <[email protected]>2014-08-14 07:41:35 +0530
commit700637ca1dd675ce18f2e9e56387dab86020a623 (patch)
treec442065088b57266d7d9519b07f3226474c8293d /libview/ev-document-model.c
parent89bf352b3d2725b11328e7641cef5c3cc2a8ea39 (diff)
downloadatril-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 'libview/ev-document-model.c')
-rw-r--r--libview/ev-document-model.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/libview/ev-document-model.c b/libview/ev-document-model.c
index dbf0477f..403df466 100644
--- a/libview/ev-document-model.c
+++ b/libview/ev-document-model.c
@@ -109,12 +109,7 @@ ev_document_model_set_property (GObject *object,
ev_document_model_set_rotation (model, g_value_get_int (value));
break;
case PROP_INVERTED_COLORS:
- if ( model->document->iswebdocument == TRUE ) {
- atril_web_document_set_inverted_colors(model,g_value_get_boolean(value));
- }
- else {
- ev_document_model_set_inverted_colors (model, g_value_get_boolean (value));
- }
+ ev_document_model_set_inverted_colors (model, g_value_get_boolean (value));
break;
case PROP_SCALE:
ev_document_model_set_scale (model, g_value_get_double (value));
@@ -495,15 +490,6 @@ ev_document_model_set_inverted_colors (EvDocumentModel *model,
g_object_notify (G_OBJECT (model), "inverted-colors");
}
-void
-atril_web_document_set_inverted_colors (EvDocumentModel *model,
- gboolean inverted_colors)
-{
- //TODO
- model->inverted_colors = FALSE;
- g_object_notify (G_OBJECT (model), "inverted-colors");
-}
-
gboolean
ev_document_model_get_inverted_colors (EvDocumentModel *model)
{