diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ephy-node.c | 12 | ||||
-rw-r--r-- | lib/ephy-node.h | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/lib/ephy-node.c b/lib/ephy-node.c index 087d18fdc..ed5e23eb8 100644 --- a/lib/ephy-node.c +++ b/lib/ephy-node.c @@ -60,7 +60,7 @@ struct EphyNode { int ref_count; - gulong id; + guint id; GPtrArray *properties; @@ -308,7 +308,7 @@ ephy_node_new (EphyNodeDb *db) } EphyNode * -ephy_node_new_with_id (EphyNodeDb *db, gulong reserved_id) +ephy_node_new_with_id (EphyNodeDb *db, guint reserved_id) { EphyNode *node; @@ -352,12 +352,12 @@ ephy_node_get_db (EphyNode *node) return node->db; } -long +guint ephy_node_get_id (EphyNode *node) { long ret; - g_return_val_if_fail (EPHY_IS_NODE (node), -1); + g_return_val_if_fail (EPHY_IS_NODE (node), G_MAXUINT); ret = node->id; @@ -386,7 +386,7 @@ ephy_node_unref (EphyNode *node) } static void -child_changed (gulong id, +child_changed (guint id, EphyNodeParent *node_info, EphyNodeChange *change) { @@ -642,7 +642,7 @@ typedef struct } ForEachData; static void -write_parent (gulong id, +write_parent (guint id, EphyNodeParent *node_info, ForEachData* data) { diff --git a/lib/ephy-node.h b/lib/ephy-node.h index b87b56649..b2c13225e 100644 --- a/lib/ephy-node.h +++ b/lib/ephy-node.h @@ -51,12 +51,12 @@ typedef void (*EphyNodeCallback) (EphyNode *node, ...); EphyNode *ephy_node_new (EphyNodeDb *db); EphyNode *ephy_node_new_with_id (EphyNodeDb *db, - gulong reserved_id); + guint reserved_id); EphyNodeDb *ephy_node_get_db (EphyNode *node); /* unique node ID */ -long ephy_node_get_id (EphyNode *node); +guint ephy_node_get_id (EphyNode *node); /* refcounting */ void ephy_node_ref (EphyNode *node); |