Re: gtk_entry_get_text() - having problems with return type

2003-03-05 Thread Keith Sharp
On Wed, 2003-03-05 at 01:16, Raymond Wan wrote: Hi, On Wed, 5 Mar 2003, Ben LeMasurier wrote: warning: assignment makes pointer from integer without a cast gethostbyname() requests a char * and gtk_entry_get_text() returns G_CONST_RETURN gchar* According to the glib docs, a

Re: gtk_entry_get_text() - having problems with return type

2003-03-04 Thread Raymond Wan
Hi, On Wed, 5 Mar 2003, Ben LeMasurier wrote: warning: assignment makes pointer from integer without a cast gethostbyname() requests a char * and gtk_entry_get_text() returns G_CONST_RETURN gchar* According to the glib docs, a G_CONST_RETURN gchar* is typedef'ed to a char* (See

Re: gtk_entry_get_text() - having problems with return type

2003-03-04 Thread Ben LeMasurier
Well, I tried to do an strcpy() on the string but I am still getting a segfault when I try to access it, I also get the same compile time error as before - I don't understand why it is telling me assignment makes pointer from an integer either. better get the coffee out, this might be a long