Use native MIME and display classes in wxGTK/Win32 build
Use Windows file associations when running under this OS, even when using wxGTK, because this is the right thing to do. Also use native wxDisplay implementation because it works better than the GTK+ one under this platform. Closes #17651.
This commit is contained in:
committed by
Vadim Zeitlin
parent
9cb762dbd2
commit
897ffb58b0
@@ -573,8 +573,8 @@ $(TAB)cl /EP /nologo "$(DOLLAR)(InputPath)" > "$(SETUPHDIR)\wx\msw\rcdefs.h"
|
||||
</template>
|
||||
|
||||
<set var="LIB_GTK">
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">gtk-win32-2.0.lib gdk-win32-2.0.lib pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='3'">libgtk-3.dll.a libgdk-3.dll.a pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='2'">gtk-win32-2.0.lib gdk-win32-2.0.lib gio-2.0.lib pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
<if cond="FORMAT!='autoconf' and PLATFORM_WIN32=='1' and TOOLKIT=='GTK' and TOOLKIT_VERSION=='3'">libgtk-3.dll.a libgdk-3.dll.a gio-2.0.lib pangocairo-1.0.lib gdk_pixbuf-2.0.lib cairo.lib pango-1.0.lib gobject-2.0.lib gthread-2.0.lib glib-2.0.lib</if>
|
||||
</set>
|
||||
|
||||
<!-- for GUI libs/samples: -->
|
||||
|
@@ -10,7 +10,13 @@
|
||||
#ifndef _WX_GTK_MIMETYPE_IMPL_H
|
||||
#define _WX_GTK_MIMETYPE_IMPL_H
|
||||
|
||||
#include "wx/defs.h"
|
||||
|
||||
#if defined(__UNIX__)
|
||||
#include "wx/unix/mimetype.h"
|
||||
#elif defined(__WINDOWS__)
|
||||
#include "wx/msw/mimetype.h"
|
||||
#endif
|
||||
|
||||
#if wxUSE_MIMETYPE
|
||||
|
||||
|
@@ -20,6 +20,8 @@
|
||||
#endif
|
||||
#include "wx/gtk/private/gtk2-compat.h"
|
||||
|
||||
#if !defined(GDK_WINDOWING_WIN32)
|
||||
|
||||
GdkWindow* wxGetTopLevelGDK();
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -237,3 +239,5 @@ wxDisplayFactory* wxDisplay::CreateFactory()
|
||||
return new wxDisplayFactoryGTK;
|
||||
}
|
||||
#endif // wxUSE_DISPLAY
|
||||
|
||||
#endif // !defined(GDK_WINDOWING_WIN32)
|
||||
|
Reference in New Issue
Block a user