#include "dockapp.h"
+#define XLIB_FAILURE 0
+#define XLIB_SUCCESS 1
+
+/* Specifies the border width */
+#define BWIDTH 1
+
+/* Width and height in pixels of Window Maker icons. */
+#define ICON_SIZE 64
+
+
static void
CreateIconFromXpmData( char *pixmap_data[] )
{
color.pixel = 0;
res = (bool) XParseColor( dockapp.display, attributes.colormap, name,
&color );
- if( res == FALSE ) {
+ if( res == false ) {
fprintf( stderr, "%s: Can't parse %s.\n", PACKAGE, name );
ErrorLocation( __FILE__, __LINE__ );
exit( EXIT_FAILURE );
}
res = (bool) XAllocColor( dockapp.display, attributes.colormap, &color );
- if( res == FALSE ) {
+ if( res == false ) {
fprintf( stderr, "%s: Can't allocate %s.\n", PACKAGE, name );
ErrorLocation( __FILE__, __LINE__ );
exit( EXIT_FAILURE );
flush_expose( Window win )
{
XEvent dummy;
- bool res = TRUE;
+ bool res = true;
- while( res != FALSE ) {
+ while( res != false ) {
res = (bool) XCheckTypedWindowEvent( dockapp.display, win, Expose, &dummy );
}
}