Page MenuHome GnuPG

Kleopatra notepad: change to buttons in result list widget
Testing, NormalPublic

Description

Currently, we have the audit log open via a link (see T7782) and a "Close" button below it:

The "Show audit log" link shall be converted to a button and positioned horizontally next to the Close button. (i.e. left of the Close button in left-to-right languages).
The close button should only show an X (the text "close" will be kept in the a11y label only):

Show Audit logX

Details

Version
Gpg4win-5.0.0-beta357

Event Timeline

ebo triaged this task as Normal priority.Aug 20 2025, 9:39 AM
ebo created this task.
ebo created this object with edit policy "Contributor (Project)".
ikloecker moved this task from Backlog to WIP on the gpd5x board.
ikloecker added a subscriber: ikloecker.

"Show audit log" is already a button (probably changed for another ticket). I'll look into the remaining points.

Changing the position needs some more thought. There can be up to four buttons displayed next to the result:

  • Force decryption is shown if decryption failed due to a missing integrity check (MDC)
  • Show Audit Log is always shown (unless retrieving the audit log failed)
  • Show Email is shown if the decrypted content is something that can be opened in the mail viewer
  • Close is always shown in the notepad

The first button should probably be removed because I think nowadays ignoring a missing integrity check is a no-go. -> T8124: Kleopatra: Remove "Force Decryption" button shown if decryption failed due to missing integrity check (MDC)

That leaves three buttons. The result dialog shown after decrypting/verifying files is rather narrow and there's a lot of text shown on multiple lines next to the buttons. Show the button next to each other instead of below each other doesn't feel like a good idea.

Since the Close button is only shown for the notepad (which isn't that narrow) and since it's not that likely that someone pastes an encrypted email into the notepad I suggest to put the Close button (as X) next to the Show Audit Log button. If somebody does paste an encrypted email into the notepad then they get Show Audit Log and X next to each other and Show Email below. Looks a bit weird, but I think that okay as compromise.

Regarding the above comments:
Currently, the Show Email button is never shown in the notepad and the Close button (as X) is only shown in the notepad. So, in the notepad there's only Show Audit Log next to X. And elsewhere there's Show Audit Log and, if applicable, Show Email below.

ikloecker changed the task status from Open to Testing.Wed, Feb 25, 10:36 AM
ikloecker added a project: a11y.

Fixed.

The fix also fixes the wrong tab order of the Close button. (See T8125: Kleopatra: Wrong tab order of "Show Email" button for the same problem concerning the Show Email button.)

We decided to backport to VSD 3.4 because it fixes an accessibility issue (wrong tab order).

Backported for VSD 3.4

ikloecker mentioned this in Unknown Object (Maniphest Task).Mon, Mar 2, 9:07 AM
timegrid changed the task status from Testing to Open.EditedTue, Mar 3, 1:57 PM
timegrid moved this task from QA to WIP on the gpd5x board.
timegrid added a subscriber: timegrid.

In general looks good to me on gpg4win-5.0.2-beta2 @ win11:



(file decryption/verification to test the "show email" button)

Issues found:

  • pgp encrypt/sign does not offer an audit log, the first screenshot in the description ("verschlüsselt und signiert") suggests that this was different before

Just to be sure: The "Show Email" button is still never shown on the notepad, right?

Note: On gpg4win-5.0.1, there's also no audit log for notepad pgp sign/encrypt. So this is expected?

Also done: The tab order for the close button is now correct.

ikloecker changed the task status from Open to Testing.EditedTue, Mar 3, 2:33 PM

Issues found:

  • pgp encrypt/sign does not offer an audit log, the first screenshot in the description ("verschlüsselt und signiert") suggests that this was different before

This can happen if for some reason gpgme fails to read the output. I assume that this is a timing issue, i.e. after the gpg process exited gpgme closes the pipe before the stderr pipe was read completely or maybe the gpg process didn't write everything to the pipe before it exited. In any case, this has nothing to do with this ticket.

I hope you don't have configured a log file. Obviously, nothing is written to stderr if you set a log file.

Just to be sure: The "Show Email" button is still never shown on the notepad, right?

Correct. It's only shown if you decrypt an encrypted (or signed?) email via decrypt/verify files.

I found out, that successful notepad pgp encryption/signature never had an audit log button (it's also like this in gpg4win-4.4.1 and vsd-3.3.4).
So, everything fine here for gpg4win-5.0.2-beta2 @ win11, vsd still needs to be tested.

timegrid edited projects, added gpd5x (gpd-5.0.2); removed gpd5x.