mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
Clarify doc comment.
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com> * glib/gmain.c (g_main_depth): Clarify doc comment.
This commit is contained in:
parent
4bd93db8b4
commit
3e8b3a13f5
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_depth): Clarify doc comment.
|
||||||
|
|
||||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_depth): Clarify doc comment.
|
||||||
|
|
||||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_depth): Clarify doc comment.
|
||||||
|
|
||||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_depth): Clarify doc comment.
|
||||||
|
|
||||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_depth): Clarify doc comment.
|
||||||
|
|
||||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
Mon Mar 1 09:17:32 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_main_depth): Clarify doc comment.
|
||||||
|
|
||||||
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
2004-03-01 Sebastian Wilhelmi <seppi@seppi.de>
|
||||||
|
|
||||||
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for
|
||||||
|
11
glib/gmain.c
11
glib/gmain.c
@ -1824,13 +1824,10 @@ get_depth_pointer (void)
|
|||||||
* problems with reentrancy. For instance, while waiting for data
|
* problems with reentrancy. For instance, while waiting for data
|
||||||
* to be received from the network in response to a menu item,
|
* to be received from the network in response to a menu item,
|
||||||
* the menu item might be selected again. It might seem that
|
* the menu item might be selected again. It might seem that
|
||||||
* one could write:
|
* one could make the menu item's callback return immediately
|
||||||
*
|
* and do nothing if g_main_depth() returns a value greater than 1.
|
||||||
* if (g_main_depth () > 1)
|
* However, this should be avoided since the user then sees selecting
|
||||||
* return;
|
* the menu item do nothing. Furthermore, you'll find yourself adding
|
||||||
*
|
|
||||||
* This should be avoided since the user then sees selecting the
|
|
||||||
* menu item do nothing. Furthermore, you'll find yourself adding
|
|
||||||
* these checks all over your code, since there are doubtless many,
|
* these checks all over your code, since there are doubtless many,
|
||||||
* 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:
|
||||||
|
Loading…
Reference in New Issue
Block a user