Re: gtk_text_buffer_insert



Hi,

You can change the integer to string and can use it.
str = g_strdup_printf ("%d", i);

And then use the string variable str.
Then free the str variable.

Thanks,
Shakti

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 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]