Mercurial > pidgin.yaz
comparison plugins/ticker/ticker.c @ 4227:a614423c648f
[gaim-migrate @ 4471]
This is a patch from Nathan Walp that adds a
"char server_alias[BUDDY_ALIAS_MAXLEN]" to struct buddy, and a preference
option to show the server alias instead of the alias set by you. It
shouldn't cause any problems. But then again, faceprint is a crazy patch
writer, with an emphasis on crazy, if you know what I mean. Huh? Get it?
"Crazy"? I kill me. But right after I kill Time Warner.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 07 Jan 2003 17:44:34 +0000 |
parents | ebfb80bbe1ed |
children | 0c68d402f59f |
comparison
equal
deleted
inserted
replaced
4226:a7d1eddc0afc | 4227:a614423c648f |
---|---|
349 if (gc->prpl->list_icon) | 349 if (gc->prpl->list_icon) |
350 xpm = gc->prpl->list_icon(b->uc); | 350 xpm = gc->prpl->list_icon(b->uc); |
351 if (xpm == NULL) | 351 if (xpm == NULL) |
352 xpm = (char **)no_icon_xpm; | 352 xpm = (char **)no_icon_xpm; |
353 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, NULL, xpm); | 353 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, NULL, xpm); |
354 BuddyTickerAddUser( b->name, b->show, pm, bm ); | 354 BuddyTickerAddUser( b->name, get_buddy_alias(b), pm, bm ); |
355 gdk_pixmap_unref(pm); | 355 gdk_pixmap_unref(pm); |
356 if (bm) | 356 if (bm) |
357 gdk_bitmap_unref(bm); | 357 gdk_bitmap_unref(bm); |
358 } | 358 } |
359 } | 359 } |
372 xpm = gc->prpl->list_icon(b->uc); | 372 xpm = gc->prpl->list_icon(b->uc); |
373 if (xpm == NULL) | 373 if (xpm == NULL) |
374 xpm = (char **)no_icon_xpm; | 374 xpm = (char **)no_icon_xpm; |
375 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, NULL, xpm); | 375 pm = gdk_pixmap_create_from_xpm_d(blist->window, &bm, NULL, xpm); |
376 | 376 |
377 BuddyTickerAddUser(who, b->show, pm, bm); | 377 BuddyTickerAddUser(who, get_buddy_alias(b), pm, bm); |
378 gdk_pixmap_unref(pm); | 378 gdk_pixmap_unref(pm); |
379 if (bm) | 379 if (bm) |
380 gdk_bitmap_unref(bm); | 380 gdk_bitmap_unref(bm); |
381 } | 381 } |
382 | 382 |