[10210] in The GTK GIMP ToolKit mailing list archive
[gtk-list] Re: IPC
daemon@ATHENA.MIT.EDU (Dave Cole)
Tue Nov 17 11:21:19 1998
To: gtk-list@redhat.com
From: Dave Cole <dave@dccs.com.au>
Date: 18 Nov 1998 03:18:44 +1100
In-Reply-To: Koe Kaniini's message of "Tue, 17 Nov 1998 17:39:47 +0200 (EET)"
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com
>>>>> "Koe" == Koe Kaniini <koe@kapi.net> writes:
Koe> I have a file descriptor which I have to read for data and when
Koe> there is some data coming I need to execute a function to handle
Koe> that data.
Koe> With Xt you use XtAppAddInput. Is there anything similar in GTK ?
static void read_CB(gpointer data, gint fd, GdkInputCondition condition)
{
}
readId = gdk_input_add(fd, GDK_INPUT_READ, read_CB, NULL);
:
gdk_input_remove(readId);
- Dave
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS dpu s-:+ a C++$ ULS++$ P+++$>++++ L++>+++$ E+>++ W N++ !o K w++$ O !M-
!V(-) PS+ PE- Y+ PGP !t-- 5++ X R tv b+ DI+++ D G e++ h--- r+++ y++++
------END GEEK CODE BLOCK------
--
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null