diff options
author | Daiki Ueno <ueno@unixuser.org> | 2012-10-28 16:11:24 +0900 |
---|---|---|
committer | Daiki Ueno <ueno@unixuser.org> | 2012-10-30 14:40:44 +0900 |
commit | d4c2802768ef1a6bd4943091ff713bce782f016d (patch) | |
tree | 739d8a49dab6f535cef2ebb4bd01871ce9229634 /libcaribou/xml-deserializer.vala | |
parent | 0e34f29f73c80034882db6547f99313f6a29ad65 (diff) | |
download | caribou-d4c2802768ef1a6bd4943091ff713bce782f016d.tar.gz |
xml: add "text" attribute to key
Add a new attribute "text" to the key elements in XML, so that text
producing keys such as ".com" can be implemented.
https://bugzilla.gnome.org/show_bug.cgi?id=687026
Diffstat (limited to 'libcaribou/xml-deserializer.vala')
-rw-r--r-- | libcaribou/xml-deserializer.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libcaribou/xml-deserializer.vala b/libcaribou/xml-deserializer.vala index 317bc5a..4bfc088 100644 --- a/libcaribou/xml-deserializer.vala +++ b/libcaribou/xml-deserializer.vala @@ -139,7 +139,9 @@ namespace Caribou { string name = node->get_prop ("name"); assert (name != null); - KeyModel key = new KeyModel (name); + string? text = node->get_prop ("text"); + + KeyModel key = new KeyModel (name, text); if (align != null) key.align = align; |