diff options
author | Mohammed Sadiq <sadiq@sadiqpk.org> | 2019-08-07 07:42:03 +0530 |
---|---|---|
committer | Mohammed Sadiq <sadiq@sadiqpk.org> | 2019-08-10 19:01:36 +0530 |
commit | c1bb699151f4f3098762bb85aeaa1e37cae271ea (patch) | |
tree | f2d0a27866fbabf27d99ca1b9e4f5e1b48550e0a /gtk/tools | |
parent | 120cfcc120b03b2a552ce4e77eba0bcc97a3ac54 (diff) | |
download | gtk+-c1bb699151f4f3098762bb85aeaa1e37cae271ea.tar.gz |
builderparser: Allow bind-source without bind-property
This allow users to bind same property of two objects with only
specifing “name” and “bind-source” in UI file.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2080
Diffstat (limited to 'gtk/tools')
-rw-r--r-- | gtk/tools/gtk4builder.rng | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/tools/gtk4builder.rng b/gtk/tools/gtk4builder.rng index 032d84d142..125051511c 100644 --- a/gtk/tools/gtk4builder.rng +++ b/gtk/tools/gtk4builder.rng @@ -103,9 +103,11 @@ <attribute name="bind-source"> <text/> </attribute> - <attribute name="bind-property"> - <text/> - </attribute> + <optional> + <attribute name="bind-property"> + <text/> + </attribute> + </optional> <optional> <attribute name="bind-flags"> <text/> |