Re: [pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-31 Thread Christian Becke
Am 07.05.2011 06:39, schrieb Jason Heeris: On 7 May 2011 03:24, Neil Muller wrote: On 6 May 2011 21:07, Jason Heeris wrote: Storing the object in a hidden column is fine, and what I assumed you were doing originally. Hah! Okay then, now that it's morning, I can't believe that didn't occur to

Re: [pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-10 Thread Jason Heeris
On 9 May 2011 19:25, Alessandro Dentella wrote: >> Is there a way to tell the CellRenderer to redraw, or recheck? > > sure. Emitting a row-changed will trigger a redraw: > >   model.emit('row-changed', path, iter) Presumably I trigger this by calling gtk.TreeModel.row_changed(path, iter) — but wh

Re: [pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-09 Thread Alessandro Dentella
On Mon, May 09, 2011 at 09:21:52AM +0800, Jason Heeris wrote: > On 7 May 2011 15:55, Neil Muller wrote: > > You can do via TreeViewColumn.set_cell_data_func and calling > > set_property on the cell renderers. > > This approach has cleaned up my code somewhat, but there's one snag > I've hit. The

Re: [pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-08 Thread Jason Heeris
On 7 May 2011 15:55, Neil Muller wrote: > You can do via TreeViewColumn.set_cell_data_func and calling > set_property on the cell renderers. This approach has cleaned up my code somewhat, but there's one snag I've hit. The object with the properties I'm showing in the table is a subclass of GObje

Re: [pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-07 Thread Alessandro Dentella
On Sat, May 07, 2011 at 12:39:01PM +0800, Jason Heeris wrote: > On 7 May 2011 03:24, Neil Muller wrote: > > On 6 May 2011 21:07, Jason Heeris wrote: > > Storing the object in a hidden column is fine, and what I assumed you > > were doing originally. > > Hah! Okay then, now that it's morning, I c

Re: [pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-07 Thread Neil Muller
On 7 May 2011 06:39, Jason Heeris wrote: > On 7 May 2011 03:24, Neil Muller wrote: >> On 6 May 2011 21:07, Jason Heeris wrote: >> Storing the object in a hidden column is fine, and what I assumed you >> were doing originally. > > Hah! Okay then, now that it's morning, I can't believe that didn't

[pygtk] Simplifying what's stored in a ListStore (was Re: Inconsistent format for "path" in TreeView callbacks)

2011-05-06 Thread Jason Heeris
On 7 May 2011 03:24, Neil Muller wrote: > On 6 May 2011 21:07, Jason Heeris wrote: > Storing the object in a hidden column is fine, and what I assumed you > were doing originally. Hah! Okay then, now that it's morning, I can't believe that didn't occur to me :P While we're on the topic though,