aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Nathan Samson <nathansamson@gmail.com>2011-09-04 15:08:01 +0200
committerGravatar Nathan Samson <nathansamson@gmail.com>2011-09-04 15:17:21 +0200
commit14547d8ca26fb91b145c6051e541863fb89b76b5 (patch)
treefafda87fbc305ecdc842ad484d4496a1a6d32e1c
parent5ea6b229f88aa5dacb80fedf9d316c31584c429d (diff)
downloadsubsurface-14547d8ca26fb91b145c6051e541863fb89b76b5.tar.gz
Word wrap the info textview. Also do not show the scrollbars if not necessary.
Signed-off-by: Nathan Samson <nathansamson@gmail.com>
-rw-r--r--info.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/info.c b/info.c
index 99bf3f041..9abbbec40 100644
--- a/info.c
+++ b/info.c
@@ -167,10 +167,12 @@ static GtkTextBuffer *text_view(GtkWidget *box, const char *label, gboolean expa
gtk_box_pack_start(GTK_BOX(box), frame, expand, expand, 0);
GtkWidget* scrolled_window = gtk_scrolled_window_new (0, 0);
+ gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
gtk_scrolled_window_set_shadow_type(GTK_SCROLLED_WINDOW(scrolled_window), GTK_SHADOW_IN);
gtk_widget_show(scrolled_window);
view = gtk_text_view_new ();
+ gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(view), GTK_WRAP_WORD);
gtk_container_add(GTK_CONTAINER(scrolled_window), view);
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));