mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 09:46:17 +01:00
gmain: Convert docs to markdown
In particular, convert lists to markdown syntax.
This commit is contained in:
parent
c4da8f426a
commit
85d612a968
17
glib/gmain.c
17
glib/gmain.c
@ -2823,26 +2823,17 @@ get_dispatch (void)
|
|||||||
* many things that the user could do. Instead, you can use the
|
* many things that the user could do. Instead, you can use the
|
||||||
* following techniques:
|
* following techniques:
|
||||||
*
|
*
|
||||||
* <orderedlist>
|
* 1. Use gtk_widget_set_sensitive() or modal dialogs to prevent
|
||||||
* <listitem>
|
|
||||||
* <para>
|
|
||||||
* Use gtk_widget_set_sensitive() or modal dialogs to prevent
|
|
||||||
* the user from interacting with elements while the main
|
* the user from interacting with elements while the main
|
||||||
* loop is recursing.
|
* loop is recursing.
|
||||||
* </para>
|
*
|
||||||
* </listitem>
|
* 2. Avoid main loop recursion in situations where you can't handle
|
||||||
* <listitem>
|
|
||||||
* <para>
|
|
||||||
* Avoid main loop recursion in situations where you can't handle
|
|
||||||
* arbitrary callbacks. Instead, structure your code so that you
|
* arbitrary callbacks. Instead, structure your code so that you
|
||||||
* simply return to the main loop and then get called again when
|
* simply return to the main loop and then get called again when
|
||||||
* there is more work to do.
|
* there is more work to do.
|
||||||
* </para>
|
|
||||||
* </listitem>
|
|
||||||
* </orderedlist>
|
|
||||||
*
|
*
|
||||||
* Return value: The main loop recursion level in the current thread
|
* Return value: The main loop recursion level in the current thread
|
||||||
**/
|
*/
|
||||||
int
|
int
|
||||||
g_main_depth (void)
|
g_main_depth (void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user