Mercurial > pidgin
comparison plugins/notify.c @ 9303:fe931c791fc0
[gaim-migrate @ 10107]
Fix a comiler warning, an accelerator key, and document something.
Stu is all about keeping me on my toes.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 17 Jun 2004 01:34:58 +0000 |
| parents | b0b544e0f246 |
| children | 4a15962c344a |
comparison
equal
deleted
inserted
replaced
| 9302:c45163af02fc | 9303:fe931c791fc0 |
|---|---|
| 354 /* always attach the signals, notify() will take care of conversation type | 354 /* always attach the signals, notify() will take care of conversation type |
| 355 * checking */ | 355 * checking */ |
| 356 attach_signals(conv); | 356 attach_signals(conv); |
| 357 } | 357 } |
| 358 | 358 |
| 359 #if 0 | |
| 359 static void | 360 static void |
| 360 conv_switched(GaimConversation *old_conv, GaimConversation *new_conv) | 361 conv_switched(GaimConversation *old_conv, GaimConversation *new_conv) |
| 361 { | 362 { |
| 362 GaimConvWindow *gaimwin = gaim_conversation_get_window(new_conv); | 363 GaimConvWindow *gaimwin = gaim_conversation_get_window(new_conv); |
| 363 | 364 |
| 370 * re-notify it */ | 371 * re-notify it */ |
| 371 if (count_messages(gaimwin)) | 372 if (count_messages(gaimwin)) |
| 372 notify_win(gaimwin); | 373 notify_win(gaimwin); |
| 373 } | 374 } |
| 374 } | 375 } |
| 376 #endif | |
| 375 | 377 |
| 376 static void | 378 static void |
| 377 deleting_conv(GaimConversation *conv) | 379 deleting_conv(GaimConversation *conv) |
| 378 { | 380 { |
| 379 GaimConvWindow *gaimwin = NULL; | 381 GaimConvWindow *gaimwin = NULL; |
| 385 gaimwin = gaim_conversation_get_window(conv); | 387 gaimwin = gaim_conversation_get_window(conv); |
| 386 if (count_messages(gaimwin)) | 388 if (count_messages(gaimwin)) |
| 387 notify_win(gaimwin); | 389 notify_win(gaimwin); |
| 388 } | 390 } |
| 389 | 391 |
| 392 #if 0 | |
| 390 static void | 393 static void |
| 391 conversation_drag_ended(GaimConversation *active_conv, | 394 conversation_drag_ended(GaimConversation *active_conv, |
| 392 GaimConvWindow *old_gaimwin, | 395 GaimConvWindow *old_gaimwin, |
| 393 GaimConvWindow *new_gaimwin) | 396 GaimConvWindow *new_gaimwin) |
| 394 { | 397 { |
| 431 if (count_messages(old_gaimwin)) | 434 if (count_messages(old_gaimwin)) |
| 432 notify_win(old_gaimwin); | 435 notify_win(old_gaimwin); |
| 433 */ | 436 */ |
| 434 } | 437 } |
| 435 } | 438 } |
| 439 #endif | |
| 436 | 440 |
| 437 static void | 441 static void |
| 438 handle_string(GaimConvWindow *gaimwin) | 442 handle_string(GaimConvWindow *gaimwin) |
| 439 { | 443 { |
| 440 GtkWindow *window = NULL; | 444 GtkWindow *window = NULL; |
| 732 GAIM_CALLBACK(conv_created), NULL); | 736 GAIM_CALLBACK(conv_created), NULL); |
| 733 gaim_signal_connect(conv_handle, "chat-joined", plugin, | 737 gaim_signal_connect(conv_handle, "chat-joined", plugin, |
| 734 GAIM_CALLBACK(conv_created), NULL); | 738 GAIM_CALLBACK(conv_created), NULL); |
| 735 gaim_signal_connect(conv_handle, "deleting-conversation", plugin, | 739 gaim_signal_connect(conv_handle, "deleting-conversation", plugin, |
| 736 GAIM_CALLBACK(deleting_conv), NULL); | 740 GAIM_CALLBACK(deleting_conv), NULL); |
| 737 /* | 741 #if 0 |
| 738 gaim_signal_connect(conv_handle, "conversation-switched", plugin, | 742 gaim_signal_connect(conv_handle, "conversation-switched", plugin, |
| 739 GAIM_CALLBACK(conv_switched), NULL); | 743 GAIM_CALLBACK(conv_switched), NULL); |
| 740 gaim_signal_connect(gtk_conv_handle, "conversation-drag-ended", plugin, | 744 gaim_signal_connect(gtk_conv_handle, "conversation-drag-ended", plugin, |
| 741 GAIM_CALLBACK(conversation_drag_ended), NULL); | 745 GAIM_CALLBACK(conversation_drag_ended), NULL); |
| 742 */ | 746 #endif |
| 743 | 747 |
| 744 while (convs) { | 748 while (convs) { |
| 745 GaimConversation *conv = (GaimConversation *)convs->data; | 749 GaimConversation *conv = (GaimConversation *)convs->data; |
| 746 | 750 |
| 747 /* attach signals */ | 751 /* attach signals */ |
