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
This commit is contained in:
Johan Dahlin
2008-03-02 01:14:48 +00:00
committed by Johan Dahlin
parent bee4a9fcc3
commit e2534d54e1
6 changed files with 124 additions and 28 deletions

View File

@ -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>