aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/appindicator.defs
diff options
context:
space:
mode:
authorKen VanDine <ken.vandine@canonical.com>2009-12-16 14:32:39 -0500
committerKen VanDine <ken.vandine@canonical.com>2009-12-16 14:32:39 -0500
commit4d9d260b7528dc9b1c2f1e205b38f29b34c8c320 (patch)
tree71df84215f1270ae62fe834b3cb863e111a505ff /bindings/python/appindicator.defs
parent985c449e8efe4e258d286857f6a71a7726b43561 (diff)
parent251da6dc9c3ce7e84e83d734bb08cc42c6db2480 (diff)
downloadlibayatana-appindicator-4d9d260b7528dc9b1c2f1e205b38f29b34c8c320.tar.gz
libayatana-appindicator-4d9d260b7528dc9b1c2f1e205b38f29b34c8c320.tar.bz2
libayatana-appindicator-4d9d260b7528dc9b1c2f1e205b38f29b34c8c320.zip
merged in python bindings branch and some of my fixes needed for packaging
Diffstat (limited to 'bindings/python/appindicator.defs')
-rw-r--r--bindings/python/appindicator.defs121
1 files changed, 121 insertions, 0 deletions
diff --git a/bindings/python/appindicator.defs b/bindings/python/appindicator.defs
new file mode 100644
index 0000000..0349b64
--- /dev/null
+++ b/bindings/python/appindicator.defs
@@ -0,0 +1,121 @@
+;; -*- scheme -*-
+; object definitions ...
+(define-object Indicator
+ (in-module "App")
+ (parent "GObject")
+ (c-name "AppIndicator")
+ (gtype-id "APP_TYPE_INDICATOR")
+)
+
+;; Enumerations and flags ...
+
+(define-enum IndicatorCategory
+ (in-module "App")
+ (c-name "AppIndicatorCategory")
+ (gtype-id "APP_INDICATOR_TYPE_INDICATOR_CATEGORY")
+ (values
+ '("application-status" "APP_INDICATOR_CATEGORY_APPLICATION_STATUS")
+ '("communications" "APP_INDICATOR_CATEGORY_COMMUNICATIONS")
+ '("system-services" "APP_INDICATOR_CATEGORY_SYSTEM_SERVICES")
+ '("hardware" "APP_INDICATOR_CATEGORY_HARDWARE")
+ '("other" "APP_INDICATOR_CATEGORY_OTHER")
+ )
+)
+
+(define-enum IndicatorStatus
+ (in-module "App")
+ (c-name "AppIndicatorStatus")
+ (gtype-id "APP_INDICATOR_TYPE_INDICATOR_STATUS")
+ (values
+ '("passive" "APP_INDICATOR_STATUS_PASSIVE")
+ '("active" "APP_INDICATOR_STATUS_ACTIVE")
+ '("attention" "APP_INDICATOR_STATUS_ATTENTION")
+ )
+)
+
+
+;; From app-indicator.h
+
+(define-function app_indicator_get_type
+ (c-name "app_indicator_get_type")
+ (return-type "GType")
+)
+
+(define-function app_indicator_new
+ (c-name "app_indicator_new")
+ (is-constructor-of "AppIndicator")
+ (return-type "AppIndicator*")
+ (parameters
+ '("const-gchar*" "id")
+ '("const-gchar*" "icon_name")
+ '("AppIndicatorCategory" "category")
+ )
+)
+
+(define-method set_status
+ (of-object "AppIndicator")
+ (c-name "app_indicator_set_status")
+ (return-type "none")
+ (parameters
+ '("AppIndicatorStatus" "status")
+ )
+)
+
+(define-method set_attention_icon
+ (of-object "AppIndicator")
+ (c-name "app_indicator_set_attention_icon")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "icon_name")
+ )
+)
+
+(define-method set_menu
+ (of-object "AppIndicator")
+ (c-name "app_indicator_set_menu")
+ (return-type "none")
+ (parameters
+ '("GtkMenu*" "menu")
+ )
+)
+
+(define-method set_icon
+ (of-object "AppIndicator")
+ (c-name "app_indicator_set_icon")
+ (return-type "none")
+ (parameters
+ '("const-gchar*" "icon_name")
+ )
+)
+
+(define-method get_id
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_id")
+ (return-type "const-gchar*")
+)
+
+(define-method get_category
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_category")
+ (return-type "AppIndicatorCategory")
+)
+
+(define-method get_status
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_status")
+ (return-type "AppIndicatorStatus")
+)
+
+(define-method get_icon
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_icon")
+ (return-type "const-gchar*")
+)
+
+(define-method get_attention_icon
+ (of-object "AppIndicator")
+ (c-name "app_indicator_get_attention_icon")
+ (return-type "const-gchar*")
+)
+
+