Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/browser/sugar-browser.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-17 20:46:33 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-17 20:46:33 (GMT)
commit093ed2f2f263822a7a6dd9e982ac3d4d611b184f (patch)
tree9633d6394f717007944e45a2081191d6eef48d77 /browser/sugar-browser.cpp
parent734d16022e2e6f7107eb550956b48ba486f99dc4 (diff)
Make it compile with firefox
Diffstat (limited to 'browser/sugar-browser.cpp')
-rw-r--r--browser/sugar-browser.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/browser/sugar-browser.cpp b/browser/sugar-browser.cpp
index 270631b..273cea8 100644
--- a/browser/sugar-browser.cpp
+++ b/browser/sugar-browser.cpp
@@ -23,9 +23,12 @@
#include "sugar-marshal.h"
#include "GeckoContentHandler.h"
#include "GeckoDownload.h"
+
+#ifdef HAVE_GECKO_1_9
#include "GeckoDragDropHooks.h"
#include "GeckoDocumentObject.h"
#include "GeckoBrowserPersist.h"
+#endif
#include <gdk/gdkx.h>
#include <gtkmozembed_internal.h>
@@ -563,7 +566,8 @@ location_cb(GtkMozEmbed *embed)
static gboolean
dom_mouse_click_cb(GtkMozEmbed *embed, nsIDOMMouseEvent *mouseEvent)
{
- SugarBrowser *browser = SUGAR_BROWSER(embed);
+#ifdef HAVE_GECKO_1_9
+ SugarBrowser *browser = SUGAR_BROWSER(embed);
SugarBrowserEvent *event;
gint return_value = FALSE;
@@ -592,6 +596,9 @@ dom_mouse_click_cb(GtkMozEmbed *embed, nsIDOMMouseEvent *mouseEvent)
sugar_browser_event_free(event);
return return_value;
+#else
+ return FALSE;
+#endif
}
static void
@@ -658,8 +665,12 @@ sugar_browser_save_uri(SugarBrowser *browser,
const char *uri,
const char *filename)
{
+#ifdef HAVE_GECKO_1_9
GeckoBrowserPersist browserPersist(browser);
return browserPersist.SaveURI(uri, filename);
+#else
+ return FALSE;
+#endif
}
gboolean