Bug 198822

Summary: [GTK] gdk_display_get_device_manager and gdk_screen_get_width/height are deprecated
Product: WebKit Reporter: Ludovico de Nittis <ludovico.denittis>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, cgarcia, commit-queue
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Ludovico de Nittis 2019-06-13 03:20:08 PDT
Since GTK 3.20 gdk_display_get_device_manager has been deprecated.
Since GTK 3.22 gdk_screen_get_width and gdk_screen_get_height has been deprecated.

I'm going to upload a patch.

The two deprecation are not related (is only that they are both used in the same GtkVersioning.c file), but this is a small patch so I decided to go with a single commit.
Let me know if you prefer two separated commits.
Comment 1 Ludovico de Nittis 2019-06-13 03:27:04 PDT
Created attachment 372043 [details]
Patch
Comment 2 Carlos Garcia Campos 2019-06-13 03:42:38 PDT
Comment on attachment 372043 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=372043&action=review

> Source/WebCore/platform/gtk/GtkVersioning.c:35
> +    GdkSeat *seat = gdk_display_get_default_seat(gdk_window_get_display(window));
> +    return gdk_seat_get_pointer(seat);

return gdk_seat_get_pointer(gdk_display_get_default_seat(gdk_window_get_display(window)));
Comment 3 Ludovico de Nittis 2019-06-13 03:51:24 PDT
Created attachment 372045 [details]
Patch
Comment 4 WebKit Commit Bot 2019-06-13 04:38:51 PDT
Comment on attachment 372045 [details]
Patch

Clearing flags on attachment: 372045

Committed r246398: <https://trac.webkit.org/changeset/246398>
Comment 5 WebKit Commit Bot 2019-06-13 04:38:53 PDT
All reviewed patches have been landed.  Closing bug.