aboutsummaryrefslogtreecommitdiff
path: root/bindings/python
diff options
context:
space:
mode:
authorSense Egbert Hofstede <sense@ubuntu.com>2010-09-20 20:28:10 +0200
committerSense Egbert Hofstede <sense@ubuntu.com>2010-09-20 20:28:10 +0200
commit3f3c6a091cb6f724905f94bec6c66175335ba73b (patch)
treeb4c70bb96aa8de74d084c8902f967f190c00dd2c /bindings/python
parent482276fcb7af568bf09047d9613e6817c4af8ad1 (diff)
downloadayatana-indicator-application-3f3c6a091cb6f724905f94bec6c66175335ba73b.tar.gz
ayatana-indicator-application-3f3c6a091cb6f724905f94bec6c66175335ba73b.tar.bz2
ayatana-indicator-application-3f3c6a091cb6f724905f94bec6c66175335ba73b.zip
* Adding Python bindings for the new API additons
* Updating the Mono assembly version to reflect the changes to the API * Remove two redundant elements from the Mono bindings' metadata file
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/appindicator.defs36
1 files changed, 36 insertions, 0 deletions
diff --git a/bindings/python/appindicator.defs b/bindings/python/appindicator.defs
index b6c7402..5027a6d 100644
--- a/bindings/python/appindicator.defs
+++ b/bindings/python/appindicator.defs
@@ -62,6 +62,24 @@
)
)
+(define-method set_label
+ (of-object "AppIndicator")
+ (c-name "app_indicator_set_label")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "label" (null-ok))
+ '("const-gchar*" "guide" (null-ok) (default "NULL"))
+ )
+)
+
+(define-method set_ordering_index
+ (of-object "AppIndicator")
+ (c-name "app_indicator_set_ordering_index")
+ (parameters
+ '("guint32" "ordering_index")
+ )
+)
+
(define-method set_attention_icon
(of-object "AppIndicator")
(c-name "app_indicator_set_attention_icon")
@@ -116,6 +134,24 @@
(return-type "AppIndicatorStatus")
)
+(define-method get_label
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_label")
+ (return-type "const-gchar*")
+)
+
+(define-method get_label_guide
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_label_guide")
+ (return-type "const-gchar*")
+)
+
+(define-method get_ordering_index
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_ordering_index")
+ (return-type "guint32")
+)
+
(define-method get_icon
(of-object "AppIndicator")
(c-name "app_indicator_get_icon")