aboutsummaryrefslogtreecommitdiffstats
path: root/src/epiphany.defs
diff options
context:
space:
mode:
authorJean-François Rameau <jframeau@cvs.gnome.org>2006-05-23 04:40:51 +0800
committerJean-François Rameau <jframeau@src.gnome.org>2006-05-23 04:40:51 +0800
commit50c28923803300d68df2529c44d482066f072346 (patch)
tree911630acbff9ec97af0289b2693041805f31ea30 /src/epiphany.defs
parentf603ea80caff9dc9e9e2a7f4193c11091b350f94 (diff)
downloadgsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.tar
gsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.tar.gz
gsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.tar.bz2
gsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.tar.lz
gsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.tar.xz
gsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.tar.zst
gsoc2013-epiphany-50c28923803300d68df2529c44d482066f072346.zip
Add methods to EphyNode to set typed properties. This change improves the
2006-05-16 Jean-François Rameau <jframeau@cvs.gnome.org> * 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.
Diffstat (limited to 'src/epiphany.defs')
-rw-r--r--src/epiphany.defs60
1 files changed, 60 insertions, 0 deletions
diff --git a/src/epiphany.defs b/src/epiphany.defs
index e3b4ef116..546212962 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -2176,6 +2176,16 @@
)
)
+(define-method set_property_string
+ (of-object "EphyNode")
+ (c-name "ephy_node_set_property_string")
+ (return-type "none")
+ (parameters
+ '("guint" "property_id")
+ '("const-char*" "value")
+ )
+)
+
(define-method get_property_string
(of-object "EphyNode")
(c-name "ephy_node_get_property_string")
@@ -2185,6 +2195,16 @@
)
)
+(define-method set_property_boolean
+ (of-object "EphyNode")
+ (c-name "ephy_node_set_property_boolean")
+ (return-type "none")
+ (parameters
+ '("guint" "property_id")
+ '("gboolean" "value")
+ )
+)
+
(define-method get_property_boolean
(of-object "EphyNode")
(c-name "ephy_node_get_property_boolean")
@@ -2194,6 +2214,16 @@
)
)
+(define-method set_property_long
+ (of-object "EphyNode")
+ (c-name "ephy_node_set_property_long")
+ (return-type "none")
+ (parameters
+ '("guint" "property_id")
+ '("long" "value")
+ )
+)
+
(define-method get_property_long
(of-object "EphyNode")
(c-name "ephy_node_get_property_long")
@@ -2203,6 +2233,16 @@
)
)
+(define-method set_property_int
+ (of-object "EphyNode")
+ (c-name "ephy_node_set_property_int")
+ (return-type "none")
+ (parameters
+ '("guint" "property_id")
+ '("int" "value")
+ )
+)
+
(define-method get_property_int
(of-object "EphyNode")
(c-name "ephy_node_get_property_int")
@@ -2212,6 +2252,16 @@
)
)
+(define-method set_property_double
+ (of-object "EphyNode")
+ (c-name "ephy_node_set_property_double")
+ (return-type "none")
+ (parameters
+ '("guint" "property_id")
+ '("double" "value")
+ )
+)
+
(define-method get_property_double
(of-object "EphyNode")
(c-name "ephy_node_get_property_double")
@@ -2221,6 +2271,16 @@
)
)
+(define-method set_property_float
+ (of-object "EphyNode")
+ (c-name "ephy_node_set_property_float")
+ (return-type "none")
+ (parameters
+ '("guint" "property_id")
+ '("float" "value")
+ )
+)
+
(define-method get_property_float
(of-object "EphyNode")
(c-name "ephy_node_get_property_float")