summaryrefslogtreecommitdiff
path: root/USetPassword.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-12 12:16:57 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-10-12 12:16:57 +0200
commit928e2dc79b46a455ef0c0096ddf40682e07b4a27 (patch)
tree85cf08ae19bdd5ac44261802b2e16972cc38e792 /USetPassword.pas
parentc29edff595cff9d43a607c15b5af6e2ec101263a (diff)
downloadtuxcmd-928e2dc79b46a455ef0c0096ddf40682e07b4a27.tar.xz
Implement VFS question and password callbacksv0.6.53
Diffstat (limited to 'USetPassword.pas')
-rw-r--r--USetPassword.pas4
1 files changed, 3 insertions, 1 deletions
diff --git a/USetPassword.pas b/USetPassword.pas
index b64d079..cdf7fee 100644
--- a/USetPassword.pas
+++ b/USetPassword.pas
@@ -53,7 +53,9 @@ begin
Table := TGTKTable.Create(Self);
DialogIcon := TGTKImage.Create(Self);
- DialogIcon.CopyFromPixbuf(StockLock48);
+ if gtk_style_lookup_icon_set(gtk_widget_get_style(FWidget), 'gtk-dialog-authentication') <> nil
+ then DialogIcon.SetFromStock('gtk-dialog-authentication', isDialog)
+ else DialogIcon.CopyFromPixbuf(StockLock48);
Label1 := TGTKLabel.Create(Self);
Label1.Caption := Format('<span size="x-large" weight="bold">%s</span>', [LANGFSetPassword_Label1_Caption]);