comparison finch/gntpounce.c @ 20714:1e123d315ac6

Pounce handlers cannot have a null callback.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 29 Sep 2007 08:33:37 +0000
parents 6bf32c9e15a7
children fdefa5eb46e2
comparison
equal deleted inserted replaced
20713:8ed95ae6441b 20714:1e123d315ac6
962 purple_signal_connect(purple_connections_get_handle(), "signed-off", 962 purple_signal_connect(purple_connections_get_handle(), "signed-off",
963 finch_pounces_get_handle(), 963 finch_pounces_get_handle(),
964 PURPLE_CALLBACK(signed_on_off_cb), NULL); 964 PURPLE_CALLBACK(signed_on_off_cb), NULL);
965 } 965 }
966 966
967 static void
968 dummy_pounce_cb(PurplePounce *pounce, PurplePounceEvent events, void *data)
969 {
970 }
971
967 /* XXX: There's no such thing in pidgin. Perhaps there should be? */ 972 /* XXX: There's no such thing in pidgin. Perhaps there should be? */
968 void finch_pounces_uninit() 973 void finch_pounces_uninit()
969 { 974 {
970 purple_pounces_register_handler(FINCH_UI, NULL, NULL, NULL); 975 purple_pounces_register_handler(FINCH_UI, dummy_pounce_cb, NULL, NULL);
971 976
972 purple_signals_disconnect_by_handle(finch_pounces_get_handle()); 977 purple_signals_disconnect_by_handle(finch_pounces_get_handle());
973 } 978 }
974 979