# HG changeset patch # User Elliott Sales de Andrade # Date 1282524835 0 # Node ID c9a57878ed178f865772c2957dbce15d29fe9615 # Parent 351d07aefb09fafceb366c26a4aace68116bcc45 I think this is marginally better to read. diff -r 351d07aefb09 -r c9a57878ed17 pidgin/gtkstatusbox.c --- a/pidgin/gtkstatusbox.c Mon Aug 23 00:52:24 2010 +0000 +++ b/pidgin/gtkstatusbox.c Mon Aug 23 00:53:55 2010 +0000 @@ -966,7 +966,7 @@ PurpleSavedStatus *saved = cur->data; const gchar *message; gchar *stripped = NULL; - PidginStatusBoxItemType type = PIDGIN_STATUS_BOX_TYPE_POPULAR; + PidginStatusBoxItemType type; if (purple_savedstatus_is_transient(saved)) { @@ -975,16 +975,18 @@ * API returns the message when purple_savedstatus_get_title() is * called, so we don't need to get the message a second time. */ + type = PIDGIN_STATUS_BOX_TYPE_POPULAR; } else { + type = PIDGIN_STATUS_BOX_TYPE_SAVED_POPULAR; + message = purple_savedstatus_get_message(saved); if (message != NULL) { stripped = purple_markup_strip_html(message); purple_util_chrreplace(stripped, '\n', ' '); } - type = PIDGIN_STATUS_BOX_TYPE_SAVED_POPULAR; } pidgin_status_box_add(statusbox, type,