private void HandleClickedBtnClose(object sender, EventArgs e) { GdkEventAny se = new GdkEventAny(); se.Type = Gdk.EventType.Delete; se.Window = this.GdkWindow; se.SendEvent = true; IntPtr ptr = GLib.Marshaller.StructureToPtrAlloc(se); Gdk.Event evnt = new Gdk.Event(ptr); Gdk.EventHelper.Put(evnt); }
private void HandleClickedBtnClose(object sender, EventArgs e) { GdkEventAny se = new GdkEventAny (); se.Type = Gdk.EventType.Delete; se.Window = this.GdkWindow; se.SendEvent = true; IntPtr ptr = GLib.Marshaller.StructureToPtrAlloc (se); Gdk.Event evnt = new Gdk.Event (ptr); Gdk.EventHelper.Put (evnt); }