aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorJames Willcox <jwillcox@gnome.org>2003-02-06 09:55:50 +0800
committerJames Willcox <jwillcox@src.gnome.org>2003-02-06 09:55:50 +0800
commit5a4dc61b3d5599842daef9004cb4a61c28c4dffa (patch)
treee7d10dec4ea563a2b63f6516b858acd5c358bedd /embed/mozilla
parent2f1334d2b432eec9ed13d64ac350beeeea43b49f (diff)
downloadgsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.tar
gsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.tar.gz
gsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.tar.bz2
gsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.tar.lz
gsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.tar.xz
gsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.tar.zst
gsoc2013-epiphany-5a4dc61b3d5599842daef9004cb4a61c28c4dffa.zip
Added the ability to import galeon and konqueror bookmarks.
2003-02-05 James Willcox <jwillcox@gnome.org> * data/starthere/section.xsl: * embed/mozilla/StartHereProtocolHandler.cpp: * lib/ephy-start-here.c: (galeon_bookmarks), (attach_content): * src/bookmarks/ephy-bookmarks-import.c: (xbel_parse_single_bookmark), (xbel_parse_folder), (xbel_parse_bookmarks), (ephy_bookmarks_import_mozilla), (ephy_bookmarks_import_xbel): * src/bookmarks/ephy-bookmarks-import.h: * src/ephy-shell.c: (ephy_shell_command_cb): Added the ability to import galeon and konqueror bookmarks.
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/StartHereProtocolHandler.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/embed/mozilla/StartHereProtocolHandler.cpp b/embed/mozilla/StartHereProtocolHandler.cpp
index 52235ab00..d2f9d33d7 100644
--- a/embed/mozilla/StartHereProtocolHandler.cpp
+++ b/embed/mozilla/StartHereProtocolHandler.cpp
@@ -124,12 +124,26 @@ NS_IMETHODIMP GStartHereProtocolHandler::NewChannel(nsIURI *aURI,
rv = aURI->GetPath(path);
if (NS_FAILED(rv)) return rv;
- if (g_str_has_prefix (path.get(), "import-bookmarks"))
+ if (g_str_has_prefix (path.get(), "import-mozilla-bookmarks"))
{
- g_signal_emit_by_name (embed_shell, "command", "import-bookmarks",
+ g_signal_emit_by_name (embed_shell, "command", "import-mozilla-bookmarks",
path.get() + strlen ("import-bookmarks?"));
return NS_ERROR_FAILURE;
}
+ else if (g_str_has_prefix (path.get(), "import-galeon-bookmarks"))
+ {
+ g_signal_emit_by_name (embed_shell, "command",
+ "import-galeon-bookmarks",
+ path.get() + strlen ("import-galeon-bookmarks?"));
+ return NS_ERROR_FAILURE;
+ }
+ else if (g_str_has_prefix (path.get(), "import-konqueror-bookmarks"))
+ {
+ g_signal_emit_by_name (embed_shell, "command",
+ "import-konqueror-bookmarks",
+ path.get() + strlen ("import-konqueror-bookmarks?"));
+ return NS_ERROR_FAILURE;
+ }
else if (g_str_has_prefix (path.get(), "configure-network"))
{
g_signal_emit_by_name (embed_shell, "command", "configure-network",