[GTK with threads]

2007-05-18 Thread Luca Sangemi
Hello, we got a problem with an application we are developing , GTK+ based. It's a p2p application, based on a protocol similar to gnutella. Actually, it's quite simple: it's a project for a university course. Our main() create a pthread for a server, that is a thread that accepts connections on

Re: Gtk+ and multithreating

2007-05-18 Thread Michelle Konzack
Am 2007-05-16 21:32:39, schrieb Chris Vine: The documentation is here: http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html#g-idle-add I have the full documentation installed and I have a hardcopy of the PDF. The idea is that you call g_idle_add() in your worker thread

Querying Key State

2007-05-18 Thread Mike Melanson
Hi, From my GTK app, I need to query the state of a key. E.g., I need to check if the up-arrow is currently down or up. Is there a clean GTK/GDK way to do this? I know that X11 has XQueryKeymap() but I don't want to have to fall back on that if I can help it. Thanks... -- -Mike