Make it compile with firefox
This commit is contained in:
parent
734d16022e
commit
093ed2f2f2
@ -1,3 +1,5 @@
|
||||
#ifdef HAVE_GECKO_1_9
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <gtkmozembed.h>
|
||||
@ -183,3 +185,5 @@ GeckoBrowserPersist::SaveURI(const char *uri, const char *filename)
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +1,5 @@
|
||||
#ifdef HAVE_GECKO_1_9
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <glib.h>
|
||||
@ -185,3 +187,5 @@ GeckoDocumentObject::SaveImage(const char *filename)
|
||||
GeckoBrowserPersist browserPersist(mBrowser);
|
||||
return browserPersist.SaveURI(mImageURI.get(), filename);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -1,3 +1,5 @@
|
||||
#ifdef HAVE_GECKO_1_9
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <time.h>
|
||||
|
||||
@ -183,3 +185,5 @@ GeckoDragDropHooks::OnPasteOrDrop(nsIDOMEvent *event, nsITransferable *trans,
|
||||
{
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user