[gtk+/master.fcw: 330/648] Revert "gdkmain-win32.c: Add OS Info Check Function"
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/master.fcw: 330/648] Revert "gdkmain-win32.c: Add OS Info Check Function"
- Date: Wed, 4 Feb 2015 05:08:00 +0000 (UTC)
commit 17e8870b3379b2db89218555efbb037c0d64fa9b
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Dec 23 16:04:36 2014 +0800
Revert "gdkmain-win32.c: Add OS Info Check Function"
This reverts commit fad57fa732ea6212ac95dab25178620d3918294a.
gdk/win32/gdkmain-win32.c | 14 --------------
gdk/win32/gdkprivate-win32.h | 3 ---
2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c
index 3932245..905c729 100644
--- a/gdk/win32/gdkmain-win32.c
+++ b/gdk/win32/gdkmain-win32.c
@@ -150,20 +150,6 @@ _gdk_other_api_failed (const gchar *where,
g_warning ("%s: %s failed", where, api);
}
-gboolean
-_gdk_win32_check_os_version (glong major, glong minor)
-{
- OSVERSIONINFOEXW osverinfo;
- const DWORDLONG conds = VerSetConditionMask (VerSetConditionMask (0, VER_MAJORVERSION, VER_GREATER_EQUAL),
VER_MINORVERSION, VER_GREATER_EQUAL);
-
- memset (&osverinfo, 0, sizeof (OSVERSIONINFOEXW));
- osverinfo.dwOSVersionInfoSize = sizeof (OSVERSIONINFOEXW);
- osverinfo.dwPlatformId = VER_PLATFORM_WIN32_NT;
- osverinfo.dwMajorVersion = major;
- osverinfo.dwMinorVersion = minor;
-
- return VerifyVersionInfoW (&osverinfo, VER_MAJORVERSION | VER_MINORVERSION, conds);
-}
#ifdef G_ENABLE_DEBUG
diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h
index 9466a97..acc3fca 100644
--- a/gdk/win32/gdkprivate-win32.h
+++ b/gdk/win32/gdkprivate-win32.h
@@ -508,7 +508,4 @@ void _gdk_events_init (void);
void _gdk_input_init (GdkDisplay *display);
void _gdk_input_wintab_init_check (GdkDeviceManager *device_manager);
-/* check OS version info */
-gboolean _gdk_win32_check_os_version (glong major, glong minor);
-
#endif /* __GDK_PRIVATE_WIN32_H__ */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]