pidgin: 8152c59e: I think this is marginally better to rea...
qulogic at pidgin.im
qulogic at pidgin.im
Mon Aug 23 01:31:58 EDT 2010
----------------------------------------------------------------------
Revision: 8152c59e37077941bce9ab4317438f41754116be
Parent: e956fcaa4f67bf746ff9780cb2771150e4e782ef
Author: qulogic at pidgin.im
Date: 08/22/10 20:53:55
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8152c59e37077941bce9ab4317438f41754116be
Changelog:
I think this is marginally better to read.
Changes against parent e956fcaa4f67bf746ff9780cb2771150e4e782ef
patched pidgin/gtkstatusbox.c
-------------- next part --------------
============================================================
--- pidgin/gtkstatusbox.c 9387b16efae878ce53827e3daad488194f81a277
+++ pidgin/gtkstatusbox.c f13b3aa1c8ca925ee8ab22d6b374c1f5565ef2d1
@@ -966,7 +966,7 @@ add_popular_statuses(PidginStatusBox *st
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 @@ add_popular_statuses(PidginStatusBox *st
* 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,
More information about the Commits
mailing list