diff src/puresize.h @ 104:cf808b4c4290 r20-1b4

Import from CVS: tag r20-1b4
author cvs
date Mon, 13 Aug 2007 09:16:51 +0200
parents a145efe76779
children 360340f9fd5f
line wrap: on
line diff
--- a/src/puresize.h	Mon Aug 13 09:15:51 2007 +0200
+++ b/src/puresize.h	Mon Aug 13 09:16:51 2007 +0200
@@ -24,11 +24,10 @@
 #ifndef PURESIZE_H
 #define PURESIZE_H
 
-/* If PURESIZE is already defined then the user overrode it at
+/* If RAW_PURESIZE is already defined then the user overrode it at
    configure time. */
-#ifndef PURESIZE
+#ifndef RAW_PURESIZE
 
-#if 0
 /* Basic amount of purespace to use, in the absence of extra
    things configured in. */
 
@@ -51,20 +50,48 @@
 
 /* Extra amount of purespace needed for menubars. */
 
+#ifdef HAVE_DIALOGS
+# if (LONGBITS == 64)
+#  define DIALOG_PURESIZE_EXTRA 43000
+# else
+#  define DIALOG_PURESIZE_EXTRA 1800
+# endif
+#else
+# define DIALOG_PURESIZE_EXTRA 0
+#endif
+
 #ifdef HAVE_MENUBARS
 # if (LONGBITS == 64)
 #  define MENUBAR_PURESIZE_EXTRA 43000
 # else
-#  define MENUBAR_PURESIZE_EXTRA 35000
+#  define MENUBAR_PURESIZE_EXTRA 36000
 # endif
 #else
 # define MENUBAR_PURESIZE_EXTRA 0
 #endif
 
-/* Scrollbar purespace needed is only about 2K so there's no sense
-   worrying about it separately. */
+#ifdef HAVE_SCROLLBARS
+# if (LONGBITS == 64)
+#  define SCROLLBAR_PURESIZE_EXTRA 4000
+# else
+#  define SCROLLBAR_PURESIZE_EXTRA 1800
+# endif
+#else
+# define SCROLLBAR_PURESIZE_EXTRA 0
+#endif
 
-/* Extra amount of purespace needed for X11, separate from menubars. */
+#ifdef HAVE_TOOLBARS
+# if (LONGBITS == 64)
+#  define TOOLBAR_PURESIZE_EXTRA 4000
+# else
+#  define TOOLBAR_PURESIZE_EXTRA 8400
+# endif
+#else
+# define TOOLBAR_PURESIZE_EXTRA 0
+#endif
+
+/* Extra amount of purespace needed for X11, separate from menubars
+   and scrollbars. */
 
 #ifdef HAVE_X_WINDOWS
 # if (LONGBITS == 64)
@@ -104,7 +131,7 @@
 # if (LONGBITS == 64)
 #  define TOOLTALK_PURESIZE_EXTRA 100000
 # else
-#  define TOOLTALK_PURESIZE_EXTRA 69000
+#  define TOOLTALK_PURESIZE_EXTRA 8300
 # endif
 #else
 # define TOOLTALK_PURESIZE_EXTRA 0
@@ -126,16 +153,22 @@
 # define SUNPRO_PURESIZE_EXTRA 0
 #endif
 
-#define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) +		  \
-		  (X11_PURESIZE_EXTRA) +				  \
-		  (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) +	  \
-		  (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \
-		  (SUNPRO_PURESIZE_EXTRA))
-#endif
+#define RAW_PURESIZE ((BASE_PURESIZE) +					\
+		      (DIALOG_PURESIZE_EXTRA) +				\
+		      (MENUBAR_PURESIZE_EXTRA) +			\
+		      (SCROLLBAR_PURESIZE_EXTRA) +			\
+		      (TOOLBAR_PURESIZE_EXTRA) +			\
+		      (X11_PURESIZE_EXTRA) +				\
+		      (SYSTEM_PURESIZE_EXTRA) +				\
+		      (MULE_PURESIZE_EXTRA) +				\
+		      (TOOLTALK_PURESIZE_EXTRA) +			\
+		      (ENERGIZE_PURESIZE_EXTRA) +			\
+		      (SUNPRO_PURESIZE_EXTRA))
+  
+#endif /* !RAW_PURESIZE */
+  
+#include "puresize_adjust.h"
+#define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
 
-/* Computed by XEmacs */
-# include <PURESIZE.h>
-
-#endif /* !PURESIZE */
 
 #endif /* PURESIZE_H */