StockIcons
Creating stock iconsTo create stock icons, first create an array of mappings like this:array iconfiles=({ ([ "file": "icons/actions_wm.png", "stock-id": "hdadmin-actions" ]), ([ "file": "icons/connect_wm.png", "stock-id": "hdadmin-connect" ]), ([ "file": "icons/directory_server_wm.png", "stock-id": "hdadmin-directory" ]), ([ "file": "icons/search_wm.png", "stock-id": "hdadmin-search" ]) }); object iconf=GTK2.IconFactory(); foreach (iconfiles, mapping m) { object p1=GTK2.IconSet(GDK2.Pixbuf(m["file"])); iconf->add(m["stock-id"],p1); } iconf->add_default(); Powered by PikeWiki2 |
|||
gotpike.org | Copyright © 2004 - 2009 | Pike is a trademark of Department of Computer and Information Science, Linköping University |