[gedit-plugins] Use Gtk.StateFlags.NORMAL instead of 0



commit b045a46537a6f115bb3e897b23fe49a0481281b5
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun Jan 23 22:44:37 2011 +0100

    Use Gtk.StateFlags.NORMAL instead of 0

 plugins/terminal/terminal.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/terminal/terminal.py b/plugins/terminal/terminal.py
index 5e732ca..8574993 100644
--- a/plugins/terminal/terminal.py
+++ b/plugins/terminal/terminal.py
@@ -121,8 +121,8 @@ class GeditTerminal(Gtk.Box):
 
         # colors
         context = self._vte.get_style_context()
-        fg = context.get_color(0)
-        bg = context.get_background_color(0)
+        fg = context.get_color(Gtk.StateFlags.NORMAL)
+        bg = context.get_background_color(Gtk.StateFlags.NORMAL)
         palette = []
 
         if not self.profile_settings.get_boolean("use-theme-colors"):



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