summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilder.rnc
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-11-17 20:15:54 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-11-18 06:00:02 -0500
commitdf455db2e320be73cbc39a67e69eeeee19375aba (patch)
tree06466d92e9c316088fdc3f3f2f6f594cc94986f6 /gtk/gtkbuilder.rnc
parentc7870385c3075ec330618cba3d86bebc92816a61 (diff)
downloadgtk+-df455db2e320be73cbc39a67e69eeeee19375aba.tar.gz
GtkBuilder: Make IDs optional
One requirement of .ui files is that each object must have an ID, even if it is never referred to or directly loaded from the code. This makes editing .ui files much more onerous than it has to be, due to the frequent need to invent new IDs, while avoiding clashes. This commit makes IDs optional in the XML. They only need to be provided for objects which are referred to or explictly loaded from the code. Since GtkBuilder needs IDs for its own internal accounting, we create IDs of the form ___object_N___ if not specified in the XML. https://bugzilla.gnome.org/show_bug.cgi?id=712553
Diffstat (limited to 'gtk/gtkbuilder.rnc')
-rw-r--r--gtk/gtkbuilder.rnc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkbuilder.rnc b/gtk/gtkbuilder.rnc
index 635fd4f289..6e3aea3469 100644
--- a/gtk/gtkbuilder.rnc
+++ b/gtk/gtkbuilder.rnc
@@ -9,7 +9,7 @@ requires = element requires {
}
object = element object {
- attribute id { xsd:ID },
+ attribute id { xsd:ID } ?,
attribute class { text },
attribute type-func { text } ?,
attribute constructor { text } ?,