changeset 12766:42af52cb61f7

[gaim-migrate @ 15113] sf patch #1399388, from Nick Hebner Account menu icon update on account-status-changed committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 08 Jan 2006 21:32:09 +0000
parents 29594d4ccbb1
children 53218d758ba9
files COPYRIGHT src/gtkblist.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/COPYRIGHT	Sun Jan 08 20:54:57 2006 +0000
+++ b/COPYRIGHT	Sun Jan 08 21:32:09 2006 +0000
@@ -108,6 +108,7 @@
 Andrew Hart (arhart)
 G. Sumner Hayes
 Michael R. Head
+Nick Nebner
 Mike Heffner
 Benjamin Herrenschmidt
 Fernando Herrera
--- a/src/gtkblist.c	Sun Jan 08 20:54:57 2006 +0000
+++ b/src/gtkblist.c	Sun Jan 08 21:32:09 2006 +0000
@@ -3509,6 +3509,16 @@
 	update_menu_bar(gtkblist);
 }
 
+static void
+account_status_changed(GaimAccount *account, GaimStatus *old,
+					   GaimStatus *new, GaimGtkBuddyList *gtkblist)
+{
+	if (!gtkblist)
+		return;
+
+	update_menu_bar(gtkblist);
+}
+
 static gboolean
 gtk_blist_window_key_press_cb(GtkWidget *w, GdkEventKey *event, GaimGtkBuddyList *gtkblist)
 {
@@ -3751,6 +3761,8 @@
 			gtkblist, GAIM_CALLBACK(account_modified), gtkblist);
 	gaim_signal_connect(gaim_accounts_get_handle(), "account-removed",
 			gtkblist, GAIM_CALLBACK(account_modified), gtkblist);
+	gaim_signal_connect(gaim_accounts_get_handle(), "account-status-changed",
+			gtkblist, GAIM_CALLBACK(account_status_changed), gtkblist);
 
 	gaim_signal_connect(gaim_gtk_account_get_handle(), "account-modified",
 			gtkblist, GAIM_CALLBACK(account_modified), gtkblist);