Skip to content

Commit

Permalink
Fix #1468: shp2pgsql-gui table column schema get shifted
Browse files Browse the repository at this point in the history
A couple of copy/paste errors meant that the update handler was being invoked
a second time on the loader shapefile column name, rather than just once on
the schema column.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9644 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
Mark Cave-Ayland committed Apr 15, 2012
1 parent 6bfba6a commit 40f83bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions loader/shp2pgsql-gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -2965,7 +2965,7 @@ pgui_create_import_file_table(GtkWidget *import_list_frame)
"text",
IMPORT_TABLE_COLUMN,
NULL);
g_object_set(import_schema_column, "resizable", TRUE, "expand", TRUE, "sizing", GTK_TREE_VIEW_COLUMN_AUTOSIZE, NULL);
g_object_set(import_table_column, "resizable", TRUE, "expand", TRUE, "sizing", GTK_TREE_VIEW_COLUMN_AUTOSIZE, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(import_tree), import_table_column);

/* Geo column field */
Expand Down Expand Up @@ -3122,7 +3122,7 @@ pgui_create_export_table_table(GtkWidget *export_list_frame)
export_schema_renderer = gtk_cell_renderer_text_new();
g_object_set(export_schema_renderer, "editable", FALSE, NULL);
column_indexes[EXPORT_SCHEMA_COLUMN] = EXPORT_SCHEMA_COLUMN;
g_signal_connect(G_OBJECT(import_schema_renderer), "edited", G_CALLBACK(pgui_action_handle_loader_edit), &column_indexes[EXPORT_SCHEMA_COLUMN]);
g_signal_connect(G_OBJECT(export_schema_renderer), "edited", G_CALLBACK(pgui_action_handle_loader_edit), &column_indexes[EXPORT_SCHEMA_COLUMN]);
export_schema_column = gtk_tree_view_column_new_with_attributes(_("Schema"),
export_schema_renderer,
"text",
Expand Down

0 comments on commit 40f83bf

Please sign in to comment.