Commit 31e27945492d82213c37616e44e8dea2e5999524
1 parent
56e3b823
Exists in
master
and in
1 other branch
Ajustes em função do novo método de conexão
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
security.c
| ... | ... | @@ -310,7 +310,7 @@ |
| 310 | 310 | g_return_val_if_fail(GTK_IS_V3270(widget),""); |
| 311 | 311 | |
| 312 | 312 | if(lib3270_get_secure(GTK_V3270(widget)->host) == LIB3270_SSL_UNSECURE) |
| 313 | - return v3270_get_host(widget); | |
| 313 | + return v3270_get_hostname(widget); | |
| 314 | 314 | |
| 315 | 315 | #ifdef HAVE_LIBSSL |
| 316 | 316 | if(lib3270_get_secure(GTK_V3270(widget)->host) != LIB3270_SSL_UNSECURE) |
| ... | ... | @@ -320,7 +320,7 @@ |
| 320 | 320 | return gettext(info->text); |
| 321 | 321 | } |
| 322 | 322 | #endif // HAVE_LIBSSL |
| 323 | - return v3270_get_host(widget); | |
| 323 | + return v3270_get_hostname(widget); | |
| 324 | 324 | } |
| 325 | 325 | |
| 326 | 326 | LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget) |
| ... | ... | @@ -362,7 +362,7 @@ |
| 362 | 362 | GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, |
| 363 | 363 | GTK_MESSAGE_INFO, |
| 364 | 364 | GTK_BUTTONS_CLOSE, |
| 365 | - "%s",v3270_get_host(widget) | |
| 365 | + "%s",v3270_get_hostname(widget) | |
| 366 | 366 | ); |
| 367 | 367 | |
| 368 | 368 | gtk_message_dialog_format_secondary_markup( | ... | ... |
widget.c
| ... | ... | @@ -1495,7 +1495,7 @@ static void v3270_activate(GtkWidget *widget) |
| 1495 | 1495 | |
| 1496 | 1496 | if(lib3270_connected(terminal->host)) |
| 1497 | 1497 | lib3270_enter(terminal->host); |
| 1498 | - else if(lib3270_get_host(terminal->host)) | |
| 1498 | + else if(lib3270_get_hostname(terminal->host)) | |
| 1499 | 1499 | v3270_connect(widget,NULL); |
| 1500 | 1500 | else |
| 1501 | 1501 | g_warning("Terminal widget %p activated without connection or valid hostname",terminal); |
| ... | ... | @@ -1557,10 +1557,10 @@ const gchar * v3270_set_host(GtkWidget *widget, const gchar *uri) |
| 1557 | 1557 | return lib3270_set_host(GTK_V3270(widget)->host,uri); |
| 1558 | 1558 | } |
| 1559 | 1559 | |
| 1560 | -const gchar * v3270_get_host(GtkWidget *widget) | |
| 1560 | +const gchar * v3270_get_hostname(GtkWidget *widget) | |
| 1561 | 1561 | { |
| 1562 | 1562 | g_return_val_if_fail(GTK_IS_V3270(widget),""); |
| 1563 | - return lib3270_get_host(GTK_V3270(widget)->host); | |
| 1563 | + return lib3270_get_hostname(GTK_V3270(widget)->host); | |
| 1564 | 1564 | } |
| 1565 | 1565 | |
| 1566 | 1566 | const gchar * v3270_get_session_name(GtkWidget *widget) | ... | ... |