GNOME Bugzilla – Bug 772896
Gtk.TextBuffer.insert_with_tags_by_name() fails with no tags
Last modified: 2017-03-22 08:44:57 UTC
The override for Gtk.TextBuffer.insert_with_tags_by_name() contains a bug. When no tags are provided it does not insert the text. Source code for gtk_text_buffer_insert_with_tags_by_name: https://git.gnome.org/browse/gtk+/tree/gtk/gtktextbuffer.c#n1562
Created attachment 337671 [details] [review] overrides: Fix Gtk.TextBuffer.insert_with_tags_by_name() with no tags The text was not inserted when no tags were provided. Can someone run the tests? I can't install dbus-run-session which is required now...
*** Bug 772895 has been marked as a duplicate of this bug. ***
Review of attachment 337671 [details] [review]: lgtm
Created attachment 348462 [details] [review] overrides: Fix Gtk.TextBuffer.insert_with_tags_by_name() with no tags Running the tests now give the following error: "Invalid text buffer iterator: either the iterator is uninitialized, or the characters/pixbufs/widgets in the buffer have been modified since the iterator was created." I've adjusted the test to use new iterator instances.
I pushed that one to master