Commit 3cadc0992ae16c5d88e0a3ec0fa4aa6edfc58331
1 parent
263ded01
Exists in
master
and in
1 other branch
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,7 +185,7 @@ static gunichar v3270_accessible_get_character_at_offset(AtkText *atk_text, gint | ||
185 | if(widget == NULL) | 185 | if(widget == NULL) |
186 | { | 186 | { |
187 | H3270 * host = v3270_get_session(widget); | 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 | if(text) | 190 | if(text) |
191 | { | 191 | { |
@@ -346,7 +346,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse | @@ -346,7 +346,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse | ||
346 | case ATK_TEXT_BOUNDARY_CHAR: // Boundary is the boundary between characters | 346 | case ATK_TEXT_BOUNDARY_CHAR: // Boundary is the boundary between characters |
347 | // (including non-printing characters) | 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 | break; | 350 | break; |
351 | 351 | ||
352 | case ATK_TEXT_BOUNDARY_WORD_START: // Boundary is the start (i.e. first character) of a word. | 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,7 +373,7 @@ static gchar * v3270_accessible_get_text_at_offset(AtkText *atk_text, gint offse | ||
373 | pos = (offset/cols)*cols; | 373 | pos = (offset/cols)*cols; |
374 | if(pos == offset) | 374 | if(pos == offset) |
375 | offset++; | 375 | offset++; |
376 | - text = lib3270_get_text(host,pos,(offset-pos)); | 376 | + text = lib3270_get_text(host,pos,(offset-pos),'\n'); |
377 | break; | 377 | break; |
378 | 378 | ||
379 | 379 | ||
@@ -426,7 +426,7 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint | @@ -426,7 +426,7 @@ static gchar * v3270_accessible_get_text(AtkText *atk_text, gint start_pos, gint | ||
426 | if(!lib3270_connected(host)) | 426 | if(!lib3270_connected(host)) |
427 | return g_strdup( "" ); | 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 | if(text) | 431 | if(text) |
432 | { | 432 | { |
selection.c
@@ -99,7 +99,7 @@ gchar * v3270_get_text(GtkWidget *widget, int offset, int len) | @@ -99,7 +99,7 @@ gchar * v3270_get_text(GtkWidget *widget, int offset, int len) | ||
99 | 99 | ||
100 | terminal = GTK_V3270(widget); | 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 | if(!str) | 104 | if(!str) |
105 | return NULL; | 105 | return NULL; |
widget.c
@@ -826,7 +826,7 @@ static void changed(H3270 *session, int offset, int len) | @@ -826,7 +826,7 @@ static void changed(H3270 *session, int offset, int len) | ||
826 | { | 826 | { |
827 | // Get new text, notify atk | 827 | // Get new text, notify atk |
828 | gsize bytes_written = 0; | 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 | if(text) | 831 | if(text) |
832 | { | 832 | { |