Home GnuPG
Diffusion GpgOL 3f9cedf40b5b

Add icon callbacks and decrypt selection action
3f9cedf40b5bUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Add icon callbacks and decrypt selection action

This uses the same icons / icon ID's as the old extension
and does not handle transparency. There is some prepared
code to enable full alpha channel handling by using PNG included.

* src/gpgoladdin.cpp (GetIDsOfNames): Return dispID's for new
callbacks. Use new ID_MAPPER macro.
(Invoke): Resolve getIcon and decryptSelection calls.
(GetCustomUI): Add image callbacks and decrypt selection.
* src/ribbon-callbacks.cpp (encryptSelection): Add missing free.
(decryptSelection): New. Decrypt selected text and replace it
by plaintext if decryption was successful.
(getIcon): Create picturedispatcher on the queried ressource
bitmap.
* src/ribbon-callbacks.h: Add new ID's and prototypes
  • The old image mechanism for CommandBar items was to combine a trasparancy mask with a picture bitmap to create transparent images. This can no longer be used and the suggested / documented way instead is now to use bitmaps generated from PNGs. For now we just return the picture part of the bitmaps. Looks ugly but should be ok for now.

Details

Provenance
aheineckeAuthored on Jul 10 2013, 7:28 PM
Parents
rObd44cdf7984c: Fix debug output in dump_excepinfo
Branches
Unknown
Tags
Unknown