~ubuntu-branches/ubuntu/vivid/latexila/vivid

« back to all changes in this revision

Viewing changes to src/build_view.vala

  • Committer: Bazaar Package Importer
  • Author(s): Tanguy Ortolo
  • Date: 2011-03-08 20:12:19 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110308201219-umwprmma6w4o205l
Tags: 2.0.6-1
* New upstream release (bug fixes). (Closes: #615844)
* debian/control: depend on rubber (a LaTeX IDE is almost useless if it
  cannot compile). (Closes: #617348)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        ICON,
49
49
        MESSAGE,
50
50
        MESSAGE_TYPE,
 
51
        WEIGHT,
51
52
        BASENAME,
52
53
        FILENAME,
53
54
        START_LINE,
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);
96
98
 
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);
100
104
 
101
105
        view.append_column (column_job);
102
106
 
194
198
    public void clear ()
195
199
    {
196
200
        store.clear ();
 
201
        view.columns_autosize ();
197
202
    }
198
203
 
199
 
    public TreeIter add_partition (string msg, PartitionState state, TreeIter? parent)
 
204
    public TreeIter add_partition (string msg, PartitionState state, TreeIter? parent,
 
205
        bool bold = false)
200
206
    {
201
207
        TreeIter iter;
202
208
        store.append (out iter, parent);
203
209
        store.set (iter,
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,
207
214
            -1);
208
215
 
209
216
        view.expand_all ();
223
230
            TreeIter iter;
224
231
            store.append (out iter, partition_id);
225
232
            store.set (iter,
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,
234
 
                BuildInfo.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,
236
244
                -1);
237
245
        }
238
246