~victored/noise/grid-view-optimizations-2

« back to all changes in this revision

Viewing changes to src/Views/ListView/Lists/TreeViewSetup.vala

  • Committer: RabbitBot
  • Author(s): xapantu
  • Date: 2014-07-03 18:00:40 UTC
  • mfrom: (1629.1.1 noise)
  • Revision ID: rabbitbot-20140703180040-xmetvcrkhdv4uvtj
Fix Build with Clang

Show diffs side-by-side

added added

removed removed

Lines of Context:
145
145
        return column;
146
146
    }
147
147
 
148
 
    public static ListColumn get_column_type (Gtk.TreeViewColumn column) {
 
148
    public static ListColumn? get_column_type (Gtk.TreeViewColumn column) {
149
149
        int type = column.get_data<int> (TYPE_DATA_KEY);
150
150
 
151
151
        if (type < 0) {
152
152
            critical ("get_column_type: Column '%s' has no associated type.", column.title); 
153
 
            return_if_reached ();
 
153
            return_val_if_reached (null);
154
154
        }
155
155
 
156
156
        return (ListColumn) type;