Re: treeview Tab control
- From: Галымжан Кожаев <kozhayev gmail com>
- To: José Alburquerque <jaalburquerque cox net>
- Cc: gtkmm-list gnome org
- Subject: Re: treeview Tab control
- Date: Mon, 9 Nov 2009 11:24:18 +0600
You wrote that hitting Tab erases cell, restoring it to value stored
in TreeStore. What if you will somehow get the text in edited column
and manually set the value in TreeStore using that key_pressed
handler? I think text is getting lost because treeview displays data
in model (in our case treestore), am I right ?
2009/11/5, José Alburquerque <jaalburquerque cox net>:
> On Wed, 2009-11-04 at 22:03 +0100, Thomas Sommer wrote:
>> Hi Jose,
>> you will find the hacked treeview from the gtkmm examples in the
>> Basically all I did was attaching on_key_press() to signal_key_pressed.
>> Funny thing tough: If I add the column
>> to the attached function, everything works as I would expect it.
>> It just does not seem to make any sense to me.
> It doesn't make sense to me either. What I would suggest is that you
> guide yourself from the example that you hacked. On this system the
> example works fine (with tabs, etc.) as you also want. I can't tell
> definitely but, once more, my guess would be that if you handle key
> presses, I don't think that you need to pay special attention to the tab
> key. This is just a guess as I'm going by how the original example
> works on this system.
> gtkmm-list mailing list
> gtkmm-list gnome org
] [Thread Prev