Mercurial > pidgin
changeset 10766:4e64283bf3cb
[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 <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Sat, 02 Apr 2005 00:10:38 +0000 |
parents | 80b8be10dc42 |
children | 3e4991079b2f |
files | plugins/docklet/docklet-x11.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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