[accerciser] Don't depend on widget name from GtkBuilder tree (bug #614577).
- From: Eitan Isaacson <eitani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [accerciser] Don't depend on widget name from GtkBuilder tree (bug #614577).
- Date: Sat, 3 Apr 2010 13:36:05 +0000 (UTC)
commit a4796e9a243e26a522a553b7df384a013e0eef7c
Author: Eitan Isaacson <eitan monotonous org>
Date: Sat Apr 3 16:33:31 2010 +0300
Don't depend on widget name from GtkBuilder tree (bug #614577).
plugins/interface_view.py | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/plugins/interface_view.py b/plugins/interface_view.py
index 43b4271..82678fb 100644
--- a/plugins/interface_view.py
+++ b/plugins/interface_view.py
@@ -81,11 +81,13 @@ class InterfaceViewer(ViewportPlugin):
ui_xml.connect_signals(self)
# Mark all expanders with no associated section classes as unimplemented
- implemented_sections = [obj.interface_name.lower() for obj in self.sections]
+ implemented_expanders = [s.expander for s in self.sections]
vbox_ifaces = ui_xml.get_object('vbox_ifaces')
+
for expander in vbox_ifaces.get_children():
- iface_name = expander.name.replace('expander_', '')
- if iface_name not in implemented_sections:
+ if expander not in implemented_expanders:
+ iface_name = \
+ expander.get_label().lower().replace(' ', '').replace('_', '')
section = _InterfaceSection(ui_xml, self.node, iface_name)
section.disable()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]