[pygobject] Override Gtk.ComboBox.get_active_iter to not return success value
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override Gtk.ComboBox.get_active_iter to not return success value
- Date: Tue, 26 Oct 2010 13:49:35 +0000 (UTC)
commit 8ec830c57fafbfe50d9619c6caba3cb95a00d688
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Sat Oct 23 14:12:44 2010 +0200
Override Gtk.ComboBox.get_active_iter to not return success value
gi/overrides/Gtk.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 69a0342..9afc5bf 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -202,6 +202,16 @@ class UIManager(Gtk.UIManager):
UIManager = override(UIManager)
__all__.append('UIManager')
+class ComboBox(Gtk.ComboBox):
+
+ def get_active_iter(self):
+ success, aiter = super(ComboBox, self).get_active_iter()
+ if success:
+ return aiter
+
+ComboBox = override(ComboBox)
+__all__.append('ComboBox')
+
class Builder(Gtk.Builder):
def connect_signals(self, obj_or_map):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]