Re: Peeking into the event queue?



On Mon, Aug 14, 2000 at 05:49:40PM -0300, Ian Britten wrote:
> Thanks for the suggestion, but this isn't a plausable solution for my
> particular problem.
> The problem is that the above solution is _dispatching_ the events in the
> queue, which is exactly what I _don't_ want to do.  (If you're familiar
> with XCheckIfEvent(), it doesn't actually dispatch the events, but merely
> scans the queue to see if a match exists).

Well, there is 

GdkEvent* gdk_event_peek();

that looks like it would do what you want.  The source for the
gtk_main_do_event() function has an example of its use. 

-JT

-- 
GNU/Linux: Free your mind and your OS will follow.






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