[pitivi] ruler: Use the correct constants to get colors



commit 74afb6878d18984ba8994ae866f3b7c323264f11
Author: Alexandru Băluț <alexandru balut gmail com>
Date:   Tue Dec 31 15:18:13 2013 +0100

    ruler: Use the correct constants to get colors

 pitivi/timeline/ruler.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pitivi/timeline/ruler.py b/pitivi/timeline/ruler.py
index a963dbf..9c1dccc 100644
--- a/pitivi/timeline/ruler.py
+++ b/pitivi/timeline/ruler.py
@@ -262,7 +262,7 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
         paintpos = int(paintpos - 0.5) + 0.5
         height = int(context.get_target().get_height() * (1 - height))
         style = self.get_style_context()
-        setCairoColor(context, style.get_color(Gtk.StateType.NORMAL))
+        setCairoColor(context, style.get_color(Gtk.StateFlags.NORMAL))
         context.set_line_width(1)
         context.move_to(paintpos, height)
         context.line_to(paintpos, context.get_target().get_height())
@@ -291,9 +291,9 @@ class ScaleRuler(Gtk.DrawingArea, Zoomable, Loggable):
 
         while paintpos < context.get_target().get_width():
             if paintpos < self.nsToPixel(Gst.CLOCK_TIME_NONE):
-                state = Gtk.StateType.ACTIVE
+                state = Gtk.StateFlags.ACTIVE
             else:
-                state = Gtk.StateType.NORMAL
+                state = Gtk.StateFlags.NORMAL
             timevalue = time_to_string(long(seconds))
             style = self.get_style_context()
             setCairoColor(context, style.get_color(state))


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