[gnome-todo/wip/gbsneto/css-nodes] arrow-frame: fix missing borders



commit 15cc09c5bfd028af732b81c6ddd94be45a7ba2a3
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Dec 9 01:00:00 2015 -0200

    arrow-frame: fix missing borders

 data/theme/Adwaita.css |    1 +
 src/gtd-arrow-frame.c  |    4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/data/theme/Adwaita.css b/data/theme/Adwaita.css
index ec8329a..f81be17 100644
--- a/data/theme/Adwaita.css
+++ b/data/theme/Adwaita.css
@@ -37,6 +37,7 @@ task-list-view.dark task-row:hover {
 }
 
 arrow-frame {
+    border: solid 1px;
     border-bottom-width: 0px;
     border-top-width: 0px;
     background-color: @theme_bg_color;
diff --git a/src/gtd-arrow-frame.c b/src/gtd-arrow-frame.c
index d057457..549ce60 100644
--- a/src/gtd-arrow-frame.c
+++ b/src/gtd-arrow-frame.c
@@ -220,7 +220,7 @@ gtd_arrow_frame__draw_arrow (GtdArrowFrame    *frame,
   gint end_y;
 
   context = gtk_widget_get_style_context (widget);
-  state = gtk_widget_get_state_flags (widget);
+  state = gtk_style_context_get_state (context);
 
   gtk_style_context_get_border (context,
                                 state,
@@ -344,7 +344,7 @@ gtd_arrow_frame__draw_background (GtdArrowFrame    *frame,
   gint end_gap;
 
   context = gtk_widget_get_style_context (widget);
-  state = gtk_widget_get_state_flags (widget);
+  state = gtk_style_context_get_state (context);
 
   /* widget size */
   gtk_widget_get_allocation (widget, &alloc);


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