Commit 3cadc0992ae16c5d88e0a3ec0fa4aa6edfc58331

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

Incluindo opção para definir o delimitador de linha ao carregar o conteúdo da tela.

Showing 3 changed files with 6 additions and 6 deletions   Show diff stats
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);
  188 + gchar * text = lib3270_get_text(host,offset,1,'\n');
189 189  
190 190 if(text)
191 191 {
... ... @@ -346,7 +346,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse
346 346 case ATK_TEXT_BOUNDARY_CHAR: // Boundary is the boundary between characters
347 347 // (including non-printing characters)
348 348  
349   - text = lib3270_get_text(host,offset,1);
  349 + text = lib3270_get_text(host,offset,1,'\n');
350 350 break;
351 351  
352 352 case ATK_TEXT_BOUNDARY_WORD_START: // Boundary is the start (i.e. first character) of a word.
... ... @@ -373,7 +373,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse
373 373 pos = (offset/cols)*cols;
374 374 if(pos == offset)
375 375 offset++;
376   - text = lib3270_get_text(host,pos,(offset-pos));
  376 + text = lib3270_get_text(host,pos,(offset-pos),'\n');
377 377 break;
378 378  
379 379  
... ... @@ -426,7 +426,7 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint
426 426 if(!lib3270_connected(host))
427 427 return g_strdup( "" );
428 428  
429   - text = lib3270_get_text(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos));
  429 + text = lib3270_get_text(host,start_pos,end_pos < start_pos ? -1 : (end_pos - start_pos),'\n');
430 430  
431 431 if(text)
432 432 {
... ...
selection.c
... ... @@ -99,7 +99,7 @@ gchar * v3270_get_text(GtkWidget *widget, int offset, int len)
99 99  
100 100 terminal = GTK_V3270(widget);
101 101  
102   - str = lib3270_get_text(terminal->host, offset, len);
  102 + str = lib3270_get_text(terminal->host, offset, len, '\n');
103 103  
104 104 if(!str)
105 105 return NULL;
... ...
widget.c
... ... @@ -826,7 +826,7 @@ static void changed(H3270 *session, int offset, int len)
826 826 {
827 827 // Get new text, notify atk
828 828 gsize bytes_written = 0;
829   - char * text = lib3270_get_text(session,offset,len);
  829 + char * text = lib3270_get_text(session,offset,len,'\n');
830 830  
831 831 if(text)
832 832 {
... ...