def get_type(self, pkg): """pkg is used to set the with statements. This returned the locally overridden type, or the one from the default node for this parameter, or None if the type isn't overridden. """ if self.node is not None: t = self.node.get("type", None) if t: if t == "Glib.Object.GObject": return GObject(t, userecord=False) return AdaType(t, pkg=pkg) # An instance of CType t = self.node.get("ctype", None) if t: return t # An XML node if self.default is not None: t = self.default.get("type", None) if t: return AdaType(t, pkg=pkg) return None
"Pango.Font.Property_Font_Description"), "PangoFontDescription*": Proxy("Pango.Font.Pango_Font_Description", "Pango.Font.Property_Font_Description"), "GtkTreeIter*": Record("Gtk.Tree_Model.Gtk_Tree_Iter", val_or_null="Iter_Or_Null"), "GtkTextIter*": Record("Gtk.Text_Iter.Gtk_Text_Iter", val_or_null="Iter_Or_Null"), "PangoAttribute": Proxy("Pango.Attributes.Pango_Attribute"), "PangoAttribute*": Proxy("Pango.Attributes.Pango_Attribute"), "GError*": Proxy("Glib.Error.GError"), "GObject*": GObject("Glib.Object.GObject"), "GClosure*": Proxy("System.Address", ""), "GInitiallyUnowned": GObject("Glib.Object.GInitiallyUnowned"), "GIcon*": Proxy("Glib.G_Icon.G_Icon"), "GValue": Proxy("Glib.Values.GValue", ""), "GdkAtom": Proxy("Gdk.Types.Gdk_Atom"), "GVariantType": Proxy("Glib.Variant.Gvariant_Type"), "GVariantType*": Proxy("Glib.Variant.Gvariant_Type"), "GVariantIter":