summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-03-02 01:14:48 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-03-02 01:14:48 +0000
commite2534d54e12c3d9c4b2047608574bf3e2fa5db76 (patch)
tree7db2ab9027b0e1fd405edd768ad47cd734ee1e59 /demos
parentbee4a9fcc3a6d3d888363ed60291e8b176b314fe (diff)
downloadgdk-pixbuf-e2534d54e12c3d9c4b2047608574bf3e2fa5db76.tar.gz
Add translatable/context and comment attributes on <col> tags under a
2008-02-29 Johan Dahlin <johan@gnome.org> * demos/gtk-demo/demo.ui: * gtk/gtkbuilderparser.c: * gtk/gtkbuilderprivate.h: * gtk/gtkliststore.c: * tests/buildertest.c: Add translatable/context and comment attributes on <col> tags under a GtkListStore. Refactor parts of the translation api and make it available inside gtk+ itself. Update tests and example. Fixes a part of #518642 svn path=/trunk/; revision=19685
Diffstat (limited to 'demos')
-rw-r--r--demos/gtk-demo/demo.ui14
1 files changed, 7 insertions, 7 deletions
diff --git a/demos/gtk-demo/demo.ui b/demos/gtk-demo/demo.ui
index 9d27c85ce..57dd23250 100644
--- a/demos/gtk-demo/demo.ui
+++ b/demos/gtk-demo/demo.ui
@@ -1,5 +1,5 @@
<?xml version="1.0" standalone="no"?> <!--*- mode: xml -*-->
-<interface>
+<interface domain="gtk20">
<object class="GtkListStore" id="liststore1">
<columns>
<column type="gchararray"/>
@@ -9,16 +9,16 @@
</columns>
<data>
<row>
- <col id="0">John</col>
- <col id="1">Doe</col>
+ <col id="0" translatable="yes">John</col>
+ <col id="1" translatable="yes">Doe</col>
<col id="2">25</col>
- <col id="3">This is the John Doe row</col>
+ <col id="3" translatable="yes">This is the John Doe row</col>
</row>
<row>
- <col id="0">Mary</col>
- <col id="1">Dole</col>
+ <col id="0" translatable="yes">Mary</col>
+ <col id="1" translatable="yes">Unknown</col>
<col id="2">50</col>
- <col id="3">This is the Mary Dole row</col>
+ <col id="3" translatable="yes">This is the Mary Unknown row</col>
</row>
</data>
</object>