Added mimimal version number verification for OpenSSL in configure
[dockapps/wmnotify.git] / src / dockapp.c
index 01bd329..c4c98f5 100644 (file)
 #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[] )
 {
@@ -62,14 +72,14 @@ GetColor( char *name )
   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 );
@@ -83,9 +93,9 @@ static void
 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 );
   }
 }