diff options
author | Xan Lopez <xan@src.gnome.org> | 2003-02-09 02:25:14 +0800 |
---|---|---|
committer | Xan Lopez <xan@src.gnome.org> | 2003-02-09 02:25:14 +0800 |
commit | f465875a69cf6efa9d73011dfc88e6998ebcff8e (patch) | |
tree | 691f8beb2d93157e1a50eb9149789ed700602bdb /src/ephy-shell.c | |
parent | d826f10b86f32327bd63eefe243499be39cef6c9 (diff) | |
download | gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.tar gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.tar.gz gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.tar.bz2 gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.tar.lz gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.tar.xz gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.tar.zst gsoc2013-epiphany-f465875a69cf6efa9d73011dfc88e6998ebcff8e.zip |
Error handling in moz bookmarks import.
Error handling in moz bookmarks import.
Diffstat (limited to 'src/ephy-shell.c')
-rw-r--r-- | src/ephy-shell.c | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/src/ephy-shell.c b/src/ephy-shell.c index 9f903c500..8d8e461e8 100644 --- a/src/ephy-shell.c +++ b/src/ephy-shell.c @@ -135,14 +135,24 @@ ephy_shell_command_cb (EphyEmbedShell *shell, if (strcmp (command, "import-mozilla-bookmarks") == 0) { - ephy_bookmarks_import_mozilla (bookmarks, param); - - dialog = gtk_message_dialog_new - (NULL, - GTK_DIALOG_MODAL, - GTK_MESSAGE_ERROR, - GTK_BUTTONS_OK, - _("Bookmarks imported successfully.")); + if (ephy_bookmarks_import_mozilla (bookmarks, param)) + { + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + _("Mozilla bookmarks imported successfully.")); + } + else + { + dialog = gtk_message_dialog_new + (NULL, + GTK_DIALOG_MODAL, + GTK_MESSAGE_ERROR, + GTK_BUTTONS_OK, + _("Importing Mozilla bookmarks failed.")); + } gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } |