Cannot introspect GtkTextView contents
Bug #1194371 reported by
Martin Pitt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopilot-gtk |
Fix Released
|
Medium
|
Martin Pitt | ||
autopilot-gtk (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
While writing unit tests for autopilot-gtk, I noticed that there is no way to get to the contents of a GtkTextView widget. This uses a GtkTextBuffer object for storing the contents, which can usually be accessed through the "buffer" property. But as that isn't a simple type, "buffer" doesn't exist in ap-gtk. GtkTextBuffer itself is not a widget, so it doesn't appear as a child either. Supposedly this needs some custom code in the plugin to export the text buffer contents as a synthetic string property, preferably "buffer" itself.
Related branches
lp:~pitti/autopilot-gtk/gtktextbuffer
- Francis Ginther: Approve
- PS Jenkins bot: Approve (continuous-integration)
-
Diff: 86 lines (+55/-0)3 files modifiedlib/GtkNode.cpp (+19/-0)
tests/autopilot/tests/test_properties.py (+15/-0)
tests/hello_color.ui (+21/-0)
Changed in autopilot-gtk: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in autopilot-gtk: | |
status: | Triaged → In Progress |
assignee: | nobody → Martin Pitt (pitti) |
Changed in autopilot-gtk: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix committed into lp:autopilot-gtk at revision 51, scheduled for release in autopilot-gtk, milestone Unknown