Added a very simple interface to chat with known issues
[cascardo/chat.git] / ui.c
diff --git a/ui.c b/ui.c
index 4527047..c2d5b2f 100644 (file)
--- a/ui.c
+++ b/ui.c
@@ -35,6 +35,8 @@ GtkWidget *entry1;
 GtkWidget *entry2;
 GtkWidget *entry3;
 
+extern void hc_xmpp_chat_open (hc_xmpp_t *);
+
 static void
 connect_clicked (GtkWidget *button, gpointer data)
 {
@@ -50,6 +52,7 @@ connect_clicked (GtkWidget *button, gpointer data)
   hc_xmpp_send_stream (xmpp);
   channel = g_io_channel_unix_new (hc_xmpp_fd (xmpp));
   g_io_add_watch (channel, G_IO_IN, rploop, xmpp);
+  hc_xmpp_chat_open (xmpp);
 }
 
 static void