From 02656a7a705cf0db1cc6c4e8e6b2671bee7f2a12 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sun, 20 Oct 2013 22:18:53 -0400 Subject: [PATCH] Use fixed font for ASCII column --- src/memwin.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/memwin.c b/src/memwin.c index 2c7fde1..4c8cc22 100644 --- a/src/memwin.c +++ b/src/memwin.c @@ -186,7 +186,9 @@ memwin_init_columns(GtkWidget *listview, int memory_id) gtk_tree_view_append_column(GTK_TREE_VIEW(listview), column); } - /* Add ASCII column */ + /* Add ASCII column, using fixed-font. */ + renderer = gtk_cell_renderer_text_new(); + g_object_set(renderer, "family", "Monospace", NULL); column = gtk_tree_view_column_new_with_attributes( "ASCII", renderer, "text", COL_ASCII, NULL); gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE); -- 2.20.1