diff options
author | Matthias Clasen <mclasen@redhat.com> | 2012-01-30 19:12:27 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2012-01-30 19:12:27 -0500 |
commit | 585a6652d5ca2123a15290ee3138fb8c36ad14cc (patch) | |
tree | da404859ae663f70bc2822383d386ff918c52409 /demos/gtk-demo/textscroll.c | |
parent | 7a080413add02b80c4217a9fbe81467017aae2a5 (diff) | |
download | gtk+-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.c | 4 |
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 |