aboutsummaryrefslogtreecommitdiff
path: root/bindings/mono/ApplicationIndicatorCustom.cs.in
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-23 03:00:53 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-10-23 16:02:24 +0200
commitc72376856260360074879a5c91217c66c934558d (patch)
tree5cf57abee673e8fd0630e7b18d65fd602b39dc78 /bindings/mono/ApplicationIndicatorCustom.cs.in
parent1245eb78f2db30db8403cb4718de79e41a4a361b (diff)
downloadlibayatana-appindicator-c72376856260360074879a5c91217c66c934558d.tar.gz
libayatana-appindicator-c72376856260360074879a5c91217c66c934558d.tar.bz2
libayatana-appindicator-c72376856260360074879a5c91217c66c934558d.zip
Re-introduce (CMake based) build support against GTK+ 2.0.
Diffstat (limited to 'bindings/mono/ApplicationIndicatorCustom.cs.in')
-rw-r--r--bindings/mono/ApplicationIndicatorCustom.cs.in40
1 files changed, 40 insertions, 0 deletions
diff --git a/bindings/mono/ApplicationIndicatorCustom.cs.in b/bindings/mono/ApplicationIndicatorCustom.cs.in
new file mode 100644
index 0000000..426e930
--- /dev/null
+++ b/bindings/mono/ApplicationIndicatorCustom.cs.in
@@ -0,0 +1,40 @@
+using System;
+using System.Runtime.InteropServices;
+
+namespace AyatanaAppIndicator
+{
+ public partial class ApplicationIndicator : GLib.Object
+ {
+ [DllImport ("@ayatana_appindicator_gtkver@.dll")]
+ static extern int app_indicator_get_status (IntPtr i);
+
+ [DllImport ("@ayatana_appindicator_gtkver@.dll")]
+ static extern int app_indicator_get_category (IntPtr i);
+
+ [DllImport ("@ayatana_appindicator_gtkver@.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);
+ }
+ }
+ }
+}