From: Hugo Villeneuve Date: Mon, 21 Oct 2013 02:18:53 +0000 (-0400) Subject: Use fixed font for ASCII column X-Git-Tag: v2.0.0~116 X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=02656a7a705cf0db1cc6c4e8e6b2671bee7f2a12;p=emu8051.git Use fixed font for ASCII column --- 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);