On 04/05/18 21:32, Karan Ahuja wrote:
Hi friend
You could use g_str_split ?
Cheers,
Karan
That doesn't help, that's working around the issue.
On Thu, 5 Apr 2018 20:23 arkkimede, <arkkim...@gmail.com> wrote:
Hi!
In my GTK3 applications, there are some GtkEntry used to input strings
like, e.g., the output directory.
I write a string in the Entry and using the function gtk_entry_get_text() i
read the string insert in the GUI.
Printing on screen this string, <<some times>> a "new line" is present at
the end of the string (obviously I do not put a new line at the end).
How can avoid this issue?
I have to change function or make some operations before the reading?
Thank You.
Daniele
I've personally never encountered a newline while using
gtk_entry_get_text(), perhaps the code you use to display the result
adds a newline?
Perhaps you could post the offending code, if it isn't too large?
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list