Removed obsolete code.

Implemented X11GLNative.IconChanged event.
This commit is contained in:
the_fiddler 2009-06-24 14:42:40 +00:00
parent 623015650b
commit 8c800d619d
5 changed files with 6 additions and 24 deletions

View file

@ -99,11 +99,6 @@ namespace OpenTK.Platform
{
#region IPlatformFactory Members
public INativeGLWindow CreateGLNative()
{
throw new PlatformNotSupportedException("Please, refer to http://www.opentk.com for more information.");
}
public INativeWindow CreateNativeWindow(int x, int y, int width, int height, string title, GraphicsMode mode, GameWindowFlags options, DisplayDevice device)
{
throw new PlatformNotSupportedException("Please, refer to http://www.opentk.com for more information.");

View file

@ -114,12 +114,12 @@ namespace OpenTK.Platform.MacOS.Carbon
public static void Run(CarbonGLNative window)
{
window.Destroy += MainWindowClosed;
window.Closed += MainWindowClosed;
window.Visible = true;
API.RunApplicationEventLoop();
window.Destroy -= MainWindowClosed;
window.Closed -= MainWindowClosed;
}
static void MainWindowClosed(object sender, EventArgs e)

View file

@ -676,9 +676,6 @@ namespace OpenTK.Platform.MacOS
}
}
public event CreateEvent Create = delegate(object sender, EventArgs e) { };
public event DestroyEvent Destroy = delegate(object sender, EventArgs e) { };
#endregion
#region INativeGLWindow Members

View file

@ -954,20 +954,6 @@ namespace OpenTK.Platform.Windows
#endregion
#region OnDestroy
public void OnDestroy(EventArgs e)
{
Debug.Print("Destroy event fired from window: {0}", window.ToString());
if (this.Destroy != null)
this.Destroy(this, e);
}
public event DestroyEvent Destroy;
#endregion
#endregion
#region IInputDriver Members

View file

@ -778,6 +778,9 @@ namespace OpenTK.Platform.X11
}
set
{
if (value == icon)
return;
if (value == null)
{
Functions.XDeleteProperty(window.Display, window.WindowHandle, _atom_net_wm_icon);
@ -807,6 +810,7 @@ namespace OpenTK.Platform.X11
}
icon = value;
IconChanged(this, EventArgs.Empty);
}
}