gdk_input_add



Hello,

I use gdk_input_add in my program as follows:

{
sd=socket(AF_INET,SOCK_STREAM,0);
/* I check if a valid socket is returnet */
gdk_input_add(sd, GDK_INPUT_READ,incoming_message,NULL);
}


and then i declare:
static void
incoming_message (gpointer data, gint source, GdkInputCondition cond)
{

}


It compiles fine, and the gdk_input_add line seems to be executed,
However, incoming_message is never called.. why??


Thanks,
Meghal










[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]