aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-03-18 23:34:02 +0800
committerChristian Persch <chpe@src.gnome.org>2004-03-18 23:34:02 +0800
commit6c77c6b5406ee612da3708e88f48d78dd5cb2863 (patch)
tree8a57c8da74e898dcd39028d8cc63802fd7133e68 /src/bookmarks
parent8bfe99fb0e68ab59f106ab82cccf4daaeae896ab (diff)
downloadgsoc2013-epiphany-6c77c6b5406ee612da3708e88f48d78dd5cb2863.tar.gz
gsoc2013-epiphany-6c77c6b5406ee612da3708e88f48d78dd5cb2863.tar.zst
gsoc2013-epiphany-6c77c6b5406ee612da3708e88f48d78dd5cb2863.zip
Add firefox option in bookmarks import dialogue.
2004-03-18 Christian Persch <chpe@cvs.gnome.org> * src/bookmarks/ephy-bookmarks-editor.c: (cmd_bookmarks_import): * src/bookmarks/ephy-bookmarks-import.c: (ephy_bookmarks_import): * src/bookmarks/ephy-bookmarks-import.h: Add firefox option in bookmarks import dialogue.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c2
-rw-r--r--src/bookmarks/ephy-bookmarks-import.c3
-rw-r--r--src/bookmarks/ephy-bookmarks-import.h1
3 files changed, 5 insertions, 1 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index 732467a0a..2f5a5d6c0 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -619,6 +619,8 @@ cmd_bookmarks_import (GtkAction *action,
MOZILLA_BOOKMARKS_DIR, "bookmarks.html", 4);
add_bookmarks_source (store, _("Firebird bookmarks"),
FIREBIRD_BOOKMARKS_DIR, "bookmarks.html", 4);
+ add_bookmarks_source (store, _("Firefox bookmarks"),
+ FIREFOX_BOOKMARKS_DIR, "bookmarks.html", 4);
add_bookmarks_source (store, _("Galeon bookmarks"),
GALEON_BOOKMARKS_DIR, "bookmarks.xbel", 0);
add_bookmarks_source (store, _("Konqueror bookmarks"),
diff --git a/src/bookmarks/ephy-bookmarks-import.c b/src/bookmarks/ephy-bookmarks-import.c
index 2e033b064..129edf83a 100644
--- a/src/bookmarks/ephy-bookmarks-import.c
+++ b/src/bookmarks/ephy-bookmarks-import.c
@@ -105,7 +105,8 @@ ephy_bookmarks_import (EphyBookmarks *bookmarks,
return ephy_bookmarks_import_xbel (bookmarks, filename);
}
else if (strstr (filename, MOZILLA_BOOKMARKS_DIR) != NULL ||
- strstr (filename, FIREBIRD_BOOKMARKS_DIR) != NULL)
+ strstr (filename, FIREBIRD_BOOKMARKS_DIR) != NULL ||
+ strstr (filename, FIREFOX_BOOKMARKS_DIR) != NULL)
{
return ephy_bookmarks_import_mozilla (bookmarks, filename);
}
diff --git a/src/bookmarks/ephy-bookmarks-import.h b/src/bookmarks/ephy-bookmarks-import.h
index 70bda36f9..8938baef7 100644
--- a/src/bookmarks/ephy-bookmarks-import.h
+++ b/src/bookmarks/ephy-bookmarks-import.h
@@ -27,6 +27,7 @@ G_BEGIN_DECLS
#define MOZILLA_BOOKMARKS_DIR ".mozilla"
#define FIREBIRD_BOOKMARKS_DIR ".phoenix"
+#define FIREFOX_BOOKMARKS_DIR ".firefox"
#define GALEON_BOOKMARKS_DIR ".galeon"
#define KDE_BOOKMARKS_DIR ".kde/share/apps/konqueror"