Hello.

The documentation from pixbufNewFromFile :: FilePath -> IO Pixbuf gives:

If an error occurs, the function will return Left (err,msg) where err is
the error code and msg is a human readable description of the error. If
an error occurs which is not captured by any of those in PixbufError, an
exception is thrown.

Is this right?  Can Pixbuf be Left?

If this is wrong, shouldn't it return Maybe Pixbuf, like
widgetRenderIcon?

I saw that pixbufNewFromFile calls propagateGError which
widgetRenderIcon don't, but is this a reason for not returning Maybe
Pixbuf?

Thanks.

-- 
Marco Túlio Gontijo e Silva
Página: http://marcotmarcot.googlepages.com/
Blog: http://marcotmarcot.wordpress.com/
Correio: [EMAIL PROTECTED]
XMPP: [EMAIL PROTECTED]
IRC: [EMAIL PROTECTED]
Telefone: 25151920
Celular: 98116720
Endereço:
 Rua Turfa, 639/701
 Prado 30410-370
 Belo Horizonte/MG Brasil



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Gtk2hs-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel

Reply via email to