On 26-06-18 14:45, Gerald Nunn wrote:

On Tue, 26 Jun 2018 11:24:10 GMT, Russel Winder wrote:

I guess I should find out what Gerald ended up doing as I think the problem I have is exactly the one he had.

Here is the function I am using for widget equality:

https://github.com/gnunn1/tilix/blob/master/source/gx/gtk/util.d#L271

I wonder if it would make sense for gobject.ObjectG to implement opEquals in GtkD?

That might be a good addition.

GtkD will try to return the existing D object if it exists. But there
are some cases where it doesn't.

Or a version of getChildren that returns a Array of Widgets.