Skip to content

Commit

Permalink
GNOME - Fixups for password dialog Blueprint port
Browse files Browse the repository at this point in the history
  • Loading branch information
DaPigGuy committed Mar 4, 2023
1 parent 175d4b9 commit 50c49cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion NickvisionMoney.GNOME/Blueprints/password_dialog.blp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Adw.MessageDialog _root {
default-width: 500;
hide-on-close: true;

Adw.StatusPage {
Adw.StatusPage _statusPage {
title: _("EnterPassword");
icon-name: "dialog-password-symbolic";

Expand Down
2 changes: 2 additions & 0 deletions NickvisionMoney.GNOME/Controls/PasswordDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public partial class PasswordDialog : Adw.MessageDialog
[LibraryImport("libadwaita-1.so.0", StringMarshalling = StringMarshalling.Utf8)]
private static partial void g_main_context_iteration(nint context, [MarshalAs(UnmanagedType.I1)] bool blocking);

[Gtk.Connect] private readonly Adw.StatusPage _statusPage;
[Gtk.Connect] private readonly Adw.PasswordEntryRow _passwordEntry;
private PasswordDialogResponse _response;

Expand All @@ -45,6 +46,7 @@ private PasswordDialog(Gtk.Builder builder, Gtk.Window parent, string accountTit
SetCloseResponse("cancel");
SetDefaultResponse("suggested");
OnResponse += (sender, e) => SetResponse(e.Response);
_statusPage.SetDescription(accountTitle);
}


Expand Down

0 comments on commit 50c49cf

Please sign in to comment.