From 57afb2b588b571f3b44723d0cb469f35995fd605 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Tue, 30 Mar 1999 12:06:00 +0000 Subject: [PATCH] Make code compile with unknown value of GDK_WINDOWING 1999-03-30 Pavel Machek * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code compile with unknown value of GDK_WINDOWING --- ChangeLog | 5 +++++ ChangeLog.pre-2-0 | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-2 | 5 +++++ ChangeLog.pre-2-4 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkfontsel.c | 3 +++ 8 files changed, 38 insertions(+) diff --git a/ChangeLog b/ChangeLog index 75d8e00020..4024121028 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 75d8e00020..4024121028 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 75d8e00020..4024121028 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 75d8e00020..4024121028 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 75d8e00020..4024121028 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 75d8e00020..4024121028 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 75d8e00020..4024121028 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +1999-03-30 Pavel Machek + + * gtk/gtkfontsel.c (gtk_font_selection_get_fonts): Make code + compile with unknown value of GDK_WINDOWING + 1999-03-28 Raja R Harinath * gdk/Makefile.am (gdkconfig.h): Make sure `gdkconfig.h' exists diff --git a/gtk/gtkfontsel.c b/gtk/gtkfontsel.c index c665bae116..41a30cba17 100644 --- a/gtk/gtkfontsel.c +++ b/gtk/gtkfontsel.c @@ -2832,6 +2832,9 @@ gtk_font_selection_get_fonts (void) gint num_fonts; #elif GDK_WINDOWING == GDK_WINDOWING_WIN32 LOGFONT logfont; +#else + gint num_fonts = 0; + gchar **xfontnames = NULL; #endif GSList **fontnames; gchar *fontname;