docs: Update an example

Don't use gtk_main() in the mainloop example.
It is going away.
This commit is contained in:
Matthias Clasen 2020-02-09 22:41:58 -05:00
parent a6c5466900
commit 4c22939dea

View File

@ -78,15 +78,16 @@
* gtk_widget_show (mainwin);
*
* // Enter the main event loop, and wait for user interaction
* gtk_main ();
* while (!done)
* g_main_context_iteration (NULL, TRUE);
*
* // The user lost interest
* return 0;
* }
* ]|
*
* Its OK to use the GLib main loop directly instead of gtk_main(), though it
* involves slightly more typing. See #GMainLoop in the GLib documentation.
* See #GMainLoop in the GLib documentation to learn more about
* main loops and their features.
*/
#include "config.h"