mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
language: a11y: Fix property names
Blueprint uses underscores in property/state/relation names, but GtkBuilder expects dashes because it uses the glib names from the GtkAccessible* enums.
This commit is contained in:
parent
d73c83aa63
commit
a4ffdd944f
7 changed files with 42 additions and 34 deletions
|
@ -1,9 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Gtk.Widget {
|
||||
Gtk.Box {
|
||||
accessibility {
|
||||
label: _("Hello, world!");
|
||||
labelled_by: my_label;
|
||||
labelled-by: my_label;
|
||||
checked: true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkWidget">
|
||||
<object class="GtkBox">
|
||||
<accessibility>
|
||||
<property name="label" translatable="true">Hello, world!</property>
|
||||
<relation name="labelled_by">my_label</relation>
|
||||
<relation name="labelled-by">my_label</relation>
|
||||
<state name="checked">true</state>
|
||||
</accessibility>
|
||||
</object>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Widget {
|
||||
Box {
|
||||
accessibility {
|
||||
label: _("Hello, world!");
|
||||
labelled_by: my_label;
|
||||
labelled-by: my_label;
|
||||
checked: true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue