I realised that GtkTextView was not made for this as it slow down on of my apps by many seconds !
So I coded this little widget.
Main characteristics:
--------------------------------------------------------------------------------------
- no auto-refresh : slowness of GtkTextView results partially in events sent at each modification of the associated GtkTextBuffer
- no raffined text formatting, editing, etc... only lines of different colors.
- integrated scrollview for avoiding use of GtkScrolledWindow & GtkRange.
As you see, GtkFastTextView can be much faster that GtkTextView.
Source code at :
--------------------------------------------------------------------------------------
Source code at :
git clone -b GtkFastTextView --single-branch git://gitorious.org/gkconfig/libgwr.git or git clone -b GtkFastTextView --single-branch https://github.com/earlgrey-bis/libgwr.git
( Include the demo program above as code sample )

Aucun commentaire:
Enregistrer un commentaire