From: Thadeu Lima de Souza Cascardo Date: Tue, 25 Nov 2008 02:46:20 +0000 (-0200) Subject: Wrap the text in the textview X-Git-Url: http://git.cascardo.info/?p=cascardo%2Fchat.git;a=commitdiff_plain;h=baef3c66194214f38ab263a46722b6bd8b2fa156;hp=387372d4d6321ff20f8dadb76906aa77d815b283 Wrap the text in the textview --- diff --git a/chat.c b/chat.c index 0255330..253340b 100644 --- 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);