Skip to content

Conversation

@Lemon73-Computing
Copy link
Owner

@Lemon73-Computing Lemon73-Computing commented Jul 2, 2025

Description of Change

It has finally entered the realm of the usable.

Issues Fixed

Fixes MauiGtk#103

@Lemon73-Computing Lemon73-Computing changed the title rename MauiGtkApplication to MauiApplication Rename MauiGtkApplication to MauiApplication Jul 2, 2025
@Lemon73-Computing
Copy link
Owner Author

Build Error:

/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=netstandard2.0]
/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=netstandard2.1]
/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=net8.0-gtk]
/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=net8.0]
    0 Warning(s)
    4 Error(s)

@Lemon73-Computing
Copy link
Owner Author

Lemon73-Computing commented Jul 5, 2025

Build Error:

/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=netstandard2.0]
/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=netstandard2.1]
/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=net8.0-gtk]
/mauienv/maui-linux/src/Essentials/src/Accelerometer/AccelerometerQueue.shared.cs(28,4): error CS0131: The left-hand side of an assignment must be a variable, property or indexer [/mauienv/maui-linux/src/Essentials/src/Essentials.csproj::TargetFramework=net8.0]
    0 Warning(s)
    4 Error(s)

This issue will fix: MauiGtk#107

@Lemon73-Computing Lemon73-Computing self-assigned this Jul 5, 2025
@Lemon73-Computing Lemon73-Computing force-pushed the lemon73/rename-gtk-maui-app-tmp branch from 5449eba to 982cd16 Compare July 5, 2025 12:16
@Lemon73-Computing
Copy link
Owner Author

んー…

これは、名前を変えてもダメそうですねぇ

@Lemon73-Computing
Copy link
Owner Author

Lemon73-Computing commented Jul 10, 2025

MauiApplication の設計というか、思想というかが若干違う気がする

public static MauiApplication Current { get; internal set; } = null!;

protected MauiApplication()
{
Current = this;
IPlatformApplication.Current = this;
}

protected MauiApplication(IntPtr handle, JniHandleOwnership ownership) : base(handle, ownership)
{
Current = this;
IPlatformApplication.Current = this;
}

 protected MauiApplication() 
 { 
 	Current = this; // 継承がないので、Gtk では多分エラーになる
 	IPlatformApplication.Current = this; 
 }

@Lemon73-Computing
Copy link
Owner Author

Android は Application (多分これ:

public partial class Application
{
public static void MapWindowSoftInputModeAdjust(ApplicationHandler handler, Application application)
{
Platform.ApplicationExtensions.UpdateWindowSoftInputModeAdjust(handler.PlatformView, application);
}
}

) を継承しているっぽい

Gtk は実装されていない:

public partial class Application
{
}

@Lemon73-Computing
Copy link
Owner Author

Lemon73-Computing commented Jul 10, 2025

いや、違うな。

public static MauiApplication Current { get; private set; } = null!;

これか。(さっきのは、Current の実装がない)

@Lemon73-Computing
Copy link
Owner Author

Lemon73-Computing commented Jul 11, 2025

とりあえず、

protected MauiApplication()
{
	Current = this;
	IPlatformApplication.Current = this;
}

これ試してみるか

@Lemon73-Computing Lemon73-Computing force-pushed the lemon73/rename-gtk-maui-app-tmp branch from 982cd16 to 86c6d5a Compare July 11, 2025 00:10
@Lemon73-Computing
Copy link
Owner Author

とりあえず、

protected MauiApplication()
{
	Current = this;
	IPlatformApplication.Current = this;
}

これ試してみるか

これを追加しても動かない

@Lemon73-Computing
Copy link
Owner Author

とりあえず #17 に統合する

@Lemon73-Computing Lemon73-Computing force-pushed the lemon73/rename-gtk-maui-app-tmp branch from 86c6d5a to b82c690 Compare July 24, 2025 04:45
@Lemon73-Computing Lemon73-Computing marked this pull request as ready for review July 24, 2025 04:45
@Lemon73-Computing Lemon73-Computing merged commit f262cb5 into lemon73/rename-gtk-maui-app Jul 24, 2025
3 of 6 checks passed
@Lemon73-Computing Lemon73-Computing deleted the lemon73/rename-gtk-maui-app-tmp branch July 24, 2025 04:48
Lemon73-Computing added a commit that referenced this pull request Jul 24, 2025
…-app

Rename MauiGtkApplication to MauiApplication (#18)
Lemon73-Computing added a commit that referenced this pull request Jul 24, 2025
Rename MauiGtkApplication to MauiApplication
@github-actions github-actions bot locked and limited conversation to collaborators Aug 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants