Mercurial > pidgin.yaz
diff src/gtkstatusselector.c @ 10352:5879593a6a10
[gaim-migrate @ 11569]
Gray out some buddy list menu items and the gtkstatusselector if
no accounts are online.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 13 Dec 2004 01:49:55 +0000 |
parents | 4d2ecbb139a0 |
children | 6a043ae92db6 |
line wrap: on
line diff
--- a/src/gtkstatusselector.c Mon Dec 13 01:24:19 2004 +0000 +++ b/src/gtkstatusselector.c Mon Dec 13 01:49:55 2004 +0000 @@ -510,6 +510,17 @@ #endif /* + * If no accounts are connected then gray ourself out and get + * outta hee. + */ + if (gaim_connections_get_all() == NULL) + { + gtk_widget_set_sensitive(GTK_WIDGET(selector), FALSE); + return; + } + gtk_widget_set_sensitive(GTK_WIDGET(selector), TRUE); + + /* * If the user only has one IM account or one type of IM account * connected, they'll see all their statuses. This is ideal for those * who use only one account, or one single protocol. Everyone else