diff options
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 50 |
1 files changed, 49 insertions, 1 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 964744a4a..9f903c500 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -133,7 +133,7 @@ ephy_shell_command_cb (EphyEmbedShell *shell, bookmarks = ephy_shell_get_bookmarks (EPHY_SHELL (shell)); - if (strcmp (command, "import-bookmarks") == 0) + if (strcmp (command, "import-mozilla-bookmarks") == 0) { ephy_bookmarks_import_mozilla (bookmarks, param); @@ -146,6 +146,54 @@ ephy_shell_command_cb (EphyEmbedShell *shell, gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } + else if (strcmp (command, "import-galeon-bookmarks") == 0) + { + if (ephy_bookmarks_import_xbel (bookmarks, param, + _("Galeon"))) + { + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_INFO, + GTK_BUTTONS_OK, + _("Galeon bookmarks imported successfully.")); + } + else + { + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + _("Importing Galeon bookmarks failed.")); + } + gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); + } + else if (strcmp (command, "import-konqueror-bookmarks") == 0) + { + if (ephy_bookmarks_import_xbel (bookmarks, param, + _("Konqueror"))) + { + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_INFO, + GTK_BUTTONS_OK, + _("Konqueror bookmarks imported successfully.")); + } + else + { + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + _("Importing Konqueror bookmarks failed.")); + } + gtk_dialog_run (GTK_DIALOG (dialog)); + gtk_widget_destroy (dialog); + } else if (strcmp (command, "configure-network") == 0) { ephy_file_launch_application ("gnome-network-preferences", |