PostGIS  2.1.10dev-r@@SVN_REVISION@@
static void update_conn_config_from_conn_ui ( void  )
static

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

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

Referenced by pgui_action_connection_okay().

2398 {
2399  const char *text;
2400 
2401  text = gtk_entry_get_text(GTK_ENTRY(entry_pg_user));
2402  if (conn->username)
2403  free(conn->username);
2404 
2405  if (strlen(text))
2406  conn->username = strdup(text);
2407  else
2408  conn->username = NULL;
2409 
2410  text = gtk_entry_get_text(GTK_ENTRY(entry_pg_pass));
2411  if (conn->password)
2412  free(conn->password);
2413 
2414  if (strlen(text))
2415  conn->password = strdup(text);
2416  else
2417  conn->password = NULL;
2418 
2419  text = gtk_entry_get_text(GTK_ENTRY(entry_pg_host));
2420  if (conn->host)
2421  free(conn->host);
2422 
2423  if (strlen(text))
2424  conn->host = strdup(text);
2425  else
2426  conn->host = NULL;
2427 
2428  text = gtk_entry_get_text(GTK_ENTRY(entry_pg_port));
2429  if (conn->port)
2430  free(conn->port);
2431 
2432  if (strlen(text))
2433  conn->port = strdup(text);
2434  else
2435  conn->port = NULL;
2436 
2437  text = gtk_entry_get_text(GTK_ENTRY(entry_pg_db));
2438  if (conn->database)
2439  free(conn->database);
2440 
2441  if (strlen(text))
2442  conn->database = strdup(text);
2443  else
2444  conn->database = NULL;
2445 
2446  return;
2447 }
static GtkWidget * entry_pg_db
static GtkWidget * entry_pg_host
static SHPCONNECTIONCONFIG * conn
static GtkWidget * entry_pg_port
static GtkWidget * entry_pg_user
static GtkWidget * entry_pg_pass

Here is the caller graph for this function: