After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 67110 - No notification of insert point change when text is typed into widget
No notification of insert point change when text is typed into widget
Status: RESOLVED NOTABUG
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
1.3.x
Other Solaris
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-12-17 15:00 UTC by padraig.obriain
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description padraig.obriain 2001-12-17 15:00:59 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.
Comment 1 Havoc Pennington 2001-12-17 15:59:35 UTC
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.