projects
/
emu8051.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Save vpane position for memory windows
[emu8051.git]
/
src
/
pgmwin.c
diff --git
a/src/pgmwin.c
b/src/pgmwin.c
index
aae6afc
..
04cff15
100644
(file)
--- a/
src/pgmwin.c
+++ b/
src/pgmwin.c
@@
-33,7
+33,7
@@
static GtkWidget *pgmlist;
static GtkWidget *pgmlist;
-#define DATA_ROWS
24
+#define DATA_ROWS
100
enum
{
enum
{
@@
-64,7
+64,7
@@
static GtkListStore *
pgmwin_init_store(void)
{
GtkTreeIter iter;
pgmwin_init_store(void)
{
GtkTreeIter iter;
- int row
s
;
+ int row;
int col;
GtkListStore *store;
GType col_types[N_COLUMNS];
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);
store = gtk_list_store_newv(N_COLUMNS, col_types);
- /*
Initialize with rows of dummy data..
. */
- for (row
s = 0; rows < DATA_ROWS; rows
++) {
+ /*
Add rows
. */
+ for (row
= 0; row < DATA_ROWS; row
++) {
gtk_list_store_append(store, &iter);
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);
gtk_list_store_set(store, &iter, COL_COLOR, "red", -1);
- } else {
+ else
gtk_list_store_set(store, &iter, COL_COLOR, "black", -1);
gtk_list_store_set(store, &iter, COL_COLOR, "black", -1);
- }
}
return store;
}
return store;