Re: GtkTextView sometimes freezes



On Sun, 2004-11-21 at 10:56 +0000, Tim MÃller wrote:
On Saturday 20 November 2004 15:29, Radek VokÃl wrote:

gtk_text_buffer_get_start_iter (text_buffer,&iter);
if (the_tag != NULL)
 gtk_text_buffer_insert_with_tags(text_buffer,&iter,
 g_utf8_normalize(the_text,-1,G_NORMALIZE_ALL),-1,the_tag,NULL);
else
 gtk_text_buffer_insert(text_buffer,&iter,
 g_utf8_normalize(the_text,-1,G_NORMALIZE_ALL),-1);

Not that this is gonna help with your freezing problem, but you do realise 
you're leaking the result of g_utf8_normalize() here, right?


well, I've added g_utf8_normalize 'cos I thought the problem should be
inside the text itself eg. my thought was that normalizing the text
should help. 

RAT

Cheers
 -Tim
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list







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