--- pyanaconda/ui/gui/spokes/language.py | 13 +++++++++++++ pyanaconda/ui/gui/spokes/language.ui | 15 +++++++++++++++ 2 files changed, 28 insertions(+), 0 deletions(-) diff --git a/pyanaconda/ui/gui/spokes/language.py b/pyanaconda/ui/gui/spokes/language.py index 0b9d0a2..37ad79d 100644 --- a/pyanaconda/ui/gui/spokes/language.py +++ b/pyanaconda/ui/gui/spokes/language.py @@ -36,6 +36,14 @@ class AddLayoutDialog(UIObject): mainWidgetName = "addLayoutDialog" uiFile = "spokes/language.ui" + def populate(self): + self._store = self.builder.get_object("newLayoutStore") + #XXX: will use values from the libxklavier + self._addLayout(self._store, "English (US)") + self._addLayout(self._store, "Czech") + self._addLayout(self._store, "Czech (qwerty)") + self._addLayout(self._store, "values from libxklavier") + def run(self): rc = self.window.run() self.window.destroy() @@ -47,6 +55,10 @@ class AddLayoutDialog(UIObject): def on_cancel_clicked(self, *args): print "CANCELING" + def _addLayout(self, store, name): + store.append([name]) + + class LanguageSpoke(NormalSpoke): builderObjects = ["addedLayoutStore", "languageWindow", "addImage", "removeImage", "upImage", "downImage", "settingsImage"] @@ -98,6 +110,7 @@ class LanguageSpoke(NormalSpoke): def on_add_clicked(self, button): dialog = AddLayoutDialog(self.data) dialog.setup() + dialog.populate() print "RESPONSE = %s" % dialog.run() def on_remove_clicked(self, button): diff --git a/pyanaconda/ui/gui/spokes/language.ui b/pyanaconda/ui/gui/spokes/language.ui index f872a7a..f562fb3 100644 --- a/pyanaconda/ui/gui/spokes/language.ui +++ b/pyanaconda/ui/gui/spokes/language.ui @@ -110,6 +110,21 @@ <child internal-child="selection"> <object class="GtkTreeSelection" id="newLayoutSelection"/> </child> + <child> + <object class="GtkTreeViewColumn" id="name"> + <property name="title" translatable="yes">Name</property> + <property name="expand">True</property> + <property name="clickable">True</property> + <property name="sort_column_id">0</property> + <child> + <object class="GtkCellRendererText" id="newLayoutRenderer"> + </object> + <attributes> + <attribute name="text">0</attribute> + </attributes> + </child> + </object> + </child> </object> </child> </object> -- 1.7.4.4 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list