Gtk 3 position attribute on insert-text signal from Gtk.Entry is always 0
I am having trouble in managing the insert-text signal emitted by the Gtk.Entry widget. Consider the following example: from gi.repository import Gtk def on_insert_text(entry, new_text, new_text_length, position): print(position) entry = Gtk.Entry() entry.connect('insert-text', on_insert_text) window = Gtk.Window() window.connect("destroy", lambda q: Gtk.main_quit()) window.add(entry) window.show_all() Gtk.main() The position attribute I am receiving on the signal handler is always 0. Unless I am misunderstanding this should it not be the position where the next text should be inserted? In the