Provide GVariant "packing" for complex GtkWidget types
Bug #1052120 reported by
Allan LeSage
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autopilot-gtk |
Incomplete
|
High
|
Allan LeSage |
Bug Description
As with autopilot-qt, not every GtkWidget fits directly into GVariant notation (like JSON formatting), and some types have to be "packed" so that they can be expressed as such. For an indicator, e.g., GtkCheckMenuItem needs to be interpreted for its 'active' property to be expressed as true or false to autopilot. Thomi has demonstrated this in autopilot-qt; we may crib his work but also I see an opportunity to apply this generally in Variant.cpp.
Changed in autopilot-gtk: | |
importance: | Undecided → High |
To post a comment you must log in.
Allan, can you please explain what you mean by this? GtkCheckMenuItem's "active" property is a simple bool, I guess that shouldn't cause any trouble? I found two cases where simple-typed properties don't work, for properties which are enum types (bug 1193342) and for properties which refer to other GObjects such as GtkTextView's "buffer" property which points to a GtkTextBuffer (bug 1194371). Are these two special cases of this bug, or did you mean something else?