GtkTextView: Applying tags at the cursor
- From: Samuel Lidén Borell <samuellb bredband net>
- To: gtk-app-devel-list gnome org
- Subject: GtkTextView: Applying tags at the cursor
- Date: Tue, 24 Oct 2006 19:49:54 +0200
Hi,
I'm working on a web site creation software that uses Gtk, Glade and
Python for the UI. I'm using the GtkTextView widget to let the user edit
text with basic formatting but I have a question:
How do I apply a tag at the cursor so that inserted text gets it's
formatting? Right now I surround the cursor with two zero-width spaces
(an invisible Unicode character) and then I apply the tag to the spaces.
This gives new text the right formatting, but it's an ugly solution that
has some bugs...
Kind regards,
Samuel Liden Borell
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]