mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-06 05:02:25 +02:00
Gtk3: added G_OBJECT_TYPE_NAME(), same name as gtk3 macro have. Needed for debugging.
This commit is contained in:
parent
be473cfce5
commit
4374f2360f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user