Mercurial > pidgin.yaz
comparison src/gtkblist.c @ 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 | fcd9477e4476 |
children | eda1572c788b |
comparison
equal
deleted
inserted
replaced
12765:29594d4ccbb1 | 12766:42af52cb61f7 |
---|---|
3507 return; | 3507 return; |
3508 | 3508 |
3509 update_menu_bar(gtkblist); | 3509 update_menu_bar(gtkblist); |
3510 } | 3510 } |
3511 | 3511 |
3512 static void | |
3513 account_status_changed(GaimAccount *account, GaimStatus *old, | |
3514 GaimStatus *new, GaimGtkBuddyList *gtkblist) | |
3515 { | |
3516 if (!gtkblist) | |
3517 return; | |
3518 | |
3519 update_menu_bar(gtkblist); | |
3520 } | |
3521 | |
3512 static gboolean | 3522 static gboolean |
3513 gtk_blist_window_key_press_cb(GtkWidget *w, GdkEventKey *event, GaimGtkBuddyList *gtkblist) | 3523 gtk_blist_window_key_press_cb(GtkWidget *w, GdkEventKey *event, GaimGtkBuddyList *gtkblist) |
3514 { | 3524 { |
3515 GtkWidget *imhtml; | 3525 GtkWidget *imhtml; |
3516 | 3526 |
3749 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); | 3759 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); |
3750 gaim_signal_connect(gaim_accounts_get_handle(), "account-disabled", | 3760 gaim_signal_connect(gaim_accounts_get_handle(), "account-disabled", |
3751 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); | 3761 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); |
3752 gaim_signal_connect(gaim_accounts_get_handle(), "account-removed", | 3762 gaim_signal_connect(gaim_accounts_get_handle(), "account-removed", |
3753 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); | 3763 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); |
3764 gaim_signal_connect(gaim_accounts_get_handle(), "account-status-changed", | |
3765 gtkblist, GAIM_CALLBACK(account_status_changed), gtkblist); | |
3754 | 3766 |
3755 gaim_signal_connect(gaim_gtk_account_get_handle(), "account-modified", | 3767 gaim_signal_connect(gaim_gtk_account_get_handle(), "account-modified", |
3756 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); | 3768 gtkblist, GAIM_CALLBACK(account_modified), gtkblist); |
3757 | 3769 |
3758 gaim_signal_connect(gaim_connections_get_handle(), "signed-on", | 3770 gaim_signal_connect(gaim_connections_get_handle(), "signed-on", |