Re: GtkText* in Gtk2
- From: Havoc Pennington <hp redhat com>
- To: Shane Butler <shane_b operamail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkText* in Gtk2
- Date: 09 Jun 2001 15:00:12 -0400
Shane Butler <shane_b operamail com> writes:
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.
The rule is just that new text on a tag boundary should not get tagged
by that tag. Basically left tag edges have right gravity, and right
tag edges have left gravity.
When I try this out, 1) doesn't work either - so I'm not sure what you
have done here or maybe I'm confused.
I also tried using right gravity on a mark, but that makes the mark go
right to the end of the text?!
This may be a bug, if you have a small test case file it on bugzilla.gnome.org.
Does anyone have any suggestions?
You could e.g. connect_after() to the insert_text signal and do fixups
on what tags are applied to the inserted text.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]