⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 259856 in webkit


Ignore:
Timestamp:
Apr 10, 2020, 3:31:56 AM (6 years ago)
Author:
Claudio Saavedra
Message:

[GTK] Use X11-specific GDK API in Netscape plugin
https://bugs.webkit.org/show_bug.cgi?id=210325

Reviewed by Adrian Perez de Castro.

Since the code is X11-specific we can do that and remove
deprecated API use.

  • WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:

(WebKit::getPluginDisplay):
(WebKit::x11Screen):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r259855 r259856  
     12020-04-10  Claudio Saavedra  <csaavedra@igalia.com>
     2
     3        [GTK] Use X11-specific GDK API in Netscape plugin
     4        https://bugs.webkit.org/show_bug.cgi?id=210325
     5
     6        Reviewed by Adrian Perez de Castro.
     7
     8        Since the code is X11-specific we can do that and remove
     9        deprecated API use.
     10
     11        * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp:
     12        (WebKit::getPluginDisplay):
     13        (WebKit::x11Screen):
     14
    1152020-04-10  Claudio Saavedra  <csaavedra@igalia.com>
    216
  • trunk/Source/WebKit/WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp

    r248846 r259856  
    3939
    4040#if PLATFORM(GTK)
     41#include <gdk/gdkx.h>
    4142#include <gtk/gtk.h>
    4243#include <gtk/gtkx.h>
     
    6263    // Since we're a gdk/gtk app, we'll (probably?) have the same X connection as any gdk-based
    6364    // plugins, so we can return that. We might want to add other implementations here later.
    64     return GDK_DISPLAY_XDISPLAY(gdk_display_get_default());
     65    return gdk_x11_get_default_xdisplay();
    6566#else
    6667    return nullptr;
     
    7172{
    7273#if PLATFORM(GTK)
    73     return gdk_screen_get_number(gdk_screen_get_default());
     74    return gdk_x11_screen_get_screen_number(gdk_screen_get_default());
    7475#else
    7576    return 0;
Note: See TracChangeset for help on using the changeset viewer.