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.
This commit is contained in:
parent
a19e373baa
commit
22a54ddf81
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
Tue Feb 2 00:28:44 1999 Lars Hamann <lars@gtk.org>
|
||||||
|
|
||||||
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
* gtk/gtkctree.c (gtk_ctree_insert_node): in case of
|
||||||
|
@ -206,13 +206,13 @@ Incompatible Changes from GTK+-1.0 to GTK+-1.2:
|
|||||||
|
|
||||||
This means:
|
This means:
|
||||||
|
|
||||||
- You must call g_thread_init(), then gtk_thread_init()
|
- You must call g_thread_init() before executing any
|
||||||
in a threaded GTK+ program.
|
other GTK+ or GDK functions in a threaded GTK+ program.
|
||||||
|
|
||||||
- Idles, timeouts, and input functions are executed outside
|
- Idles, timeouts, and input functions are executed outside
|
||||||
of the main GTK+ lock. So, if you need to call GTK+
|
of the main GTK+ lock. So, if you need to call GTK+
|
||||||
inside of such a callback, you must surround the callback
|
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
|
[ However, signals are still executed within the main
|
||||||
GTK+ lock ]
|
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_
|
that might be used in threaded programs, you _must_
|
||||||
surround timeouts and idle functions in this matter.
|
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
|
- There is no longer a special --with-threads configure
|
||||||
option for GTK+. To use threads in a GTK+ program, you
|
option for GTK+. To use threads in a GTK+ program, you
|
||||||
must:
|
must:
|
||||||
@ -233,3 +237,11 @@ Incompatible Changes from GTK+-1.0 to GTK+-1.2:
|
|||||||
b) Link with the libraries returned by:
|
b) Link with the libraries returned by:
|
||||||
|
|
||||||
gtk-config --libs gthread
|
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.
|
||||||
|
@ -36,6 +36,14 @@ gtk-config takes the following flags:
|
|||||||
If PREFIX is specified, overrides the configured value of $exec_prefix.
|
If PREFIX is specified, overrides the configured value of $exec_prefix.
|
||||||
Otherwise, prints out the configured value of $exec_prefix
|
Otherwise, prints out the configured value of $exec_prefix
|
||||||
|
|
||||||
|
You may also add to the command line a list of additional
|
||||||
|
libraries that gtk-config should supply the CFLAGS and LIBS
|
||||||
|
for. The only currently supported library is 'gthread'.
|
||||||
|
|
||||||
|
As an example of this latter usage, you can get the
|
||||||
|
appropriate cflags for a threaded program with:
|
||||||
|
|
||||||
|
gtk-config --cflags gthread
|
||||||
|
|
||||||
|
|
||||||
Example of using gtk-config
|
Example of using gtk-config
|
||||||
|
Loading…
Reference in New Issue
Block a user