c - Display string with newline characters in GtkTextView -


i used code display string gtktextview object:

btsel(database, word, meaning, 50000, &rsize); //b-tree gtk_text_buffer_set_text(buffer, meaning, -1); 

problem showed entire string without parsing newline characters, result ended this:

nguyễn\nanh\ntuấn 

at first thought prolem use of unicode characters, tried using following code test if true:

strcpy(buffer, "nguyễn\nanh\ntuấn"); gtk_text_buffer_set_text(buffer, meaning, -1); 

and time result was:

nguyễn anh tuấn 

after hours searching google in vain, ended here. pls me, , thank in advance (^^

my bad english.


Comments

Popular posts from this blog

PHPMotion implementation - URL based videos (Hosted on separate location) -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -