[Gtk-sharp-list] MonkeyGuide?: Hello World in GNOME.NET - Third Draft

Mike Kestner mkestner@speakeasy.net
20 Feb 2003 00:42:43 -0600

On Thu, 2003-02-20 at 00:07, Charles Iliya Krempeaux wrote:

Nice.  Just a couple more comments.  :)

> The first thing you probably have noticed is that there are now two
> classes.  The first class -- HelloWorld -- is almost identical to the
> version in the previous example.  Except for the following line:
>                     MyMainWindow app = new MyMainWindow("Hello World",
> "Hello World");

That's supposed to be MyMainWindow app = new MyMainWindow(program);

> The important thing to focus on is this line:
>                     this.DeleteEvent += new
> GtkSharp.DeleteEventHandler(delete_event);

There is no need to use the "this" keyword anywhere in this class. Doing
so is just extra typing. 

I'm also not excited about your coding style of splitting class/ctor
declarations into two lines with the parent class and : on the second
line, but I'm not going to lose any sleep over that.  :)

Mike Kestner <mkestner@speakeasy.net>