1337{
1339 GtkTreeSelection *chooser_selection;
1340 GtkTreeModel *model;
1341 GList *selected_rows_list, *selected_row;
1342 GtkTreeIter iter;
1343 GtkTreePath *tree_path;
1344
1345
1347 {
1348 pgui_seterr(
_(
"Unable to connect to the database - please check your connection settings"));
1350
1351
1353
1355 return;
1356 }
1357
1358
1361
1362
1365 {
1366
1367 chooser_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(
chooser_tree));
1368
1369 selected_rows_list = gtk_tree_selection_get_selected_rows(chooser_selection, &model);
1370 selected_row = g_list_first(selected_rows_list);
1371 while (selected_row)
1372 {
1373
1374 tree_path = (GtkTreePath *)g_list_nth_data(selected_row, 0);
1375 gtk_tree_model_get_iter(model, &iter, tree_path);
1376
1377
1380
1381
1382 selected_row = g_list_next(selected_row);
1383 }
1384
1385
1386 g_list_foreach(selected_row, (GFunc)gtk_tree_path_free, NULL);
1387 g_list_free(selected_row);
1388 }
1389
1391}
static SHPDUMPERCONFIG * create_new_table_config(GtkTreeIter *iter)
static void static void static void static void pgui_seterr(const char *fmt,...) __attribute__((format(printf
static GtkWidget * dialog_tablechooser
static void update_table_chooser_from_database()
static void pgui_raise_error_dialogue(void)
static void static void static void static void static void update_conn_ui_from_conn_config(void)
GtkListStore * chooser_filtered_table_list_store
static void add_dumper_table_config_to_list(SHPDUMPERCONFIG *dumper_table_config, GtkListStore *chooser_liststore, GtkTreeIter *chooser_iter)
static int connection_test(void)
static GtkWidget * window_conn