1
To add a svg icon as a stock icon:
3
1. Dump the raw data from the svg:
4
gdk-pixbuf-csource --raw --name=gnome_stock_example example.svg
6
2. Copy the output in the file sflphone-client-gnome/src/icons/pixmaps_data.h
8
3. Create the alias in sflphone-client-gnome/src/icons/icon_factory.h :
9
#define GTK_STOCK_EXAMPLE "gnome-stock-example"
11
4. Add the icon to the factory. In sflphone-client-gnome/src/icons/icon_factory.c, function register_sflphone_stock_icons, add the line:
12
add_icon (factory, GTK_STOCK_EXAMPLE, gnome_stock_example, GTK_ICON_SIZE_SMALL_TOOLBAR)
14
You may now use this icon in the code just like a GTK stock icon, the stock id being GTK_STOCK_EXAMPLE.