2002-04-09 Mike Kestner <mkestner@speakeasy.net>
* sample/ButtonApp.cs : Get it to run on linux. svn path=/trunk/gtk-sharp/; revision=3721
This commit is contained in:
parent
138b6c1644
commit
786450e1dd
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2002-04-09 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
|
* sample/ButtonApp.cs : Get it to run on linux.
|
||||||
|
|
||||||
2002-04-04 Mike Kestner <mkestner@speakeasy.net>
|
2002-04-04 Mike Kestner <mkestner@speakeasy.net>
|
||||||
|
|
||||||
* generator/CallbackGen.cs : Unstubify.
|
* generator/CallbackGen.cs : Unstubify.
|
||||||
|
|
|
@ -2,24 +2,25 @@
|
||||||
//
|
//
|
||||||
// Author: Mike Kestner <mkestner@speakeasy.net>
|
// Author: Mike Kestner <mkestner@speakeasy.net>
|
||||||
//
|
//
|
||||||
// (c) 2001 Mike Kestner
|
// (c) 2001-2002 Mike Kestner
|
||||||
|
|
||||||
namespace GtkSamples {
|
namespace GtkSamples {
|
||||||
|
|
||||||
using Gtk;
|
using Gtk;
|
||||||
using GtkSharp;
|
using GtkSharp;
|
||||||
using System;
|
using System;
|
||||||
using System.Drawing;
|
|
||||||
|
|
||||||
public class ButtonApp {
|
public class ButtonApp {
|
||||||
|
|
||||||
public static int Main (string[] args)
|
public static int Main (string[] args)
|
||||||
{
|
{
|
||||||
Application.Init (ref args);
|
Application.Init ();
|
||||||
Window win = new Window (WindowType.Toplevel);
|
Window win = new Window (WindowType.Toplevel);
|
||||||
win.Title = "Button Tester";
|
win.Title = "Button Tester";
|
||||||
|
win.DefaultHeight = 120;
|
||||||
|
win.DefaultWidth = 160;
|
||||||
win.DeleteEvent += new EventHandler (Window_Delete);
|
win.DeleteEvent += new EventHandler (Window_Delete);
|
||||||
Button btn = new Button ();
|
Button btn = new Button ("Click Me");
|
||||||
btn.Clicked += new EventHandler (btn_click);
|
btn.Clicked += new EventHandler (btn_click);
|
||||||
win.EmitAdd (btn);
|
win.EmitAdd (btn);
|
||||||
win.ShowAll ();
|
win.ShowAll ();
|
||||||
|
|
Loading…
Reference in a new issue