summaryrefslogtreecommitdiff
path: root/gi/overrides/Gtk.py
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2011-07-18 10:45:18 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2011-07-18 10:45:18 -0400
commit2937cfe5bb7122dd3783c7919294d6a34a3dfc05 (patch)
tree5b74be2f5a4b5ff1b32b9e81d6991db348dc695d /gi/overrides/Gtk.py
parent519e556dc1e5874e1668bad93043fb9258c7ee79 (diff)
parent917ea2dfa2d097e563233145003a66b3e4423287 (diff)
downloadpygobject-invoke-rewrite.tar.gz
Merge branch 'master' into invoke-rewriteinvoke-rewrite
Diffstat (limited to 'gi/overrides/Gtk.py')
-rw-r--r--gi/overrides/Gtk.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 5e086474..9c35b068 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -639,12 +639,18 @@ class TextIter(Gtk.TextIter):
def forward_search(self, string, flags, limit):
success, match_start, match_end = super(TextIter, self).forward_search(string,
flags, limit)
- return (match_start, match_end,)
+ if success:
+ return (match_start, match_end)
+ else:
+ return None
def backward_search(self, string, flags, limit):
success, match_start, match_end = super(TextIter, self).backward_search(string,
flags, limit)
- return (match_start, match_end,)
+ if success:
+ return (match_start, match_end)
+ else:
+ return None
def begins_tag(self, tag=None):
return super(TextIter, self).begins_tag(tag)