On 13/05/2012 03:13, Rudra Banerjee wrote:
but it still fails with segmentation fault.
mini_ten.c:51:1: warning: passing argument 1 of ‘atoi’ from incompatible
pointer type [enabled by default]
/usr/include/stdlib.h:148:12: note: expected ‘const char *’ but argument
is of type ‘struct GtkWidget *’
"expected ‘const char *’ but argument is of type ‘struct GtkWidget * "
i=atoi (gtk_entry_get_text (GTK_ENTRY(entry)));
That may be better. :)
--
Axel FILMORE
#--------------------------------------------#
https://github.com/afilmore
#--------------------------------------------#
Vala - Compiler For The GObject Type System
https://live.gnome.org/Vala
#--------------------------------------------#
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list