[five-or-more] Fix spamming warning



commit 483ac06a71c556b77d8061e04d75aa48784e2ff6
Author: Robert Roth <robert roth off gmail com>
Date:   Sun Sep 30 20:55:17 2018 +0300

    Fix spamming warning

 src/view.vala | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/view.vala b/src/view.vala
index 4142466..fa411bf 100644
--- a/src/view.vala
+++ b/src/view.vala
@@ -324,7 +324,7 @@ public class View : Gtk.DrawingArea
 
     private void draw_gridlines (Cairo.Context cr)
     {
-        Gdk.RGBA grid_color = cs.get_color (Gtk.StateFlags.NORMAL);
+        Gdk.RGBA grid_color = cs.get_color (cs.get_state ());
         Gdk.cairo_set_source_rgba (cr, grid_color);
         cr.set_line_width (1.0);
 
@@ -353,7 +353,7 @@ public class View : Gtk.DrawingArea
     {
         if (show_cursor)
         {
-            Gdk.RGBA grid_color = cs.get_color (Gtk.StateFlags.NORMAL);
+            Gdk.RGBA grid_color = cs.get_color (cs.get_state ());
             Gdk.cairo_set_source_rgba (cr, grid_color);
             cr.set_line_width (2.0);
 


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