[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Monitoring I/O with GTK/GDK
- From: Gernot Kerschbaumer <gkerschb frequentis com>
- To: gtk-app-devel-list redhat com
- Subject: Re: Monitoring I/O with GTK/GDK
- Date: Tue, 22 Jun 1999 11:03:48 +0200
On Tue, Jun 22, 1999 at 10:11:53AM +0200, Michael PATRIS wrote:
>
> I would like to monitor a serial port with "gdk_input_add".
> In my code, the GdkInputFunction is never called.
> Could someone point me to a source example because, this time,
> the tutorial (§17.2) doesn't help me.
one example from my code:
// file descriptor 'device_fd' is being watched:
gdk_input_add(device_fd, GDK_INPUT_READ, fd_watch, theSelecter);
// fd_watch is the callback function:
void fd_watch(gpointer data, gint fd, GdkInputCondition cond)
{
Selecter *s = (Selecter*)data;
s->Action(device_fd);
}
it works perfectly well for me.
gernot
--
DI Kerschbaumer Gernot
Software Development
FREQUENTIS
A-1120 Wien, Spittelbreitengasse 34
gkerschb@frequentis.com
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]