[Reportbug-commits] [reportbug] 20/31: gtk2_ui: Gtk.TextBuffer.get_text needs include_hidden_chars given
Sandro Tosi
morph at moszumanska.debian.org
Mon Jan 16 01:36:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit 5285d066282e055d008dd62847d59294d359b9c9
Author: James Clarke <jrtc27 at debian.org>
Date: Sat Jan 14 23:15:49 2017 +0000
gtk2_ui: Gtk.TextBuffer.get_text needs include_hidden_chars given
This used to default to True with PyGTK, but needs to be given
explicitly with gi.
---
reportbug/ui/gtk2_ui.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/reportbug/ui/gtk2_ui.py b/reportbug/ui/gtk2_ui.py
index 5a5e92c..c29ec7e 100644
--- a/reportbug/ui/gtk2_ui.py
+++ b/reportbug/ui/gtk2_ui.py
@@ -1352,7 +1352,8 @@ class EditorPage(Page):
def get_value(self):
_assert_context(ui_context)
info = self.info_buffer.get_text(self.info_buffer.get_start_iter(),
- self.info_buffer.get_end_iter())
+ self.info_buffer.get_end_iter(),
+ True)
if not info.strip():
return None
subject = self.subject.get_text().strip()
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list