From 50c28923803300d68df2529c44d482066f072346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Rameau?= Date: Mon, 22 May 2006 20:40:51 +0000 Subject: Add methods to EphyNode to set typed properties. This change improves the MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-05-16 Jean-François Rameau * lib/ephy-node.h: * lib/ephy-node.c: * src/epiphany.defs: Add methods to EphyNode to set typed properties. This change improves the Python API so it should be easy now to play with bookmarks. Also clean up the code with unnecessary checks. --- lib/ephy-node.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/ephy-node.h') diff --git a/lib/ephy-node.h b/lib/ephy-node.h index f4e0b0411..ec87315f9 100644 --- a/lib/ephy-node.h +++ b/lib/ephy-node.h @@ -89,16 +89,34 @@ gboolean ephy_node_get_property (EphyNode *node, const char *ephy_node_get_property_string (EphyNode *node, guint property_id); +void ephy_node_set_property_string (EphyNode *node, + guint property_id, + const char *value); gboolean ephy_node_get_property_boolean (EphyNode *node, guint property_id); +void ephy_node_set_property_boolean (EphyNode *node, + guint property_id, + gboolean value); long ephy_node_get_property_long (EphyNode *node, guint property_id); +void ephy_node_set_property_long (EphyNode *node, + guint property_id, + long value); int ephy_node_get_property_int (EphyNode *node, guint property_id); +void ephy_node_set_property_int (EphyNode *node, + guint property_id, + int value); double ephy_node_get_property_double (EphyNode *node, guint property_id); +void ephy_node_set_property_double (EphyNode *node, + guint property_id, + double value); float ephy_node_get_property_float (EphyNode *node, guint property_id); +void ephy_node_set_property_float (EphyNode *node, + guint property_id, + float value); EphyNode *ephy_node_get_property_node (EphyNode *node, guint property_id); -- cgit v1.2.3