mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
e259b2f30d
"Yo, we heard you like traversing NULL-terminated arrays to operate on them, so we called g_strv_length() as the for condition, so you can iterate the array while iterating the array." Instead of making famed rapper and television producer Xzibit proud, we should avoid calling g_strv_length() on an array while looping on the array, to avoid quadratic complexity. We do this in various places that deal with arrays of strings that we cannot really guess are short enough not to matter — e.g. the list of CSS selectors in the inspector, or the required authentication information for printing. |
||
---|---|---|
.. | ||
state | ||
a11ychildren.test.in | ||
a11yderive.test.in | ||
a11ymisc.test.in | ||
a11ytests.test.in | ||
a11ytext.test.in | ||
a11ytree.test.in | ||
a11yutil.test.in | ||
a11yvalue.test.in | ||
about.txt | ||
about.ui | ||
accessibile-name.txt | ||
accessibility-dump.c | ||
accessible-name.txt | ||
accessible-name.ui | ||
actionbar.txt | ||
actionbar.ui | ||
assistant.txt | ||
assistant.ui | ||
buttons.txt | ||
buttons.ui | ||
calendar.txt | ||
calendar.ui | ||
children.c | ||
colorchooser.txt | ||
colorchooser.ui | ||
combos.txt | ||
combos.ui | ||
derive.c | ||
entries.txt | ||
entries.ui | ||
expander.txt | ||
expander.ui | ||
headerbar.txt | ||
headerbar.ui | ||
hello-world.txt | ||
hello-world.ui | ||
iconview.txt | ||
iconview.ui | ||
infobar.txt | ||
infobar.ui | ||
label.txt | ||
label.ui | ||
link.txt | ||
link.ui | ||
listbox.txt | ||
listbox.ui | ||
lockbutton.txt | ||
lockbutton.ui | ||
Makefile.am | ||
menu.txt | ||
menu.ui | ||
menubutton2.txt | ||
menubutton2.ui | ||
menubutton3.txt | ||
menubutton3.ui | ||
menubutton.txt | ||
menubutton.ui | ||
menus.txt | ||
menus.ui | ||
messagedialog.txt | ||
messagedialog.ui | ||
misc.c | ||
mnemonic.txt | ||
mnemonic.ui | ||
notebook.txt | ||
notebook.ui | ||
paned.txt | ||
paned.ui | ||
pickers.txt | ||
pickers.ui | ||
placeholder-text.txt | ||
placeholder-text.ui | ||
progress.txt | ||
progress.ui | ||
range.txt | ||
range.ui | ||
README | ||
scale-drawvalue.txt | ||
scale-drawvalue.ui | ||
spinner.txt | ||
spinner.ui | ||
stack.txt | ||
stack.ui | ||
statusbar.txt | ||
statusbar.ui | ||
testfocus.c | ||
text.c | ||
text.txt | ||
text.ui | ||
tooltips.txt | ||
tooltips.ui | ||
tree-performance.c | ||
tree-relationships.c | ||
tree.txt | ||
tree.ui | ||
util.c | ||
value.c |
accessibility-dump is a test runner that can do tests of static accessibility information. Run it like this: ./accessibility-dump [OPTIONS] TESTFILE [TESTFILES...] where TESTFILE is a GtkBuilder .ui file. accessibility-dump creates a textual dump of the accessibility information for the created widget hierarchy and compares it to a preexisting .txt file. To create an initial dump, you can use the --generate option with a single .ui file. You should carefully inspect the output before blessing it as the official .txt to compare against. To find out details about a failure, you can use the --verbose option to see differences between expected and actual output. When run without any arguments, all the .ui files in the current directory are tested.