From 428a0c8eba98eb4fa3d6e290abf662bdcacede25 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Tue, 19 May 2009 14:34:57 +0200
Subject: [PATCH] [egaz] prevent GTK Warning about color. Fixes #5035

---
 src/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/config.py b/src/config.py
index 85d3c014af..a4b6c679ef 100644
--- a/src/config.py
+++ b/src/config.py
@@ -381,7 +381,7 @@ class PreferencesWindow:
 
 		# Default Status messages
 		self.default_msg_tree = self.xml.get_widget('default_msg_treeview')
-		col2 = self.default_msg_tree.rc_get_style().bg[gtk.STATE_ACTIVE]
+		col2 = self.default_msg_tree.rc_get_style().bg[gtk.STATE_ACTIVE].to_string()
 		# (status, translated_status, message, enabled)
 		model = gtk.ListStore(str, str, str, bool)
 		self.default_msg_tree.set_model(model)
-- 
GitLab