~noskcaj/ubuntu/saucy/sflphone/merge-1.2.3-2

« back to all changes in this revision

Viewing changes to gnome/src/icons/README

  • Committer: Package Import Robot
  • Author(s): Francois Marier
  • Date: 2012-02-18 21:47:09 UTC
  • mfrom: (1.1.6)
  • Revision ID: package-import@ubuntu.com-20120218214709-6362d71gqdsdkrj5
Tags: 1.0.2-1
* New upstream release
  - remove logging patch (applied upstream)
  - update s390 patch since it was partially applied upstream
* Include the Evolution plugin as a separate binary package

* Fix compilation issues on SH4 (closes: #658987)
* Merge Ubuntu's binutils-gold linking fix

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
To add a svg icon as a stock icon:
2
2
 
3
 
1. Dump the raw data from the svg: 
 
3
1. Dump the raw data from the svg:
4
4
gdk-pixbuf-csource --raw --name=gnome_stock_example example.svg
5
5
 
6
6
2. Copy the output in the file sflphone-client-gnome/src/icons/pixmaps_data.h
11
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
12
  add_icon (factory, GTK_STOCK_EXAMPLE, gnome_stock_example, GTK_ICON_SIZE_SMALL_TOOLBAR)
13
13
 
14
 
  You may now use this icon in the code just like a GTK stock icon, the stock id being GTK_STOCK_EXAMPLE. 
 
14
  You may now use this icon in the code just like a GTK stock icon, the stock id being GTK_STOCK_EXAMPLE.