aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/ApplicationIndicatorCustom.cs
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-10 22:01:16 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-10 22:01:16 +0200
commit80245fc04e09148863c493af860a6b2710909888 (patch)
treeb12c83377af5017dcb2aa63cfc760209c279dc4e /bindings/mono/ApplicationIndicatorCustom.cs
parent31484851efadc92f86fb117dcf9b6c81b053de10 (diff)
parentfd8225ec3949f2e94ea8278563c7fdbe427617c7 (diff)
downloadlibayatana-appindicator-80245fc04e09148863c493af860a6b2710909888.tar.gz
libayatana-appindicator-80245fc04e09148863c493af860a6b2710909888.tar.bz2
libayatana-appindicator-80245fc04e09148863c493af860a6b2710909888.zip
Merge branch 'tari01-pr/move-to-cmake'
Attributes GH PR #16: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/16
Diffstat (limited to 'bindings/mono/ApplicationIndicatorCustom.cs')
-rw-r--r--bindings/mono/ApplicationIndicatorCustom.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/bindings/mono/ApplicationIndicatorCustom.cs b/bindings/mono/ApplicationIndicatorCustom.cs
new file mode 100644
index 0000000..372b1c1
--- /dev/null
+++ b/bindings/mono/ApplicationIndicatorCustom.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace AyatanaAppIndicator
+{
+ public partial class ApplicationIndicator : GLib.Object
+ {
+ [DllImport ("ayatana-appindicator.dll")]
+ static extern int app_indicator_get_status (IntPtr i);
+
+ [DllImport ("ayatana-appindicator.dll")]
+ static extern int app_indicator_get_category (IntPtr i);
+
+ [DllImport ("ayatana-appindicator.dll")]
+ static extern void app_indicator_set_status (IntPtr i, int s);
+
+ [GLib.Property ("status")]
+ public AppIndicatorStatus AppIndicatorStatus
+ {
+ get
+ {
+ return (AppIndicatorStatus) app_indicator_get_status (Handle);
+ }
+
+ set
+ {
+ app_indicator_set_status (Handle, (int) value);
+ }
+ }
+
+ [GLib.Property ("category")]
+ public AppIndicatorCategory AppIndicatorCategory
+ {
+ get
+ {
+ return (AppIndicatorCategory) app_indicator_get_category (Handle);
+ }
+ }
+ }
+}