problems with gtk_entry_get_text



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);

yields an example result of:

If I typed:
	hello
	and
	how
	are
	you

User typed: hello
User typed: and
User typed: howT TALK: and
User typed: areT TALK: howT TALK: and
User typed: youT TALK: areT TALK: howT TALK: and
User typed: hmmm TALK: youT TALK: areT TALK: howT TALK: and

Some typical problem here people commonly run into? Is there a length
variable returned I don't know about?


Travis Loyd
[email: lelandg@usa.net							]
[  pgp: send email with subject: sendmepgp				]




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]