# HG changeset patch # User nenolod # Date 1140654623 28800 # Node ID 8fee6432cd6337bc3d758254778f9b27e364d019 # Parent 6c14adb859fef9ac8168e7a6eb5bfd8d9fe23d8c [svn] Fix the scrolling in the audacious mainwin, by making sure a GTK Timeout is only registered once. diff -r 6c14adb859fe -r 8fee6432cd63 audacious/textbox.c --- 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; }