X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=src%2Fpgmwin.c;h=04cff15ab41fee0b2c2f86468e4bf6a6d76dbf44;hb=1aa4da2dd777823a4aa5f40cf8cf7b1c09401a34;hp=aae6afcddeec1a2c078f0c7d50852d32fce8cb2c;hpb=7f00cb821f034e36d7b44c9915385cc8afd9680b;p=emu8051.git diff --git a/src/pgmwin.c b/src/pgmwin.c index aae6afc..04cff15 100644 --- a/src/pgmwin.c +++ b/src/pgmwin.c @@ -33,7 +33,7 @@ static GtkWidget *pgmlist; -#define DATA_ROWS 24 +#define DATA_ROWS 100 enum { @@ -64,7 +64,7 @@ static GtkListStore * pgmwin_init_store(void) { GtkTreeIter iter; - int rows; + int row; int col; GtkListStore *store; GType col_types[N_COLUMNS]; @@ -75,15 +75,15 @@ pgmwin_init_store(void) store = gtk_list_store_newv(N_COLUMNS, col_types); - /* Initialize with rows of dummy data... */ - for (rows = 0; rows < DATA_ROWS; rows++) { + /* Add rows. */ + for (row = 0; row < DATA_ROWS; row++) { gtk_list_store_append(store, &iter); - if (rows == 0) { - /* Color first row in red (current instruction). */ + + /* Color first row in red (current instruction). */ + if (row == 0) gtk_list_store_set(store, &iter, COL_COLOR, "red", -1); - } else { + else gtk_list_store_set(store, &iter, COL_COLOR, "black", -1); - } } return store;