X-Git-Url: http://cgit.babelmonkeys.de/?p=jubjub.git;a=blobdiff_plain;f=src%2Fgui%2Fgtk%2FJubGtkRosterUI.m;h=c27142f2f68fa0bf4b697ae8c121fae2cbd3e704;hp=b3899e34a1d750edf1e57d0d6961d4a8f4baf326;hb=0daa7a1cf98c6281dd7ba09baf0bf36cd1e154f7;hpb=68a17f7fc1f5fe8c2fee68ff35e672af4fd1e2f2 diff --git a/src/gui/gtk/JubGtkRosterUI.m b/src/gui/gtk/JubGtkRosterUI.m index b3899e3..c27142f 100644 --- a/src/gui/gtk/JubGtkRosterUI.m +++ b/src/gui/gtk/JubGtkRosterUI.m @@ -80,7 +80,7 @@ static gboolean filter_roster_by_presence(GtkTreeModel *model, } @implementation JubGtkRosterUI -- initWithConnection: (XMPPConnection*)connection_ +- initWithClient: (JubChatClient*)client; { self = [super init]; @@ -95,7 +95,10 @@ static gboolean filter_roster_by_presence(GtkTreeModel *model, contactMap = [[OFMutableDictionary alloc] init]; chatMap = [[OFMutableDictionary alloc] init]; presences = [[OFCountedSet alloc] init]; - connection = [connection_ retain]; + connection = [client.connection retain]; + + [connection addDelegate: self]; + [client.roster addDelegate: self]; builder = gtk_builder_new(); gtk_builder_add_from_file(builder, "data/gtk/roster.ui", NULL);