[Gtk-sharp-list] Why is Gtk# static compiled
Daniel Morgan
danmorg@sc.rr.com
Mon, 2 Dec 2002 09:02:20 -0500
It doesn't have tb be static.
In this gtk# application, there is only one static method -- Main().
clase MyGtkSharpApplication
{
public MyGtkSharpApplication ()
{
Window win = new Window ("My GTK# App");
win.DeleteEvent += new DeleteEventHandler (Window_Delete);
win.BorderWidth = 4;
win.DefaultSize = new Size (450, 300);
VBox vbox = new VBox (false, 4);
win.Add (vbox);
MenuBar mb = new MenuBar ();
Menu file_menu = new Menu ();
MenuItem connect_item = new MenuItem ("Connect");
connect_item.Activated += new EventHandler (OnConnect);
file_menu.Append (connect_item);
vbox.PackStart(mb, false, false, 0);
win.ShowAll ();
}
void OnConnect (object o, EventArgs args)
{
LoginDialog login = new LoginDialog (this);
login = null;
}
public static int Main (string[] args)
{
Application.Init ();
MyGtkSharpApplication myApp = new MyGtkSharpApplication ();
Application.Run ();
return 0;
}
}
-----Original Message-----
From: gtk-sharp-list-admin@ximian.com
[mailto:gtk-sharp-list-admin@ximian.com]On Behalf Of Freddy BL
Sent: Monday, December 02, 2002 8:41 AM
To: gtk-sharp-list@ximian.com
Subject: [Gtk-sharp-list] Why is Gtk# static compiled
Hi!
In the CsGL-Forum under
http://sourceforge.net/mailarchive/forum.php?thread_id=1347158&forum_id=664
Michael writes:
"Since GtkSharp requires the use of making everything static,
it is really annoying to work with."
Now my qustion: Why makes Gtk# everything static? Or isn't so and Michael is
wrong?
Greatings
BL-Freddy
_________________________________________________________________
MSN Groups & Chat - Freunde finden - leicht gemacht
http://groups.msn.com/people/
_______________________________________________
Gtk-sharp-list maillist - Gtk-sharp-list@ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list