Make sure the user is fine with overwriting an existing file. If
the user selects a file with the file chooser dialog, then the
dialog takes care of asking for confirmation. Otherwise, if the
user does not change the default filename, then we need to
explicitly ask for confirmation.
Disable the OK/Confirm button until a workable action (sign and/or
encrypt) has been defined by the user. Also only enable the
detached signature button when it makes sense, i.e. when signing
is enabled and encryption is disabled.
Refactor the code to get rid of the yki_ctx_t structure, which is
replaced by a yki_encrypt_data_t structure that is internal to
the encrypt module.
Use a dedicated module to store the yki_ctx_t structure and
associated helper functions. Also rename the structure from
the original yorkie_ctx_t to yki_ctx_t for consistency.
Implement command line parsing with GLib's parser. Two options
are available for now: -e to encrypt (and/or sign) and -d to
decrypt (and/or verify). Encrypt is the default mode and is the
only one supported for now.
Add a module dedicated to helper functions to work with GpgME.
This module provides a small structure encapsulating both a
stdio FILE object and a GpgME data buffer.
Use the gtk_dialog_run function to display the encrypt dialog.
This make things slightly easier as we no longer need to connect
callbacks to the `clicked` signal from the buttons or the
`destroy` signal from the dialog.