On Thu, 12 Nov 2015 19:20:59 GMT, Gerald Nunn wrote:

I'm trying to get the Entry from a ComboBoxText as I need it to show text which is not in the list, calling setActiveText just sets the Entry to the first item. I tried the following code, but am getting a Seg Fault, on the cast to Entry, what am I doing wrong?

When I look at it with a debugger, widget looks like a valid object. The GTK docs say to use gtkbinget_child which is what the getChild is doing in Bin.d.

Widget widget = cbPath.getChild();
if (widget !is null) {
	Entry entry = cast(Entry) widget;

For anyone running into this now (ie. post-May 2019) the above cast() now works. Thanks to all the guys (probably just Mike) who keep GtkD up to date.