Mercurial > pidgin.yaz
comparison plugins/docklet/docklet.c @ 12525:dd2b171a624c
[gaim-migrate @ 14837]
this fixes having the docklet enabled at startup. Since the signed-on signal
gets emitted at almost the exact same time as the account-connecting signal,
I have no problem removing the duplication.
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Sat, 17 Dec 2005 17:35:54 +0000 |
parents | a2de852981c1 |
children | e0be7349161a |
comparison
equal
deleted
inserted
replaced
12524:977ebab0435f | 12525:dd2b171a624c |
---|---|
142 | 142 |
143 if (convs != NULL) { | 143 if (convs != NULL) { |
144 pending = TRUE; | 144 pending = TRUE; |
145 | 145 |
146 /* set tooltip if messages are pending */ | 146 /* set tooltip if messages are pending */ |
147 if (ui_ops->set_tooltip) { | 147 if (0 && ui_ops->set_tooltip) { |
148 GString *tooltip_text = g_string_new(""); | 148 GString *tooltip_text = g_string_new(""); |
149 for (l = convs, count = 0 ; l != NULL ; l = l->next, count++) { | 149 for (l = convs, count = 0 ; l != NULL ; l = l->next, count++) { |
150 if (GAIM_IS_GTK_CONVERSATION(l->data)) { | 150 if (GAIM_IS_GTK_CONVERSATION(l->data)) { |
151 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION((GaimConversation *)l->data); | 151 GaimGtkConversation *gtkconv = GAIM_GTK_CONVERSATION((GaimConversation *)l->data); |
152 if (count == DOCKLET_TOOLTIP_LINE_LIMIT - 1) | 152 if (count == DOCKLET_TOOLTIP_LINE_LIMIT - 1) |
244 GList *c = NULL; | 244 GList *c = NULL; |
245 c = gaim_connections_get_all(); | 245 c = gaim_connections_get_all(); |
246 | 246 |
247 while(c != NULL) { | 247 while(c != NULL) { |
248 GaimConnection *gc = c->data; | 248 GaimConnection *gc = c->data; |
249 if (GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl)->chat_info != NULL) | 249 GaimPluginProtocolInfo *prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); |
250 if (prpl_info != NULL && prpl_info->chat_info != NULL) | |
250 return TRUE; | 251 return TRUE; |
251 c = c->next; | 252 c = c->next; |
252 } | 253 } |
253 | 254 |
254 return FALSE; | 255 return FALSE; |
513 handle = plugin; | 514 handle = plugin; |
514 | 515 |
515 docklet_ui_init(); | 516 docklet_ui_init(); |
516 if (ui_ops && ui_ops->create) | 517 if (ui_ops && ui_ops->create) |
517 ui_ops->create(); | 518 ui_ops->create(); |
518 | |
519 gaim_signal_connect(conn_handle, "signed-on", | 519 gaim_signal_connect(conn_handle, "signed-on", |
520 plugin, GAIM_CALLBACK(docklet_signed_on_cb), NULL); | 520 plugin, GAIM_CALLBACK(docklet_signed_on_cb), NULL); |
521 gaim_signal_connect(conn_handle, "signed-off", | 521 gaim_signal_connect(conn_handle, "signed-off", |
522 plugin, GAIM_CALLBACK(docklet_signed_off_cb), NULL); | 522 plugin, GAIM_CALLBACK(docklet_signed_off_cb), NULL); |
523 gaim_signal_connect(accounts_handle, "account-connecting", | |
524 plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL); | |
525 gaim_signal_connect(accounts_handle, "account-status-changed", | 523 gaim_signal_connect(accounts_handle, "account-status-changed", |
526 plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL); | 524 plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL); |
527 gaim_signal_connect(conv_handle, "received-im-msg", | 525 gaim_signal_connect(conv_handle, "received-im-msg", |
528 plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL); | 526 plugin, GAIM_CALLBACK(docklet_update_status_cb), NULL); |
529 gaim_signal_connect(conv_handle, "conversation-created", | 527 gaim_signal_connect(conv_handle, "conversation-created", |