changeset 15003:1a8aa1ff4c62

[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 <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sun, 19 Nov 2006 17:24:56 +0000
parents ff4514c11cbc
children 60bba83d5c2d
files gtk/gtkstatusbox.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);
 		}
 	}