epiphany r8176 - branches/gnome-2-22/embed/mozilla



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

Log:
Try to fix the build with gecko 1.8

Modified:
   branches/gnome-2-22/embed/mozilla/EphyBrowser.cpp
   branches/gnome-2-22/embed/mozilla/EphyBrowser.h

Modified: branches/gnome-2-22/embed/mozilla/EphyBrowser.cpp
==============================================================================
--- branches/gnome-2-22/embed/mozilla/EphyBrowser.cpp	(original)
+++ branches/gnome-2-22/embed/mozilla/EphyBrowser.cpp	Mon Mar 31 22:55:14 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: branches/gnome-2-22/embed/mozilla/EphyBrowser.h
==============================================================================
--- branches/gnome-2-22/embed/mozilla/EphyBrowser.h	(original)
+++ branches/gnome-2-22/embed/mozilla/EphyBrowser.h	Mon Mar 31 22:55:14 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]