Em Dom, 2008-06-29 às 22:53 +0200, Axel Simon escreveu:
> On Jun 28, 2008, at 15:45, Marco Túlio Gontijo e Silva wrote:
> > Em Sáb, 2008-06-28 às 12:14 +0200, Axel Simon escreveu:
> >> widgetRenderIcon cannot go wrong, so it shouldn't through an  
> >> exception.
> >
> > So why does it return Maybe Pixbuf and not Pixbuf?
> 
> Because from the documentation is sounded like it's quite likely that  
> a stock item won't be found. Hence,
> 
> >   if pixbufPtr==nullPtr then return Nothing else
> >     liftM Just $ constructNewGObject mkPixbuf (return pixbufPtr)
> >
> > Will pixbufPtr never be nullPtr?  What about when a invalid StockId is
> > passed as a parameter?
> >
> 
> we assume that pixbufPtr may be NULL in which case we return Nothing.  
> Your second question seems to contradict the first!?

That's because I understood "go wrong" as when the stock icon is not
found.  But now I got the difference.

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