diff --git a/ChangeLog b/ChangeLog index c8b19ca..b45b913 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jun 16 17:35:07 EDT 2004 Brian Bruns + * src/gmdb2/file.c: initialize default backend + * src/gmdb2/table_def.c: replace reference to mdb_access_types structure with call to mdb_get_coltype_string() + Mon Jun 14 22:52:00 CDT 2004 Jeff Smith * src/libmdb/table.c: Fix bug in column name ordering diff --git a/src/gmdb2/file.c b/src/gmdb2/file.c index f645c7c..fcdfc0a 100644 --- a/src/gmdb2/file.c +++ b/src/gmdb2/file.c @@ -52,7 +52,7 @@ int i, index=0; } g_free(text); } - printf("found file %slocation at menu %d\n",file_path, index); + /* printf("found file %slocation at menu %d\n",file_path, index); */ /* it is the most recently used file, we're done */ if (index==1) return; @@ -112,6 +112,7 @@ gmdb_file_open(gchar *file_path) gnome_warning_dialog("Unable to open file."); return; } + mdb_set_default_backend(mdb, "access"); gmdb_file_shuffle_recent(file_path); gmdb_file_add_recent(file_path); diff --git a/src/gmdb2/table_def.c b/src/gmdb2/table_def.c index c50699d..39843a8 100644 --- a/src/gmdb2/table_def.c +++ b/src/gmdb2/table_def.c @@ -20,7 +20,6 @@ extern GtkWidget *app; extern MdbHandle *mdb; -extern char *mdb_access_types[]; typedef struct GMdbDefWindow { gchar table_name[MDB_MAX_OBJ_NAME]; @@ -113,7 +112,7 @@ GtkStyle *style; strcpy(row[0],""); sprintf(row[1],"%d", col->col_num+1); strcpy(row[2],col->name); - strcpy(row[3],mdb_access_types[col->col_type]); + strcpy(row[3], mdb_get_coltype_string(mdb->default_backend, col->col_type)); sprintf(row[4],"%d",col->col_size); if (col->is_fixed) { strcpy(row[5],"No"); @@ -127,7 +126,6 @@ GtkStyle *style; &mask, &style->bg[GTK_STATE_NORMAL], GMDB_ICONDIR "pk.xpm"); - printf("pixmap %lu\n",pixmap); //pixmap = gdk_pixmap_colormap_create_from_xpm_d( NULL, //gtk_widget_get_colormap(app), &mask, NULL, pk_xpm);