using Nickvision.Desktop.GNOME.Helpers;
using System.Diagnostics.CodeAnalysis;

namespace Nickvision.Parabolic.GNOME.Controls;

public class LoadingDialog : Adw.Dialog
{
    private readonly Gtk.Builder _builder;

    public LoadingDialog(IGtkBuilderFactory builderFactory) : this(builderFactory.Create("LoadingDialog"))
    {

    }

    [DynamicDependency(DynamicallyAccessedMemberTypes.NonPublicFields, typeof(LoadingDialog))]
    private LoadingDialog(Gtk.Builder builder) : base(new Adw.Internal.DialogHandle(builder.GetPointer("root"), false))
    {
        _builder = builder;
        _builder.Connect(this);
    }
}
