aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-profile-migrator.c
diff options
context:
space:
mode:
authorXan Lopez <xan@igalia.com>2012-12-12 20:09:39 +0800
committerXan Lopez <xan@igalia.com>2012-12-12 20:09:39 +0800
commitceab3ce08927ec45bb880371b7f31041a5192851 (patch)
tree8ab7c7d77d071f21e12954e89a5fefcacbcbac60 /lib/ephy-profile-migrator.c
parent5660617413c37eb397a50361b6ca5bdd250b5be5 (diff)
downloadgsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.tar
gsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.tar.gz
gsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.tar.bz2
gsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.tar.lz
gsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.tar.xz
gsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.tar.zst
gsoc2013-epiphany-ceab3ce08927ec45bb880371b7f31041a5192851.zip
Define the names of the history and bookmarks files in just one place
Diffstat (limited to 'lib/ephy-profile-migrator.c')
-rw-r--r--lib/ephy-profile-migrator.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ephy-profile-migrator.c b/lib/ephy-profile-migrator.c
index c7cf49415..e757cbd80 100644
--- a/lib/ephy-profile-migrator.c
+++ b/lib/ephy-profile-migrator.c
@@ -559,11 +559,11 @@ migrate_history (void)
char buffer[1024];
HistoryParseData parse_data;
- gchar *temporary_file = g_build_filename (ephy_dot_dir (), "ephy-history.db", NULL);
+ gchar *temporary_file = g_build_filename (ephy_dot_dir (), EPHY_HISTORY_FILE, NULL);
/* Do nothing if the history file already exists. Safer than wiping
* it out. */
if (g_file_test (temporary_file, G_FILE_TEST_EXISTS)) {
- g_warning ("Did not migrate Epiphany's history, the ephy-history.db file already exists");
+ g_warning ("Did not migrate Epiphany's history, the %s file already exists", EPHY_HISTORY_FILE);
g_free (temporary_file);
return;
}
@@ -779,7 +779,7 @@ migrate_new_urls_table (void)
char *filename;
GError *error = NULL;
- filename = g_build_filename (ephy_dot_dir (), "ephy-history.db", NULL);
+ filename = g_build_filename (ephy_dot_dir (), EPHY_HISTORY_FILE, NULL);
history_database = ephy_sqlite_connection_new ();
ephy_sqlite_connection_open (history_database, filename, &error);