]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Make OTU column invisible by default
authorDirk Hohndel <dirk@hohndel.org>
Mon, 26 Sep 2011 23:05:24 +0000 (16:05 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Mon, 26 Sep 2011 23:05:24 +0000 (16:05 -0700)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
divelist.c

index 13257a437173672cb21b67da32a9657b54ea066d..bb2a3e3a101a44017b28a7a6640a7d350e74218e 100644 (file)
@@ -469,7 +469,7 @@ typedef void (*data_func_t)(GtkTreeViewColumn *col,
                            gpointer data);
 
 static GtkTreeViewColumn *divelist_column(struct DiveList *dl, int index, const char *title,
-                                       data_func_t data_func, PangoAlignment align)
+                                       data_func_t data_func, PangoAlignment align, gboolean visible)
 {
        GtkCellRenderer *renderer;
        GtkTreeViewColumn *col;
@@ -499,6 +499,7 @@ static GtkTreeViewColumn *divelist_column(struct DiveList *dl, int index, const
                break;
        }
        gtk_cell_renderer_set_alignment(GTK_CELL_RENDERER(renderer), xalign, 0.5);
+       gtk_tree_view_column_set_visible(col, visible);
        gtk_tree_view_append_column(GTK_TREE_VIEW(dl->tree_view), col);
        return col;
 }