comparison src/connection.h @ 9019:db1dc2d02020

[gaim-migrate @ 9795] Fiddled with a few small things 1) Added a GAIM_CONNECTION_IS_CONNECTED(gc) #define to connection.h 2) In the functions that build the Account Actions and Plugin Actions menus, I didn't think the comment "plugin and gc will be set from the counting loop already" was accurate (but it might be, becase it seemed like the account actions menu worked with one account online). So I made sure plugin and gc are set to what they should be. 3) Changed gaim_account_is_connected() to use GAIM_CONNECTION_IS_CONNECTED Previously gaim_account_is_connected() would return true for gc's that were "GAIM_CONNECTING." Now it only returns true for gc's that are "GAIM_CONNECTED." committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 22 May 2004 23:08:27 +0000
parents 92cbf9713795
children 812e7aa7eafa
comparison
equal deleted inserted replaced
9018:bb168141eb5f 9019:db1dc2d02020
188 * @return The connection state. 188 * @return The connection state.
189 */ 189 */
190 GaimConnectionState gaim_connection_get_state(const GaimConnection *gc); 190 GaimConnectionState gaim_connection_get_state(const GaimConnection *gc);
191 191
192 /** 192 /**
193 * Returns TRUE if the account is connected, otherwise returns FALSE.
194 *
195 * @return TRUE if the account is connected, otherwise returns FALSE.
196 */
197 #define GAIM_CONNECTION_IS_CONNECTED(gc) \
198 (gc->state == GAIM_CONNECTED)
199
200 /**
193 * Returns the connection's account. 201 * Returns the connection's account.
194 * 202 *
195 * @param gc The connection. 203 * @param gc The connection.
196 * 204 *
197 * @return The connection's account. 205 * @return The connection's account.