Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
8937:fd1a4ff1f7ed | 8938:88ec59dec95a |
---|---|
345 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); | 345 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
346 | 346 |
347 return (prpl_info->set_permit_deny != NULL); | 347 return (prpl_info->set_permit_deny != NULL); |
348 } | 348 } |
349 | 349 |
350 gboolean | |
351 gaim_gtk_privacy_is_showable() | |
352 { | |
353 GList *c; | |
354 GaimConnection *gc; | |
355 | |
356 for (c = gaim_connections_get_all(); c != NULL; c = c->next) { | |
357 gc = c->data; | |
358 | |
359 if (check_account_func(gaim_connection_get_account(gc))) | |
360 return TRUE; | |
361 } | |
362 | |
363 return FALSE; | |
364 } | |
365 | |
350 static GaimGtkPrivacyDialog * | 366 static GaimGtkPrivacyDialog * |
351 privacy_dialog_new(void) | 367 privacy_dialog_new(void) |
352 { | 368 { |
353 GaimGtkPrivacyDialog *dialog; | 369 GaimGtkPrivacyDialog *dialog; |
354 GaimConnection *gc; | 370 GaimConnection *gc; |