[gnome-todo/wip/gbsneto/css-nodes: 4/4] arrow-frame: set a css name



commit ce1bb2b6834051fd29afe81dd83f094f4fe6dc5e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Dec 9 00:23:35 2015 -0200

    arrow-frame: set a css name

 data/theme/Adwaita.css |    6 +++---
 src/gtd-arrow-frame.c  |    2 ++
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/data/theme/Adwaita.css b/data/theme/Adwaita.css
index 82a277a..240fcd1 100644
--- a/data/theme/Adwaita.css
+++ b/data/theme/Adwaita.css
@@ -36,18 +36,18 @@ task-list-view.dark task-row:hover {
     background-color: alpha(#393f3f, 0.4);
 }
 
-GtdArrowFrame {
+arrow-frame {
     border-bottom-width: 0px;
     border-top-width: 0px;
     background-color: @theme_bg_color;
     border-color: @borders;
 }
 
-GtdArrowFrame:dir(ltr) {
+arrow-frame:dir(ltr) {
     border-right-width: 0px;
 }
 
-GtdArrowFrame:dir(rtl) {
+arrow-frame:dir(rtl) {
     border-left-width: 0px;
 }
 
diff --git a/src/gtd-arrow-frame.c b/src/gtd-arrow-frame.c
index 39fe843..d057457 100644
--- a/src/gtd-arrow-frame.c
+++ b/src/gtd-arrow-frame.c
@@ -592,6 +592,8 @@ gtd_arrow_frame_class_init (GtdArrowFrameClass *klass)
   widget_class->size_allocate = gtd_arrow_frame_size_allocate;
 
   frame_class->compute_child_allocation = gtd_arrow_frame_compute_child_allocation;
+
+  gtk_widget_class_set_css_name (widget_class, "arrow-frame");
 }
 
 static void


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