Mercurial > pidgin
changeset 31110:5841cbbebc53
It just don't makes sense to set a status message when changing to Offline. This was bugging me since long time ago.
author | masca@cpw.pidgin.im |
---|---|
date | Sat, 08 Jan 2011 06:39:45 +0000 |
parents | e71f78f10ce8 |
children | 8b710369bd50 |
files | ChangeLog pidgin/gtkstatusbox.c |
diffstat | 2 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Jan 08 03:01:00 2011 +0000 +++ b/ChangeLog Sat Jan 08 06:39:45 2011 +0000 @@ -22,6 +22,7 @@ the conversation window. (Ryan Flegel) (#13127) * Fix a few memory leaks. (Nader Morshed) (#13162) * Support rendering strikethrough when received as in-line CSS. (#13168) + * Don't show the message entry when changing to Offline Status. Plugins: * The Voice/Video Settings plugin no longer resets selected devices to
--- a/pidgin/gtkstatusbox.c Sat Jan 08 03:01:00 2011 +0000 +++ b/pidgin/gtkstatusbox.c Sat Jan 08 06:39:45 2011 +0000 @@ -2659,7 +2659,8 @@ account = node->data; status_type = purple_account_get_status_type_with_primitive(account, GPOINTER_TO_INT(data)); if ((status_type != NULL) && - (purple_status_type_get_attr(status_type, "message") != NULL)) + (purple_status_type_get_attr(status_type, "message") != NULL) && + (purple_status_type_get_primitive(status_type) != PURPLE_STATUS_OFFLINE)) { status_box->imhtml_visible = TRUE; break;