GNOME Bugzilla – Bug 67110
No notification of insert point change when text is typed into widget
Last modified: 2004-12-22 21:47:04 UTC
There is a difference in behavior between GtkEntry and GtkTextView when a character is typed in to the widget. For GtkEntry after the "insert-text" signal is emitted a notification of change of "cursor-position" property is emitted. For GtkTextView an "insert-text" signal is emitted but there is no notification of the change in the "insert" mark. This causes the behavior of libgail to be different for the two widgets.
The two aren't the same; mark_set on text buffer means a mark was moved, a mark is like a bookmark, bookmarks don't actually move if you insert more pages in the front of the book. The cursor position however is given as an offset from the start of the entry, so it will change if you insert text in order to stay in the same place. You may need to track more signals than "mark_set" on the text buffer if you are giving the cursor position as an offset.