]> cgit.babelmonkeys.de Git - jubjub.git/blobdiff - src/gui/gtk/JubGtkUI.m
Prefix ivars with an underscore
[jubjub.git] / src / gui / gtk / JubGtkUI.m
index b6110f4ea6d0d45912ac23e196b50c4b1db5446a..52e31e73f235e2105606a4432b7c248c1dbdc22f 100644 (file)
@@ -2,6 +2,7 @@
 #include <gtk/gtk.h>
 
 #import "JubGtkUI.h"
+#import "JubGtkChatUI.h"
 #import "JubGtkRosterUI.h"
 
 void on_roster_window_destroy(GObject *object, gpointer user_data)
@@ -10,7 +11,7 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
 }
 
 @implementation JubGtkUI
-- initWithConnection: (XMPPConnection*)connection
+- initWithClient: (JubChatClient*)client;
 {
        self = [super init];
 
@@ -23,8 +24,8 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
 
                gtk_init(argc, argv);
 
-               rosterUI = [[JubGtkRosterUI alloc]
-                   initWithConnection: connection];
+               _rosterUI = [[JubGtkRosterUI alloc]
+                   initWithClient: client];
        } @catch (id e) {
                [self release];
                @throw e;
@@ -35,7 +36,7 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
 
 - (void)dealloc
 {
-       [rosterUI release];
+       [_rosterUI release];
 
        [super dealloc];
 }
@@ -50,8 +51,15 @@ void on_roster_window_destroy(GObject *object, gpointer user_data)
        }] start];
 }
 
-- (id<XMPPRosterDelegate>)rosterDelegate
+- (Class)chatUIClass
 {
-       return rosterUI;
+       return [JubGtkChatUI class];
+}
+
+-      (void)client: (JubChatClient*)client
+  didChangePresence: (XMPPPresence*)presence
+{
+       [_rosterUI   client: client
+         didChangePresence: presence];
 }
 @end