summaryrefslogtreecommitdiff
path: root/demos/gtk-demo/textscroll.c
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 /demos/gtk-demo/textscroll.c
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 'demos/gtk-demo/textscroll.c')
-rw-r--r--demos/gtk-demo/textscroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/gtk-demo/textscroll.c b/demos/gtk-demo/textscroll.c
index a6cef0ead7..dae9b43348 100644
--- a/demos/gtk-demo/textscroll.c
+++ b/demos/gtk-demo/textscroll.c
@@ -49,7 +49,7 @@ scroll_to_end (GtkTextView *textview)
if (count > 150)
count = 0;
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
/* Scroll to the bottom of the buffer.
@@ -100,7 +100,7 @@ scroll_to_bottom (GtkTextView *textview)
if (count > 40)
count = 0;
- return TRUE;
+ return G_SOURCE_CONTINUE;
}
static guint