Commit acfaf4f5f20f89f7ceef7b92c9dd7da94417f0f6

Authored by Perry Werneck
1 parent d72a21f5
Exists in master and in 1 other branch develop

Updaring lib3270 API calls.

src/v3270/accessible.c
... ... @@ -185,7 +185,7 @@ static gunichar v3270_accessible_get_character_at_offset(AtkText *atk_text, gint
185 185 if(widget == NULL)
186 186 {
187 187 H3270 * host = v3270_get_session(widget);
188   - gchar * text = lib3270_get_text(host,offset,1,'\n');
  188 + gchar * text = lib3270_get_string_at_address(host,offset,1,'\n');
189 189  
190 190 if(text)
191 191 {
... ... @@ -344,7 +344,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse
344 344 case ATK_TEXT_BOUNDARY_CHAR: // Boundary is the boundary between characters
345 345 // (including non-printing characters)
346 346  
347   - text = lib3270_get_text(host,offset,1,'\n');
  347 + text = lib3270_get_string_at_address(host,offset,1,'\n');
348 348 break;
349 349  
350 350 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
371 371 pos = (offset/cols)*cols;
372 372 if(pos == offset)
373 373 offset++;
374   - text = lib3270_get_text(host,pos,(offset-pos),'\n');
  374 + text = lib3270_get_string_at_address(host,pos,(offset-pos),'\n');
375 375 break;
376 376  
377 377  
... ... @@ -424,7 +424,7 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint
424 424 if(!lib3270_connected(host))
425 425 return g_strdup( "" );
426 426  
427   - text = lib3270_get_text(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos),'\n');
  427 + text = lib3270_get_string_at_address(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos),'\n');
428 428  
429 429 if(text)
430 430 {
... ...
src/v3270/selection.c
... ... @@ -96,7 +96,7 @@ gchar * v3270_get_text(GtkWidget *widget, int offset, int len)
96 96  
97 97 terminal = GTK_V3270(widget);
98 98  
99   - str = lib3270_get_text(terminal->host, offset, len, '\n');
  99 + str = lib3270_get_string_at_address(terminal->host, offset, len, '\n');
100 100  
101 101 if(!str)
102 102 return NULL;
... ...
src/v3270/widget.c
... ... @@ -813,7 +813,7 @@ static void changed(H3270 *session, int offset, int len)
813 813 {
814 814 // Get new text, notify atk
815 815 gsize bytes_written = 0;
816   - char * text = lib3270_get_text(session,offset,len,'\n');
  816 + char * text = lib3270_get_string_at_address(session,offset,len,'\n');
817 817  
818 818 if(text)
819 819 {
... ...