FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 06-01-2012, 08:53 AM
Vratislav Podzimek
 
Default Change layouts ordering in X configuration when changed on the spoke

Since we have a text entry for testing layouts, people testing their
layouts settings will expect to have the ordering of the layouts in X
same as in the tree view (store).
---
pyanaconda/ui/gui/spokes/keyboard.py | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py
index 85fb7cd..04b23b6 100644
--- a/pyanaconda/ui/gui/spokes/keyboard.py
+++ b/pyanaconda/ui/gui/spokes/keyboard.py
@@ -266,6 +266,7 @@ class KeyboardSpoke(NormalSpoke):
return

store.swap(cur, prev)
+ self._flush_layouts_to_X()
selection.emit("changed")

def on_down_clicked(self, button):
@@ -279,6 +280,7 @@ class KeyboardSpoke(NormalSpoke):
return

store.swap(cur, nxt)
+ self._flush_layouts_to_X()
selection.emit("changed")

def on_preview_clicked(self, button):
@@ -330,3 +332,13 @@ class KeyboardSpoke(NormalSpoke):
else:
self._addLayout(self._store, "us")

+ def _flush_layouts_to_X(self):
+ layouts_list = list()
+
+ itr = self._store.get_iter_first()
+ while itr:
+ layouts_list.append(self._store[itr][0])
+ itr = self._store.iter_next(itr)
+
+ self._xkl_wrapper.replace_layouts(layouts_list)
+
--
1.7.4.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:16 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org