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
This commit is contained in:
blizzard%redhat.com
2002-06-24 14:16:03 +00:00
parent baebc923ae
commit 5fbf79f7bb

View File

@@ -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);