From 086865a64db5d182ff39bf7015c80b9aba20a2e4 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Wed, 17 Jun 2015 17:26:25 +0200 Subject: Implement correct Fetching via ID --- voctogui/lib/uibuilder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'voctogui/lib') diff --git a/voctogui/lib/uibuilder.py b/voctogui/lib/uibuilder.py index 8ce01ab..2d6a85b 100644 --- a/voctogui/lib/uibuilder.py +++ b/voctogui/lib/uibuilder.py @@ -15,13 +15,13 @@ class UiBuilder(object): def find_widget_recursive(self, widget, name): widget = self._find_widget_recursive(widget, name) if not widget: - self.log.error('could find required widget "%s" by name (not ID!) inside the parent %s', name, str(widget)) + self.log.error('could find required widget "%s" by ID inside the parent %s', name, str(widget)) raise Exception('Widget not found in parent') return widget def _find_widget_recursive(self, widget, name): - if widget.get_name() == name: + if Gtk.Buildable.get_name(widget) == name: return widget if hasattr(widget, 'get_children'): -- cgit v1.2.3