# HG changeset patch # User Sadrul Habib Chowdhury # Date 1163957096 0 # Node ID 1a8aa1ff4c620c8d0380e552e63bbf96ebab7650 # Parent ff4514c11cbcfc3a7505cf746ab152c605161edb [gaim-migrate @ 17782] Patch #1508458: "Improvements for per-account statusboxes" "If someone changes the status of an account using a per-account status-selector, and the current savedstatus is a transient savedstatus, then the changed status for the account is added as a substatus for the savedstatus. This is useful because a user can create a custom status using the per-account statusboxes in the buddy-list, and then using the 'New...' item from the global selectors, which will automatically populate the different statuses of all the accounts." committer: Tailor Script diff -r ff4514c11cbc -r 1a8aa1ff4c62 gtk/gtkstatusbox.c --- a/gtk/gtkstatusbox.c Sun Nov 19 07:37:48 2006 +0000 +++ b/gtk/gtkstatusbox.c Sun Nov 19 17:24:56 2006 +0000 @@ -1888,6 +1888,11 @@ else gaim_account_set_status(status_box->account, id, TRUE, NULL); + + saved_status = gaim_savedstatus_get_current(); + if (gaim_savedstatus_is_transient(saved_status)) + gaim_savedstatus_set_substatus(saved_status, status_box->account, + status_type, message); } }