gtk-sharp module split

svn path=/trunk/gtk-sharp/; revision=63100
This commit is contained in:
Mike Kestner 2006-07-28 19:07:35 +00:00
parent 6065e27ab2
commit 7cb83ab8a0
3 changed files with 0 additions and 68 deletions

View file

@ -1,26 +0,0 @@
<oaf_info>
<oaf_server iid="OAFIID:CSharpTestApplet_Factory" type="exe"
location="/home/tberman/mono-cvs/panelapplet-sharp/test/testapplet">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:Bonobo/GenericFactory:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
<oaf_attribute name="name" type="string" value="CSharp Test Applet Factory"/>
<oaf_attribute name="description" type="string" value="Factory to create the CSharp Test applet"/>
</oaf_server>
<oaf_server iid="OAFIID:CSharpTestApplet" type="factory"
location="OAFIID:CSharpTestApplet_Factory">
<oaf_attribute name="repo_ids" type="stringv">
<item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
<item value="IDL:Bonobo/Control:1.0"/>
<item value="IDL:Bonobo/Unknown:1.0"/>
</oaf_attribute>
<oaf_attribute name="name" type="string" value="CSharp Test Applet"/>
<oaf_attribute name="description" type="string" value="A CSharp Test applet"/>
<oaf_attribute name="panel:category" type="string" value="Amusements"/>
<oaf_attribute name="panel:icon" type="string" value="monodoc.png"/>
</oaf_server>
</oaf_info>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

View file

@ -1,42 +0,0 @@
using System;
using PanelApplet;
using Gtk;
namespace AppletTest
{
public class PanelAppletClass : PanelApplet
{
protected PanelAppletClass (IntPtr raw) : base (raw) {}
static void Main (string[] argv)
{
Gnome.Program p = new Gnome.Program ("CSharpTestApplet", "0.1", Gnome.Modules.UI, argv);
AppletFactory.Register (typeof (PanelAppletClass));
}
Label testLabel;
public override void Creation ()
{
testLabel = new Label ("MonoTest");
this.Add (testLabel);
this.ShowAll ();
string xml = "<popup name=\"button3\"><menuitem name=\"Properties\" verb=\"LabelChange\" _label=\"_Change Label\" pixtype=\"stock\" pixname=\"gtk-properties\"/></popup>";
this.SetupMenu (xml, new BonoboUIVerb [] { new BonoboUIVerb ("LabelChange", new ContextMenuItemCallback (LabelChangeCB)) });
}
int i = 0;
void LabelChangeCB ()
{
testLabel.Text = String.Format ("Changed {0} time(s).", ++i);
}
public override string IID {
get { return "OAFIID:CSharpTestApplet"; }
}
public override string FactoryIID {
get { return "OAFIID:CSharpTestApplet_Factory"; }
}
}
}