[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Fix selection of default boot target in UI (#548695)



Corrects translation between device name and device path. Changes rendering
style of toggle button in list from check to radio (which is how it behaves).
---
 iw/osbootwidget.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/iw/osbootwidget.py b/iw/osbootwidget.py
index 86f1718..fcde027 100644
--- a/iw/osbootwidget.py
+++ b/iw/osbootwidget.py
@@ -70,6 +70,7 @@ class OSBootWidget:
                                     active = 0)
         column.set_sizing(gtk.TREE_VIEW_COLUMN_AUTOSIZE)
         self.checkboxrenderer.connect("toggled", self.toggledDefault)
+        self.checkboxrenderer.set_radio(True)
         self.osTreeView.append_column(column)
 
         for columnTitle in theColumns[1:]:
@@ -336,7 +337,7 @@ class OSBootWidget:
     def toggledDefault(self, data, row):
         iter = self.osStore.get_iter((int(row),))
         dev = self.osStore.get_value(iter, 2)
-        self.defaultDev = dev[5:]
+        self.defaultDev = devicePathToName(dev)
         self.fillOSList()
 
     # fill in the os list tree view
-- 
1.6.0.6


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]