aboutsummaryrefslogtreecommitdiffstats
path: root/embed
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-28 17:41:47 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-28 17:41:47 +0800
commit20feb46533bc952744580cc2825265b6ba0d98ef (patch)
treeead37c78bfafe135a943011827ac591a2550408b /embed
parent4f86399784893cf8692901bf6c231ec09f9075a0 (diff)
downloadgsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.tar
gsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.tar.gz
gsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.tar.bz2
gsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.tar.lz
gsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.tar.xz
gsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.tar.zst
gsoc2013-epiphany-20feb46533bc952744580cc2825265b6ba0d98ef.zip
Make it build with mozilla cvs. Remove only pages on history clear, the
2003-05-28 Marco Pesenti Gritti <marco@it.gnome.org> * configure.in: * embed/ephy-history.c: (ephy_history_clear): * embed/mozilla/GlobalHistory.cpp: Make it build with mozilla cvs. Remove only pages on history clear, the sites are automatically removed (fix freeze).
Diffstat (limited to 'embed')
-rw-r--r--embed/ephy-history.c6
-rw-r--r--embed/mozilla/GlobalHistory.cpp8
2 files changed, 8 insertions, 6 deletions
diff --git a/embed/ephy-history.c b/embed/ephy-history.c
index 525e13326..f93982aad 100644
--- a/embed/ephy-history.c
+++ b/embed/ephy-history.c
@@ -860,12 +860,6 @@ ephy_history_clear (EphyHistory *gh)
ephy_node_unref (node);
}
- /* The first node is All, dont unref it */
- while ((node = ephy_node_get_nth_child (gh->priv->hosts, 1)) != NULL)
- {
- ephy_node_unref (node);
- }
-
ephy_history_save (gh);
}
diff --git a/embed/mozilla/GlobalHistory.cpp b/embed/mozilla/GlobalHistory.cpp
index 09c2c994a..034c8a94c 100644
--- a/embed/mozilla/GlobalHistory.cpp
+++ b/embed/mozilla/GlobalHistory.cpp
@@ -16,6 +16,10 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "ephy-embed-shell.h"
#include "GlobalHistory.h"
#include "nsCOMPtr.h"
@@ -103,6 +107,8 @@ NS_IMETHODIMP MozGlobalHistory::GetCount(PRUint32 *aCount)
{
return NS_ERROR_NOT_IMPLEMENTED;
}
+
+#if MOZILLA_SNAPSHOT <= 7
/* void startBatchUpdate (); */
NS_IMETHODIMP MozGlobalHistory::StartBatchUpdate()
@@ -116,6 +122,8 @@ NS_IMETHODIMP MozGlobalHistory::EndBatchUpdate()
return NS_ERROR_NOT_IMPLEMENTED;
}
+#endif
+
/* void markPageAsTyped (in string url); */
NS_IMETHODIMP MozGlobalHistory::MarkPageAsTyped(const char *url)
{