diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2021-08-21 10:58:17 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2021-08-21 10:58:17 +0200 |
commit | 383626437ca8f9d26518408719b5d778e696eecd (patch) | |
tree | 31c1e0bc563aa3705771e54e8514c03af5fe330d /src/book-view.vala | |
parent | efe8a90877a031270375c1f2c0f1823560d85100 (diff) |
New upstream version 40.1upstream/40.1
Diffstat (limited to 'src/book-view.vala')
-rw-r--r-- | src/book-view.vala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/book-view.vala b/src/book-view.vala index 12da06f..59e2469 100644 --- a/src/book-view.vala +++ b/src/book-view.vala @@ -189,7 +189,14 @@ public class BookView : Gtk.Box private void add_cb (Book book, Page page) { - var page_view = new PageView (page); + Gdk.RGBA page_ruler_color; + if (!get_style_context ().lookup_color ("theme_fg_color", out page_ruler_color)) + { + warning ("Couldn't get theme_fg_color from GTK theme, needed to draw the page view ruler"); + /* Use a bright color so that theme makers notice it. */ + page_ruler_color.parse ("#00ff00"); + } + var page_view = new PageView (page, page_ruler_color); page_view.changed.connect (page_view_changed_cb); page_view.size_changed.connect (page_view_size_changed_cb); page_data.insert (page, page_view); |