# HG changeset patch # User masca@cpw.pidgin.im # Date 1294468785 0 # Node ID 5841cbbebc53d3677520428fb970cb55a1230338 # Parent e71f78f10ce848d282f8d2430dd2db5f6ec5fabc It just don't makes sense to set a status message when changing to Offline. This was bugging me since long time ago. diff -r e71f78f10ce8 -r 5841cbbebc53 ChangeLog --- 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 diff -r e71f78f10ce8 -r 5841cbbebc53 pidgin/gtkstatusbox.c --- 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;