RE: [gtk-list] 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);


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]