mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
updates for rpms lots o bug fixes, index stuff
This commit is contained in:
@@ -44,6 +44,7 @@ MdbColumn *col;
|
||||
GtkWidget *clist;
|
||||
GtkWidget *scroll;
|
||||
int i, rownum;
|
||||
long row, maxrow;
|
||||
gchar *bound_data[256];
|
||||
GMdbDataWindow *dataw = NULL;
|
||||
|
||||
@@ -97,8 +98,13 @@ GMdbDataWindow *dataw = NULL;
|
||||
}
|
||||
gtk_clist_column_titles_show(GTK_CLIST(clist));
|
||||
|
||||
maxrow = gmdb_prefs_get_maxrows();
|
||||
|
||||
/* fetch those rows! */
|
||||
while(mdb_fetch_row(table)) {
|
||||
row = 0;
|
||||
while(mdb_fetch_row(table) &&
|
||||
(!maxrow || (row < maxrow))) {
|
||||
row++;
|
||||
rownum = gtk_clist_append(GTK_CLIST(clist), bound_data);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user