[Gtk-sharp-list] Extending Gtk.Window

Philip Van Hoof spamfrommailing@freax.org
Wed, 03 Dec 2003 11:42:32 +0100


On Tue, 2003-11-25 at 11:51 -0500, Miguel de Icaza wrote:

> The code there is not buggy, but it has a hidden behavior: notice that
> the declaration for the Window pointer is not of type MainWindow, it is
> of type Window.

> Also the window that gets shown is the one loaded by Glade, not the
> MainWindow (it is in fact hidden, add a "Show" at the end of the
> constructor, and you will see two windows on the screen).
> 
> That code does not use the actual Window object being created, it is
> just a shell.  It should in fact remove the ": Gtk.Window" inheritance
> chain.

My example is actually being used by people to learn about Gtk-Sharp so
I fixed those OO issues ;-)

We have also build a (not finished in code) example of an application
that uses the auto* tools for it's build process. This build process
includes creating a script that will invoke "mono theexe.exe". Later I
will also include the steps to convert po-files to resource files and
stuff like that. 

http://cvs.freax.be/cgi-bin/cvsweb/SharpDhcpdConf/

Perhaps somebody should create a complete Gtk-Sharp example which uses
nAnt. Most unanswered questions we had during the development of such
samples where building-related. And when asking here, how deployment
should happen, they all answer: xcopy xcopy !!! well tell that to the
RedHat (Fedora) and Debian packagers. I will probably get a "xcopy your
ass"-like response. My personal opinion is that deployment and building
techniques is a major issue lacking in the current development
environment of Gtk-Sharp and Mono. Fixing this issue can be as easy as
creating a document which guides new developers through all this, or
create examples (but I don't know how correct we did it, I am not a
auto* freak, lol).

To Pablo (or others), if you are planning to study my examples, feel
free to report any such OO related issue in the code. I am using these
examples to teach friends at LUGS about Mono and development using Gtk-
Sharp. So they should be very very correct indeed.


-- 
Philip Van Hoof, Software Developer @ Cronos
home: me at freax dot org (change the From-field)
work: Philip dot VanHoof at cronos dot be
http://www.freax.be, http://www.freax.eu.org