Mercurial > pidgin
changeset 26704:f7b409c896cd
We probably shouldn't have to set the pixbuf and the stock-id, but anyway,
sometimes the stock-id is NULL, so don't try to create a pixbuf out of it.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 27 Apr 2009 04:50:44 +0000 |
parents | baa23b7a4d42 |
children | 911a325116d5 |
files | pidgin/gtkstatusbox.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkstatusbox.c Sun Apr 26 22:55:58 2009 +0000 +++ b/pidgin/gtkstatusbox.c Mon Apr 27 04:50:44 2009 +0000 @@ -719,7 +719,8 @@ } stock = pidgin_stock_id_from_status_primitive(prim); - pixbuf = pidgin_status_box_get_pixbuf(status_box, stock); + if (stock) + pixbuf = pidgin_status_box_get_pixbuf(status_box, stock); } if (status_box->account != NULL) { @@ -2158,7 +2159,8 @@ } stock = pidgin_stock_id_from_status_primitive(prim); - pixbuf = pidgin_status_box_get_pixbuf(status_box, stock); + if (stock) + pixbuf = pidgin_status_box_get_pixbuf(status_box, stock); } gtk_list_store_append(status_box->dropdown_store, &iter);