Skip to content

Commit

Permalink
Remove auto-resizing columns from text fields in shp2pgsql-gui as the…
Browse files Browse the repository at this point in the history
…y seem to be the cause of #1881.

git-svn-id: http://svn.osgeo.org/postgis/trunk@9971 b70326c6-7e19-0410-871a-916f4a2858ee
  • Loading branch information
Mark Cave-Ayland committed Jun 21, 2012
1 parent 5f01476 commit 19cc966
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions loader/shp2pgsql-gui.c
Original file line number Diff line number Diff line change
Expand Up @@ -2952,7 +2952,7 @@ pgui_create_import_file_table(GtkWidget *import_list_frame)
"text",
IMPORT_SCHEMA_COLUMN,
NULL);
g_object_set(import_schema_column, "resizable", TRUE, "expand", TRUE, "sizing", GTK_TREE_VIEW_COLUMN_AUTOSIZE, NULL);
g_object_set(import_schema_column, "resizable", TRUE, "expand", TRUE, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(import_tree), import_schema_column);

/* Table Field */
Expand All @@ -2965,7 +2965,7 @@ pgui_create_import_file_table(GtkWidget *import_list_frame)
"text",
IMPORT_TABLE_COLUMN,
NULL);
g_object_set(import_table_column, "resizable", TRUE, "expand", TRUE, "sizing", GTK_TREE_VIEW_COLUMN_AUTOSIZE, NULL);
g_object_set(import_table_column, "resizable", TRUE, "expand", TRUE, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(import_tree), import_table_column);

/* Geo column field */
Expand All @@ -2978,7 +2978,7 @@ pgui_create_import_file_table(GtkWidget *import_list_frame)
"text",
IMPORT_GEOMETRY_COLUMN,
NULL);
g_object_set(import_geom_column, "resizable", TRUE, "expand", TRUE, "sizing", GTK_TREE_VIEW_COLUMN_AUTOSIZE, NULL);
g_object_set(import_geom_column, "resizable", TRUE, "expand", TRUE, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(import_tree), import_geom_column);

/* SRID Field */
Expand All @@ -2991,7 +2991,7 @@ pgui_create_import_file_table(GtkWidget *import_list_frame)
"text",
IMPORT_SRID_COLUMN,
NULL);
g_object_set(import_srid_column, "resizable", TRUE, "expand", TRUE, "sizing", GTK_TREE_VIEW_COLUMN_AUTOSIZE, NULL);
g_object_set(import_srid_column, "resizable", TRUE, "expand", TRUE, NULL);
gtk_tree_view_append_column(GTK_TREE_VIEW(import_tree), import_srid_column);

/* Mode Combo Field */
Expand Down

0 comments on commit 19cc966

Please sign in to comment.