How to use GError?



Hi all,
I am trying to use gdk_pixbuf_save function but this function uses a
GError as a parameter. So I create the GError and use the
g_error_new_literal function to give it a domain, code and etc... The
problem is that even including the glib.h GError gives me the compiling
error of undeclared. Any help would be a bliss.
Thanks.

PS: as a side question... What goes in the domain and code parameters of
the g_error_new_literal function... I am using GDK_PIXBUF_ERROR on both
but was thinking about using the g_quark_from_string function to create
a domain but I have no experience with this so I do not know how this
works. If anyone could help it would be greatly appreciated Thanks again
ppl.




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