Mercurial > pidgin.yaz
diff src/roomlist.c @ 8939:19885cb8a24c
[gaim-migrate @ 9709]
Handle graying out the roomlist menu item in a more sane way.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 15 May 2004 23:04:08 +0000 |
parents | fd1a4ff1f7ed |
children | 5151c6788f3d |
line wrap: on
line diff
--- a/src/roomlist.c Sat May 15 22:39:09 2004 +0000 +++ b/src/roomlist.c Sat May 15 23:04:08 2004 +0000 @@ -39,31 +39,6 @@ /**************************************************************************/ /*@{*/ -gboolean gaim_roomlist_is_showable() -{ - if (gaim_roomlist_get_first_valid_account() != NULL) - return TRUE; - return FALSE; -} - -GaimAccount *gaim_roomlist_get_first_valid_account() -{ - GList *c; - GaimConnection *gc; - GaimAccount *first_account = NULL; - - for (c = gaim_connections_get_all(); c != NULL; c = c->next) { - gc = c->data; - - if (gaim_roomlist_is_possible(gc)) { - first_account = gaim_connection_get_account(gc); - break; - } - } - - return first_account; -} - void gaim_roomlist_show_with_account(GaimAccount *account) { if (ops && ops->show_with_account) @@ -195,20 +170,6 @@ ops->add_room(list, room); } -gboolean gaim_roomlist_is_possible(GaimConnection *gc) -{ - GaimPluginProtocolInfo *prpl_info = NULL; - - g_return_val_if_fail(gc != NULL, FALSE); - - if (gc->prpl != NULL) - prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); - - if (prpl_info && prpl_info->roomlist_get_list) - return TRUE; - return FALSE; -} - GaimRoomlist *gaim_roomlist_get_list(GaimConnection *gc) { GaimPluginProtocolInfo *prpl_info = NULL;