}
@implementation JubGtkUI
-- initWithConnection: (XMPPConnection*)connection
+- initWithClient: (JubChatClient*)client;
{
self = [super init];
gtk_init(argc, argv);
rosterUI = [[JubGtkRosterUI alloc]
- initWithConnection: connection];
+ initWithClient: client];
} @catch (id e) {
[self release];
@throw e;
}] start];
}
-- (id<XMPPRosterDelegate>)rosterDelegate
+- (void)client: (JubChatClient*)client
+ didChangePresence: (XMPPPresence*)presence
{
- return rosterUI;
+ [rosterUI client: client
+ didChangePresence: presence];
}
@end