epiphany r8175 - trunk/embed/mozilla



Author: chpe
Date: Mon Mar 31 22:54:37 2008
New Revision: 8175
URL: http://svn.gnome.org/viewvc/epiphany?rev=8175&view=rev

Log:
Try to fix the build with gecko 1.8

Modified:
   trunk/embed/mozilla/EphyBrowser.cpp
   trunk/embed/mozilla/EphyBrowser.h

Modified: trunk/embed/mozilla/EphyBrowser.cpp
==============================================================================
--- trunk/embed/mozilla/EphyBrowser.cpp	(original)
+++ trunk/embed/mozilla/EphyBrowser.cpp	Mon Mar 31 22:54:37 2008
@@ -629,6 +629,8 @@
 	return NS_OK;
 }
 
+#ifdef HAVE_GECKO_1_9
+
 NS_IMETHODIMP
 EphyCommandEventListener::HandleEvent (nsIDOMEvent *aDOMEvent)
 {
@@ -740,6 +742,8 @@
         return NS_OK;
 }
 
+#endif /* HAVE_GECKO_1_9 */
+
 NS_IMPL_ISUPPORTS1(EphyContextMenuListener, nsIDOMContextMenuListener)
 
 NS_IMETHODIMP

Modified: trunk/embed/mozilla/EphyBrowser.h
==============================================================================
--- trunk/embed/mozilla/EphyBrowser.h	(original)
+++ trunk/embed/mozilla/EphyBrowser.h	Mon Mar 31 22:54:37 2008
@@ -107,6 +107,7 @@
 	EphyDOMScrollEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { };
 };
 
+#ifdef HAVE_GECKO_1_9
 class EphyCommandEventListener : public EphyEventListener
 {
 public:
@@ -114,6 +115,9 @@
 
 	EphyCommandEventListener(EphyBrowser *aOwner) : EphyEventListener(aOwner) { };
 };
+#else
+class EphyCommandEventListener;
+#endif /* HAVE_GECKO_1_9 */
 
 class EphyContextMenuListener : public nsIDOMContextMenuListener
 {
@@ -213,7 +217,9 @@
 	EphyDOMScrollEventListener *mDOMScrollEventListener;
 	EphyPopupBlockEventListener *mPopupBlockEventListener;
 	EphyModalAlertEventListener *mModalAlertListener;
+#ifdef HAVE_GECKO_1_9
 	EphyCommandEventListener *mCommandEventListener;
+#endif
 	EphyContextMenuListener *mContextMenuListener;
 	PRBool mInitialized;
 #ifdef HAVE_MOZILLA_PSM



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