Re: cursor position in filename entry of gtkfilechooserdialog



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 position to be at the end of the string I set as the filename?

I think you may use something like:
gtk_editable_set_position(GTK_EDITABLE(entry), -1)

-- 
Emmanuel Thomas-Maurin <manutm007 gmail com>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]