[PATCH 5/5] Convert the accordion Button to a LinkButton (mizmo).

Chris Lumens clumens at redhat.com
Fri Nov 9 21:14:58 UTC 2012


---
 pyanaconda/ui/gui/spokes/lib/accordion.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/lib/accordion.py b/pyanaconda/ui/gui/spokes/lib/accordion.py
index c447e72..af10a1e 100644
--- a/pyanaconda/ui/gui/spokes/lib/accordion.py
+++ b/pyanaconda/ui/gui/spokes/lib/accordion.py
@@ -237,14 +237,14 @@ class CreateNewPage(Page):
         label.set_line_wrap(True)
         self._createBox.add(label)
 
-        self._createNewButton = Gtk.Button("")
+        self._createNewButton = Gtk.LinkButton("", label=_("Click here to create them automatically."))
         label = self._createNewButton.get_children()[0]
         label.set_line_wrap(True)
-        label.set_use_markup(True)
-        label.set_markup(_("<span foreground='blue'><u>Click here to create them automatically.</u></span>"))
 
+        self._createNewButton.set_has_tooltip(False)
         self._createNewButton.set_halign(Gtk.Align.START)
         self._createNewButton.connect("clicked", cb)
+        self._createNewButton.connect("activate-link", lambda *args: Gtk.true())
         self._createBox.add(self._createNewButton)
 
         label = Gtk.Label(_("Or, create new mount points below with the '+' icon."))
-- 
1.7.11.2



More information about the anaconda-patches mailing list