Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/journal/expandedentry.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-09-21 05:36:31 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-09-21 13:32:24 (GMT)
commit7359f2cba1dd78d1fb6ab9be269a7921473d6f79 (patch)
tree661540377c019159129fbfc7bfb77628770bfb45 /src/jarabe/journal/expandedentry.py
parente760ffad7fc328c726b23cb0be2d4aa8c007e54d (diff)
Journal details view, fix get_text method in text buffers - SL #3920
Gtk.TextBuffer.get_text() needs new parameter include_hidden_chars, setting it to False the given text excludes undisplayed text (text marked with tags that set the invisibility attribute) [1] [1] http://developer.gnome.org/gtk3/stable/GtkTextBuffer.html#gtk-text-buffer-get-text Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
Diffstat (limited to 'src/jarabe/journal/expandedentry.py')
-rw-r--r--src/jarabe/journal/expandedentry.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jarabe/journal/expandedentry.py b/src/jarabe/journal/expandedentry.py
index 21a3c5f..8144980 100644
--- a/src/jarabe/journal/expandedentry.py
+++ b/src/jarabe/journal/expandedentry.py
@@ -380,7 +380,8 @@ class ExpandedEntry(Gtk.EventBox):
bounds = self._tags.get_buffer().get_bounds()
old_tags = self._metadata.get('tags', None)
- new_tags = self._tags.get_buffer().get_text(bounds[0], bounds[1])
+ new_tags = self._tags.get_buffer().get_text(bounds[0], bounds[1],
+ include_hidden_chars=False)
if old_tags != new_tags:
self._metadata['tags'] = new_tags
@@ -389,7 +390,7 @@ class ExpandedEntry(Gtk.EventBox):
bounds = self._description.get_buffer().get_bounds()
old_description = self._metadata.get('description', None)
new_description = self._description.get_buffer().get_text(
- bounds[0], bounds[1])
+ bounds[0], bounds[1], include_hidden_chars=False)
if old_description != new_description:
self._metadata['description'] = new_description
needs_update = True