From e4b55113aaeea94662c107e1c672271af4c13561 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 10 Jan 2006 20:04:55 +0000 Subject: [PATCH] r4299: Use a monospace font for the size and permissions columsn in the list view (Andras Mohari). --- ROX-Filer/Help/Changes | 5 +++++ ROX-Filer/src/view_details.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ROX-Filer/Help/Changes b/ROX-Filer/Help/Changes index 5d5a9397..2ba01fbf 100644 --- a/ROX-Filer/Help/Changes +++ b/ROX-Filer/Help/Changes @@ -2,6 +2,11 @@ A RISC OS-like filer for X by Thomas Leonard +10-Jan-2006 +~~~~~~~~~~~ +Use a monospace font for the size and permissions columsn in the list view +(Andras Mohari). + 30-Dec-2005 (Release 2.4.1) ~~~~~~~~~~~ Updated Estonian translation (Teet Tärno). diff --git a/ROX-Filer/src/view_details.c b/ROX-Filer/src/view_details.c index a89f7a81..c84f3c7f 100644 --- a/ROX-Filer/src/view_details.c +++ b/ROX-Filer/src/view_details.c @@ -1016,11 +1016,13 @@ static void view_details_init(GTypeInstance *object, gpointer gclass) gtk_tree_view_column_set_sort_column_id(column, COL_TYPE); gtk_tree_view_column_set_resizable(column, TRUE); ADD_TEXT_COLUMN(_("_Permissions"), COL_PERM); + g_object_set(G_OBJECT(cell), "font", "monospace", NULL); ADD_TEXT_COLUMN(_("_Owner"), COL_OWNER); gtk_tree_view_column_set_sort_column_id(column, COL_OWNER); ADD_TEXT_COLUMN(_("_Group"), COL_GROUP); gtk_tree_view_column_set_sort_column_id(column, COL_GROUP); ADD_TEXT_COLUMN(_("_Size"), COL_SIZE); + g_object_set(G_OBJECT(cell), "xalign", 1.0, "font", "monospace", NULL); gtk_tree_view_column_set_sort_column_id(column, COL_SIZE); ADD_TEXT_COLUMN(_("Last _Modified"), COL_MTIME); gtk_tree_view_column_set_sort_column_id(column, COL_MTIME); -- 2.11.4.GIT