Gtk3: added G_OBJECT_TYPE_NAME(), same name as gtk3 macro have. Needed for debugging.

This commit is contained in:
zeljan1 2025-01-22 18:26:22 +01:00
parent be473cfce5
commit 4374f2360f

View File

@ -249,7 +249,7 @@ const
function G_OBJECT_TYPE_NAME(AWidget: PGObject): string;
function Gtk3IsObject(AWidget: PGObject): GBoolean;
function Gtk3IsButton(AWidget: PGObject): GBoolean;
@ -1349,5 +1349,13 @@ begin
g_list_free(TopList);
end;
function G_OBJECT_TYPE_NAME(AWidget:PGObject):string;
begin
Result := '';
if AWidget = nil then
exit;
Result := g_type_name(PGObject(AWidget)^.g_type_instance.g_class^.g_type);
end;
end.