Summary: | [GTK] Fix compilation errors for the GTK2 plugin process | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Adrian Perez <aperez> | ||||||
Component: | WebKitGTK | Assignee: | Adrian Perez <aperez> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | bugs-noreply, cgarcia, commit-queue, mcatanzaro, rniwa, ross.kirsling | ||||||
Priority: | P2 | ||||||||
Version: | Other | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Adrian Perez
2019-06-19 07:47:04 PDT
Created attachment 372462 [details]
Patch
Comment on attachment 372462 [details]
Patch
This is a bit weird though, because we are about to delete the plugin process so no more GTK 2, and our minimum GTK version is already 3.6. So it'd be nice to not remove the GTK_API_VERSION_2 guards since that makes it obvious that the code is there to support the plugin process.
I think it's important to investigate what's actually gone wrong here. Clearly something else is up, because #ifndef GTK_API_VERSION_2 and #if GTK_CHECK_VERSION(3, 2, 0) should be equivalent when we know GTK version is either 2 or 3 >= 3.6.
(In reply to Michael Catanzaro from comment #2) > Comment on attachment 372462 [details] > Patch > > This is a bit weird though, because we are about to delete the plugin > process so no more GTK 2, and our minimum GTK version is already 3.6. So > it'd be nice to not remove the GTK_API_VERSION_2 guards since that makes it > obvious that the code is there to support the plugin process. > > I think it's important to investigate what's actually gone wrong here. > Clearly something else is up, because #ifndef GTK_API_VERSION_2 and #if > GTK_CHECK_VERSION(3, 2, 0) should be equivalent when we know GTK version is > either 2 or 3 >= 3.6. What fixes the issue is the changes in the code, not the difference in the preprocessor guards themselves. I can re-submit the same fix with old guards, if you would prefer that :-) Comment on attachment 372462 [details]
Patch
Oh oops, I even missed that. Yes please.
Created attachment 372471 [details]
Patch v2
Comment on attachment 372471 [details] Patch v2 Clearing flags on attachment: 372471 Committed r246597: <https://trac.webkit.org/changeset/246597> All reviewed patches have been landed. Closing bug. |