Wrap the text in the textview
[cascardo/chat.git] / chat.c
diff --git a/chat.c b/chat.c
index 0255330..253340b 100644 (file)
--- a/chat.c
+++ b/chat.c
@@ -88,6 +88,7 @@ hc_xmpp_chat_open (hc_xmpp_t *xmpp)
   g_signal_connect (G_OBJECT (button), "clicked",
                     G_CALLBACK (hc_xmpp_chat_send), xmpp);
   textview = gtk_text_view_new ();
+  gtk_text_view_set_wrap_mode (GTK_TEXT_VIEW (textview), GTK_WRAP_WORD_CHAR);
   gtk_container_add (GTK_CONTAINER (window), vbox);
   gtk_container_add (GTK_CONTAINER (vbox), textview);
   gtk_container_add (GTK_CONTAINER (vbox), hbox);