summaryrefslogtreecommitdiff
path: root/docs/Changes-1.2.txt
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-02-02 02:35:11 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-02-02 02:35:11 +0000
commit22a54ddf81968d3c57a642f2d5f0c2583c6c923b (patch)
treea2f1ef2404a59e59a68d3924babc3cacb59c41ae /docs/Changes-1.2.txt
parenta19e373baa6545c104fee06b572f795591fec81a (diff)
downloadgtk+-22a54ddf81968d3c57a642f2d5f0c2583c6c923b.tar.gz
Put in some information about 'gtk-config --libs gthread'.
Mon Feb 1 19:25:54 1999 Owen Taylor <otaylor@redhat.com> * docs/gtk-config.txt (testinput_SOURCES): Put in some information about 'gtk-config --libs gthread'. * docs/Changes-1.2.txt: Updated section on threads.
Diffstat (limited to 'docs/Changes-1.2.txt')
-rw-r--r--docs/Changes-1.2.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/docs/Changes-1.2.txt b/docs/Changes-1.2.txt
index b51243b093..0d452d6831 100644
--- a/docs/Changes-1.2.txt
+++ b/docs/Changes-1.2.txt
@@ -206,13 +206,13 @@ Incompatible Changes from GTK+-1.0 to GTK+-1.2:
This means:
- - You must call g_thread_init(), then gtk_thread_init()
- in a threaded GTK+ program.
+ - You must call g_thread_init() before executing any
+ other GTK+ or GDK functions in a threaded GTK+ program.
- Idles, timeouts, and input functions are executed outside
of the main GTK+ lock. So, if you need to call GTK+
inside of such a callback, you must surround the callback
- with a gtk_thread_enter()/gtk_thread_leave() pair.
+ with a gdk_threads_enter()/gdk_threads_leave() pair.
[ However, signals are still executed within the main
GTK+ lock ]
@@ -221,6 +221,10 @@ Incompatible Changes from GTK+-1.0 to GTK+-1.2:
that might be used in threaded programs, you _must_
surround timeouts and idle functions in this matter.
+ 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.
+
- There is no longer a special --with-threads configure
option for GTK+. To use threads in a GTK+ program, you
must:
@@ -233,3 +237,11 @@ Incompatible Changes from GTK+-1.0 to GTK+-1.2:
b) Link with the libraries returned by:
gtk-config --libs gthread
+
+ and use the cflags from:
+
+ gtk-config --cflags gthread
+
+ You can get these CFLAGS and LIBS by passing gthread
+ as the fourth parameter to the AM_PATH_GTK automake
+ macro.