gnome_stock_pixmap_register Q



Hi

I'm trying to register a new pixmap as a stock icon:
Doing something like

gnome_stock_pixmap_register("line-2d",
                            "subtype",pixmap_entry);
after creating the GnomeStockPixmapEntry returns 1 indicating success.
(Btw, what does the "subtype" string mean anyway?)

However, later when I try to use the stock icon with 
pixwidget=gnome_stock_new_with_icon("line-2d");
returns NULL.

Is there a simple example somewhere that some kind soul can point me to?
Or maybe enlighten me in some way as to how to go about registering a new
stock icon? The current docs and header files doesn't give much info...

Cheers

Conrad

*-----------------------------------------*                                  
| Conrad Steenberg                        |                                  
| Caltech, Mail Code 220-47               |                                  
| Pasadena, CA, 91125                     |                                  
| e-mail: conrad@srl.caltech.edu          |                                  
| Tel: (626) 395-2964 Fax: (626) 449-8676 |                                  
*-----------------------------------------*                                  



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