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