diff options
author | MaZderMind <github@mazdermind.de> | 2015-06-17 17:26:25 +0200 |
---|---|---|
committer | MaZderMind <github@mazdermind.de> | 2015-06-17 17:26:25 +0200 |
commit | 086865a64db5d182ff39bf7015c80b9aba20a2e4 (patch) | |
tree | 0ab9d356beb8d7e3bc28cde8b8a8e18d3d12886e /voctogui/lib/uibuilder.py | |
parent | 7432403bd14eb8eb9f0d202f7fe4addb403be559 (diff) |
Implement correct Fetching via ID
Diffstat (limited to 'voctogui/lib/uibuilder.py')
-rw-r--r-- | voctogui/lib/uibuilder.py | 4 |
1 files changed, 2 insertions, 2 deletions
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'): |