GtkText* in Gtk2



Hello,

I am having problems using GtkText* in Gtk2 (well Gtk+-1.3.5)

Imagine a text buffer with the text:

XXyyZZ

Where:
- XX and ZZ are formatted so that they are not editable
- yy is formatted to be editable

What I want to happen is:
1. The user can click between X and y, and will insert with the
formatting as y.
2. The user can click between y and y, and will insert with the
formatting as y.
3. The user can click between y and Z, and will insert with the
Gtformatting as y.

I can get (1) and (2) to work, however I am having trouble doing (3).
When I try to insert between y and Z, I get any mark that I insert will
not move like I want it to (ie to the right of the newly inserted text).

I also tried using right gravity on a mark, but that makes the mark go
right to the end of the text?!

Does anyone have any suggestions?

Thanks,

Shane





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