Commit 799a5612 authored by Mike Wey's avatar Mike Wey
Browse files

Use hasMember instead of the recently added hasStaticMember.

parent 74854cd3
GtkD ChangeLog
==============
Release: 3.7.1
--------------
-Revert the opCast changes for the 3.7 release.
-Use hasMember instead of hasStaticMember.
Release: 3.7.0
--------------
-Add GstMpegts bindings.
......
......@@ -183,7 +183,7 @@ public class ObjectG
else
return new T(obj, ownedRef);
}
else static if ( is(RT == interface) && hasStaticMember!(RT, "getType") && is(ReturnType!(RT.getType) == GType) )
else static if ( is(RT == interface) && hasMember!(RT, "getType") && is(ReturnType!(RT.getType) == GType) )
{
auto p = g_object_get_data(cast(GObject*)obj, Str.toStringz("GObject"));
......
......@@ -255,7 +255,7 @@ code: start
else
return new T(obj, ownedRef);
}
else static if ( is(RT == interface) && hasStaticMember!(RT, "getType") && is(ReturnType!(RT.getType) == GType) )
else static if ( is(RT == interface) && hasMember!(RT, "getType") && is(ReturnType!(RT.getType) == GType) )
{
auto p = g_object_get_data(cast(GObject*)obj, Str.toStringz("GObject"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment