GNOME Bugzilla – Bug 772895
Gtk.TextBuffer.insert_with_tags_by_name() does nothing if given no tags
Last modified: 2016-10-13 22:15:49 UTC
Gtk.TextBuffer.insert_with_tags_by_name(iter, text, *tags) bails out without actually inserting the text if no tags are given. gtk_text_buffer_insert_with_tags() does still insert the text when no tags are specified, so not matching its behaviour is probably a bug. https://git.gnome.org/browse/pygobject/tree/gi/overrides/Gtk.py#n731 solution should be to just remove the early return here (lines 732-733). (As a workaround meanwhile, you can fall back to insert() if tags is empty.)
Thanks for taking the time to report this. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find. *** This bug has been marked as a duplicate of bug 772896 ***