libdockapp: Add DAMakeShapeFromData() and DAMakeShapeFromFile() functions.
commit1891366919c19fad6fc7d796562fd9dba0ec99fa
authorDoug Torrance <dtorrance@piedmont.edu>
Thu, 31 Aug 2017 05:03:31 +0000 (31 01:03 -0400)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 31 Aug 2017 06:32:04 +0000 (31 08:32 +0200)
tree8ddaeff17ad468859137988e0e7242871b5b3cd6
parent3281a28c2ffcfbbd5833985a6e41536b16775128
libdockapp: Add DAMakeShapeFromData() and DAMakeShapeFromFile() functions.

libdockapp supports shaped dockapps with the DASetShape() function, but this
function requires as input a bitmap.  Previously, there was no support for
creating such a bitmap from XBM data without using Xlib directly.

We add two functions, DAMakeShapeFromData(), which is a wrapper around
XCreateBitmapFromData and allows developers to #include XBM data, and
DAMakeShapeFromFile(), which is a wrapper around XReadBitmapfile and
lets developers specify the path to an XBM file.
libdockapp/src/dapixmap.c
libdockapp/src/dockapp.h