Skip to content

Commit

Permalink
libview: save inverted colors in a document
Browse files Browse the repository at this point in the history
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 Mar 19, 2018
1 parent 6217a89 commit e4f8fce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libview/ev-web-view.c
Expand Up @@ -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) {
Expand Down

0 comments on commit e4f8fce

Please sign in to comment.