X-Git-Url: http://git.maemo.org/git/?p=python-purple;a=blobdiff_plain;f=c_purple.c;h=1130a5b1e71f1412ae7f0f158a6a5aecf5a0d1a5;hp=fab5c9fdab47be868da1415c1255d0e6da73bb3d;hb=23bbccf4aeb7b092ae26a90f05c1ced78b512295;hpb=a29730a9b6c00cfeaacc64311349df4da9ce1c8b diff --git a/c_purple.c b/c_purple.c index fab5c9f..1130a5b 100644 --- a/c_purple.c +++ b/c_purple.c @@ -76,18 +76,3 @@ guint glib_input_add(gint fd, PurpleInputCondition condition, PurpleInputFunctio g_io_channel_unref(channel); return closure->result; } - -static void -signed_on(PurpleConnection *gc, gpointer null) -{ - PurpleAccount *account = purple_connection_get_account(gc); - printf("Account connected: %s %s\n", account->username, account->protocol_id); -} - -void connect_to_signals_for_demonstration_purposes_only(void) -{ - static int handle; - - purple_signal_connect(purple_connections_get_handle(), "signed-on", &handle, - PURPLE_CALLBACK(signed_on), NULL); -}