@@ -23,12 +23,12 @@ public MauiGtkMainWindow() : base(WindowType.Toplevel)
2323
2424 void OnDeleteEvent ( object o , DeleteEventArgs args )
2525 {
26- MauiGtkApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnDelete > ( del => del ( this , args ) ) ;
26+ MauiApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnDelete > ( del => del ( this , args ) ) ;
2727
28- if ( MauiGtkApplication . Current . MainWindow == o )
28+ if ( MauiApplication . Current . MainWindow == o )
2929 {
3030
31- ( ( Application ) MauiGtkApplication . CurrentGtkApplication ) . Quit ( ) ;
31+ ( ( Application ) MauiApplication . CurrentGtkApplication ) . Quit ( ) ;
3232
3333 args . Event . SendEvent = true ;
3434 }
@@ -37,22 +37,22 @@ void OnDeleteEvent(object o, DeleteEventArgs args)
3737 //GtkWidget::visibility-notify-event has been deprecated since version 3.12
3838 // void OnVisibilityNotifyEvent(object o, VisibilityNotifyEventArgs args)
3939 // {
40- // MauiGtkApplication .Current.Services?.InvokeLifecycleEvents<GtkLifecycle.OnVisibilityChanged>(del => del(this, args));
40+ // MauiApplication .Current.Services?.InvokeLifecycleEvents<GtkLifecycle.OnVisibilityChanged>(del => del(this, args));
4141 // }
4242
4343 void OnHidden ( object ? sender , EventArgs args )
4444 {
45- MauiGtkApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnHidden > ( del => del ( this , args ) ) ;
45+ MauiApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnHidden > ( del => del ( this , args ) ) ;
4646 }
4747
4848 void OnShown ( object ? sender , EventArgs args )
4949 {
50- MauiGtkApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnShown > ( del => del ( this , args ) ) ;
50+ MauiApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnShown > ( del => del ( this , args ) ) ;
5151 }
5252
5353 void OnWindowStateEvent ( object o , WindowStateEventArgs args )
5454 {
55- MauiGtkApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnStateChanged > ( del => del ( this , args ) ) ;
55+ MauiApplication . Current . Services ? . InvokeLifecycleEvents < GtkLifecycle . OnStateChanged > ( del => del ( this , args ) ) ;
5656 }
5757
5858 }
0 commit comments