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 630741 - incorrect bindings for gtk_text_buffer_get_text and gedit_document_get_uri
incorrect bindings for gtk_text_buffer_get_text and gedit_document_get_uri
Status: RESOLVED FIXED
Product: vala
Classification: Core
Component: Bindings: GTK+ GStreamer WebKitGTK+
0.10.x
Other Linux
: Normal normal
: ---
Assigned To: Vala maintainers
Vala maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-27 16:39 UTC by rob
Modified: 2010-10-04 02:02 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for resolving this bug (1.74 KB, patch)
2010-09-27 16:39 UTC, rob
none Details | Review

Description rob 2010-09-27 16:39:47 UTC
Created attachment 171221 [details] [review]
Patch for resolving this bug

Gtk.TextBuffer.get_text and Gedit.Document.get_uri should return strings, not unowned strings.
Comment 1 Evan Nemerson 2010-10-04 02:02:54 UTC
commit a95f05c42519bbd6ffd4fda1e274504b31dbb48b
Author: Rob Powell <rob@yorba.org>
Date:   Sun Oct 3 19:00:00 2010 -0700

    gtk+-2.0, gtk+-3.0: transfer ownership of TextBuffer.get_text return
    
    Fixes bug 630741.

commit 01514df1541f290068febbe179695e22b5235c06
Author: Rob Powell <rob@yorba.org>
Date:   Sun Oct 3 18:59:08 2010 -0700

    gedit-2.20: transfer ownership of Gedit.Document.get_uri return value
    
    Partially fixes bug 630741.