Skip to content
Permalink
Browse files

libview: save inverted colors in a document

The web-view callback for inverted colors got called, and if it did not find a web-view open
it defaulted to FALSE for inverted colors.

origin commit:
linuxmint/xreader@abb5060
linuxmint/xreader#38
  • Loading branch information...
Piiit authored and raveit65 committed Jun 19, 2017
1 parent 6217a89 commit e4f8fce9875ce749ada754538a089415a23ce440
Showing with 3 additions and 0 deletions.
  1. +3 −0 libview/ev-web-view.c
@@ -252,6 +252,9 @@ ev_web_view_inverted_colors_changed_cb (EvDocumentModel *model,
EvWebView *webview)
{
EvDocument *document = ev_document_model_get_document(model);

if (!document || !document->iswebdocument)
return;

if (ev_document_model_get_inverted_colors(model) == TRUE) {
if (document == NULL) {

0 comments on commit e4f8fce

Please sign in to comment.
You can’t perform that action at this time.