GtkTreeView signal before row change

2011-03-08 Thread Lance Zhang
Hi: I have a situation where I need to verify data before allowing a row change in a GtkTreeView. Essentially: 1. User requests a row change through a keyboard or a mouse; 2. Check if data in the current row has been edited without be saved, or even is complete and valid, and prompt the user

Re: GtkTreeView signal before row change

2011-03-08 Thread Tristan Van Berkom
On Wed, Mar 9, 2011 at 12:38 AM, Lance Zhang zhan...@hotmail.com wrote: Hi: I have a situation where I need to verify data before allowing a row change in a GtkTreeView. Essentially: 1. User requests a row change through a keyboard or a mouse; 2. Check if data in the current row has been

RE: GtkTreeView signal before row change

2011-03-08 Thread Lance Zhang
Thank you, Tristan! Handle edited signal will not help in my situation. Basically one cannot validate user input in that event. Say, there are 3 columns, a user entry some perfectly valid data in the first column, but the whole record is still incomplete. If at this point the user