[pygobject] Override Gtk.TextBuffer.get_selection_bounds to not return success value
- From: Sebastian Polsterl <sebp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] Override Gtk.TextBuffer.get_selection_bounds to not return success value
- Date: Tue, 26 Oct 2010 13:50:00 +0000 (UTC)
commit 95c86fa31da3d2fe84db0e2b5bc2a6dc896c9223
Author: Sebastian Pölsterl <sebp k-d-w org>
Date: Sat Oct 23 14:18:09 2010 +0200
Override Gtk.TextBuffer.get_selection_bounds to not return success value
gi/overrides/Gtk.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gi/overrides/Gtk.py b/gi/overrides/Gtk.py
index 6a22248..c568703 100644
--- a/gi/overrides/Gtk.py
+++ b/gi/overrides/Gtk.py
@@ -492,6 +492,11 @@ class TextBuffer(Gtk.TextBuffer):
length = len(text)
Gtk.TextBuffer.insert_at_cursor(self, text, length)
+ def get_selection_bounds(self):
+ success, start, end = super(TextBuffer, self).get_selection_bounds(string,
+ flags, limit)
+ return (start, end)
+
TextBuffer = override(TextBuffer)
__all__.append('TextBuffer')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]