Re: GtkText & GtkTextView
- From: Jan-Marek Glogowski <glogow stud fbi fh-darmstadt de>
- To: Filipe Bonjour <bonjour ime unicamp br>
- Cc: GTK List <gtk-list gnome org>
- Subject: Re: GtkText & GtkTextView
- Date: Wed, 25 Jul 2001 09:20:13 +0200 (CEST)
Hi Filipe
> What is the best (i.e. fastest) way to clear GtkText? For the moment I
> am using
>
> gtk_text_set_point(GTK_TEXT(widget), 0);
> gtk_text_forward_delete(GTK_TEXT(widget), (guint)
> gtk_text_get_length(GTK_TEXT(widget)));
This seems to be ok (I don't know an other way).
You can try to use freeze and thaw to speed things up
(this helps a lot if you have more things to do)
void gtk_text_freeze (GtkText *text);
[your gtktext code ]
void gtk_text_thaw (GtkText *text);
Bye
Jan-Marek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]