Mercurial > pidgin
comparison src/roomlist.h @ 8937:fd1a4ff1f7ed
[gaim-migrate @ 9707]
Tools->Room List will now be grayed out when you're not signed on
with an account that supports listing rooms.
This involved 2 big changes:
-Change when the sign_on_off_cb function in gtkblist gets called...
it used to get called when the signing-on and signing-off signal
was emitted, but I changed it to signed-on and signed-off. This
makes more sense to me, and it makes my code work :-) Let me know
if you notice any side-effects
-Add functions to the roomlist API for determining if any online
accounts support chatting or not. This involved extracting a
function from gtkroomlist.c and putting it in roomlist.c, and
adding a little helper TRUE/FALSE function
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 15 May 2004 21:56:17 +0000 |
parents | c2dff943e240 |
children | 19885cb8a24c |
comparison
equal
deleted
inserted
replaced
8936:7cbdbed9d329 | 8937:fd1a4ff1f7ed |
---|---|
111 /** @name Room List API */ | 111 /** @name Room List API */ |
112 /**************************************************************************/ | 112 /**************************************************************************/ |
113 /*@{*/ | 113 /*@{*/ |
114 | 114 |
115 /** | 115 /** |
116 * Return true if there are accounts signed on that support showing | |
117 * a roomlist. | |
118 * | |
119 * @return True if showing the roomlist is a valid action. | |
120 */ | |
121 gboolean gaim_roomlist_is_showable(); | |
122 | |
123 /** | |
124 * Get the first online acocunt that supports showing a roomlist. | |
125 * | |
126 * @return The first selected account of all the accounts that | |
127 * support showing a roomlist. | |
128 */ | |
129 GaimAccount *gaim_roomlist_get_first_valid_account(); | |
130 | |
131 /** | |
116 * This is used to get the room list on an account, asking the UI | 132 * This is used to get the room list on an account, asking the UI |
117 * to pop up a dialog with the specified account already selected, | 133 * to pop up a dialog with the specified account already selected, |
118 * and pretend the user clicked the get list button. | 134 * and pretend the user clicked the get list button. |
119 * While we're pretending, predend I didn't say anything about dialogs | 135 * While we're pretending, predend I didn't say anything about dialogs |
120 * or buttons, since this is the core. | 136 * or buttons, since this is the core. |