PostGIS 3.6.2dev-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 2410 of file shp2pgsql-gui.c.

2411{
2412 const char *text;
2413
2414 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_user));
2415 if (conn->username)
2416 free(conn->username);
2417
2418 if (strlen(text))
2419 conn->username = strdup(text);
2420 else
2421 conn->username = NULL;
2422
2423 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_pass));
2424 if (conn->password)
2425 free(conn->password);
2426
2427 if (strlen(text))
2428 conn->password = strdup(text);
2429 else
2430 conn->password = NULL;
2431
2432 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_host));
2433 if (conn->host)
2434 free(conn->host);
2435
2436 if (strlen(text))
2437 conn->host = strdup(text);
2438 else
2439 conn->host = NULL;
2440
2441 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_port));
2442 if (conn->port)
2443 free(conn->port);
2444
2445 if (strlen(text))
2446 conn->port = strdup(text);
2447 else
2448 conn->port = NULL;
2449
2450 text = gtk_entry_get_text(GTK_ENTRY(entry_pg_db));
2451 if (conn->database)
2452 free(conn->database);
2453
2454 if (strlen(text))
2455 conn->database = strdup(text);
2456 else
2457 conn->database = NULL;
2458
2459 return;
2460}
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: