Re: How to avoid the presence of new line in GtkEntry at the end of input string
- From: Karan Ahuja <karan26 ahuja gmail com>
- To: arkkimede <arkkimede gmail com>
- Cc: gtk-app-devel-list list <gtk-app-devel-list gnome org>
- Subject: Re: How to avoid the presence of new line in GtkEntry at the end of input string
- Date: Thu, 05 Apr 2018 19:32:25 +0000
Hi friend
You could use g_str_split ?
Cheers,
Karan
On Thu, 5 Apr 2018 20:23 arkkimede, <arkkimede 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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]