PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ update_conn_ui_from_conn_config()

static void update_conn_ui_from_conn_config ( void  )
static

Definition at line 2371 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_details(), pgui_action_export(), pgui_action_import(), and pgui_action_open_table_dialog().

2372 {
2373  if (conn->username)
2374  gtk_entry_set_text(GTK_ENTRY(entry_pg_user), conn->username);
2375  else
2376  gtk_entry_set_text(GTK_ENTRY(entry_pg_user), "");
2377 
2378  if (conn->password)
2379  gtk_entry_set_text(GTK_ENTRY(entry_pg_pass), conn->password);
2380  else
2381  gtk_entry_set_text(GTK_ENTRY(entry_pg_pass), "");
2382 
2383  if (conn->host)
2384  gtk_entry_set_text(GTK_ENTRY(entry_pg_host), conn->host);
2385  else
2386  gtk_entry_set_text(GTK_ENTRY(entry_pg_host), "");
2387 
2388  if (conn->port)
2389  gtk_entry_set_text(GTK_ENTRY(entry_pg_port), conn->port);
2390  else
2391  gtk_entry_set_text(GTK_ENTRY(entry_pg_port), "");
2392 
2393  if (conn->database)
2394  gtk_entry_set_text(GTK_ENTRY(entry_pg_db), conn->database);
2395  else
2396  gtk_entry_set_text(GTK_ENTRY(entry_pg_db), "");
2397 
2398  return;
2399 }
static GtkWidget * entry_pg_db
static GtkWidget * entry_pg_host
static SHPCONNECTIONCONFIG * conn
static GtkWidget * entry_pg_port
static GtkWidget * entry_pg_user
Definition: shp2pgsql-gui.c:99
static GtkWidget * entry_pg_pass
Here is the caller graph for this function: