[evince] browser-plugin: Replace gdkwayland.h include with gdk.h



commit 308e54d455bac98ee4b147d0d3efefb83bf5aaea
Author: Ting-Wei Lan <lantw src gnome org>
Date:   Tue Sep 6 13:32:12 2016 +0800

    browser-plugin: Replace gdkwayland.h include with gdk.h
    
    GDK_WINDOWING_WAYLAND macro is defined in gdkconfig.h, not gdkwayland.h,
    so including gdk.h is sufficient. This also fixes build on systems not
    supporting Wayland.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770924

 browser-plugin/EvBrowserPluginMain.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/browser-plugin/EvBrowserPluginMain.cpp b/browser-plugin/EvBrowserPluginMain.cpp
index a54d1e0..04f8e40 100644
--- a/browser-plugin/EvBrowserPluginMain.cpp
+++ b/browser-plugin/EvBrowserPluginMain.cpp
@@ -22,7 +22,10 @@
 #include "EvMemoryUtils.h"
 #include "npfunctions.h"
 #include "npruntime.h"
+#include <gdk/gdk.h>
+#ifdef GDK_WINDOWING_WAYLAND
 #include <gdk/gdkwayland.h>
+#endif
 
 static NPNetscapeFuncs *browser;
 static unique_gptr<char> mimeDescription;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]