Remove gee dependency and replace it with GLib native types
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Diodon |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Gee is highly Vala specific and causes issues with GObject introspection to be used e.g. by gjs or python. Hence dependency on Gee should be completely removed.
Original description:
Gee collections shouldn't really be returned from publicly visible API. Other languages (notable Gjs) have trouble with Gee do to its heavy use of generics. The solution would be to return the Gee collection wrapped in a class with a hardcoded type.
Something like
public class ClipboardItemList {
private List<IClipboard
public ClipboardItemLi
this.list = list;
}
public IClipboardItem get (int i) {
return this.list[i];
}
...
}
Is this something we want to address?
description: | updated |
description: | updated |
description: | updated |
Changed in diodon: | |
milestone: | none → 1.8.0 |
Changed in diodon: | |
status: | Fix Committed → Fix Released |
Another simpler options would be to call 'to_array()' on the collection before returning it.