Skip to content
Advertisement

Get text from GTK entry

I’m trying to get what a user has inputed in a text field (entry) but when i run it i keep getting null from gtk_entry_get_text.

Errors :

JavaScript

Code :

JavaScript

So how do i get the input from the user and not just null every time?

Advertisement

Answer

Pointer to pointer is needed:

JavaScript

And in main:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement