Hi You can do it like this. gchar * stuff = g_strdup_printf("%d", i); gtk_text_buffer_insert(buffer, &iter, stuff, -1); g_free(stuff); HTH Archit P.S. Now that you mention it, I guess it would be nice to have something like gtk_text_buffer_insert_formatted() (I guess you were thinking the same thing) On Sat, 2005-01-08 at 13:04 -0800, Aaron Yang wrote: > hi everyone, > > how do I do this: > > int i; > printf("%d", i); > > in a textview: > > gtk_text_buffer_insert(buffer, &iter, "%d", -1); > > regards > > > > > > __________________________________ > Do you Yahoo!? > Meet the all-new My Yahoo! - Try it today! > http://my.yahoo.com > > > _______________________________________________ > gtk-app-devel-list mailing list > gtk-app-devel-list@xxxxxxxxx > http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list