[evince/gnome-3-20] ev-view: Update EvView style to use CSS node name



commit eb142066a467f19d89911471b106bfc3db3a71bc
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Jun 19 13:58:47 2016 +0200

    ev-view: Update EvView style to use CSS node name

 libview/ev-view.c |    4 ++++
 shell/evince.css  |    8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index f76eca8..ea4107e 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7356,6 +7356,10 @@ ev_view_class_init (EvViewClass *class)
        widget_class->parent_set = ev_view_parent_set;
        widget_class->hierarchy_changed = ev_view_hierarchy_changed;
 
+#if GTK_CHECK_VERSION(3, 20, 0)
+       gtk_widget_class_set_css_name (widget_class, "evview");
+#endif
+
        container_class->remove = ev_view_remove;
        container_class->forall = ev_view_forall;
 
diff --git a/shell/evince.css b/shell/evince.css
index 1143795..3ed7837 100644
--- a/shell/evince.css
+++ b/shell/evince.css
@@ -16,20 +16,20 @@
     background-color: @theme_bg_color;
 }
 
-EvView {
+evview {
     background-color: @theme_bg_color;
 }
 
-EvView:selected {
+evview:selected {
     background-color: @theme_selected_bg_color;
 }
 
-EvView.document-page {
+evview.document-page {
     background-color: white;
     padding: 0;
 }
 
-EvView.document-page.inverted {
+evview.document-page.inverted {
     background-color: black;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]