pidgin/gtkdocklet.c

branch
soc.2013.gobjectification.plugins
changeset 36362
e518ad02107d
parent 34708
dd67596485ca
child 36415
1c0b40253875
equal deleted inserted replaced
36361:9e68a23150cf 36362:e518ad02107d
258 GList *c = NULL; 258 GList *c = NULL;
259 c = purple_connections_get_all(); 259 c = purple_connections_get_all();
260 260
261 while(c != NULL) { 261 while(c != NULL) {
262 PurpleConnection *gc = c->data; 262 PurpleConnection *gc = c->data;
263 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc)); 263 PurplePluginProtocolInfo *prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_protocol_info(gc));
264 if (prpl_info != NULL && prpl_info->chat_info != NULL) 264 if (prpl_info != NULL && prpl_info->chat_info != NULL)
265 return TRUE; 265 return TRUE;
266 c = c->next; 266 c = c->next;
267 } 267 }
268 268
295 295
296 static void 296 static void
297 docklet_signed_on_cb(PurpleConnection *gc) 297 docklet_signed_on_cb(PurpleConnection *gc)
298 { 298 {
299 if (!enable_join_chat) { 299 if (!enable_join_chat) {
300 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc))->chat_info != NULL) 300 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_protocol_info(gc))->chat_info != NULL)
301 enable_join_chat = TRUE; 301 enable_join_chat = TRUE;
302 } 302 }
303 docklet_update_status(); 303 docklet_update_status();
304 } 304 }
305 305
306 static void 306 static void
307 docklet_signed_off_cb(PurpleConnection *gc) 307 docklet_signed_off_cb(PurpleConnection *gc)
308 { 308 {
309 if (enable_join_chat) { 309 if (enable_join_chat) {
310 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc))->chat_info != NULL) 310 if (PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_protocol_info(gc))->chat_info != NULL)
311 enable_join_chat = online_account_supports_chat(); 311 enable_join_chat = online_account_supports_chat();
312 } 312 }
313 docklet_update_status(); 313 docklet_update_status();
314 } 314 }
315 315

mercurial