aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node-db.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ephy-node-db.c')
-rw-r--r--lib/ephy-node-db.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ephy-node-db.c b/lib/ephy-node-db.c
index f77bac0bd..366b55365 100644
--- a/lib/ephy-node-db.c
+++ b/lib/ephy-node-db.c
@@ -82,7 +82,7 @@ ephy_node_db_set_name (EphyNodeDb *db, const char *name)
if (ephy_node_databases == NULL)
{
ephy_node_databases = g_hash_table_new_full
- (g_str_hash, g_str_equal, NULL, NULL);
+ (g_str_hash, g_str_equal, g_free, NULL);
}
g_hash_table_insert (ephy_node_databases, db->priv->name, db);
@@ -228,6 +228,12 @@ node_from_id_real (EphyNodeDb *db, long id)
return ret;
}
+const char *
+ephy_node_db_get_name (EphyNodeDb *db)
+{
+ return db->priv->name;
+}
+
EphyNode *
ephy_node_db_get_node_from_id (EphyNodeDb *db, long id)
{