mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
Improve the threads examples. (#161618, Stefan Kost)
2005-01-03 Matthias Clasen <mclasen@redhat.com> * gdk/tmpl/threads.sgml: Improve the threads examples. (#161618, Stefan Kost)
This commit is contained in:
parent
44ec61dd97
commit
9ae083638f
@ -1,3 +1,8 @@
|
||||
2005-01-03 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gdk/tmpl/threads.sgml: Improve the threads
|
||||
examples. (#161618, Stefan Kost)
|
||||
|
||||
2004-12-26 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/tmpl/gtkexpander.sgml: Typo fix. (#162219, Masao Mutoh)
|
||||
|
@ -65,12 +65,13 @@ main (int argc, char *argv[])
|
||||
|
||||
g_thread_init (NULL);
|
||||
gdk_threads_init (<!-- -->);
|
||||
gdk_threads_enter (<!-- -->);
|
||||
|
||||
gtk_init (&argc, &argv);
|
||||
|
||||
window = create_window (<!-- -->);
|
||||
gtk_widget_show (window);
|
||||
|
||||
gdk_threads_enter (<!-- -->);
|
||||
gtk_main (<!-- -->);
|
||||
gdk_threads_leave (<!-- -->);
|
||||
|
||||
@ -193,6 +194,7 @@ int main (int argc, char *argv[])
|
||||
/* init threads */
|
||||
g_thread_init (NULL);
|
||||
gdk_threads_init (<!-- -->);
|
||||
gdk_threads_enter (<!-- -->);
|
||||
|
||||
/* init gtk */
|
||||
gtk_init(&argc, &argv);
|
||||
@ -226,7 +228,6 @@ int main (int argc, char *argv[])
|
||||
pthread_create (&no_tid, NULL, argument_thread, &no_args);
|
||||
|
||||
/* enter the GTK main loop */
|
||||
gdk_threads_enter (<!-- -->);
|
||||
gtk_main (<!-- -->);
|
||||
gdk_threads_leave (<!-- -->);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user