From 585a6652d5ca2123a15290ee3138fb8c36ad14cc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 30 Jan 2012 19:12:27 -0500 Subject: Use G_SOURCE_CONTINUE/REMOVE Now that GLib provides these macros, we should use them to make the code more readable. --- demos/gtk-demo/textscroll.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demos/gtk-demo/textscroll.c') 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 -- cgit v1.2.1