Mercurial > pidgin.yaz
comparison src/module.c @ 3510:e23909729192
[gaim-migrate @ 3576]
A GNOME2 docklet. This follows the opendesktop.org specs used by GNOME2 and
(I think) KDE in Redhat's null (I don't think vanilla KDE supports it yet)
For GNOME--you will need to have the GNOME Panel Notification Area installed.
This replaces the applet--thanks Robert McQueen.
CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: configure.ac configure.in plugins/Makefile.am src/aim.c
CVS: src/buddy.c src/core.h src/module.c src/multi.c src/perl.c
CVS: src/server.c src/ui.h
CVS: ----------------------------------------------------------------------
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Sat, 14 Sep 2002 23:27:28 +0000 |
parents | 7a3f16a375a5 |
children | 6b0cb60162f4 |
comparison
equal
deleted
inserted
replaced
3509:8bad870eaea1 | 3510:e23909729192 |
---|---|
361 sprintf(buf, "event_chat_send_invite"); | 361 sprintf(buf, "event_chat_send_invite"); |
362 break; | 362 break; |
363 case event_got_typing: | 363 case event_got_typing: |
364 sprintf(buf, "event_got_typing"); | 364 sprintf(buf, "event_got_typing"); |
365 break; | 365 break; |
366 case event_del_conversation: | |
367 sprintf(buf, "event_del_conversation"); | |
368 break; | |
369 case event_connecting: | |
370 sprintf(buf, "event_connecting"); | |
371 break; | |
366 default: | 372 default: |
367 sprintf(buf, "event_unknown"); | 373 sprintf(buf, "event_unknown"); |
368 break; | 374 break; |
369 } | 375 } |
370 return buf; | 376 return buf; |
374 { | 380 { |
375 if (!opt_debug && !(misc_options & OPT_MISC_DEBUG)) | 381 if (!opt_debug && !(misc_options & OPT_MISC_DEBUG)) |
376 return; | 382 return; |
377 | 383 |
378 switch (event) { | 384 switch (event) { |
385 case event_blist_update: | |
386 /* this happens *really* often */ | |
387 if (opt_debug) { | |
388 debug_printf("%s\n", event_name(event)); | |
389 } | |
390 break; | |
379 case event_quit: | 391 case event_quit: |
380 debug_printf("%s\n", event_name(event)); | 392 debug_printf("%s\n", event_name(event)); |
381 break; | 393 break; |
382 case event_signon: | 394 case event_signon: |
383 case event_signoff: | 395 case event_signoff: |
384 debug_printf("%s: %s\n", event_name(event), | 396 debug_printf("%s: %s\n", event_name(event), |
385 ((struct gaim_connection *)arg1)->username); | 397 ((struct gaim_connection *)arg1)->username); |
386 break; | 398 break; |
387 case event_new_conversation: | 399 case event_new_conversation: |
388 debug_printf("event_new_conversation: %s\n", (char *)arg1); | 400 debug_printf("%s: %s\n", event_name(event), (char *)arg1); |
389 break; | 401 break; |
390 case event_error: | 402 case event_error: |
391 debug_printf("event_error: %d\n", (int)arg1); | 403 debug_printf("%s: %d\n", event_name(event), (int)arg1); |
392 break; | 404 break; |
393 case event_buddy_signon: | 405 case event_buddy_signon: |
394 case event_buddy_signoff: | 406 case event_buddy_signoff: |
395 case event_buddy_away: | 407 case event_buddy_away: |
396 case event_buddy_back: | 408 case event_buddy_back: |
397 case event_buddy_idle: | 409 case event_buddy_idle: |
398 case event_buddy_unidle: | 410 case event_buddy_unidle: |
399 case event_set_info: | 411 case event_set_info: |
400 case event_got_typing: | 412 case event_got_typing: |
401 debug_printf("%s: %s %s\n", event_name(event), | 413 debug_printf("%s: %s %s\n", event_name(event), |
402 ((struct gaim_connection *)arg1)->username, (char *)arg2); | 414 ((struct gaim_connection *)arg1)->username, (char *)arg2); |
403 break; | 415 break; |
404 case event_chat_leave: | 416 case event_chat_leave: |
405 debug_printf("event_chat_leave: %s %d\n", | 417 debug_printf("%s: %s %d\n", event_name(event), |
406 ((struct gaim_connection *)arg1)->username, (int)arg2); | 418 ((struct gaim_connection *)arg1)->username, (int)arg2); |
407 break; | 419 break; |
408 case event_im_send: | 420 case event_im_send: |
409 case event_im_displayed_sent: | 421 case event_im_displayed_sent: |
410 debug_printf("%s: %s %s %s\n", event_name(event), | 422 debug_printf("%s: %s %s %s\n", event_name(event), |
462 debug_printf("%s: %s %s %s %s\n", event_name(event), | 474 debug_printf("%s: %s %s %s %s\n", event_name(event), |
463 ((struct gaim_connection *)arg1)->username, | 475 ((struct gaim_connection *)arg1)->username, |
464 (char *)arg2, (char *)arg3, | 476 (char *)arg2, (char *)arg3, |
465 (char *)arg4 ? (char *)arg4 : ""); | 477 (char *)arg4 ? (char *)arg4 : ""); |
466 break; | 478 break; |
479 case event_del_conversation: | |
480 debug_printf("%s: %s\n", event_name(event), (char *)arg1); | |
481 break; | |
482 case event_connecting: | |
483 debug_printf("%s: %s\n", event_name(event), ((struct aim_user *)arg1)->username); | |
484 break; | |
467 default: | 485 default: |
486 debug_printf("%s: um, right. yeah.\n", event_name(event)); | |
468 break; | 487 break; |
469 } | 488 } |
470 } | 489 } |
471 | 490 |
472 int plugin_event(enum gaim_event event, void *arg1, void *arg2, void *arg3, void *arg4) | 491 int plugin_event(enum gaim_event event, void *arg1, void *arg2, void *arg3, void *arg4) |
501 case event_signon: | 520 case event_signon: |
502 case event_signoff: | 521 case event_signoff: |
503 case event_new_conversation: | 522 case event_new_conversation: |
504 case event_del_conversation: | 523 case event_del_conversation: |
505 case event_error: | 524 case event_error: |
525 case event_connecting: | |
506 one = g->function; | 526 one = g->function; |
507 one(arg1, g->data); | 527 one(arg1, g->data); |
508 break; | 528 break; |
509 | 529 |
510 /* two args */ | 530 /* two args */ |