Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }