Skip to content

Commit

Permalink
Merge pull request #1005 from gircore/small-fixes
Browse files Browse the repository at this point in the history
Small fixes
  • Loading branch information
badcel authored Jan 18, 2024
2 parents ce3bceb + de1a5a8 commit 7e5a865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Libs/GObject-2.0/Public/Object.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected Object(bool owned, ConstructArgument[] constructArguments)
Type gtype = GetGTypeOrRegister(GetType());

IntPtr handle = Internal.Object.NewWithProperties(
objectType: gtype.Value,
objectType: gtype,
nProperties: (uint) constructArguments.Length,
names: GetNames(constructArguments),
values: ValueArray2OwnedHandle.Create(constructArguments.Select(x => x.Value).ToArray())
Expand Down
2 changes: 1 addition & 1 deletion src/Libs/GObject-2.0/Public/Type.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public partial struct Type

#endregion Statics

public override string ToString()
public override string? ToString()
{
return Internal.Functions.TypeName(_value).ConvertToString();
}
Expand Down

0 comments on commit 7e5a865

Please sign in to comment.