Re: GtkText & GtkTextView

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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]