blob: 426e93085c9f6a266e3817885cc76cbfd77b7f45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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);
}
}
}
}
|