summaryrefslogtreecommitdiff
path: root/pidgin/gtkutils.c
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2021-10-12 04:46:36 -0500
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2021-10-12 04:46:36 -0500
commitf94c0bd483925e8208ddb0174ca686035722303e (patch)
tree20d8dd0a902d58165f8431ef91f8e11d85283c53 /pidgin/gtkutils.c
parent73a64fc737c70cc957f0b746f6ddae8e843a3919 (diff)
downloadpidgin-f94c0bd483925e8208ddb0174ca686035722303e.tar.gz
Replace pidgin_stock_id_from_status_primitive by pidgin_icon_name_from_status_primitive
Thus reducing the use of stock icons. Testing Done: Open saved status dialog, and also the account-specific status, and verified the type drop downs had the correct icons again. Reviewed at https://reviews.imfreedom.org/r/1038/
Diffstat (limited to 'pidgin/gtkutils.c')
-rw-r--r--pidgin/gtkutils.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/pidgin/gtkutils.c b/pidgin/gtkutils.c
index 47d119bcfa..c3f7ed0f26 100644
--- a/pidgin/gtkutils.c
+++ b/pidgin/gtkutils.c
@@ -906,35 +906,6 @@ void pidgin_buddy_icon_get_scale_size(GdkPixbuf *buf, PurpleBuddyIconSpec *spec,
*height = 100;
}
-const gchar *
-pidgin_stock_id_from_status_primitive(PurpleStatusPrimitive prim) {
- const gchar *stock = NULL;
- switch (prim) {
- case PURPLE_STATUS_UNSET:
- stock = NULL;
- break;
- case PURPLE_STATUS_UNAVAILABLE:
- stock = PIDGIN_STOCK_STATUS_BUSY;
- break;
- case PURPLE_STATUS_AWAY:
- stock = PIDGIN_STOCK_STATUS_AWAY;
- break;
- case PURPLE_STATUS_EXTENDED_AWAY:
- stock = PIDGIN_STOCK_STATUS_XA;
- break;
- case PURPLE_STATUS_INVISIBLE:
- stock = PIDGIN_STOCK_STATUS_INVISIBLE;
- break;
- case PURPLE_STATUS_OFFLINE:
- stock = PIDGIN_STOCK_STATUS_OFFLINE;
- break;
- default:
- stock = PIDGIN_STOCK_STATUS_AVAILABLE;
- break;
- }
- return stock;
-}
-
GdkPixbuf *
pidgin_create_protocol_icon(PurpleAccount *account, PidginProtocolIconSize size)
{