#include <gtk/gtk.h>
#import "JubGtkUI.h"
+#import "JubGtkChatUI.h"
#import "JubGtkRosterUI.h"
void on_roster_window_destroy(GObject *object, gpointer user_data)
}
@implementation JubGtkUI
-- initWithConnection: (XMPPConnection*)connection
+- initWithClient: (JubChatClient*)client;
{
self = [super init];
gtk_init(argc, argv);
- rosterUI = [[JubGtkRosterUI alloc]
- initWithConnection: connection];
+ _rosterUI = [[JubGtkRosterUI alloc]
+ initWithClient: client];
} @catch (id e) {
[self release];
@throw e;
- (void)dealloc
{
- [rosterUI release];
+ [_rosterUI release];
[super dealloc];
}
}] start];
}
-- (id<XMPPRosterDelegate>)rosterDelegate
+- (Class)chatUIClass
{
- return rosterUI;
+ return [JubGtkChatUI class];
+}
+
+- (void)client: (JubChatClient*)client
+ didChangePresence: (XMPPPresence*)presence
+{
+ [_rosterUI client: client
+ didChangePresence: presence];
}
@end