Mercurial > audlegacy
comparison src/audacious/ui_playlist.c @ 3246:2127f7108033
- fixed some cases where the playlist wasn't redrawn
- removed two g_cond_signal(cond_scan) calls to fix gui freezes
author | mf0102 <0102@gmx.at> |
---|---|
date | Sat, 04 Aug 2007 16:48:06 +0200 |
parents | 75a62e429534 |
children | 3cf247e4508c |
comparison
equal
deleted
inserted
replaced
3245:75a62e429534 | 3246:2127f7108033 |
---|---|
994 playlistwin_scroll(cfg.scroll_pl_by); | 994 playlistwin_scroll(cfg.scroll_pl_by); |
995 | 995 |
996 if (event->direction == GDK_SCROLL_UP) | 996 if (event->direction == GDK_SCROLL_UP) |
997 playlistwin_scroll(-cfg.scroll_pl_by); | 997 playlistwin_scroll(-cfg.scroll_pl_by); |
998 | 998 |
999 g_cond_signal(cond_scan); | 999 // deactivating this fixed a gui freeze when scrolling. -- mf0102 |
1000 //g_cond_signal(cond_scan); | |
1000 | 1001 |
1001 } | 1002 } |
1002 | 1003 |
1003 static gboolean | 1004 static gboolean |
1004 playlistwin_press(GtkWidget * widget, | 1005 playlistwin_press(GtkWidget * widget, |
1237 && playlistwin_item_visible(UI_SKINNED_PLAYLIST(playlistwin_list)->prev_selected)) { | 1238 && playlistwin_item_visible(UI_SKINNED_PLAYLIST(playlistwin_list)->prev_selected)) { |
1238 playlist_set_position(playlist, UI_SKINNED_PLAYLIST(playlistwin_list)->prev_selected); | 1239 playlist_set_position(playlist, UI_SKINNED_PLAYLIST(playlistwin_list)->prev_selected); |
1239 if (!playback_get_playing()) | 1240 if (!playback_get_playing()) |
1240 playback_initiate(); | 1241 playback_initiate(); |
1241 } | 1242 } |
1243 refresh = TRUE; | |
1242 break; | 1244 break; |
1243 case GDK_3: | 1245 case GDK_3: |
1244 if (event->state & GDK_CONTROL_MASK) | 1246 if (event->state & GDK_CONTROL_MASK) |
1245 playlistwin_fileinfo(); | 1247 playlistwin_fileinfo(); |
1246 break; | 1248 break; |
1285 default: | 1287 default: |
1286 return FALSE; | 1288 return FALSE; |
1287 } | 1289 } |
1288 | 1290 |
1289 if (refresh) { | 1291 if (refresh) { |
1290 g_cond_signal(cond_scan); | 1292 // fixes keyboard scrolling gui freeze for me. -- mf0102 |
1293 //g_cond_signal(cond_scan); | |
1291 playlistwin_update_list(playlist_get_active()); | 1294 playlistwin_update_list(playlist_get_active()); |
1292 } | 1295 } |
1293 | 1296 |
1294 return TRUE; | 1297 return TRUE; |
1295 } | 1298 } |