Home GnuPG

Add context menu to copy a private key to the clipboard.

Description

Add context menu to copy a private key to the clipboard.

* src/gpaexportop.c (PROP_SECRET): New.
(gpa_export_operation_get_property): Add new property.
(gpa_export_operation_set_property): Add new property.
(gpa_export_operation_class_init): Install property.
(gpa_export_operation_idle_cb): USe Secret export mode.
* src/gpaexportclipop.c
(gpa_export_clipboard_operation_complete_export): Improve message.
* src/gpaexportclipop.c (gpa_export_clipboard_operation_new): Add arg
'secret' and change caller.
* src/keymanager.c (key_manager_copy_sec): New.
(key_manager_action_new): Register function.
  • GnuPG-bug-id: T4049
  • Signed-off-by: Werner Koch <wk@gnupg.org>