Code cleanup
This commit is contained in:
parent
a417d6aedb
commit
de2b5fd7f4
|
@ -1,5 +1,5 @@
|
|||
/* $Id$ */
|
||||
/* Copyright (c) 2012 Pierre Pronchery <khorben@defora.org> */
|
||||
/* Copyright (c) 2011-2013 Pierre Pronchery <khorben@defora.org> */
|
||||
/* This file is part of DeforaOS Desktop Browser */
|
||||
/* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -42,7 +42,7 @@ typedef struct _BrowserPlugin
|
|||
|
||||
enum _DirtreeColumn
|
||||
{
|
||||
DC_ICON,
|
||||
DC_ICON = 0,
|
||||
DC_NAME,
|
||||
DC_PATH,
|
||||
DC_UPDATED
|
||||
|
@ -131,12 +131,12 @@ static Dirtree * _dirtree_init(BrowserPluginHelper * helper)
|
|||
/* columns */
|
||||
renderer = gtk_cell_renderer_pixbuf_new();
|
||||
column = gtk_tree_view_column_new_with_attributes(NULL, renderer,
|
||||
"pixbuf", 0, NULL);
|
||||
"pixbuf", DC_ICON, NULL);
|
||||
gtk_tree_view_column_set_expand(column, FALSE);
|
||||
gtk_tree_view_append_column(GTK_TREE_VIEW(dirtree->view), column);
|
||||
renderer = gtk_cell_renderer_text_new();
|
||||
column = gtk_tree_view_column_new_with_attributes(NULL, renderer,
|
||||
"text", 1, NULL);
|
||||
"text", DC_NAME, NULL);
|
||||
gtk_tree_view_column_set_sort_column_id(column, 1);
|
||||
gtk_tree_view_append_column(GTK_TREE_VIEW(dirtree->view), column);
|
||||
/* selection */
|
||||
|
|
Loading…
Reference in New Issue
Block a user