diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2011-07-18 10:45:18 -0400 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2011-07-18 10:45:18 -0400 |
commit | 2937cfe5bb7122dd3783c7919294d6a34a3dfc05 (patch) | |
tree | 5b74be2f5a4b5ff1b32b9e81d6991db348dc695d /gi/overrides/Gtk.py | |
parent | 519e556dc1e5874e1668bad93043fb9258c7ee79 (diff) | |
parent | 917ea2dfa2d097e563233145003a66b3e4423287 (diff) | |
download | pygobject-invoke-rewrite.tar.gz |
Merge branch 'master' into invoke-rewriteinvoke-rewrite
Diffstat (limited to 'gi/overrides/Gtk.py')
-rw-r--r-- | gi/overrides/Gtk.py | 10 |
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) |