From acfaf4f5f20f89f7ceef7b92c9dd7da94417f0f6 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 27 Dec 2018 10:12:23 -0200 Subject: [PATCH] Updaring lib3270 API calls. --- src/v3270/accessible.c | 8 ++++---- src/v3270/selection.c | 2 +- src/v3270/widget.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/v3270/accessible.c b/src/v3270/accessible.c index 1ba388c..cb435b2 100644 --- a/src/v3270/accessible.c +++ b/src/v3270/accessible.c @@ -185,7 +185,7 @@ static gunichar v3270_accessible_get_character_at_offset(AtkText *atk_text, gint if(widget == NULL) { H3270 * host = v3270_get_session(widget); - gchar * text = lib3270_get_text(host,offset,1,'\n'); + gchar * text = lib3270_get_string_at_address(host,offset,1,'\n'); if(text) { @@ -344,7 +344,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse case ATK_TEXT_BOUNDARY_CHAR: // Boundary is the boundary between characters // (including non-printing characters) - text = lib3270_get_text(host,offset,1,'\n'); + text = lib3270_get_string_at_address(host,offset,1,'\n'); break; case ATK_TEXT_BOUNDARY_WORD_START: // Boundary is the start (i.e. first character) of a word. @@ -371,7 +371,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse pos = (offset/cols)*cols; if(pos == offset) offset++; - text = lib3270_get_text(host,pos,(offset-pos),'\n'); + text = lib3270_get_string_at_address(host,pos,(offset-pos),'\n'); break; @@ -424,7 +424,7 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint if(!lib3270_connected(host)) return g_strdup( "" ); - text = lib3270_get_text(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos),'\n'); + text = lib3270_get_string_at_address(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos),'\n'); if(text) { diff --git a/src/v3270/selection.c b/src/v3270/selection.c index ae072fb..e83b6ae 100644 --- a/src/v3270/selection.c +++ b/src/v3270/selection.c @@ -96,7 +96,7 @@ gchar * v3270_get_text(GtkWidget *widget, int offset, int len) terminal = GTK_V3270(widget); - str = lib3270_get_text(terminal->host, offset, len, '\n'); + str = lib3270_get_string_at_address(terminal->host, offset, len, '\n'); if(!str) return NULL; diff --git a/src/v3270/widget.c b/src/v3270/widget.c index 6a8129f..834a6fc 100644 --- a/src/v3270/widget.c +++ b/src/v3270/widget.c @@ -813,7 +813,7 @@ static void changed(H3270 *session, int offset, int len) { // Get new text, notify atk gsize bytes_written = 0; - char * text = lib3270_get_text(session,offset,len,'\n'); + char * text = lib3270_get_string_at_address(session,offset,len,'\n'); if(text) { -- libgit2 0.21.2