From 7cacc9cd310ee2fbdb35b38f6da7fc96298e4bc5 Mon Sep 17 00:00:00 2001 From: "bryner%uiuc.edu" Date: Wed, 7 Mar 2001 03:35:10 +0000 Subject: [PATCH] This should fix the build bustage on ports, by using a gtk version test to decide what type to pass to gdk_gc_set_dashes. r=dbaron, sr=shaver. --- gfx/src/gtk/nsRenderingContextGTK.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gfx/src/gtk/nsRenderingContextGTK.h b/gfx/src/gtk/nsRenderingContextGTK.h index d44f22b55dae..057c7ac6b9a1 100644 --- a/gfx/src/gtk/nsRenderingContextGTK.h +++ b/gfx/src/gtk/nsRenderingContextGTK.h @@ -242,7 +242,12 @@ private: GdkGC *mGC; GdkFunction mFunction; GdkLineStyle mLineStyle; + // gtk+ 1.2.7 introduces an incompatible API change +#if GTK_CHECK_VERSION(1,2,7) gint8 mDashList[2]; +#else + gchar mDashList[2]; +#endif gint mDashes; nscolor mCurrentColor; nsFontGTK *mCurrentFont;