77
78
typeof (string), // icon (stock-id)
78
79
typeof (string), // message
79
80
typeof (BuildMessageType),
81
typeof (int), // weight (normal or bold)
80
82
typeof (string), // basename
81
83
typeof (string), // filename
82
84
typeof (int), // start line
95
97
column_job.add_attribute (renderer_pixbuf, "stock-id", BuildInfo.ICON);
97
99
CellRendererText renderer_text = new CellRendererText ();
100
renderer_text.weight_set = true;
98
101
column_job.pack_start (renderer_text, true);
99
column_job.add_attribute (renderer_text, "markup", BuildInfo.MESSAGE);
102
column_job.add_attribute (renderer_text, "text", BuildInfo.MESSAGE);
103
column_job.add_attribute (renderer_text, "weight", BuildInfo.WEIGHT);
101
105
view.append_column (column_job);
194
198
public void clear ()
201
view.columns_autosize ();
199
public TreeIter add_partition (string msg, PartitionState state, TreeIter? parent)
204
public TreeIter add_partition (string msg, PartitionState state, TreeIter? parent,
202
208
store.append (out iter, parent);
204
BuildInfo.ICON, get_icon_from_state (state),
205
BuildInfo.MESSAGE, msg,
210
BuildInfo.ICON, get_icon_from_state (state),
211
BuildInfo.MESSAGE, msg,
206
212
BuildInfo.MESSAGE_TYPE, BuildMessageType.OTHER,
213
BuildInfo.WEIGHT, bold ? 800 : 400,
209
216
view.expand_all ();
224
231
store.append (out iter, partition_id);
226
BuildInfo.ICON, get_icon_from_msg_type (issue.message_type),
227
BuildInfo.MESSAGE, issue.message,
233
BuildInfo.ICON, get_icon_from_msg_type (issue.message_type),
234
BuildInfo.MESSAGE, issue.message,
228
235
BuildInfo.MESSAGE_TYPE, issue.message_type,
229
BuildInfo.BASENAME, issue.filename != null ?
230
Path.get_basename (issue.filename) : null,
231
BuildInfo.FILENAME, issue.filename,
232
BuildInfo.START_LINE, issue.start_line,
233
BuildInfo.END_LINE, issue.end_line,
235
issue.start_line != -1 ? issue.start_line.to_string () : null,
236
BuildInfo.WEIGHT, 400,
237
BuildInfo.BASENAME, issue.filename != null ?
238
Path.get_basename (issue.filename) : null,
239
BuildInfo.FILENAME, issue.filename,
240
BuildInfo.START_LINE, issue.start_line,
241
BuildInfo.END_LINE, issue.end_line,
242
BuildInfo.LINE, issue.start_line != -1 ?
243
issue.start_line.to_string () : null,