Mercurial > pidgin.yaz
comparison src/gtkblist.c @ 11111:f03dce7ea408
[gaim-migrate @ 13163]
Patch #1234440, from sadrul
"Mark blocked users in the buddy-list"
Patch #1234197, from sadrul
"New API fn gaim_privacy_check"
Plus changes by me. (Read as: blame me if it's busted, thank sadrul if it works)
Basically, all this stuff boils down to the following:
We composite a new blocked.png onto the prpl icon in the buddy list if the user is blocked.
MSN was the only prpl that used the old blocked.png. However, it looks bad to overlay both icons, so I removed the use of blocked.png from the MSN prpl. As an MSN user, I think the result is intuitive.
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Sun, 17 Jul 2005 23:36:34 +0000 |
parents | c86d423df757 |
children | f78e7e982cf4 |
comparison
equal
deleted
inserted
replaced
11110:f7ce10cad83d | 11111:f03dce7ea408 |
---|---|
3077 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE); | 3077 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.0, FALSE); |
3078 else if (gaim_presence_is_idle(presence)) | 3078 else if (gaim_presence_is_idle(presence)) |
3079 { | 3079 { |
3080 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.25, FALSE); | 3080 gdk_pixbuf_saturate_and_pixelate(scale, scale, 0.25, FALSE); |
3081 } | 3081 } |
3082 | |
3083 if (!gaim_privacy_check(buddy->account, gaim_buddy_get_name(buddy))) | |
3084 { | |
3085 GdkPixbuf *emblem; | |
3086 char *filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", "default", "blocked.png", NULL); | |
3087 | |
3088 emblem = gdk_pixbuf_new_from_file(filename, NULL); | |
3089 g_free(filename); | |
3090 | |
3091 if (emblem) | |
3092 { | |
3093 gdk_pixbuf_composite(emblem, scale, | |
3094 0, 0, scalesize, scalesize, | |
3095 0, 0, | |
3096 (double)scalesize / gdk_pixbuf_get_width(emblem), | |
3097 (double)scalesize / gdk_pixbuf_get_height(emblem), | |
3098 GDK_INTERP_BILINEAR, | |
3099 224); | |
3100 g_object_unref(emblem); | |
3101 } | |
3102 } | |
3082 } | 3103 } |
3083 | 3104 |
3084 return scale; | 3105 return scale; |
3085 } | 3106 } |
3086 | 3107 |