Mercurial > pidgin
diff src/gtkblist.c @ 12080:3b52d94437f3
[gaim-migrate @ 14377]
The rest of sf patch #1354886, from Sadrul Habib Chowdhury, with
an EXTREME amount of changes from me. Come to me, first, if something
doesn't work.
This allows you to edit the substatuses of a saved status.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 14 Nov 2005 07:20:22 +0000 |
parents | e4666705944b |
children | 875f59f9c0bb |
line wrap: on
line diff
--- a/src/gtkblist.c Mon Nov 14 06:50:07 2005 +0000 +++ b/src/gtkblist.c Mon Nov 14 07:20:22 2005 +0000 @@ -4841,49 +4841,6 @@ } /********************************************************************* - * Public utility functions * - *********************************************************************/ - -GdkPixbuf * -gaim_gtk_create_prpl_icon(GaimAccount *account) -{ - GaimPlugin *prpl; - GaimPluginProtocolInfo *prpl_info = NULL; - GdkPixbuf *status = NULL; - char *filename = NULL; - const char *protoname = NULL; - char buf[256]; - - g_return_val_if_fail(account != NULL, NULL); - - prpl = gaim_find_prpl(gaim_account_get_protocol_id(account)); - - if (prpl != NULL) { - prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(prpl); - - if (prpl_info->list_icon != NULL) - protoname = prpl_info->list_icon(account, NULL); - } - - if (protoname == NULL) - return NULL; - - /* - * Status icons will be themeable too, and then it will look up - * protoname from the theme - */ - g_snprintf(buf, sizeof(buf), "%s.png", protoname); - - filename = g_build_filename(DATADIR, "pixmaps", "gaim", "status", - "default", buf, NULL); - status = gdk_pixbuf_new_from_file(filename, NULL); - g_free(filename); - - return status; -} - - -/********************************************************************* * Buddy List sorting functions * *********************************************************************/