File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- using Gio ;
1+ using Gtk ;
22
33namespace BlazorGtkApp
44{
55 public class App
66 {
7- private const string applicationId = "com.yucore .blazorgtkapp" ;
7+ private const string applicationId = "com.companyname .blazorgtkapp" ;
88
9- private readonly Gtk . Application app ;
9+ private readonly Application app ;
1010
1111 private readonly IServiceProvider _serviceProvider ;
1212
13- private Gtk . ApplicationWindow ? window ;
13+ private ApplicationWindow ? window ;
1414
1515 public App ( IServiceProvider serviceProvider )
1616 {
1717 _serviceProvider = serviceProvider ;
1818
19- app = Gtk . Application . New ( applicationId , Gio . ApplicationFlags . NonUnique ) ;
19+ app = Application . New ( applicationId , Gio . ApplicationFlags . NonUnique ) ;
2020 GLib . Functions . SetPrgname ( "BlazorGtkApp" ) ;
2121 // Set the human-readable application name for app bar and task list.
2222 GLib . Functions . SetApplicationName ( "BlazorGtkApp" ) ;
2323 app . OnActivate += ApplicationActivate ;
2424 }
2525
26- private void ApplicationActivate ( Application sender , EventArgs args )
26+ private void ApplicationActivate ( Gio . Application sender , EventArgs args )
2727 {
2828 window = new MainWindow ( app , _serviceProvider ) ;
2929 window . Present ( ) ;
Original file line number Diff line number Diff line change 11using BlazorGtkApp . Components ;
2+ using Gtk ;
23using Microsoft . AspNetCore . Components . WebView . Gtk ;
34
45namespace BlazorGtkApp
56{
6- public class MainWindow : Gtk . ApplicationWindow
7+ public class MainWindow : ApplicationWindow
78 {
8- public MainWindow ( Gtk . Application application , IServiceProvider serviceProvider )
9+ public MainWindow ( Application application , IServiceProvider serviceProvider )
910 : base ( new Gtk . Internal . ApplicationWindowHandle ( Gtk . Internal . ApplicationWindow . New ( application . Handle . DangerousGetHandle ( ) ) , ownsHandle : false ) )
1011 {
1112 SetDefaultSize ( 1024 , 768 ) ;
Original file line number Diff line number Diff line change 3838 </ItemGroup >
3939
4040 <ItemGroup >
41- <PackageReference Include =" GirCore.Gtk-4.0" Version =" 0.6.3 " />
42- <PackageReference Include =" GirCore.WebKit-6.0" Version =" 0.6.3 " />
41+ <PackageReference Include =" GirCore.Gtk-4.0" Version =" 0.7.0 " />
42+ <PackageReference Include =" GirCore.WebKit-6.0" Version =" 0.7.0 " />
4343 </ItemGroup >
4444</Project >
You can’t perform that action at this time.
0 commit comments