Re: glib utf8 api

2008-03-03 Thread Behdad Esfahbod
On Sun, 2008-03-02 at 14:49 -0800, Gregory Sharp wrote: > Hi, I'm new to glib, and have questions/comments about > the utf-8 API. Hi Greg, > 1) There seems to be no good way to strncpy a utf8 string > into a fixed buffer. g_strncpy doesn't work, because the > last character can get truncated c

Re: glib utf8 api

2008-03-03 Thread Owen Taylor
On Sun, 2008-03-02 at 14:49 -0800, Gregory Sharp wrote: > Hi, I'm new to glib, and have questions/comments about > the utf-8 API. > > 1) There seems to be no good way to strncpy a utf8 string > into a fixed buffer. g_strncpy doesn't work, because the > last character can get truncated causing

glib utf8 api

2008-03-03 Thread Gregory Sharp
Hi, I'm new to glib, and have questions/comments about the utf-8 API. 1) There seems to be no good way to strncpy a utf8 string into a fixed buffer. g_strncpy doesn't work, because the last character can get truncated causing an invalid string. g_utf8_strncpy doesn't work either, because I do

Re: simple widget to draw on ?

2008-03-03 Thread Havoc Pennington
Hi, On Sun, Mar 2, 2008 at 12:44 PM, Sven Neumann <[EMAIL PROTECTED]> wrote: > Shouldn't GTK+ provide a really simple output widget for this use case? > I would just instantiate a GtkWidget, but GtkWidget is abstract. Am I > missing something obvious? > You could probably use GtkAlignment or s