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 706859 - Can't get GtkSourceBuffer from Python
Can't get GtkSourceBuffer from Python
Status: RESOLVED DUPLICATE of bug 643732
Product: gtksourceview
Classification: Platform
Component: General
3.9.x
Other Linux
: Normal normal
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2013-08-27 02:32 UTC by Gustavo Noronha (kov)
Modified: 2013-08-27 10:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add a get_buffer method for introspection purposes (1.68 KB, patch)
2013-08-27 02:32 UTC, Gustavo Noronha (kov)
none Details | Review
Add a get_buffer method for introspection purposes (1.68 KB, patch)
2013-08-27 02:38 UTC, Gustavo Noronha (kov)
none Details | Review

Description Gustavo Noronha (kov) 2013-08-27 02:32:08 UTC
This is the problem:

>>> from gi.repository import GtkSource
>>> view = GtkSource.View()
>>> view.get_buffer()
<TextBuffer object at 0x17170a0 (GtkTextBuffer at 0x1933ce0)>
>>> 

This should give me a GtkSource.Buffer object, so that I can call GtkSourceBuffer methods.
Comment 1 Gustavo Noronha (kov) 2013-08-27 02:32:36 UTC
Created attachment 253215 [details] [review]
Add a get_buffer method for introspection purposes
Comment 2 Gustavo Noronha (kov) 2013-08-27 02:33:04 UTC
Unsure about the fix, maybe an override is enough?
Comment 3 Gustavo Noronha (kov) 2013-08-27 02:38:24 UTC
Created attachment 253216 [details] [review]
Add a get_buffer method for introspection purposes
Comment 4 Sébastien Wilmet 2013-08-27 10:55:25 UTC
Thanks for the bug report. This is a known problem. See bug #643732.

*** This bug has been marked as a duplicate of bug 643732 ***