Suggested addition to gtk 1.3: XListFonts wrapper

Does anybody object if I add to gdk (in gtk+'s head branch) two simple
new functions, that on X11 would just be wrappers to XListFonts and
XFreeFontNames. Suggested API:

gchar **gdk_font_list_new (const gchar *pattern, gint **num_returned);
void    gdk_font_list_free (gchar **font_list);

Or, would it be better if the list was returned as a NULL terminated
array, so that g_strfreev could be used to free it, and no separate
freeing function was needed?

I'm not totally happy with that choice of names, but can't think of
any better right now. Suggestions welcome.


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