8 changes: 4 additions & 4 deletions src/gio/VolumeT.d
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public template VolumeT(TStruct)
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand All @@ -278,7 +278,7 @@ public template VolumeT(TStruct)
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand All @@ -295,7 +295,7 @@ public template VolumeT(TStruct)
return null;
}

return ObjectG.getDObject!(Drive)(cast(GDrive*) p);
return ObjectG.getDObject!(Drive, DriveIF)(cast(GDrive*) p);
}

/**
Expand All @@ -312,7 +312,7 @@ public template VolumeT(TStruct)
return null;
}

return ObjectG.getDObject!(Mount)(cast(GMount*) p);
return ObjectG.getDObject!(Mount, MountIF)(cast(GMount*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/Action.d
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ public class Action : ObjectG, BuildableIF
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/CellArea.d
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ public class CellArea : ObjectG, BuildableIF, CellLayoutIF
return null;
}

return ObjectG.getDObject!(CellEditable)(cast(GtkCellEditable*) p);
return ObjectG.getDObject!(CellEditable, CellEditableIF)(cast(GtkCellEditable*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/CellRenderer.d
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public class CellRenderer : ObjectG
return null;
}

return ObjectG.getDObject!(CellEditable)(cast(GtkCellEditable*) p);
return ObjectG.getDObject!(CellEditable, CellEditableIF)(cast(GtkCellEditable*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/CellView.d
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public class CellView : Widget, CellLayoutIF, OrientableIF
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/ComboBox.d
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ public class ComboBox : Bin, CellLayoutIF, CellEditableIF
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/Entry.d
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ public class Entry : Widget, EditableIF, CellEditableIF
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/EntryCompletion.d
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public class EntryCompletion : ObjectG, BuildableIF, CellLayoutIF
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/IconView.d
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public class IconView : Container, CellLayoutIF, ScrollableIF
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
6 changes: 3 additions & 3 deletions src/gtk/NumerableIcon.d
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class NumerableIcon : GioEmblemedIcon
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand All @@ -160,7 +160,7 @@ public class NumerableIcon : GioEmblemedIcon
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand All @@ -179,7 +179,7 @@ public class NumerableIcon : GioEmblemedIcon
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/RecentInfo.d
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public class RecentInfo
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/StatusIcon.d
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ public class StatusIcon : ObjectG
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/TreeModelFilter.d
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public class TreeModelFilter : ObjectG, TreeModelIF, TreeDragSourceIF
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/TreeModelSort.d
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public class TreeModelSort : ObjectG, TreeModelIF, TreeDragSourceIF, TreeSortabl
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/TreeRowReference.d
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public class TreeRowReference
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/gtk/TreeView.d
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,7 @@ public class TreeView : Container, ScrollableIF
return null;
}

return ObjectG.getDObject!(TreeModel)(cast(GtkTreeModel*) p);
return ObjectG.getDObject!(TreeModel, TreeModelIF)(cast(GtkTreeModel*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion srcgl/glgdk/GLContext.d
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public class GLContext : ObjectG
return null;
}

return ObjectG.getDObject!(GLDrawable)(cast(GdkGLDrawable*) p);
return ObjectG.getDObject!(GLDrawable, GLDrawableIF)(cast(GdkGLDrawable*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion srcsv/gsv/SourceBuffer.d
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ public class SourceBuffer : TextBuffer
return null;
}

return ObjectG.getDObject!(SourceUndoManager)(cast(GtkSourceUndoManager*) p);
return ObjectG.getDObject!(SourceUndoManager, SourceUndoManagerIF)(cast(GtkSourceUndoManager*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion srcsv/gsv/SourceGutterRendererPixbuf.d
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public class SourceGutterRendererPixbuf : SourceGutterRenderer
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion srcsv/gsv/SourceMarkAttributes.d
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public class SourceMarkAttributes : ObjectG
return null;
}

return ObjectG.getDObject!(Icon)(cast(GIcon*) p);
return ObjectG.getDObject!(Icon, IconIF)(cast(GIcon*) p);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions wrap/utils/funct.d
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ public struct Funct
{
if ( convParms.outPack == "cairo" || convParms.outPack == "glib" || convParms.outPack == "gthread" )
return "new "~ type;
else if( GtkDClass.endsWith(typeWrap, "IF") )
return "ObjectG.getDObject!("~ type[0..$-2] ~", "~ type ~")";
else
return "ObjectG.getDObject!("~ type ~")";
}
Expand Down Expand Up @@ -1133,8 +1135,6 @@ public struct Funct
/* What's with all the casting? */
/* A; Casting is needed because some GTK+
* functions can return void pointers. */
else if( GtkDClass.endsWith(typeWrap, "IF") )
bd ~= "return " ~ construct(typeWrap[0..$-2]) ~ "(cast(" ~ type ~ ") p);";
else
bd ~= "return " ~ construct(typeWrap) ~ "(cast(" ~ type ~ ") p);";

Expand Down