mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* generator/ObjectGen.cs : suppress generation of get/set methods when properties exist. Mangle method names on signal name clashes. Gen the signals. * generator/SymbolTable.cs : Add GetName. Add some more calls to Trim. * generator/gtkapi.xml : adding binary file as an experiment. If the diff's show this file, I'll be removing it with apologies and going back to the separate package idea. * parser/gapi2xml.pl : some signal related fixes. * sample/HelloWorld.cs : uncomment the event hook. svn path=/trunk/gtk-sharp/; revision=2419
38 lines
780 B
C#
Executable File
38 lines
780 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.DeleteEvent += new EventHandler (Window_Delete);
|
|
win.ShowAll ();
|
|
Console.WriteLine("Entering event loop");
|
|
Application.Run ();
|
|
return 0;
|
|
}
|
|
|
|
static void Window_Delete (object obj, EventArgs args)
|
|
{
|
|
Application.Quit ();
|
|
}
|
|
|
|
}
|
|
}
|