diff options
author | Nathan Samson <nathansamson@gmail.com> | 2011-09-04 15:08:01 +0200 |
---|---|---|
committer | Nathan Samson <nathansamson@gmail.com> | 2011-09-04 15:17:21 +0200 |
commit | 14547d8ca26fb91b145c6051e541863fb89b76b5 (patch) | |
tree | fafda87fbc305ecdc842ad484d4496a1a6d32e1c /info.c | |
parent | 5ea6b229f88aa5dacb80fedf9d316c31584c429d (diff) | |
download | subsurface-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>
Diffstat (limited to 'info.c')
-rw-r--r-- | info.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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)); |