# HG changeset patch # User Tim Ringenbach # Date 1112400638 0 # Node ID 4e64283bf3cb163ae686f76a7bf65f8b97015553 # Parent 80b8be10dc42b0cdee496c31f5efcf133edb08d3 [gaim-migrate @ 12371] this is a little better. now it only checks the alpha channel, and doesn't draw pixels that are mostly transparent. I also #if 0'd it out because it still sucks, but someone can play with it if they want. committer: Tailor Script diff -r 80b8be10dc42 -r 4e64283bf3cb plugins/docklet/docklet-x11.c --- a/plugins/docklet/docklet-x11.c Fri Apr 01 23:16:50 2005 +0000 +++ b/plugins/docklet/docklet-x11.c Sat Apr 02 00:10:38 2005 +0000 @@ -87,8 +87,6 @@ docklet_x11_update_icon(enum docklet_status icon) { const gchar *icon_name = NULL; - GdkPixbuf *p; - GdkBitmap *mask = NULL; g_return_if_fail(image != NULL); @@ -114,6 +112,10 @@ break; } +#if 0 + GdkPixbuf *p; + GdkBitmap *mask = NULL; + gtk_image_set_from_stock(GTK_IMAGE(image), icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR); p = gtk_widget_render_icon(GTK_WIDGET(image), icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR, NULL); @@ -125,7 +127,7 @@ int i; for (i = 0; i < len; i++) - if ((data[i*4] != 0) || (data[i*4 + 1] != 0) || (data[i*4 + 2] != 0) || (data[i*4 + 3] != 0)) + if (data[i*4 + 3] > 55) bitmap[i/8] |= 1 << i % 8; else bitmap[i/8] &= ~(1 << i % 8); @@ -138,6 +140,7 @@ gdk_window_shape_combine_mask(image->window, mask, 0, 0); g_object_unref(G_OBJECT(p)); +#endif } static void