Re: using GtkTextView as a single line editor widget?
- From: Vivien Malerba <vmalerba gmail com>
- To: Vadim Berezniker <kryptolus gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: using GtkTextView as a single line editor widget?
- Date: Mon, 16 May 2005 16:08:01 +0200
On 5/16/05, Vadim Berezniker <kryptolus gmail com> wrote:
I tried unsuccessfully to use the GtkTextView as a single line text
editor widget. I need to use some of the features provided by
GtkTextView/GtkTextBuffer so I cannot use GtkEntry.
Right now I have the text wrap which causes the text box to expand
vertically. I tried turning off wrapping and putting it inside a
Scrolled Window and that didn't quite work.
Also, is there any tips on writing more effecient code that uses
GtkTextBuffer? It seems that applying tags is a performance killer.
I've been trying to make my code faster, but it seems I cannot do
anything to make GtkTextBuffer faster.
If you are trying to make a kind of console from GtkTextView (like
with the readline library for command line applications), then I've
managed to do something quite close to that (it's a SQL console
widget), see the code at
http://cvs.gnome.org/viewcvs/libgnomedb/libgnomedb/gnome-db-sql-console.c?rev=1.2&view=markup
Vivien
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]