summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2012-01-30 19:12:27 -0500
committerMatthias Clasen <mclasen@redhat.com>2012-01-30 19:12:27 -0500
commit585a6652d5ca2123a15290ee3138fb8c36ad14cc (patch)
treeda404859ae663f70bc2822383d386ff918c52409 /docs
parent7a080413add02b80c4217a9fbe81467017aae2a5 (diff)
downloadgtk+-585a6652d5ca2123a15290ee3138fb8c36ad14cc.tar.gz
Use G_SOURCE_CONTINUE/REMOVE
Now that GLib provides these macros, we should use them to make the code more readable.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/other_software.sgml4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/reference/gtk/other_software.sgml b/docs/reference/gtk/other_software.sgml
index 4b413a2b45..dde4295e6b 100644
--- a/docs/reference/gtk/other_software.sgml
+++ b/docs/reference/gtk/other_software.sgml
@@ -121,9 +121,9 @@ Here's a simple example:
do_small_part_of_task ();
if (task_complete)
- return FALSE; /* removes the idle handler */
+ return G_SOURCE_REMOVE; /* removes the idle handler */
else
- return TRUE; /* runs the idle handler again */
+ return G_SOURCE_CONTINUE; /* runs the idle handler again */
}
g_idle_add (my_idle_handler, NULL);