Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Ubuntu User (http://www.linux-archive.org/ubuntu-user/)
-   -   Use proper names for layouts with subitems (http://www.linux-archive.org/ubuntu-user/659852-use-proper-names-layouts-subitems.html)

Vratislav Podzimek 04-26-2012 12:21 PM

Use proper names for layouts with subitems
 
If a layout has subitem, then its name accepted by libgnomekbd
looks like "item.name (subitem.name)".
---
pyanaconda/xklavier.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/xklavier.py b/pyanaconda/xklavier.py
index 97ca30a..e2f2e18 100755
--- a/pyanaconda/xklavier.py
+++ b/pyanaconda/xklavier.py
@@ -76,7 +76,7 @@ class XklWrapper(object):
variants = list()

if subitem:
- name = item_str(subitem.name)
+ name = item_str(item.name) + " (" + item_str(subitem.name) + ")"
description = item_str(subitem.description)
else:
name = item_str(item.name)
--
1.7.4.4

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

Vratislav Podzimek 05-03-2012 01:20 PM

Use proper names for layouts with subitems
 
If a layout has subitem, then its name accepted by libgnomekbd
looks like "item.name (subitem.name)".
---
pyanaconda/xklavier.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/pyanaconda/xklavier.py b/pyanaconda/xklavier.py
index 97ca30a..e2f2e18 100755
--- a/pyanaconda/xklavier.py
+++ b/pyanaconda/xklavier.py
@@ -76,7 +76,7 @@ class XklWrapper(object):
variants = list()

if subitem:
- name = item_str(subitem.name)
+ name = item_str(item.name) + " (" + item_str(subitem.name) + ")"
description = item_str(subitem.description)
else:
name = item_str(item.name)
--
1.7.4.4

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


All times are GMT. The time now is 08:24 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.