diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-26 01:29:05 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-26 01:29:05 +0000 |
commit | f3e4d4f0fa96b02a6adf545e0f644dd70f1ba897 (patch) | |
tree | a82b65566bc077d1ed9237b10f673e9bd2e43b29 /docs/reference/gdk | |
parent | c7eb1aaf55c3604349a8e8735d14bcd6797ff0e8 (diff) | |
download | gtk+-f3e4d4f0fa96b02a6adf545e0f644dd70f1ba897.tar.gz |
Add hint about calling gdk_flush() before gdk_threads_leave(). (#70665,
* gdk/tmpl/threads.sgml: Add hint about calling gdk_flush() before
gdk_threads_leave(). (#70665, wording suggested by Owen Taylor)
Diffstat (limited to 'docs/reference/gdk')
-rw-r--r-- | docs/reference/gdk/tmpl/threads.sgml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/reference/gdk/tmpl/threads.sgml b/docs/reference/gdk/tmpl/threads.sgml index a30e7b2bea..c4f8d69eea 100644 --- a/docs/reference/gdk/tmpl/threads.sgml +++ b/docs/reference/gdk/tmpl/threads.sgml @@ -43,6 +43,16 @@ As always, you must also surround any calls to GTK+ not made within a signal handler with a gdk_threads_enter()/gdk_threads_leave() pair. </para> +<para> +Before calling gdk_threads_leave() from a thread other +than your main thread, you probably want to call gdk_flush() +to send all pending commands to the windowing system. +(The reason you don't need to do this from the main thread +is that GDK always automatically flushes pending commands +when it runs out of incoming events to process and has +to sleep while waiting for more events.) +</para> + <para>A minimal main program for a threaded GTK+ application looks like:</para> |