Mercurial > audlegacy-plugins
diff src/skins/ui_skin.c @ 2620:2d6e08c81c09
add playlistwindow
author | Tomasz Mon <desowin@gmail.com> |
---|---|
date | Wed, 21 May 2008 21:35:11 +0200 |
parents | b53841a1b5d3 |
children | c2603047a1a3 |
line wrap: on
line diff
--- a/src/skins/ui_skin.c Wed May 21 18:40:48 2008 +0200 +++ b/src/skins/ui_skin.c Wed May 21 21:35:11 2008 +0200 @@ -42,8 +42,8 @@ #include "util.h" #include "ui_main.h" #include "ui_equalizer.h" +#include "ui_playlist.h" #if 0 -#include "ui_playlist.h" #include "ui_skinselector.h" #endif #include "debug.h" @@ -184,11 +184,10 @@ ui_skinned_window_draw_all(mainwin); ui_skinned_window_draw_all(equalizerwin); -#if 0 ui_skinned_window_draw_all(playlistwin); - playlistwin_update_list(playlist_get_active()); -#endif + playlistwin_update_list(aud_playlist_get_active()); + SkinPixmap *pixmap; pixmap = &aud_active_skin->pixmaps[SKIN_POSBAR]; /* last 59 pixels of SKIN_POSBAR are knobs (normal and selected) */ @@ -535,9 +534,7 @@ { mainwin_create(); equalizerwin_create(); -#if 0 playlistwin_create(); -#endif } if (!aud_active_skin_load(path)) { @@ -1749,7 +1746,7 @@ pixmap = skin_get_pixmap(skin, pixmap_id); g_return_if_fail(pixmap != NULL); g_return_if_fail(pixmap->pixbuf != NULL); -#if 0 + /* perhaps we should use transparency or resize widget? */ if (xsrc+width > pixmap->width || ysrc+height > pixmap->height) { if (widget) { @@ -1798,7 +1795,7 @@ } else return; } -#endif + width = MIN(width, pixmap->width - xsrc); height = MIN(height, pixmap->height - ysrc); gdk_pixbuf_copy_area(pixmap->pixbuf, xsrc, ysrc, width, height,