[PATCH 4/4] Fix some pylint errors in the zfcp panel.

Samantha N. Bueno sbueno+anaconda at redhat.com
Wed Jan 7 19:25:39 UTC 2015


Move markup out of a translatable string and use pango attributes
instead.

Also, stock icon name changed, so fix that.
---
 pyanaconda/ui/gui/spokes/advstorage/zfcp.glade | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/advstorage/zfcp.glade b/pyanaconda/ui/gui/spokes/advstorage/zfcp.glade
index b1ccb0a..52d3d38 100644
--- a/pyanaconda/ui/gui/spokes/advstorage/zfcp.glade
+++ b/pyanaconda/ui/gui/spokes/advstorage/zfcp.glade
@@ -252,7 +252,7 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="xalign">1</property>
-                                <property name="stock">gtk-dialog-error</property>
+                                <property name="icon_name">dialog-error</property>
                               </object>
                               <packing>
                                 <property name="left_attach">0</property>
@@ -266,8 +266,10 @@
                                 <property name="visible">True</property>
                                 <property name="can_focus">False</property>
                                 <property name="xalign">0</property>
-                                <property name="label" translatable="yes">&lt;b&gt;Device discovery failed.&lt;/b&gt;</property>
-                                <property name="use_markup">True</property>
+                                <property name="label" translatable="yes">Device discovery failed.</property>
+                                <attributes>
+                                  <attribute name="weight" value="bold"/>
+                                </attributes>
                               </object>
                               <packing>
                                 <property name="left_attach">1</property>
-- 
1.8.3.1



More information about the anaconda-patches mailing list