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



commit f1d24b0a6b799abc4ff948286c121b6a5bb7a909
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 eee20ef..9ef60d7 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -7385,6 +7385,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 1798c83..394d480 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]