Mercurial > pidgin.yaz
diff src/gtkprivacy.c @ 8938:88ec59dec95a
[gaim-migrate @ 9708]
Make the Tools->Privacy menu item be insensitive if there are no
accounts online that support privacy.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 15 May 2004 22:39:09 +0000 |
parents | 725413cc9fb9 |
children | b875f5d57b81 |
line wrap: on
line diff
--- a/src/gtkprivacy.c Sat May 15 21:56:17 2004 +0000 +++ b/src/gtkprivacy.c Sat May 15 22:39:09 2004 +0000 @@ -347,6 +347,22 @@ return (prpl_info->set_permit_deny != NULL); } +gboolean +gaim_gtk_privacy_is_showable() +{ + GList *c; + GaimConnection *gc; + + for (c = gaim_connections_get_all(); c != NULL; c = c->next) { + gc = c->data; + + if (check_account_func(gaim_connection_get_account(gc))) + return TRUE; + } + + return FALSE; +} + static GaimGtkPrivacyDialog * privacy_dialog_new(void) {