4966896f1e
api.xml file from CVS with this commit. It can be downloaded from http://sf.net/projects/gtk-sharp. I will be uploading new versions of the file, now named gtkapi.xml, to the project download area from now on. 2002-02-08 Mike Kestner <mkestner@speakeasy.net> * README : Some updates. * generator/BoxedGen.cs : Add FromNative method. * generator/CallbackGen.cs : Add FromNative method. * generator/EnumGen.cs : Add FromNative method. * generator/IGeneratable.cs : Add FromNative method. * generator/InterfaceGen.cs : Add FromNative method. * generator/ObjectGen.cs : Add FromNative method. Hook in GenMethod. * generator/StructBase.cs : Revamp param handling. Add GenMethod. * generator/StructGen.cs : Add FromNative method. * generator/SymbolTable.cs : Add FromNative method. * parser/gapi2xml.pl : Detect ctors before methods. Fix method names. * sample/HelloWorld.cs : uncomment the Show call. svn path=/trunk/gtk-sharp/; revision=2277
37 lines
776 B
C#
Executable file
37 lines
776 B
C#
Executable file
// TestWindow.cs - GTK Window class Test implementation
|
|
//
|
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
|
//
|
|
// (c) 2001 Mike Kestner
|
|
|
|
namespace GtkSamples {
|
|
|
|
using Gtk;
|
|
using Gdk;
|
|
using GtkSharp;
|
|
using System;
|
|
using System.Drawing;
|
|
|
|
public class HelloWorld {
|
|
|
|
public static int Main (string[] args)
|
|
{
|
|
Application.Init (ref args);
|
|
Console.WriteLine("Creating Window");
|
|
Gtk.Window win = new Gtk.Window (Gtk.WindowType.Toplevel);
|
|
Console.WriteLine("Setting Title");
|
|
win.Title = "Gtk# Hello World";
|
|
// win.Deleted += new EventHandler (Window_Delete);
|
|
win.Show ();
|
|
Console.WriteLine("Entering event loop");
|
|
Application.Run ();
|
|
return 0;
|
|
}
|
|
|
|
static void Window_Delete (object obj, EventArgs args)
|
|
{
|
|
Application.Quit ();
|
|
}
|
|
|
|
}
|
|
}
|