gtk-rs / gtk

DEPRECATED, use https://github.com/gtk-rs/gtk3-rs repository instead!
https://gtk-rs.org/
MIT License
1.25k stars 82 forks source link

Set cursor position in Entry #965

Closed MGlolenstine closed 4 years ago

MGlolenstine commented 4 years ago

I found a way to get the cursor and I'm inserting the text at the cursor, but the problem is that the cursor doesn't move to the end of the inserted text.

How can I manually set the cursor position?

sdroege commented 4 years ago

This is not a bug but a support request, and also generally about GTK not specific for the bindings :) Please ask this on the GTK mailing list.

MGlolenstine commented 4 years ago

Oh, weird... I thought that it would be a feature, that the cursor would move with the inserted text, or that they would add the set_cursor_pos or something similar. I'll ask on their mailing list!

Thanks!