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

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