GtkText Insertion Behavior



This is either a bug report or a request for someone to explain why the
current behavior is correct.  Take your pick.

Single clicks in a GtkText box move the cursor as expected.  However, they
don't move the insertion point.  You don't notice this behavior with
simple editing in the widget because the keypress handler updates the
insertion point to match the cursor mark.  However, if the cursor is moved
and then text is inserted by a direct call to gtk_text_insert, the
insertion occurs at the old insertion point.

As a generalization of the above issue, what is the point of having the
cursor location and the insertion point be distinct anyway?

Jay

PS - Please CC replies to me.

+---------------------------------+------------------------------+
| Jay Bloodworth                  | jay@pathways.sde.state.sc.us |
| Network Technician              | Voice: (803) 734-7000        |
| SC Department of Education      | Fax: (803) 734-4064          |
+---------------------------------+------------------------------+





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