Warn visually when typing a duplicated object ID
When I type a duplicated object ID, Glade (3.38.2 Flatpak) does not warn me about it, so I think the ID is OK, and keep working. For example, in the following screenshot, the ID window-abc
is a duplicate:
What Glade does is that it truncates the ID in the widget tree, so the first ID with value window-abc
remains the same, but the duplicated one is truncated and becomes window-ab
:
This behavior is hard to notice. I think it would be better not to truncate the ID; instead, show a warning icon in the ID field itself when you type a duplicated ID:
Hovering over the warning it would say, for example, "This ID is not unique" or "This ID is already used".