aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-unicode.h6
2 files changed, 11 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index cf73491624..cefa882edc 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-30 Lauris Kaplinski <lauris@helixcode.com>
+
+ * e-unicode.h: #define gnome_font_get_size and
+ gnome_font_get_width, if compiling with gnome-print 0.20
+
2000-08-30 Dan Winship <danw@helixcode.com>
* Makefile.am (libeutil_la_LIBADD): make e-util depend on
diff --git a/e-util/e-unicode.h b/e-util/e-unicode.h
index 5df2932ac4..6fd9c7f5af 100644
--- a/e-util/e-unicode.h
+++ b/e-util/e-unicode.h
@@ -4,6 +4,12 @@
#include <sys/types.h>
#include <glib.h>
#include <gtk/gtk.h>
+#include <config.h>
+
+#ifdef USING_GNOME_PRINT_0_20
+#define gnome_font_get_size(f) ((f)->size)
+#define gnome_font_get_glyph_width gnome_font_get_width
+#endif
/*
* e_utf8_strstrcase