fix broken table definition window in gmdb2 after backend change

This commit is contained in:
brianb 2004-06-16 22:28:04 +00:00
parent 12ba2ed72f
commit 5a97646da0
3 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Wed Jun 16 17:35:07 EDT 2004 Brian Bruns <brian@bruns.com>
* 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 <whydoubt@yahoo.com>
* src/libmdb/table.c: Fix bug in column name ordering

View File

@ -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);

View File

@ -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);