[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: gdk_input; colored labels
- From: Paolo Molaro <lupus lettere unipd it>
- To: gtk-app-devel-list redhat com
- Subject: Re: gdk_input; colored labels
- Date: Wed, 4 Aug 1999 16:40:42 +0200
On Wed, Aug 04, 1999 at 03:21:22PM +0200, Tobias Peters wrote:
> Hello everyone, I am using gdk_input_add() to be notified when data has
> been arriving on a tcp socket.
>
> My problem is that the input callback function gets sometimes called with
> a GdkInputCondition different from the one with which is was registered.
[...]
> void //static member function
> Kritzel_GtkClient::reading_possible (gpointer client_object,
> gint fd,
> GdkInputCondition condition)
> // client_object is the registered instance.
> {
> assert(condition == GDK_INPUT_READ);
> /*...*/
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> The assertion sometimes fails and condition has the value GDK_INPUT_WRITE,
> even if I do not register any other callback with gdk_input_add().
Just check if the bit GDK_INPUT_READ is set, instead of checkin for
equality.
Anyway, the check is not necessary if you select only for read
events.
lupus
--
-----------------------------------------------------------------
lupus@debian.org debian/rules
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]