Pass all parameters to GtkTextBuffer.get_text()
With PyGTK the include_hidden_chars parameter to GtkTextBuffer.get_text() had a default value [1]. With GTK3+pygi the value must be explicitly passed [2]. [1] http://developer.gnome.org/pygtk/stable/class-gtktextbuffer.html#method-gtktextbuffer--get-text [2] http://developer.gnome.org/gtk3/3.0/GtkTextBuffer.html#gtk-text-buffer-get-text [changed description] Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
This commit is contained in:
parent
056bc29559
commit
9e4a3688fe
@ -291,12 +291,12 @@ class NamingAlert(gtk.Window):
|
||||
|
||||
text_buffer = self._tags.get_buffer()
|
||||
start, end = text_buffer.get_bounds()
|
||||
new_tags = text_buffer.get_text(start, end)
|
||||
new_tags = text_buffer.get_text(start, end, False)
|
||||
self._activity.metadata['tags'] = new_tags
|
||||
|
||||
text_buffer = self._description.get_buffer()
|
||||
start, end = text_buffer.get_bounds()
|
||||
new_description = text_buffer.get_text(start, end)
|
||||
new_description = text_buffer.get_text(start, end, False)
|
||||
self._activity.metadata['description'] = new_description
|
||||
|
||||
self._activity.metadata['title_set_by_user'] = '1'
|
||||
|
Loading…
Reference in New Issue
Block a user