[accerciser/pygi] Getting GtkStyle from existent widget
- From: Javier HernÃndez AntÃnez <jhernandez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser/pygi] Getting GtkStyle from existent widget
- Date: Mon, 29 Aug 2011 09:10:20 +0000 (UTC)
commit eba6ef6a9ed871f8bd3b27ae6d590ed73d6f7ff7
Author: Javier HernÃndez <jhernandez emergya es>
Date: Mon Aug 29 11:06:24 2011 +0200
Getting GtkStyle from existent widget
plugins/interface_view.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index 9af29fa..252e00b 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -311,7 +311,7 @@ class _SectionAccessible(_InterfaceSection):
self.relations_view = ui_xml.get_object('relations_view')
self.relations_model = ui_xml.get_object('relations_treestore')
# preset the different bg colors
- style = gtk.StyleContext()
+ style = self.relations_view.get_style_context()
self.header_bg = style.get_background_color(gtk.StateFlags.NORMAL).to_string()
self.relation_bg = style.get_color(gtk.StateFlags.NORMAL).to_string()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]