Commit 9ae08363 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

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)
parent 44ec61dd
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 (&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 (<!-- -->);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment