Re: Usage of GTK+ headers

Banginwar, Rajesh wrote:

            Many of the GTK+ libraries have one or more top level header
files. E.g. Glib has glib.h, gdk-pixbuf has two gdk-data.h and
gdk-pixbuf.h and so on... My question is about what applications
typically use? Do they use just the top level header only? Or is it ok
to use the specific header file as needed e.g. gtk/gtkstyle.h?

    You should include the header indicated on the API reference,
note that if you decide to include your preffered header, a later
release may not include that header, but be compatible in every
other way, generally; there will always be a glib.h that will give
you access to the glib API.


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