Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-03 Thread Emmanuel Thomas-Maurin
On 02/03/2012 01:17 AM, Ferdinand Ramirez wrote: > --- On Thu, 2/2/12, Emmanuel Thomas-Maurin wrote: > >> I think you may use something like: >> gtk_editable_set_position(GTK_EDITABLE(entry), -1) >> > > The problem is that I don't seem to have access to location_entry in > GtkFileChooser for me

Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Ferdinand Ramirez
--- On Thu, 2/2/12, Emmanuel Thomas-Maurin wrote: > I think you may use something like: > gtk_editable_set_position(GTK_EDITABLE(entry), -1) > The problem is that I don't seem to have access to location_entry in GtkFileChooser for me to use the above function. Do you know how I can get hold o

Re: cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Emmanuel Thomas-Maurin
On 02/02/2012 10:23 PM, Ferdinand Ramirez wrote: > If I set the filename using gtk_file_chooser_set_current_name from a callback > method for key-press-event, the filename shows up in the text entry box, but > the cursor position is at 0 once the filename has been set. How do I set the > cursor

cursor position in filename entry of gtkfilechooserdialog

2012-02-02 Thread Ferdinand Ramirez
If I set the filename using gtk_file_chooser_set_current_name from a callback method for key-press-event, the filename shows up in the text entry box, but the cursor position is at 0 once the filename has been set. How do I set the cursor position to be at the end of the string I set as the file