2004-10-29 20:33:07 +00:00
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2005-01-07 21:29:38 +00:00
|
|
|
namespace Gnome
|
2004-10-29 20:33:07 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public delegate void ContextMenuItemCallback ();
|
|
|
|
|
|
|
|
[StructLayout (LayoutKind.Sequential)]
|
|
|
|
public struct BonoboUIVerb
|
|
|
|
{
|
|
|
|
string verb;
|
|
|
|
ContextMenuItemCallback callback;
|
|
|
|
IntPtr user_data;
|
|
|
|
IntPtr dummy;
|
|
|
|
|
|
|
|
public BonoboUIVerb (string name, ContextMenuItemCallback cb)
|
|
|
|
{
|
|
|
|
verb = name;
|
|
|
|
callback = cb;
|
|
|
|
user_data = IntPtr.Zero;
|
|
|
|
dummy = IntPtr.Zero;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|