[master 4/4] Allow markup in the label/message of DetailedErrorDialog.

dwlehman installerbot-noreply at redhat.com
Fri Apr 10 20:05:06 UTC 2015


From: David Lehman <dlehman at redhat.com>

Related: rhbz#1158475
---
 pyanaconda/ui/gui/spokes/lib/detailederror.glade | 1 +
 pyanaconda/ui/gui/spokes/lib/detailederror.py    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/detailederror.glade b/pyanaconda/ui/gui/spokes/lib/detailederror.glade
index 41eae01..d355c4a 100644
--- a/pyanaconda/ui/gui/spokes/lib/detailederror.glade
+++ b/pyanaconda/ui/gui/spokes/lib/detailederror.glade
@@ -23,6 +23,7 @@
             <property name="margin_bottom">18</property>
             <property name="xalign">0</property>
             <property name="label" translatable="yes">An unknown error occurred during installation.  Details are below.</property>
+            <property name="use_markup">True</property>
             <property name="wrap">True</property>
           </object>
           <packing>
diff --git a/pyanaconda/ui/gui/spokes/lib/detailederror.py b/pyanaconda/ui/gui/spokes/lib/detailederror.py
index f8082f4..c0360e8 100644
--- a/pyanaconda/ui/gui/spokes/lib/detailederror.py
+++ b/pyanaconda/ui/gui/spokes/lib/detailederror.py
@@ -65,7 +65,7 @@ def __init__(self, *args, **kwargs):
         widget.grab_default()
 
         if label:
-            self.builder.get_object("detailedLabel").set_text(label)
+            self.builder.get_object("detailedLabel").set_markup(label)
 
     # pylint: disable=arguments-differ
     def refresh(self, msg):


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/9e97394356611f371997e3efa9d5dffea0f9791c


More information about the anaconda-patches mailing list