After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 772895 - Gtk.TextBuffer.insert_with_tags_by_name() does nothing if given no tags
Gtk.TextBuffer.insert_with_tags_by_name() does nothing if given no tags
Status: RESOLVED DUPLICATE of bug 772896
Product: pygobject
Classification: Bindings
Component: introspection
3.20.x
Other All
: Normal minor
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-13 21:58 UTC by HyperHacker
Modified: 2016-10-13 22:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description HyperHacker 2016-10-13 21:58:35 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.)
Comment 1 Garrett Regier 2016-10-13 22:15:49 UTC
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 ***