]> spindle.queued.net Git - midori/commitdiff
Move Midori 0.2.6 era bookmarks to import dialog
authorChristian Dywan <christian@twotoasts.de>
Fri, 15 Jun 2012 22:31:10 +0000 (00:31 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 15 Jun 2012 22:33:45 +0000 (00:33 +0200)
midori/main.c
midori/midori-browser.c

index d0f62df3ba1afba4ae180b3e6d87fa9cd6b6f977..53dfa0354538c4b615e634228f11979bab5d8d9b 100644 (file)
     #include <signal.h>
 #endif
 
-#if HAVE_HILDON
-    #define BOOKMARK_FILE "/home/user/.bookmarks/MyBookmarks.xml"
-#else
-    #define BOOKMARK_FILE "bookmarks.xbel"
-#endif
-
 #ifdef HAVE_X11_EXTENSIONS_SCRNSAVER_H
     #include <X11/Xlib.h>
     #include <X11/Xutil.h>
@@ -2362,21 +2356,6 @@ main (int    argc,
             _("Bookmarks couldn't be loaded: %s\n"), errmsg);
         errmsg = NULL;
     }
-    else if (!bookmarks_exist)
-    {
-        /* Initial creation, import old bookmarks */
-        gchar* old_bookmarks;
-        if (g_path_is_absolute (BOOKMARK_FILE))
-            old_bookmarks = g_strdup (BOOKMARK_FILE);
-        else
-            old_bookmarks = g_build_filename (config, BOOKMARK_FILE, NULL);
-        if (g_access (old_bookmarks, F_OK) == 0)
-        {
-            midori_bookmarks_import (old_bookmarks, db);
-            /* Leave old bookmarks around */
-        }
-        g_free (old_bookmarks);
-    }
     g_object_set_data (G_OBJECT (bookmarks), "db", db);
     midori_startup_timer ("Bookmarks read: \t%f");
 
index 5267d83c1c39cb81c294cc31b2d5944c0cc0f986..dba7b75723075f280d1e601818290daa7a089085 100644 (file)
@@ -4253,6 +4253,7 @@ _action_bookmarks_import_activate (GtkAction*     action,
         { ".kde/share/apps/konqueror/bookmarks.xml", N_("Konqueror"), "konqueror" },
         { ".gnome2/epiphany/bookmarks.rdf", N_("Epiphany"), "epiphany" },
         { ".mozilla/firefox/*/bookmarks.html", N_("Firefox (%s)"), "firefox" },
+        { ".config/midori/bookmarks.xbel", N_("Midori 0.2.6"), "midori" },
     };
 
     GtkWidget* dialog;