--- pyanaconda/ui/gui/spokes/keyboard.py | 3 +++ pyanaconda/ui/gui/spokes/keyboard.ui | 4 +++- 2 files changed, 6 insertions(+), 1 deletions(-) diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py index e57a813..a88ca62 100644 --- a/pyanaconda/ui/gui/spokes/keyboard.py +++ b/pyanaconda/ui/gui/spokes/keyboard.py @@ -195,6 +195,9 @@ class KeyboardSpoke(NormalSpoke): def on_settings_clicked(self, button): pass + def on_selection_changed(self, *args): + self.layout_selection_changed(self.builder.get_object("layoutSelection")) + def layout_selection_changed(self, selection): # We don't have to worry about multiple rows being selected in this # function, because that's disabled by the widget. diff --git a/pyanaconda/ui/gui/spokes/keyboard.ui b/pyanaconda/ui/gui/spokes/keyboard.ui index 55198b8..f5a21e5 100644 --- a/pyanaconda/ui/gui/spokes/keyboard.ui +++ b/pyanaconda/ui/gui/spokes/keyboard.ui @@ -246,7 +246,9 @@ any layout to the top of the list to select it as the default.</property> <property name="headers_visible">False</property> <property name="search_column">0</property> <child internal-child="selection"> - <object class="GtkTreeSelection" id="treeview-selection"/> + <object class="GtkTreeSelection" id="layoutSelection"> + <signal name="changed" handler="on_selection_changed" swapped="no"/> + </object> </child> <child> <object class="GtkTreeViewColumn" id="name1"> -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list