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

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