~ubuntu-branches/ubuntu/saucy/blam/saucy

« back to all changes in this revision

Viewing changes to src/ItemList.cs

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Martín Nieto
  • Date: 2011-05-31 01:36:47 UTC
  • mto: (1.1.8 upstream) (2.2.5 sid)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20110531013647-dt9ij4zj9f9wg6uk
Import upstream version 1.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
        CellRendererPixbuf cell2 = new CellRendererPixbuf();
48
48
        iconColumn = new TreeViewColumn();
49
49
        iconColumn.PackStart(cell2, true);
50
 
        iconColumn  .Sizing = TreeViewColumnSizing.Autosize;
 
50
        iconColumn.Sizing = TreeViewColumnSizing.GrowOnly;
51
51
        iconColumn.Expand = false;
52
52
        iconColumn.SetCellDataFunc(cell2,
53
53
                   new TreeCellDataFunc(IconCellDataFunc));
287
287
        string icon = null;
288
288
 
289
289
        if(item.Unread == true){
290
 
            icon = "stock_book_red";
 
290
            icon = Gnome.Stock.BookRed;
291
291
        } else {
292
 
            icon = "stock_book_open";
 
292
            icon = Gnome.Stock.BookOpen;
293
293
        }
294
294
 
295
295
        if(item.Old == true && item.Unread == true){
296
 
            icon = "stock_book_green";
 
296
            icon = Gnome.Stock.BookGreen;
297
297
        }
298
298
 
299
299
        if((cell as CellRendererPixbuf).IconName != icon){