Fixed sorting of date
This commit is contained in:
parent
ee16f15a98
commit
8de6eda287
@ -141,8 +141,8 @@ static void mainWindow_configure_treeView(struct mainWindow *mainWindow)
|
|||||||
"text", COL_DATE_TEXT, NULL);
|
"text", COL_DATE_TEXT, NULL);
|
||||||
col = gtk_tree_view_get_column(mainWindow->entryListView, COL_DATE_TEXT);
|
col = gtk_tree_view_get_column(mainWindow->entryListView, COL_DATE_TEXT);
|
||||||
gtk_tree_view_column_set_resizable(col, 1);
|
gtk_tree_view_column_set_resizable(col, 1);
|
||||||
gtk_tree_sortable_set_sort_func(sortable, COL_TIMESTAMP, mainWindow_sort_date_compare_func,
|
gtk_tree_sortable_set_sort_func(sortable, COL_DATE_TEXT, mainWindow_sort_date_compare_func,
|
||||||
GINT_TO_POINTER(COL_TIMESTAMP), NULL);
|
GINT_TO_POINTER(COL_DATE_TEXT), NULL);
|
||||||
gtk_tree_view_column_set_sort_column_id(col, COL_DATE_TEXT);
|
gtk_tree_view_column_set_sort_column_id(col, COL_DATE_TEXT);
|
||||||
|
|
||||||
renderer = gtk_cell_renderer_text_new();
|
renderer = gtk_cell_renderer_text_new();
|
||||||
|
Loading…
Reference in New Issue
Block a user