Corrected wxGTK.spec as per 2.1.14 (hadn't commited),

Removed include "gtk.h" from the public pen.h header and
     added check for this to configure etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6906 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2000-03-22 18:04:07 +00:00
parent 5795cc366f
commit 5983e80bae
9 changed files with 522 additions and 356 deletions

852
configure vendored

File diff suppressed because it is too large Load Diff

View File

@@ -1531,6 +1531,7 @@ GUI_TK_LIBRARY=
GUI_TK_LINK= GUI_TK_LINK=
WXGTK12= WXGTK12=
WXGTK127=
WXGTK13= WXGTK13=
WXWINE= WXWINE=
@@ -1591,6 +1592,7 @@ fi
if test "$wxUSE_GTK" = 1; then if test "$wxUSE_GTK" = 1; then
dnl avoid calling AM_PATH_GTK twice, so check first for the newer version dnl avoid calling AM_PATH_GTK twice, so check first for the newer version
dnl and only then, if it wasn't found, for an older one dnl and only then, if it wasn't found, for an older one
AM_PATH_GTK(1.2.7, WXGTK127=1)
AM_PATH_GTK(1.2.3, WXGTK12=1) AM_PATH_GTK(1.2.3, WXGTK12=1)
if test "$WXGTK12" != 1; then if test "$WXGTK12" != 1; then
@@ -2551,6 +2553,10 @@ if test "$WXGTK12" = 1 ; then
AC_DEFINE_UNQUOTED(__WXGTK12__,$WXGTK12) AC_DEFINE_UNQUOTED(__WXGTK12__,$WXGTK12)
fi fi
if test "$WXGTK127" = 1 ; then
AC_DEFINE_UNQUOTED(__WXGTK127__,$WXGTK127)
fi
if test "$WXWINE" = 1 ; then if test "$WXWINE" = 1 ; then
TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__" TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
fi fi

View File

@@ -1862,6 +1862,8 @@ typedef unsigned long Atom; /* this might fail on a few architectures */
#ifdef __WXGTK__ #ifdef __WXGTK__
/* Stand-ins for GLIB types */ /* Stand-ins for GLIB types */
typedef char gchar;
typedef signed char gint8;
typedef int gint; typedef int gint;
typedef unsigned guint; typedef unsigned guint;
typedef unsigned long gulong; typedef unsigned long gulong;

View File

@@ -21,15 +21,13 @@
#include "wx/gdiobj.h" #include "wx/gdiobj.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include <gtk/gtk.h> // only needed for wxGTKDash, should it go elsewhere..
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// classes // classes
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class wxPen; class wxPen;
#if GTK_CHECK_VERSION(1,2,7) #ifdef __WXGTK127__
typedef gint8 wxGTKDash; typedef gint8 wxGTKDash;
#else #else
typedef gchar wxGTKDash; typedef gchar wxGTKDash;

View File

@@ -21,15 +21,13 @@
#include "wx/gdiobj.h" #include "wx/gdiobj.h"
#include "wx/gdicmn.h" #include "wx/gdicmn.h"
#include <gtk/gtk.h> // only needed for wxGTKDash, should it go elsewhere..
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
// classes // classes
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
class wxPen; class wxPen;
#if GTK_CHECK_VERSION(1,2,7) #ifdef __WXGTK127__
typedef gint8 wxGTKDash; typedef gint8 wxGTKDash;
#else #else
typedef gchar wxGTKDash; typedef gchar wxGTKDash;

View File

@@ -61,6 +61,9 @@
/* Define this if your version of GTK+ is greater than 1.2 */ /* Define this if your version of GTK+ is greater than 1.2 */
#undef __WXGTK12__ #undef __WXGTK12__
/* Define this if your version of GTK+ is greater than 1.2.7 */
#undef __WXGTK127__
/* Define this if your version of GTK+ is greater than 1.3 */ /* Define this if your version of GTK+ is greater than 1.3 */
#undef __WXGTK13__ #undef __WXGTK13__

View File

@@ -245,7 +245,6 @@ wxFont wxSystemSettings::GetSystemFont( int index )
if (def) if (def)
gdk_font = def->font; gdk_font = def->font;
} }
#endif
if (gdk_font) if (gdk_font)
{ {
GSList *font_list = ((GdkFontPrivate*)gdk_font)->names; GSList *font_list = ((GdkFontPrivate*)gdk_font)->names;
@@ -255,6 +254,7 @@ wxFont wxSystemSettings::GetSystemFont( int index )
g_systemFont = new wxFont( font_string, font_data ); g_systemFont = new wxFont( font_string, font_data );
} }
else else
#endif
{ {
g_systemFont = new wxFont( 12, wxSWISS, wxNORMAL, wxNORMAL ); g_systemFont = new wxFont( 12, wxSWISS, wxNORMAL, wxNORMAL );
} }

View File

@@ -245,7 +245,6 @@ wxFont wxSystemSettings::GetSystemFont( int index )
if (def) if (def)
gdk_font = def->font; gdk_font = def->font;
} }
#endif
if (gdk_font) if (gdk_font)
{ {
GSList *font_list = ((GdkFontPrivate*)gdk_font)->names; GSList *font_list = ((GdkFontPrivate*)gdk_font)->names;
@@ -255,6 +254,7 @@ wxFont wxSystemSettings::GetSystemFont( int index )
g_systemFont = new wxFont( font_string, font_data ); g_systemFont = new wxFont( font_string, font_data );
} }
else else
#endif
{ {
g_systemFont = new wxFont( 12, wxSWISS, wxNORMAL, wxNORMAL ); g_systemFont = new wxFont( 12, wxSWISS, wxNORMAL, wxNORMAL );
} }

View File

@@ -70,7 +70,8 @@ rm -rf $RPM_BUILD_ROOT
%doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt %doc COPYING.LIB INSTALL.txt LICENCE.txt README.txt SYMBOLS.txt TODO.txt
%dir %{pref}/share/wx %dir %{pref}/share/wx
%{pref}/share/wx/* %{pref}/share/wx/*
%attr(755, -, -) %{pref}/lib/libwx_gtk* %attr(755, -, -) %{pref}/lib/libwx_gtk.*
%attr(755, -, -) %{pref}/lib/libwx_gtk-2.1.*
%files devel %files devel
%defattr (644, root, root, 755) %defattr (644, root, root, 755)