changeset 655:8fee6432cd63 trunk

[svn] Fix the scrolling in the audacious mainwin, by making sure a GTK Timeout is only registered once.
author nenolod
date Wed, 22 Feb 2006 16:30:23 -0800
parents 6c14adb859fe
children ef986f844d5c
files audacious/textbox.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/textbox.c	Tue Feb 21 13:09:39 2006 -0800
+++ b/audacious/textbox.c	Wed Feb 22 16:30:23 2006 -0800
@@ -470,7 +470,7 @@
 
     tb->tb_scroll_enabled = s;
     if (tb->tb_scroll_enabled && tb->tb_is_scrollable
-        && tb->tb_scroll_allowed) {
+        && tb->tb_scroll_allowed && !tb->tb_timeout_tag) {
         gint tag;
         tag = TEXTBOX_SCROLL_SMOOTH_TIMEOUT;
         tb->tb_timeout_tag = gtk_timeout_add(tag, textbox_scroll, tb);
@@ -548,6 +548,7 @@
     tb->tb_nominal_y = y;
     tb->tb_nominal_height = tb->tb_widget.height;
     widget_list_add(wlist, WIDGET(tb));
+    tb->tb_timeout_tag = 0;
     return tb;
 }