diff options
author | Eion Robb <eion@robbmob.com> | 2012-02-09 05:18:19 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2012-02-09 05:18:19 +0400 |
commit | ddcb6abb6aad916708b0d869c328e613d50776ea (patch) | |
tree | c86e5def8c7a680d1f245940464b260a26a20827 /SkypePlugin.m | |
parent | d0f08e5d63cd4cf80f29502c6d73620e26dc0c30 (diff) |
Fix compilation of plugin for Adium 1.5 by not overriding the timeout_add functions
Diffstat (limited to 'SkypePlugin.m')
-rw-r--r-- | SkypePlugin.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/SkypePlugin.m b/SkypePlugin.m index 4f32818..1692537 100644 --- a/SkypePlugin.m +++ b/SkypePlugin.m @@ -17,6 +17,9 @@ extern PurplePlugin *purple_plugin_new(gboolean native, const char *path) __attribute__((weak_import)); //extern void g_thread_init (GThreadFunctions *vtable) __attribute__((weak_import)); +guint (*adium_timeout_add)(guint, GSourceFunc, gpointer); +gboolean purple_init_skype_plugin(void); + static void skypeAdiumPurpleAddXfer(PurpleXfer *xfer) { if (!xfer || !xfer->account || strcmp(xfer->account->protocol_id, "prpl-bigbrownchunx-skype")) @@ -65,7 +68,8 @@ guint adium_threadsafe_timeout_add(guint interval, GSourceFunc function, gpointe printf("Calling purple_init_skype_plugin()\n"); //Hack in our own transfer code and thread-safe timeout loop adium_purple_xfers_get_ui_ops()->add_xfer = skypeAdiumPurpleAddXfer; - adium_purple_eventloop_get_ui_ops()->timeout_add = adium_threadsafe_timeout_add; + //adium_timeout_add = adium_purple_eventloop_get_ui_ops()->timeout_add; + //adium_purple_eventloop_get_ui_ops()->timeout_add = adium_threadsafe_timeout_add; #ifdef ENABLE_NLS //bindtextdomain("pidgin", [[[NSBundle bundleWithIdentifier:@"im.pidgin.libpurple"] resourcePath] fileSystemRepresentation]); //bind_textdomain_codeset("pidgin", "UTF-8"); |