Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Johnson via Digitalmars-d-learn
On Friday, 18 August 2017 at 17:06:42 UTC, Mike Wey wrote: On 18-08-17 02:30, Johnson Jones wrote: On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: [...] Obvious it is easy when you have ID's, but this is meant for the original case where I'm not using ID's. A far as i can

Re: GtkD: How to respond to cell edit's?

2017-08-18 Thread Mike Wey via Digitalmars-d-learn
On 18-08-17 02:30, Johnson Jones wrote: On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: I should also mention that when I use an ID to do what I want(again, something I don't want to do), I also need to get the column that was edited. This is because I'm using one delegate for

Re: GtkD: How to respond to cell edit's?

2017-08-17 Thread Johnson Jones via Digitalmars-d-learn
On Friday, 18 August 2017 at 00:27:05 UTC, Johnson Jones wrote: I should also mention that when I use an ID to do what I want(again, something I don't want to do), I also need to get the column that was edited. This is because I'm using one delegate for all the edits. auto cb =

Re: GtkD: How to respond to cell edit's?

2017-08-17 Thread Johnson Jones via Digitalmars-d-learn
I should also mention that when I use an ID to do what I want(again, something I don't want to do), I also need to get the column that was edited. This is because I'm using one delegate for all the edits. auto cb = delegate(string index, string text, CellRendererText r) { // How to get

GtkD: How to respond to cell edit's?

2017-08-17 Thread Johnson Jones via Digitalmars-d-learn
Trying to setup a callback that will propagate changes from a cell(and editable GtkCellRendererText) to my model. Can't seem to find any way to get the actual GtkCellRendererText CellRendererText has an addOnEdited but I can't find a way to get the CellRendererTExt for a TreeViewColumn ;/