mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 02:25:37 +00:00
574aa2ee06
* configure.in : check for panelapplet in enable_gnome and remove all the stuff for a separate panelapplet-sharp assembly. * Makefile.am : remove panelapplet dir from build. * gnome/BonoboUIVerb.cs : moved from panelapplet. * gnome/Gnome.metadata : add rules from panelapplet. * gnome/Makefile.am : add new files. * gnome/PanelApplet.custom : moved from panelapplet. * gnome/PanelAppletFactory.cs : moved from panelapplet. * gnome/glue/panelapplet.c : moved from panelapplet. * gnome/glue/Makefile.am : add new file. * gnomedb/GnomeDb.metadata : hide a newly parsed "obsolete" type. * gtk/Gtk.metadata : hide a newly parsed "obsolete" callback type. * panelapplet : kill dir. * parser/gapi2xml.pl : update callback name sanity check. * sources/gtk-sharp-sources.xml : move panelapplet parse into gnome. * */*-api.raw : regen. svn path=/trunk/gtk-sharp/; revision=38509
21 lines
567 B
Plaintext
21 lines
567 B
Plaintext
[DllImport ("panel-applet-2")]
|
|
static extern void panel_applet_setup_menu (IntPtr handle, string 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);
|
|
panel_applet_setup_menu (Handle, xml, nulled_items, IntPtr.Zero);
|
|
}
|
|
|
|
public abstract void Creation ();
|
|
|
|
public abstract string IID {
|
|
get;
|
|
}
|
|
|
|
public abstract string FactoryIID {
|
|
get;
|
|
}
|