~njpatel/gwibber/libgwibber-client

« back to all changes in this revision

Viewing changes to client/gwibber-client.vala

  • Committer: Neil Jagdish Patel
  • Date: 2010-12-20 21:49:39 UTC
  • Revision ID: neil.patel@canonical.com-20101220214939-r9w9epiykp563y6s
Make work with latest dee

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
  Dee.Model model;
64
64
 
65
 
  model = new Dee.SequenceModel (7,
66
 
                                 typeof (uint),
67
 
                                 typeof (string),
68
 
                                 typeof (string),
69
 
                                 typeof (uint),
70
 
                                 typeof (string),
71
 
                                 typeof (string),
72
 
                                 typeof (string));
 
65
  model = new Dee.SequenceModel ();
 
66
  model.set_schema ("u", "s", "s", "u", "s", "s", "s");
73
67
 
74
68
  for (uint i = 0; i < MAX_ROWS; i++)
75
69
    {
76
 
      model.append (0, i,
77
 
                    1, "Twitter",
78
 
                    2, names[i % 10],
79
 
                    3, 0,
80
 
                    4, messages[i % 10],
81
 
                    5, "stock_person",
82
 
                    6, colors[i % 10],
83
 
                    -1);
 
70
      model.append (i,
 
71
                    "Twitter",
 
72
                    names[i % 10],
 
73
                    0,
 
74
                    messages[i % 10],
 
75
                    "stock_person",
 
76
                    colors[i % 10]);
84
77
    }
85
78
 
86
79
  return model.ref () as Dee.Model;
243
236
    cr.set_operator (Cairo.Operator.CLEAR);
244
237
    cr.paint ();
245
238
 
246
 
    cr.set_source_rgba (242/255.0f, 241/255.0f, 240/255.0f, 0.85f);
 
239
    cr.set_source_rgba (60/255.0f, 59/255.0f, 55/255.0f, 0.85f);
247
240
    cr.set_operator (Cairo.Operator.OVER);
248
241
    cr.paint ();
249
242