Hi GisiNa, the problem with your code is that gtk_entry_get_text() returns a string and the compiler warns you that the conversion: string(which is actually a const gchar *) to float is not possible. The solution is to convert the number in the string to float using the sscanf function, so replace this:
float_n1 = (float)(gtk_entry_get_text(GTK_ENTRY(n1)));
float_n2 = (float)(gtk_entry_get_text(GTK_ENTRY(n2)));
By this:
sscanf(gtk_entry_get_text
(GTK_ENTRY
(n1
)),"%f", &float_n1
); sscanf(gtk_entry_get_text
(GTK_ENTRY
(n2
)),"%f", &float_n2
);
Gracias a 0xDani por la ayuda con el inglés
Thanks to 0xDani for the help with the English