diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-09 02:23:42 +0200 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2009-08-09 02:23:42 +0200 |
commit | c488b4aa8961b0820725fa357a2fcb867543a266 (patch) | |
tree | 968d8827ea2ebed20fa14bc5188ba1af469069d0 /gtkplaylist.c | |
parent | 88c97a3029f9166178819af6de29c7dbf5482c45 (diff) |
scrollbar updating for search window
Diffstat (limited to 'gtkplaylist.c')
-rw-r--r-- | gtkplaylist.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gtkplaylist.c b/gtkplaylist.c index 080c9071..b61a7c8d 100644 --- a/gtkplaylist.c +++ b/gtkplaylist.c @@ -317,7 +317,6 @@ gtkps_draw_playlist (gtkplaylist_t *ps, int x, int y, int w, int h) { int row1; int row2; int row2_full; - printf ("number of items in ps: %d\n", *ps->count); row1 = max (0, y / rowheight + ps->scrollpos); row2 = min ((*ps->count), (y+h) / rowheight + ps->scrollpos + 1); row2_full = (y+h) / rowheight + ps->scrollpos + 1; @@ -1003,11 +1002,16 @@ strcopy_special (char *dest, const char *src, int len) { int gtkps_add_file_info_cb (playItem_t *it, void *data) { - GtkEntry *e = (GtkEntry *)data; - GDK_THREADS_ENTER(); - gtk_entry_set_text (GTK_ENTRY (e), it->fname); - GDK_THREADS_LEAVE(); - usleep (0); + static int countdown = 0; + if (countdown == 0) { + GtkEntry *e = (GtkEntry *)data; + GDK_THREADS_ENTER(); + gtk_entry_set_text (GTK_ENTRY (e), it->fname); + GDK_THREADS_LEAVE(); + countdown = 10; + //usleep (0); + } + countdown--; return 0; } |