RE: [gtk-list] problems with gtk_entry_get_text
- From: "Damon Chaplin" <DAChaplin email msn com>
- To: <gtk-list redhat com>
- Subject: RE: [gtk-list] problems with gtk_entry_get_text
- Date: Sun, 31 May 1998 12:19:26 +0100
> The gchar* being returned by calling gtk_entry_get_text doesn't seem to
> contiain an EOL, randomly the text contained in the Widget is accurately
> returned:
>
> gchar *string;
> string = gtk_entry_get_text(GTK_ENTRY(widget));
> g_print("User typed: %s\n", string);
The string returned should be copied with g_strdup() if you need to
keep it.
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]