gdk_pixbuf_composite_color_simple() can return NULL...



gdk_pixbuf_composite_color_simple() can return NULL when gdk_pixbuf_new() fails. gdk_pixbuf_new() can fail when the system can't allocate enough memory for the image data.

Currently, both functions are bound with the return type GdkPixbuf_noinc*, which will croak with a message to the effect of "NULL is not a valid GObject." Is this expected behavior? Should we just leave that alone, do something special to give those functions an appropriate exception, or just use GdkPixbuf_noinc_ornull* and allow those functions to return undef to the caller without an explanation?

--
However, like all drugs, PANEXA can produce some notable side effects, all of which are probably really, really terrific and nothing that anyone should be concerned about, let alone notify any medical regulatory commission about.
  -- http://www.panexa.com





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