Blame SOURCES/0255-gui-wrap-lines-for-human-readable-files.patch

b12e4c
From c04859345e4df3062bb107241db34e9e704c8d48 Mon Sep 17 00:00:00 2001
b12e4c
From: Jakub Filak <jfilak@redhat.com>
b12e4c
Date: Fri, 18 Jul 2014 09:04:47 +0200
b12e4c
Subject: [PATCH] gui: wrap lines for human readable files
b12e4c
b12e4c
Wrap lines for comment and reason files.
b12e4c
b12e4c
Do not wrap lines for maps, backtrace, environ and ... becuase
b12e4c
these files are something like lists consiting from lines.
b12e4c
b12e4c
Resolves rhbz#1120871
b12e4c
b12e4c
Signed-off-by: Jakub Filak <jfilak@redhat.com>
b12e4c
---
b12e4c
 src/gui-wizard-gtk/wizard.c | 4 ++++
b12e4c
 1 file changed, 4 insertions(+)
b12e4c
b12e4c
diff --git a/src/gui-wizard-gtk/wizard.c b/src/gui-wizard-gtk/wizard.c
b12e4c
index 54d8ee2..634a508 100644
b12e4c
--- a/src/gui-wizard-gtk/wizard.c
b12e4c
+++ b/src/gui-wizard-gtk/wizard.c
b12e4c
@@ -1335,6 +1335,10 @@ static void append_item_to_ls_details(gpointer name, gpointer value, gpointer da
b12e4c
         {
b12e4c
             GtkWidget *tab_lbl = gtk_label_new((char *)name);
b12e4c
             GtkWidget *tev = gtk_text_view_new();
b12e4c
+
b12e4c
+            if (strcmp(name, FILENAME_COMMENT) == 0 || strcmp(name, FILENAME_REASON) == 0)
b12e4c
+                gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(tev), GTK_WRAP_WORD);
b12e4c
+
b12e4c
             gtk_widget_override_font(GTK_WIDGET(tev), g_monospace_font);
b12e4c
             load_text_to_text_view(GTK_TEXT_VIEW(tev), (char *)name);
b12e4c
             /* init searching */
b12e4c
-- 
b12e4c
2.21.0
b12e4c