changeset 1050:3131795a78c4 trunk

[svn] - performance boost
author nenolod
date Sun, 14 May 2006 16:24:39 -0700
parents 0390e4394c50
children 6e95edd16b43
files audacious/playlist_list.c audacious/playlist_list.h audacious/skin.c
diffstat 3 files changed, 10 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/audacious/playlist_list.c	Sun May 14 16:08:07 2006 -0700
+++ b/audacious/playlist_list.c	Sun May 14 16:24:39 2006 -0700
@@ -118,7 +118,7 @@
 #include <X11/Xlib.h>
 #include <X11/Xatom.h>
 
-static GdkPixmap *get_transparency_pixmap(void)
+GdkPixmap *get_transparency_pixmap(void)
 {
     Atom prop, type;
     int format;
@@ -145,7 +145,7 @@
 
 #else
 
-static GdkPixmap *get_transparency_pixmap(void)
+GdkPixmap *get_transparency_pixmap(void)
 {
     return NULL;
 }
--- a/audacious/playlist_list.h	Sun May 14 16:08:07 2006 -0700
+++ b/audacious/playlist_list.h	Sun May 14 16:24:39 2006 -0700
@@ -50,6 +50,6 @@
 void playlist_list_set_font(const gchar * font);
 GdkPixmap *rootpix;
 GdkPixmap *shade_pixmap(GdkPixmap *in, gint x, gint y, gint x_offset, gint y_offset, gint w, gint h, GdkColor *shade_color);
-
+GdkPixmap *get_transparency_pixmap(void);
 
 #endif
--- a/audacious/skin.c	Sun May 14 16:08:07 2006 -0700
+++ b/audacious/skin.c	Sun May 14 16:24:39 2006 -0700
@@ -164,6 +164,13 @@
         return FALSE;
 
     skin_setup_masks(bmp_active_skin);
+
+    if (rootpix != NULL)
+        g_object_unref(rootpix);
+
+    rootpix = shade_pixmap(get_transparency_pixmap(), 0, 0, 0, 0, gdk_screen_width(), gdk_screen_height(),
+                           skin_get_color(bmp_active_skin, SKIN_PLEDIT_NORMALBG));
+
     draw_main_window(TRUE);
     draw_playlist_window(TRUE);
     draw_equalizer_window(TRUE);