summaryrefslogtreecommitdiff
path: root/gtk/gtkfontsel.c
diff options
context:
space:
mode:
authorTor Lillqvist <tml@src.gnome.org>1999-07-21 19:27:25 +0000
committerTor Lillqvist <tml@src.gnome.org>1999-07-21 19:27:25 +0000
commit45a3396064873cf248908a0d275caa342a3bc4c1 (patch)
tree76eb1cb0c5371f21113179f1203f474a69fd38cf /gtk/gtkfontsel.c
parent0a07d3ba1f9ee29fdf0cc5a145a439df9d1df65c (diff)
downloadgdk-pixbuf-45a3396064873cf248908a0d275caa342a3bc4c1.tar.gz
Update gcc build instructions. Mention gettext is GPL.
* README.win32: Update gcc build instructions. Mention gettext is GPL. * gdk/win32/gdkcursor.c (gdk_cursor_new_from_pixmap): Get correct supported cursor size with GetSystemMetrics. * gdk/win32/gdkfont.c * gtk/gtkfontsel.c: Guard against some font weight and charset symbols being undefined (in mingw32 headers). * gdk/win32/makefile.cygwin * gtk/makefile.cygwin * gtk/gtkthemes.c: No longer need to have differently named gcc-built DLLs when using gcc-2.95 and -fnative-struct.
Diffstat (limited to 'gtk/gtkfontsel.c')
-rw-r--r--gtk/gtkfontsel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c
index 39c049f04..36eaf9b4d 100644
--- a/gtk/gtkfontsel.c
+++ b/gtk/gtkfontsel.c
@@ -2682,8 +2682,10 @@ logfont_to_xlfd (const LOGFONT *lfp,
weight = N_("extrabold");
else if (lfp->lfWeight >= FW_BOLD)
weight = N_("bold");
+#ifdef FW_DEMIBOLD
else if (lfp->lfWeight >= FW_DEMIBOLD)
weight = N_("demibold");
+#endif
else if (lfp->lfWeight >= FW_MEDIUM)
weight = N_("medium");
else if (lfp->lfWeight >= FW_NORMAL)
@@ -2719,8 +2721,10 @@ logfont_to_xlfd (const LOGFONT *lfp,
encoding = "chinesebig5";
else if (lfp->lfCharSet == OEM_CHARSET)
encoding = "oem";
+#ifdef JOHAB_CHARSET
else if (lfp->lfCharSet == JOHAB_CHARSET)
encoding = "johab";
+#endif
else if (lfp->lfCharSet == HEBREW_CHARSET)
encoding = "hebrew";
else if (lfp->lfCharSet == ARABIC_CHARSET)