mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-26 06:05:39 +00:00
d8ecc52b5e
* */*.custom : scrub for string usage in DllImports. * gnome/Makefile.am : remove IconTheme.custom, it's not generated. svn path=/trunk/gtk-sharp/; revision=41615
23 lines
661 B
Plaintext
23 lines
661 B
Plaintext
[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);
|
|
}
|
|
|
|
public abstract void Creation ();
|
|
|
|
public abstract string IID {
|
|
get;
|
|
}
|
|
|
|
public abstract string FactoryIID {
|
|
get;
|
|
}
|