On 5/16/05, Vadim Berezniker <[EMAIL PROTECTED]> 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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Reply via email to