]> git.saurik.com Git - wxWidgets.git/commitdiff
Don't include webkit headers from wx headers
authorRobin Dunn <robin@alldunn.com>
Thu, 17 Nov 2011 01:23:03 +0000 (01:23 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 17 Nov 2011 01:23:03 +0000 (01:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/webview_webkit.h
include/wx/gtk/webviewhistoryitem_webkit.h
src/gtk/webview_webkit.cpp

index f1aaead3a3cddf3c7a2c9d09eea1df107c5225bd..2cef91f1c62ae3ef2a39d8986677bb5bc8324404 100644 (file)
@@ -14,7 +14,6 @@
 
 #if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
 
-#include "webkit/webkit.h"
 #include "wx/sharedptr.h"
 #include "wx/webview.h"
 
@@ -147,7 +146,7 @@ private:
     void GTKOnFocus(wxFocusEvent& event);
 
     GtkWidget *web_view;
-    gint m_historyLimit;
+    int m_historyLimit;
 
     wxVector<wxSharedPtr<wxWebViewHandler> > m_handlerList;
 
index b0a2de186325cff27895ffbe18b3b03cfd74b158..90b2c9751ab77d962b4d4978ab0e3cd9f53d5ed7 100644 (file)
@@ -14,8 +14,6 @@
 
 #if wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
 
-#include "webkit/webkit.h"
-
 class WXDLLIMPEXP_WEBVIEW wxWebViewHistoryItem
 {
 public:
@@ -28,7 +26,7 @@ public:
 
 private:
     wxString m_url, m_title;
-    WebKitWebHistoryItem* m_histItem;
+    void* m_histItem;
 };
 
 #endif // wxUSE_WEBVIEW && wxUSE_WEBVIEW_WEBKIT && defined(__WXGTK__)
index 08199cd778da4fb5d0c4dda179c61e9acc082280..2ece822c188c3037528d0c94d86468ffd0c8ba82 100644 (file)
@@ -18,7 +18,7 @@
 #include "wx/gtk/private.h"
 #include "wx/filesys.h"
 #include "wx/base64.h"
-#include "webkit/webkit.h"
+#include <webkit/webkit.h>
 
 // ----------------------------------------------------------------------------
 // GTK callbacks
@@ -598,7 +598,7 @@ wxVector<wxSharedPtr<wxWebViewHistoryItem> > wxWebViewWebKit::GetForwardHistory(
 
 void wxWebViewWebKit::LoadHistoryItem(wxSharedPtr<wxWebViewHistoryItem> item)
 {
-    WebKitWebHistoryItem* gtkitem = item->m_histItem;
+    WebKitWebHistoryItem* gtkitem = (WebKitWebHistoryItem*)item->m_histItem;
     if(gtkitem)
     {
         WebKitWebBackForwardList* history;