Update copyright information
[debian/pino.git] / debian / patches / 002_default-stock-icons.diff
1 --- a/src/tree_widget.vala
2 +++ b/src/tree_widget.vala
3 @@ -15,13 +15,24 @@
4         private Gdk.Pixbuf pix_updating;
5         
6         public Frame frame;
7 +
8 +       public Gdk.Pixbuf get_pixbuf_from_stock (string stock_id, Gtk.IconSize size) {
9 +
10 +               Gdk.Pixbuf pixbuf;
11 +               Gtk.Invisible w;
12 +     
13 +               w = new Gtk.Invisible ();
14 +               pixbuf = w.render_icon (stock_id, size, "vala");
15 +
16 +               return pixbuf;
17 +       }
18         
19         public TreeWidget(Window parent, Accounts accounts) {
20                 this.parent = parent;
21                 this.accounts = accounts;
22                 
23                 try {
24 -                       pix_account = new Gdk.Pixbuf.from_file("/usr/share/icons/Humanity/places/24/folder-videos.svg");
25 +                       pix_account = get_pixbuf_from_stock("folder-videos", Gtk.IconSize.SMALL_TOOLBAR);
26                         pix_updating = new Gdk.Pixbuf.from_file(Config.UPDATING_PATH);
27                 } catch(GLib.Error e) {
28                         debug(e.message);