// Constructor.
	public XClockEmbed(String title, int width, int height)
		: base(title, width, height)
	{
		embed = new EmbeddedApplication(this, 0, 0, width, height);
		embed.Program = "xclock";
		embed.Launch();
	}
Exemple #2
0
 // Constructor.
 public AppGroupWidget(Display dpy, Screen screen, XAppGroup group,
                       EmbeddedApplication parent)
     : base(dpy, screen, DrawableKind.Widget, null)
 {
     embedParent = parent;
     handle      = (XDrawable)group;
     dpy.handleMap[(XWindow)handle] = this;
 }
		// Constructor.
		public AppGroupWidget(Display dpy, Screen screen, XAppGroup group,
							  EmbeddedApplication parent)
				: base(dpy, screen, DrawableKind.Widget, null)
				{
					embedParent = parent;
					handle = (XDrawable)group;
					dpy.handleMap[(XWindow)handle] = this;
				}