From 5fbf79f7bbf0f33e5e6ec09bc8719006c7adbad3 Mon Sep 17 00:00:00 2001 From: "blizzard%redhat.com" Date: Mon, 24 Jun 2002 14:16:03 +0000 Subject: [PATCH] Bug #153788. Unscrew the gtk2 build. r=bryner,sr=jst git-svn-id: svn://10.0.0.236/trunk@123923 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/gfx/src/gtk/nsDeviceContextGTK.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mozilla/gfx/src/gtk/nsDeviceContextGTK.cpp b/mozilla/gfx/src/gtk/nsDeviceContextGTK.cpp index 41c8fbe600f..712a0db5f40 100644 --- a/mozilla/gfx/src/gtk/nsDeviceContextGTK.cpp +++ b/mozilla/gfx/src/gtk/nsDeviceContextGTK.cpp @@ -811,7 +811,12 @@ AppendFontName(XFontStruct* aFontStruct, nsString& aString, Display *aDisplay) { unsigned long pr = 0; // we first append the FFRE name to reconstruct font more faithfully +#ifdef MOZ_WIDGET_GTK unsigned long font_atom = gdk_atom_intern("FONT", FALSE); +#endif +#ifdef MOZ_WIDGET_GTK2 + unsigned long font_atom = gdk_x11_get_xatom_by_name("FONT"); +#endif ::XGetFontProperty(aFontStruct, font_atom, &pr); if(pr) { char* xlfdName = ::XGetAtomName(aDisplay, pr);