From 31e27945492d82213c37616e44e8dea2e5999524 Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 6 Dec 2013 13:30:44 +0000 Subject: [PATCH] Ajustes em função do novo método de conexão --- security.c | 6 +++--- widget.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/security.c b/security.c index 9c2fc44..8d371a6 100644 --- a/security.c +++ b/security.c @@ -310,7 +310,7 @@ g_return_val_if_fail(GTK_IS_V3270(widget),""); if(lib3270_get_secure(GTK_V3270(widget)->host) == LIB3270_SSL_UNSECURE) - return v3270_get_host(widget); + return v3270_get_hostname(widget); #ifdef HAVE_LIBSSL if(lib3270_get_secure(GTK_V3270(widget)->host) != LIB3270_SSL_UNSECURE) @@ -320,7 +320,7 @@ return gettext(info->text); } #endif // HAVE_LIBSSL - return v3270_get_host(widget); + return v3270_get_hostname(widget); } LIB3270_EXPORT const gchar * v3270_get_ssl_status_message(GtkWidget *widget) @@ -362,7 +362,7 @@ GTK_DIALOG_MODAL|GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_INFO, GTK_BUTTONS_CLOSE, - "%s",v3270_get_host(widget) + "%s",v3270_get_hostname(widget) ); gtk_message_dialog_format_secondary_markup( diff --git a/widget.c b/widget.c index 256082e..38709e3 100644 --- a/widget.c +++ b/widget.c @@ -1495,7 +1495,7 @@ static void v3270_activate(GtkWidget *widget) if(lib3270_connected(terminal->host)) lib3270_enter(terminal->host); - else if(lib3270_get_host(terminal->host)) + else if(lib3270_get_hostname(terminal->host)) v3270_connect(widget,NULL); else 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) return lib3270_set_host(GTK_V3270(widget)->host,uri); } -const gchar * v3270_get_host(GtkWidget *widget) +const gchar * v3270_get_hostname(GtkWidget *widget) { g_return_val_if_fail(GTK_IS_V3270(widget),""); - return lib3270_get_host(GTK_V3270(widget)->host); + return lib3270_get_hostname(GTK_V3270(widget)->host); } const gchar * v3270_get_session_name(GtkWidget *widget) -- libgit2 0.21.2