[PATCH 4/4] Added layouts treeview selection funcionality

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

 



---
 pyanaconda/ui/gui/spokes/language.py |    3 +++
 pyanaconda/ui/gui/spokes/language.ui |    4 +++-
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/language.py b/pyanaconda/ui/gui/spokes/language.py
index e37fef8..f0d40d6 100644
--- a/pyanaconda/ui/gui/spokes/language.py
+++ b/pyanaconda/ui/gui/spokes/language.py
@@ -198,6 +198,9 @@ class LanguageSpoke(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/language.ui b/pyanaconda/ui/gui/spokes/language.ui
index 0c994bc..37571e7 100644
--- a/pyanaconda/ui/gui/spokes/language.ui
+++ b/pyanaconda/ui/gui/spokes/language.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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux