Skip to content

A Swiss Army knife for developers.

GirCore: Update to 0.5.0 (#1166)

Marcel Tiede3da0bc4b62cf
diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index ce0002b7d..36dfc0bec 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -3,7 +3,7 @@
<CommunityToolkitVersion>8.2.1</CommunityToolkitVersion>
<DotNetVersion>8.0.0</DotNetVersion>
<XUnit>2.5.0</XUnit>
- <GirCore>0.5.0-preview.1</GirCore>
+ <GirCore>0.5.0</GirCore>
</PropertyGroup>
<ItemGroup>
<PackageVersion Include="CommunityToolkit.Common" Version="$(CommunityToolkitVersion)" />
diff --git a/src/app/dev/platforms/desktop/DevToys.Linux/Components/BlazorWebView/BlazorWebViewBridge.cs b/src/app/dev/platforms/desktop/DevToys.Linux/Components/BlazorWebView/BlazorWebViewBridge.cs
index f3bf7973a..48f838c61 100644
--- a/src/app/dev/platforms/desktop/DevToys.Linux/Components/BlazorWebView/BlazorWebViewBridge.cs
+++ b/src/app/dev/platforms/desktop/DevToys.Linux/Components/BlazorWebView/BlazorWebViewBridge.cs
@@ -78,7 +78,9 @@ internal sealed class BlazorWebViewBridge : WebViewManager
};
""",
injectedFrames: UserContentInjectedFrames.AllFrames,
- injectionTime: UserScriptInjectionTime.Start)
+ injectionTime: UserScriptInjectionTime.Start,
+ allowList: null,
+ blockList: null)
);
UserContentManager.ScriptMessageReceivedSignal.Connect(
diff --git a/src/app/dev/platforms/desktop/DevToys.Linux/MainWindow.cs b/src/app/dev/platforms/desktop/DevToys.Linux/MainWindow.cs
index 52edd4226..34310390a 100644
--- a/src/app/dev/platforms/desktop/DevToys.Linux/MainWindow.cs
+++ b/src/app/dev/platforms/desktop/DevToys.Linux/MainWindow.cs
@@ -45,7 +45,7 @@ internal class MainWindow
_blazorGtkWebView.BlazorWebViewInitialized += OnBlazorWebViewInitialized;
// Make web view transparent
- _blazorGtkWebView.SetBackgroundColor(new Gdk.RGBA(Gdk.Internal.RGBAManagedHandle.Create(new Gdk.Internal.RGBAData { Red = 0, Blue = 0, Green = 0, Alpha = 0 })));
+ _blazorGtkWebView.SetBackgroundColor(new Gdk.RGBA { Red = 0, Blue = 0, Green = 0, Alpha = 0 });
// Allow opening developer tools
Settings webViewSettings = _blazorGtkWebView.GetSettings();
diff --git a/src/app/dev/platforms/desktop/DevToys.Linux/Program.cs b/src/app/dev/platforms/desktop/DevToys.Linux/Program.cs
index 43aea2764..d550a6b9e 100644
--- a/src/app/dev/platforms/desktop/DevToys.Linux/Program.cs
+++ b/src/app/dev/platforms/desktop/DevToys.Linux/Program.cs
@@ -7,7 +7,7 @@ internal partial class Program
private static int Main(string[] args)
{
linuxProgram = new LinuxProgram();
- linuxProgram.Application.Run();
+ linuxProgram.Application.Run(0, null);
return 0;
}