After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 705068 - Update the GDK and GTK on Win32 to not use deprecated APIs
Update the GDK and GTK on Win32 to not use deprecated APIs
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: Win32
unspecified
Other Windows
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-07-29 09:01 UTC by Fan, Chun-wei
Modified: 2013-08-14 00:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GDK-WIn32: Avoid using deprecated APIs (5.04 KB, patch)
2013-07-29 09:14 UTC, Fan, Chun-wei
none Details | Review
GDK-WIn32: Avoid using deprecated APIs (take ii) (5.05 KB, patch)
2013-07-29 09:20 UTC, Fan, Chun-wei
none Details | Review
GDK-Win32: Avoid using deprecated GDK APIs (4.37 KB, patch)
2013-07-30 03:33 UTC, Fan, Chun-wei
accepted-commit_now Details | Review
gdk/win32/gdkdevice-virtual.c: Avoid Using Deprecated GDK APIs (1.17 KB, patch)
2013-07-30 03:35 UTC, Fan, Chun-wei
accepted-commit_now Details | Review
GTK+ on Win32: Avoid using deprecated API (2.86 KB, patch)
2013-07-31 03:46 UTC, Fan, Chun-wei
accepted-commit_now Details | Review

Description Fan, Chun-wei 2013-07-29 09:01:40 UTC
Hi,

There seems to be some deprecated APIs that are used in the  GDK Win32 backend, so I think it is probably best that its sources should be updated for this regard.
Comment 1 Fan, Chun-wei 2013-07-29 09:14:07 UTC
Created attachment 250355 [details] [review]
GDK-WIn32: Avoid using deprecated APIs

Hi,

I have came up with a patch to update the Win32 GDK backend so that we won't use the deprecated APIs in it.  By running the test suite test cases against it, I think that the test programs fared at least as well as before the update.

With blessings, thank you!
Comment 2 Fan, Chun-wei 2013-07-29 09:20:48 UTC
Created attachment 250356 [details] [review]
GDK-WIn32: Avoid using deprecated APIs (take ii)

Hi,

Sorry, I forgot to remove the old code that was commented out in my patch, so upload a new patch for this.

With blessings, thank you!
Comment 3 Matthias Clasen 2013-07-30 00:12:10 UTC
Patch looks fine, but doesn't apply cleanly
Comment 4 Fan, Chun-wei 2013-07-30 03:33:05 UTC
Created attachment 250427 [details] [review]
GDK-Win32: Avoid using deprecated GDK APIs

Hi,

Apparently the reason why the patch did no apply cleanly is due to the case that gdk/win32/gdkdevice-virtual.c has DOS/Windows style line endings (CR/LF) for some reason, unlike the other source files which had UNIX line endings (CR).

So, I split the the patches into two, the first one would be the one that would apply using "git am < [patch]"...
Comment 5 Fan, Chun-wei 2013-07-30 03:35:40 UTC
Created attachment 250428 [details] [review]
gdk/win32/gdkdevice-virtual.c: Avoid Using Deprecated GDK APIs

...and this is the patch for the source file that has the CR/LF line endings, so this is one that has to be applied with git am --ignore-whitespace (or something like that).

Sorry about the noise.

With blessings, thank you!
Comment 6 Fan, Chun-wei 2013-07-31 03:46:13 UTC
Created attachment 250515 [details] [review]
GTK+ on Win32: Avoid using deprecated API

Hi,

I have also updated the GTK+ on Win32 sources so that they won't use deprecated APIs, and fixed the build of modules/input/gtkimcontextime.c as it had a wrong include (courtesy of Martin Schlemmer from the GTK-Devel mail list).

By running the testsuite of GTK, they seemed to not cause any additional issues.

With blessings, thank you!
Comment 7 Matthias Clasen 2013-08-13 22:43:41 UTC
Review of attachment 250427 [details] [review]:

looks ok
Comment 8 Matthias Clasen 2013-08-13 22:45:05 UTC
Review of attachment 250428 [details] [review]:

ok
Comment 9 Matthias Clasen 2013-08-13 22:45:41 UTC
Review of attachment 250515 [details] [review]:

ok
Comment 10 Fan, Chun-wei 2013-08-14 00:12:11 UTC
Hi,

I have pushed the patches as follows:
attachment 250427 [details] [review]: ae79dd70
attachment 250428 [details] [review]: 9072be16
attachment 250515 [details] [review]: 3b82b97e

Thanks for the reviews.  I will close this bug shortly.

With blessings, thank you!