aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ephy-node-db.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-05-21 04:52:47 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-21 04:52:47 +0800
commit3389ee02736c231e61877abd5d9663e57f27a276 (patch)
treefb09a5a53a779f673e7bcc1f9d98d3fea23370b0 /lib/ephy-node-db.c
parentdef97c979d02aed973fb1443d89ab81f1d570b7c (diff)
downloadgsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.tar
gsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.tar.gz
gsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.tar.bz2
gsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.tar.lz
gsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.tar.xz
gsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.tar.zst
gsoc2013-epiphany-3389ee02736c231e61877abd5d9663e57f27a276.zip
Fix nodes drag and drop. Make double click select the whole address in
2003-05-20 Marco Pesenti Gritti <marco@it.gnome.org> * lib/ephy-dnd.c: (ephy_dnd_drag_data_get), (ephy_dnd_node_list_extract_nodes): * lib/ephy-node-db.c: (ephy_node_db_set_name), (node_from_id_real), (ephy_node_db_get_name): * lib/ephy-node-db.h: * lib/ephy-node.c: (ephy_node_get_db): * lib/ephy-node.h: * lib/widgets/ephy-location-entry.c: (ephy_location_entry_button_press_event_cb), (ephy_location_entry_build): * lib/widgets/ephy-tree-model-sort.c: (each_node_get_data_binder): Fix nodes drag and drop. Make double click select the whole address in toolbar entry.
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)
{