Re: [gtk-list] gdki18n.h



On Mon, 1 Dec 1997, Owen Taylor wrote:

> 
> #define mbstowcs(a,b,c)	_Xmbstowcs ((a),(b),(c)))
> )
> 
> It might be better to define GDK specific functions g_mbstowcs, etc.
> (Or gdk_mbtowcs if the functions stay in GDK.) This would prevent
> conflicts with application programs. (cf, g_strdup, g_malloc, ...)

this sounds like a good idea the namespace should just be gdk_ instead
of g_, so that mbstowcs(a,b,c) is defined as gdk_mbstowcs(a,b,c) and
the gdk_*() functions are always present, independent of the underlying
locale...


> 
> Questions:
> ----------
> 
> Is it OK for glib to depend on the X libraries?

hm, i definetly don't think so. i have written some small programs
already that use glib but not gdk/gtk+. also, if gdk is designed to
wrap Xlib, why should that affect glib? since the wchar/locale stuff
is in fact non gui related, i think the failure has been made in the
first place, where this got bundled with Xlib ;(

> 
> If so, should this stuff be moved to glib?

just for the convenience of haveing g_something() functions
instead of gdk_something(), hm i don't think so...

> 
> Should gdki18n.h be installed? Should it be automatically included?
hm, i think it should always be installed and included, to unconditionally
provide the function prototypes (which are in the gdk_ namespace then).
i don't wan't my application to fail in the build process because on someone
elses system the locale support is poor or different, and some definitions
of gdki18n.h got lost on the way.

> 
> Thanks,
>                                         Owen

thanx for working on this owen ;)

---
ciaoTJ



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