aboutsummaryrefslogtreecommitdiffstats
path: root/vconsole.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-09-13 15:41:00 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-09-13 15:41:00 +0200
commit4e7ddbbe5994297f383149cb85c949b670c697c9 (patch)
tree0dfe70909b15643a54122c21faba70f9d8fdf508 /vconsole.c
parentd6af7727d1defbc0b7a44b704deeeae4965c4409 (diff)
downloadvconsole-4e7ddbbe5994297f383149cb85c949b670c697c9.tar.gz
colorize domain list a bit
Diffstat (limited to 'vconsole.c')
-rw-r--r--vconsole.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/vconsole.c b/vconsole.c
index e187814..8fac4f4 100644
--- a/vconsole.c
+++ b/vconsole.c
@@ -761,12 +761,14 @@ static void vconsole_tab_list_create(struct vconsole_window *win)
/* store & view */
win->store = gtk_tree_store_new(N_COLUMNS,
- G_TYPE_STRING, // NAME_COL
- G_TYPE_POINTER, // CPTR_COL
- G_TYPE_STRING, // URI_COL
- G_TYPE_POINTER, // DPTR_COL
- G_TYPE_STRING, // ID_COL
- G_TYPE_STRING); // STATE_COL
+ G_TYPE_STRING, // NAME_COL
+ G_TYPE_POINTER, // CPTR_COL
+ G_TYPE_STRING, // URI_COL
+ G_TYPE_POINTER, // DPTR_COL
+ G_TYPE_STRING, // ID_COL
+ G_TYPE_STRING, // STATE_COL
+ G_TYPE_STRING, // FOREGROUND_COL
+ G_TYPE_INT); // WEIGHT_COL
sortable = GTK_TREE_SORTABLE(win->store);
win->tree = gtk_tree_view_new_with_model(GTK_TREE_MODEL(win->store));
@@ -779,6 +781,8 @@ static void vconsole_tab_list_create(struct vconsole_window *win)
column = gtk_tree_view_column_new_with_attributes("Name",
renderer,
"text", NAME_COL,
+ "weight", WEIGHT_COL,
+ "foreground", FOREGROUND_COL,
NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(win->tree), column);
gtk_tree_sortable_set_sort_func(sortable, NAME_COL,