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 661232 - Make Gtk.TextBuffer.delete iter parameters be ref
Make Gtk.TextBuffer.delete iter parameters be ref
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GTK+ GStreamer WebKitGTK+
0.14.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2011-10-07 21:41 UTC by Sébastien Wilmet
Modified: 2011-10-08 12:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sébastien Wilmet 2011-10-07 21:41:44 UTC
The API for gtk_text_buffer_delete() says:

> Because the buffer is modified, all outstanding iterators become invalid after
> calling this function; however, the start and end will be re-initialized to
> point to the location where text was deleted.

This is the same problem as bug #659350, but here it's the delete() function instead of insert().
Comment 1 Sébastien Wilmet 2011-10-07 21:46:50 UTC
Same problem for delete_interactive().
Comment 2 Luca Bruno 2011-10-08 09:12:53 UTC
commit 68bdc65fe635a7e709d22c7cec93f07e6ce910a7
Author: Luca Bruno <lucabru@src.gnome.org>
Date:   Sat Oct 8 11:11:43 2011 +0200

    gtk+-2.0, gtk+-3.0: Fix TextBuffer.delete and delete_interactive bindings
    
    Fixes bug 661232.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.
Comment 3 Sébastien Wilmet 2011-10-08 12:46:48 UTC
Thanks!