Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.

Commit 86429b9

Browse files
committed
Patch to support webkit2gtk 2.16+. Fixes #128
1 parent 06c0927 commit 86429b9

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

meson.build

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
project('lightdm-webkit2-greeter', 'c', version: '2.2.3', license: 'GPL-3')
1+
project('lightdm-webkit2-greeter', 'c', version: '2.2.4', license: 'GPL-3')
22

33

44
# ================================== #
@@ -28,10 +28,11 @@ webkit2_webext = dependency('webkit2gtk-web-extension-4.0', version: '>=2.12')
2828
greeter_deps = [dbus_glib, gtk3, webkit2, x11]
2929
webext_deps = [webkit2_webext, lightdm_gobject]
3030

31-
has_webkitgtk_2_14 = webkit2.version().version_compare('>=2.14')
31+
has_webkitgtk_2_14 = webkit2.version().version_compare('>=2.14')
3232
has_webkitgtk_2_14_4 = webkit2.version().version_compare('>=2.14.4')
33-
has_lightdm_1_19_2 = lightdm_gobject.version().version_compare('>=1.19.2')
34-
has_gtk_3_22 = gtk3.version().version_compare('>=3.22')
33+
has_webkitgtk_2_16 = webkit2.version().version_compare('>=2.16')
34+
has_lightdm_1_19_2 = lightdm_gobject.version().version_compare('>=1.19.2')
35+
has_gtk_3_22 = gtk3.version().version_compare('>=3.22')
3536

3637
# =================================== #
3738
# ------->>> Configuration <<<------- #
@@ -67,6 +68,10 @@ if has_webkitgtk_2_14_4
6768
conf.set('HAS_WEBKITGTK_2_14_4', 'TRUE')
6869
endif
6970

71+
if has_webkitgtk_2_16
72+
conf.set('HAS_WEBKITGTK_2_16', 'TRUE')
73+
endif
74+
7075
if has_lightdm_1_19_2
7176
conf.set('HAS_LIGHTDM_1_19_2', has_lightdm_1_19_2)
7277
endif

src/webkit2-extension.c

+6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,13 @@
4343
#include <gtk/gtk.h>
4444
#include <glib/gi18n.h>
4545
#include <glib/gstdio.h>
46+
47+
#ifdef HAS_WEBKITGTK_2_16
48+
#include <webkitdom/WebKitDOMDOMWindow.h>
49+
#else
4650
#include <webkitdom/WebKitDOMCustom.h>
51+
#endif
52+
4753
#include <webkit2/webkit-web-extension.h>
4854
#include <JavaScriptCore/JavaScript.h>
4955
#include <lightdm.h>

0 commit comments

Comments
 (0)