PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ update_conn_config_from_conn_ui()

static void update_conn_config_from_conn_ui ( void  )
static

Definition at line 2435 of file shp2pgsql-gui.c.

2436{
2437 const char *text;
2438
2439 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_user));
2440 if (conn->username)
2441 free(conn->username);
2442
2443 if (strlen(text))
2444 conn->username = strdup(text);
2445 else
2446 conn->username = NULL;
2447
2448 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_pass));
2449 if (conn->password)
2450 free(conn->password);
2451
2452 if (strlen(text))
2453 conn->password = strdup(text);
2454 else
2455 conn->password = NULL;
2456
2457 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_host));
2458 if (conn->host)
2459 free(conn->host);
2460
2461 if (strlen(text))
2462 conn->host = strdup(text);
2463 else
2464 conn->host = NULL;
2465
2466 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_port));
2467 if (conn->port)
2468 free(conn->port);
2469
2470 if (strlen(text))
2471 conn->port = strdup(text);
2472 else
2473 conn->port = NULL;
2474
2475 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_db));
2476 if (conn->database)
2477 free(conn->database);
2478
2479 if (strlen(text))
2480 conn->database = strdup(text);
2481 else
2482 conn->database = NULL;
2483
2484 return;
2485}
void free(void *)
static GtkWidget * entry_pg_port
static GtkWidget * entry_pg_host
static GtkWidget * entry_pg_user
static GtkWidget * entry_pg_db
static GtkWidget * entry_pg_pass
static SHPCONNECTIONCONFIG * conn

References conn, shp_connection_state::database, entry_pg_db, entry_pg_host, entry_pg_pass, entry_pg_port, entry_pg_user, free(), shp_connection_state::host, shp_connection_state::password, shp_connection_state::port, and shp_connection_state::username.

Referenced by pgui_action_connection_okay().

Here is the call graph for this function:
Here is the caller graph for this function: