1335{
1337 GtkTreeSelection *chooser_selection;
1338 GtkTreeModel *model;
1339 GList *selected_rows_list, *selected_row;
1340 GtkTreeIter iter;
1341 GtkTreePath *tree_path;
1342
1343
1345 {
1346 pgui_seterr(
_(
"Unable to connect to the database - please check your connection settings"));
1348
1349
1351
1353 return;
1354 }
1355
1356
1359
1360
1363 {
1364
1365 chooser_selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(
chooser_tree));
1366
1367 selected_rows_list = gtk_tree_selection_get_selected_rows(chooser_selection, &model);
1368 selected_row = g_list_first(selected_rows_list);
1369 while (selected_row)
1370 {
1371
1372 tree_path = (GtkTreePath *)g_list_nth_data(selected_row, 0);
1373 gtk_tree_model_get_iter(model, &iter, tree_path);
1374
1375
1378
1379
1380 selected_row = g_list_next(selected_row);
1381 }
1382
1383
1384 g_list_foreach(selected_row, (GFunc)gtk_tree_path_free, NULL);
1385 g_list_free(selected_row);
1386 }
1387
1389}
static void pgui_seterr(const char *fmt,...)
static SHPDUMPERCONFIG * create_new_table_config(GtkTreeIter *iter)
static GtkWidget * dialog_tablechooser
static void update_table_chooser_from_database()
static void pgui_raise_error_dialogue(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