gobject-list icon indicating copy to clipboard operation
gobject-list copied to clipboard

Fix string comparison in object type filter

Open bshankstd opened this issue 8 years ago • 1 comments

The object type filter used strncmp() to compare object type names, but limited the comparison to the length of the filter string. For example, a filter of 'GstPad' would display both 'GstPad' and 'GstPadTemplate' types.

Use g_strcmp0() instead, it uses the entirety of both strings when comparing.

bshankstd avatar Feb 28 '17 19:02 bshankstd

Hi @bshankstd, that was intentional to be able to match all objects of a given group. There's a TODO written somewhere to replace the filter with a globbing function or regular expression, that I never got around to implementing.

danni avatar Mar 01 '17 01:03 danni