Re: [gtk-list] IPC



>>>>> "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------



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