Re: GtkEntry text selection



You can use the "focus" signal to set the cursor position using gtk_editable_set_position with a position of -1 to indicate the end of the text.

- Micah Carrick
 http://www.micahcarrick.com   |   http://www.gtkforums.com

Anurag Chaudhary wrote:
When I bring focus to a GtkEntry, all of its text gets selected by default. How can I disable this behaviour?
I want the text to remain un-selected and cursor in the end.

Thanks
Anurag

_________________________________________________________________
Tried the new MSN Messenger? It's cool! Download now. http://messenger.msn.com/Download/Default.aspx?mkt=en-in

------------------------------------------------------------------------

_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



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