]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/gui/gtk/JubGtkUI.m
Add a minimal JubChatClient class and refactor other code to use it
[jubjub.git] / src / gui / gtk / JubGtkUI.m
index b6110f4ea6d0d45912ac23e196b50c4b1db5446a..b70e3df923c0ea3c47fc5e3972bebf169de540bc 100644 (file)
@@ -10,7 +10,7 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
 }
 
 @implementation JubGtkUI
-- initWithConnection: (XMPPConnection*)connection
+- initWithClient: (JubChatClient*)client;
 {
        self = [super init];
 
@@ -24,7 +24,7 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
                gtk_init(argc, argv);
 
                rosterUI = [[JubGtkRosterUI alloc]
-                   initWithConnection: connection];
+                   initWithClient: client];
        } @catch (id e) {
                [self release];
                @throw e;
@@ -49,9 +49,4 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
                return nil;
        }] start];
 }
-
-- (id<XMPPRosterDelegate>)rosterDelegate
-{
-       return rosterUI;
-}
 @end