Implement row annotations for DeeModel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Fix Released
|
Undecided
|
Unassigned | ||
dee |
Fix Released
|
High
|
Mikkel Kamstrup Erlandsen | ||
dee (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
It's a common pattern that model consumers needs to map each individual row to some internal data structure or value (fx. a widget). Currently this can only be achieved by maintaining a map of row iters to the data members which must then be kept in sync with the model.
I propose we add a "Model Annotation API" ala:
-------
typedef guint DeeModelAnnotation;
/**
* dee_model_
* @destroy: Callback to free annotation set on the model with
* dee_model_
* removed, the annotation is cleared, or the model is
* finalized.
*
* Create a new annotation.
*
* Returns: A new annotation key that can be used to get and
* set annotation values
*/
DeeModelAnnotation dee_model_
void dee_model_
gpointer dee_model_
void dee_model_
-------
Related branches
description: | updated |
description: | updated |
Changed in dee: | |
milestone: | none → 0.5.1 |
Changed in dee: | |
milestone: | 0.5.4 → 0.5.6 |
Changed in dee: | |
milestone: | 0.5.6 → none |
Changed in dee: | |
assignee: | nobody → Mikkel Kamstrup Erlandsen (kamstrup) |
importance: | Undecided → High |
milestone: | none → 0.5.8 |
status: | New → Triaged |
Changed in unity: | |
status: | New → Triaged |
Changed in dee (Ubuntu): | |
status: | New → Triaged |
Changed in dee: | |
milestone: | 0.5.8 → 0.5.12 |
Changed in unity: | |
status: | Triaged → Fix Committed |
Changed in dee: | |
status: | Triaged → Fix Committed |
Changed in dee (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in unity: | |
status: | Fix Committed → Fix Released |
Changed in dee: | |
status: | Fix Committed → Fix Released |
Changed in dee (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in unity (Ubuntu): | |
status: | New → Fix Released |
Very neatly defined, Mikkel.