2004-10-29 20:33:07 +00:00
|
|
|
[DllImport ("panel-applet-2")]
|
2005-03-09 20:32:24 +00:00
|
|
|
static extern void panel_applet_setup_menu (IntPtr handle, IntPtr xml, BonoboUIVerb[] items, IntPtr user_data);
|
2004-10-29 20:33:07 +00:00
|
|
|
|
|
|
|
public void SetupMenu (string xml, BonoboUIVerb[] items)
|
|
|
|
{
|
|
|
|
BonoboUIVerb[] nulled_items = new BonoboUIVerb[items.Length + 1];
|
|
|
|
Array.Copy (items, nulled_items, items.Length);
|
|
|
|
nulled_items[items.Length] = new BonoboUIVerb (null, null);
|
2005-03-09 20:32:24 +00:00
|
|
|
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (xml);
|
|
|
|
panel_applet_setup_menu (Handle, native, nulled_items, IntPtr.Zero);
|
|
|
|
GLib.Marshaller.Free (native);
|
2006-07-28 15:39:10 +00:00
|
|
|
PersistentData ["setup_menu_verbs"] = items;
|
2004-10-29 20:33:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract void Creation ();
|
|
|
|
|
|
|
|
public abstract string IID {
|
|
|
|
get;
|
|
|
|
}
|
|
|
|
|
|
|
|
public abstract string FactoryIID {
|
|
|
|
get;
|
|
|
|
}
|