[epiphany] Include libsoup header explicitly when required
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Include libsoup header explicitly when required
- Date: Thu, 21 Jun 2012 10:45:51 +0000 (UTC)
commit 4d265094c5d28e7192dec077ea56c2a6c199cb4a
Author: Carlos Garcia Campos <cgarcia igalia com>
Date: Thu Jun 21 12:15:33 2012 +0200
Include libsoup header explicitly when required
Instead of relying on webkit header to include it.
embed/ephy-embed-prefs.h | 2 ++
embed/ephy-embed-utils.c | 1 +
embed/ephy-embed-utils.h | 2 --
embed/ephy-web-view.c | 1 -
src/ephy-window.c | 1 +
tests/ephy-download-test.c | 1 +
tests/ephy-web-view-test.c | 1 +
7 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/embed/ephy-embed-prefs.h b/embed/ephy-embed-prefs.h
index ee86da0..0db4ffb 100644
--- a/embed/ephy-embed-prefs.h
+++ b/embed/ephy-embed-prefs.h
@@ -23,6 +23,8 @@
#include "ephy-embed.h"
+#include <libsoup/soup.h>
+
#if !defined (__EPHY_EPIPHANY_H_INSIDE__) && !defined (EPIPHANY_COMPILATION)
#error "Only <epiphany/epiphany.h> can be included directly."
#endif
diff --git a/embed/ephy-embed-utils.c b/embed/ephy-embed-utils.c
index 70c8a6c..6c669f7 100644
--- a/embed/ephy-embed-utils.c
+++ b/embed/ephy-embed-utils.c
@@ -26,6 +26,7 @@
#include <string.h>
#include <glib/gi18n.h>
+#include <libsoup/soup.h>
#include "ephy-string.h"
#include "ephy-embed-utils.h"
diff --git a/embed/ephy-embed-utils.h b/embed/ephy-embed-utils.h
index 4d8ded1..ded63a5 100644
--- a/embed/ephy-embed-utils.h
+++ b/embed/ephy-embed-utils.h
@@ -31,8 +31,6 @@
#include "ephy-web-view.h"
-#include <webkit/webkit.h>
-
G_BEGIN_DECLS
#define EPHY_GET_WEBKIT_WEB_VIEW_FROM_EMBED(embed) (WEBKIT_WEB_VIEW (ephy_embed_get_web_view (embed)))
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c
index 2b4af29..72da3ce 100644
--- a/embed/ephy-web-view.c
+++ b/embed/ephy-web-view.c
@@ -50,7 +50,6 @@
#include <gtk/gtk.h>
#include <libsoup/soup-gnome.h>
#include <string.h>
-#include <webkit/webkit.h>
/**
* SECTION:ephy-web-view
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 3bbdab6..292e958 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -64,6 +64,7 @@
#include <gio/gio.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
+#include <libsoup/soup.h>
#include <webkit/webkit.h>
#ifdef HAVE_X11_XF86KEYSYM_H
diff --git a/tests/ephy-download-test.c b/tests/ephy-download-test.c
index dbcd005..303410e 100644
--- a/tests/ephy-download-test.c
+++ b/tests/ephy-download-test.c
@@ -33,6 +33,7 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
+#include <libsoup/soup.h>
#include <string.h>
#define HTML_STRING "testing-ephy-download"
diff --git a/tests/ephy-web-view-test.c b/tests/ephy-web-view-test.c
index eb0bffd..bd0f2f0 100644
--- a/tests/ephy-web-view-test.c
+++ b/tests/ephy-web-view-test.c
@@ -34,6 +34,7 @@
#include <glib.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
+#include <libsoup/soup.h>
#include <string.h>
#define HTML_STRING "testing-ephy-web-view"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]