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:
Owen Taylor 2004-03-01 14:20:30 +00:00 committed by Owen Taylor
parent 4bd93db8b4
commit 3e8b3a13f5
7 changed files with 28 additions and 7 deletions

View File

@ -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>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for

View File

@ -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>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for

View File

@ -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>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for

View File

@ -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>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for

View File

@ -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>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for

View File

@ -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>
* glib/gatomic.c: Define g_atomic_(int|pointer)_get only for

View File

@ -1824,13 +1824,10 @@ get_depth_pointer (void)
* problems with reentrancy. For instance, while waiting for data
* to be received from the network in response to a menu item,
* the menu item might be selected again. It might seem that
* one could write:
*
* if (g_main_depth () > 1)
* return;
*
* This should be avoided since the user then sees selecting the
* menu item do nothing. Furthermore, you'll find yourself adding
* one could make the menu item's callback return immediately
* and do nothing if g_main_depth() returns a value greater than 1.
* However, 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,
* many things that the user could do. Instead, you can use the
* following techniques: