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:
Matthias Clasen 2005-01-03 19:35:20 +00:00 committed by Matthias Clasen
parent 44ec61dd97
commit 9ae083638f
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -65,12 +65,13 @@ main (int argc, char *argv[])
g_thread_init (NULL);
gdk_threads_init (<!-- -->);
gdk_threads_enter (<!-- -->);
gtk_init (&amp;argc, &amp;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(&amp;argc, &amp;argv);
@ -226,7 +228,6 @@ int main (int argc, char *argv[])
pthread_create (&amp;no_tid, NULL, argument_thread, &amp;no_args);
/* enter the GTK main loop */
gdk_threads_enter (<!-- -->);
gtk_main (<!-- -->);
gdk_threads_leave (<!-- -->);