aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-main.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2003-09-19 20:14:45 +0800
committerChristian Persch <chpe@src.gnome.org>2003-09-19 20:14:45 +0800
commit54d2149bf268430f3b5f11e58c4492b1ab4c6ff5 (patch)
tree1a9e84386f79bffde79a7df3d5b45b6b52e4b599 /src/ephy-main.c
parentd3873ae5a566d733c31cdde300a6e5997dc4b7ce (diff)
downloadgsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.tar
gsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.tar.gz
gsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.tar.bz2
gsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.tar.lz
gsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.tar.xz
gsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.tar.zst
gsoc2013-epiphany-54d2149bf268430f3b5f11e58c4492b1ab4c6ff5.zip
Add an --import-bookmarks command line option, and really implement the
2003-09-19 Christian Persch <chpe@cvs.gnome.org> * idl/EphyAutomation.idl: * src/ephy-automation.c: (impl_ephy_automation_add_bookmark), (impl_ephy_automation_import_bookmarks), (ephy_automation_class_init): * src/ephy-main.c: (ephy_main_start): Add an --import-bookmarks command line option, and really implement the --add-bookmark one.
Diffstat (limited to 'src/ephy-main.c')
-rw-r--r--src/ephy-main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ephy-main.c b/src/ephy-main.c
index 22c33b695..986588ed8 100644
--- a/src/ephy-main.c
+++ b/src/ephy-main.c
@@ -52,6 +52,7 @@ static gboolean open_in_new_window = FALSE; /* force open in a new window?
static gboolean open_fullscreen = FALSE; /* open ephy in full screen ? */
static gchar *session_filename = NULL; /* the session filename */
static gchar *bookmark_url = NULL; /* the temp bookmark to add */
+static gchar *bookmarks_file = NULL; /* the bookmarks file to import */
static gboolean close_option = FALSE; /* --close */
static gboolean quit_option = FALSE; /* --quit */
static gboolean ephy_server_mode = FALSE;
@@ -93,6 +94,9 @@ static struct poptOption popt_options[] =
{ "add-bookmark", 't', POPT_ARG_STRING, &bookmark_url,
0, N_("Add a bookmark (don't open any window)"),
N_("URL")},
+ { "import-bookmarks", '\0', POPT_ARG_STRING, &bookmarks_file,
+ 0, N_("Import bookmarks from the given file"),
+ N_("FILE") },
{ "close", 'c', POPT_ARG_NONE, &close_option, 0,
N_("Close all Epiphany windows"),
NULL },
@@ -227,6 +231,12 @@ ephy_main_start (gpointer data)
GNOME_EphyAutomation_loadSession
(gaserver, session_filename, &corba_env);
}
+ /* if we're given a bookmarks file to import... */
+ else if (bookmarks_file != NULL)
+ {
+ GNOME_EphyAutomation_importBookmarks
+ (gaserver, bookmarks_file, &corba_env);
+ }
/* if found and we're given a bookmark to add... */
else if (bookmark_url != NULL)
{