Mercurial > pidgin.yaz
diff pidgin/gtkconv.c @ 26725:0011cd06990a
Use stock-id in the status editor window too.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 23 Apr 2009 05:08:06 +0000 |
parents | d78f1d400d2f |
children | dbe2731f0a35 |
line wrap: on
line diff
--- a/pidgin/gtkconv.c Thu Apr 23 03:55:35 2009 +0000 +++ b/pidgin/gtkconv.c Thu Apr 23 05:08:06 2009 +0000 @@ -2534,27 +2534,7 @@ PurpleStatus *active = purple_presence_get_active_status(p); PurpleStatusType *type = purple_status_get_type(active); PurpleStatusPrimitive prim = purple_status_type_get_primitive(type); - - switch (prim) { - 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; - } + stock = pidgin_stock_id_from_status_primitive(prim); } else { stock = PIDGIN_STOCK_STATUS_PERSON; }