gtk2/gtk/inspector
Emmanuele Bassi e259b2f30d Avoid O(n²) walking of string arrays
"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.
2015-07-16 16:19:55 +01:00
..
action-editor.c
action-editor.h
actions.c actions: Fix compile warning 2014-12-12 17:39:46 -08:00
actions.h
actions.ui inspector: Show object title in actions tab 2014-11-22 21:38:47 -05:00
actions.ui.h
cellrenderergraph.c inspector: Add missing files 2014-10-14 14:32:57 +02:00
cellrenderergraph.h inspector: Add missing files 2014-10-14 14:32:57 +02:00
classes-list.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
classes-list.h
classes-list.ui inspector: Show object title in the classes tab 2014-11-22 21:38:47 -05:00
classes-list.ui.h
css-editor.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
css-editor.h
css-editor.ui inspector: Add some margin to css editor 2015-03-10 14:07:27 -04:00
css-editor.ui.h
css-node-tree.c gtk/inspector/css-node-tree.c: Fix Build 2015-04-10 17:18:07 +08:00
css-node-tree.h inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
css-node-tree.ui inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
data-list.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
data-list.h
data-list.ui inspector: Remove an errant shadow 2014-12-20 19:39:09 -05:00
data-list.ui.h
general.c inspector: Make gl extension rows unactivatable 2015-01-22 21:18:25 +01:00
general.h inspector: Add more GL information 2014-11-08 02:16:35 -05:00
general.ui Inspector: Show some X display characteristics 2014-12-28 11:36:10 -05:00
general.ui.h inspector: Update translations .ui.h file 2014-12-28 18:13:34 -08:00
gestures.c inspector: Show object title in the gestures tab 2014-11-22 21:38:47 -05:00
gestures.h
graphdata.c inspector: Add missing files 2014-10-14 14:32:57 +02:00
graphdata.h inspector: Add missing files 2014-10-14 14:32:57 +02:00
gtktreemodelcssnode.c inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
gtktreemodelcssnode.h inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
init.c inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
init.h
inspect-button.c inspector: Remove flash timeout from widgets being unmapped 2015-03-16 16:29:37 +01:00
logo.png
magnifier.c inspector: Add a magnifier 2014-12-20 19:24:08 -05:00
magnifier.h inspector: Add a magnifier 2014-12-20 19:24:08 -05:00
magnifier.ui Restore a missing file 2014-12-28 11:14:39 -05:00
magnifier.ui.h inspector: Add a magnifier 2014-12-20 19:24:08 -05:00
Makefile.inc inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
menu.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
menu.h
menu.ui inspector: Show object title in menu tab 2014-11-22 21:38:47 -05:00
menu.ui.h
misc-info.c inspector: fix warning about not using the right format for an int64 2015-03-24 13:36:36 +01:00
misc-info.h
misc-info.ui inspector/misc-info: Fix typo 2015-05-02 17:27:29 +02:00
misc-info.ui.h inspector: show accessible name and description 2015-03-19 17:01:23 +01:00
object-hierarchy.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
object-hierarchy.h
object-hierarchy.ui inspector: Show object title in hierarchy tab 2014-11-22 21:38:47 -05:00
object-hierarchy.ui.h
object-tree.c inspector: Use some of the new GtkSearchEntry API 2015-01-24 08:44:30 -05:00
object-tree.h inspector: Improve tab switching 2014-10-24 21:14:16 -04:00
object-tree.ui inspector: Use some of the new GtkSearchEntry API 2015-01-24 08:44:30 -05:00
object-tree.ui.h inspector: Add style classes to the object list 2014-10-25 10:00:39 -04:00
object-tree.ui.u inspector: More refactoring 2014-10-11 00:59:36 -04:00
prop-editor.c inspector: allow object read-only properties in prop-editor 2015-05-05 22:00:54 -07:00
prop-editor.h
prop-list.c inspector: Destroy popovers on unmap 2015-02-20 14:44:17 +01:00
prop-list.h
prop-list.ui inspector: Use some of the new GtkSearchEntry API 2015-01-24 08:44:30 -05:00
prop-list.ui.h
resource-list.c inspector: be careful about gsize vs guint64 2015-01-09 14:44:26 -05:00
resource-list.h
resource-list.ui inspector: Improve search in the resource tree 2014-11-07 22:44:23 -05:00
resource-list.ui.h inspector: Avoid a split pane for resources 2014-10-11 00:59:36 -04:00
selector.c Avoid O(n²) walking of string arrays 2015-07-16 16:19:55 +01:00
selector.h inspector: Bring the selector back 2014-10-12 07:57:29 -04:00
selector.ui inspector: Show object title on selector tab 2014-11-22 21:38:47 -05:00
selector.ui.h inspector: Bring the selector back 2014-10-12 07:57:29 -04:00
signals-list.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
signals-list.h
signals-list.ui inspector: Show object title in the signals tab 2014-11-22 21:38:47 -05:00
signals-list.ui.h
size-groups.c inspector: Show object title in size groups tab 2014-11-22 21:38:47 -05:00
size-groups.h
statistics.c inspector: Build nonrecursively 2014-11-30 16:11:56 -05:00
statistics.h inspector: Add a tab for object counts 2014-10-11 16:54:24 -04:00
statistics.ui inspector: Make it easier to cut'n'paste advice message 2015-03-18 22:05:46 -04:00
statistics.ui.h inspector: Move the record button up 2014-11-07 23:19:28 -05:00
style-prop-list.c inspector: Use some of the new GtkSearchEntry API 2015-01-24 08:44:30 -05:00
style-prop-list.h
style-prop-list.ui inspector: Use some of the new GtkSearchEntry API 2015-01-24 08:44:30 -05:00
style-prop-list.ui.h
treewalk.c inspector: Add search to the object tree 2014-10-31 21:02:50 -04:00
treewalk.h inspector: Add search to the object tree 2014-10-31 21:02:50 -04:00
visual.c inspector: Remove a bunch of unused variables 2015-01-17 02:37:36 +01:00
visual.h
visual.ui inspector: Don't use GSettings directly 2015-01-09 15:29:34 -05:00
visual.ui.h inspector: Fix capitalization 2014-12-12 23:47:26 -05:00
window.c inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
window.h inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
window.ui inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00
window.ui.h inspector: Add a new page that lists the CSS node tree 2015-03-18 15:23:33 +01:00