Mercurial > audlegacy
diff src/audacious/ui_playlist.c @ 3137:19908efce4e5 trunk
one mutex is enough for resizing
| author | Tomasz Mon <desowin@gmail.com> |
|---|---|
| date | Sat, 21 Jul 2007 20:25:56 +0200 |
| parents | 7cdcf8ab08da |
| children | 8775dfc57ead |
line wrap: on
line diff
--- a/src/audacious/ui_playlist.c Sat Jul 21 20:13:01 2007 +0200 +++ b/src/audacious/ui_playlist.c Sat Jul 21 20:25:56 2007 +0200 @@ -65,6 +65,8 @@ GtkWidget *playlistwin; +static GMutex *resize_mutex = NULL; + PlayList_List *playlistwin_list = NULL; GtkWidget *playlistwin_shade, *playlistwin_close; @@ -669,7 +671,7 @@ cfg.playlist_width = width = tx; cfg.playlist_height = height = ty; - + g_mutex_lock(resize_mutex); widget_resize_relative(WIDGET(playlistwin_list), dx, dy); ui_skinned_playlist_slider_move_relative(playlistwin_slider, dx); @@ -708,6 +710,7 @@ widget_list_draw(playlistwin_wlist, &redraw, TRUE); widget_list_clear_redraw(playlistwin_wlist); + g_mutex_unlock(resize_mutex); widget_list_unlock(playlistwin_wlist); gdk_window_set_back_pixmap(playlistwin->window, playlistwin_bg, 0); @@ -1771,6 +1774,7 @@ void playlistwin_create(void) { + resize_mutex = g_mutex_new(); playlistwin_create_window(); /* create GC and back pixmap for custom widget to draw on */
