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
> [EMAIL PROTECTED]
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list