[Evolution-hackers] [PATCH 1/3] Provide declaration for get_font_options()



From: Pavel Roskin <proski gnu org>

gtk/gtk.h needs to be included to make sure that cairo_font_options_t is
defined.  Without this patch, callers of get_font_options() get the
lower 32 bit of the pointer, which causes breakage on 64-bit systems.
---

 e-util/e-util.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/e-util/e-util.h b/e-util/e-util.h
index 0346a9f..d885f9f 100644
--- a/e-util/e-util.h
+++ b/e-util/e-util.h
@@ -28,6 +28,7 @@ #include <sys/types.h>
 #include <glib-object.h>
 #include <limits.h>
 #include <gconf/gconf-client.h>
+#include <gtk/gtk.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -214,6 +215,7 @@ gchar    *e_ascii_dtostr                
    Less than 0 for the int means copy the whole string. */
 gchar    *e_strdup_append_strings                                          (gchar             *first_string,
 									    ...);
+cairo_font_options_t *get_font_options();
 
 #ifdef __cplusplus
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]