6abcf29dfa
* bootstrap*: kill the 2.4/2.6/2.8 straps, they are on a branch now. update 2.10 strap for new apis. * sources/Makefile.am : parse 2.16 sources for gnome libs. * sources/gtk-sharp-2.10-sources.xml : ditto. * parser/gapi-parser.cs : explicitly use an indented XML writer. * gnomevfs/gnome-vfs-api-2.16.raw: regen * gnomevfs/Gnomevfs.metadata: some build fixes * gnome/gnome-api-2.16.raw: regen * gnome/Gnome.metadata: some build fixes * sample/PrintSample.cs: remove new Gtk/Gnome ambiguities. svn path=/trunk/gtk-sharp/; revision=63078
23 lines
707 B
Text
23 lines
707 B
Text
[DllImport ("panel-applet-2")]
|
|
static extern void panel_applet_setup_menu (IntPtr handle, IntPtr xml, BonoboUIVerb[] items, IntPtr user_data);
|
|
|
|
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);
|
|
IntPtr native = GLib.Marshaller.StringToPtrGStrdup (xml);
|
|
panel_applet_setup_menu (Handle, native, nulled_items, IntPtr.Zero);
|
|
GLib.Marshaller.Free (native);
|
|
PersistentData ["setup_menu_verbs"] = items;
|
|
}
|
|
|
|
public abstract void Creation ();
|
|
|
|
public abstract string IID {
|
|
get;
|
|
}
|
|
|
|
public abstract string FactoryIID {
|
|
get;
|
|
}
|