[Gtk-sharp-list] Gnome# Hello World - Revised
Charles Iliya Krempeaux
charles@reptile.ca
05 Feb 2003 09:59:24 -0800
Hello,
OK, here's a revised version of it.
class Hello
{
static void Main(string[] args)
{
Gnome.Program program =
new Gnome.Program("Hello World", "1.0", Gnome.Modules.UI, args);
Gnome.App app = new Gnome.App("Hello World", "Hello World");
app.Show();
Gtk.Application.Run();
}
}
It uses the "Gnome.Program" thing to initialize things. Although, when
I run this program, a dialog box pops up and says:
An error occurred while loading or saving configuration
information for Hello World. Some of your configuration
settings may not work properly.
This is probably not something you want a beginner to see. I'm guessing
it is related to "Gnome.Modules.UI". Does anyone know how to fix it?
See ya
On Wed, 2003-02-05 at 00:27, Martin Willemoes Hansen wrote:
> On Wed, 2003-02-05 at 08:52, Charles Iliya Krempeaux wrote:
> > Hello,
> >
> > I don't know if anyone has done this yet (on the MonkeyGuide),
> > but they might find this useful. Also, people just getting
> > into Gtk# might find this useful too. It is a Hello World program
> > for Gnome#. (Similar to the Gtk# one.)
> >
> > class Hello
> > {
> > static Main()
> > {
> > Gtk.Application.Init();
> >
> > Gnome.App app = new Gnome.App("Hello World", "Hello World");
> > app.Show();
> >
> > Gtk.Application.Run();
> > }
> > }
> >
>
> Check www.go-mono.com/tutorial ;)
>
> Nothing has yet been written in the Gnome# part, a Hello, World! Feel
> free to write somthing up and send it to mono-docs-list.
>
> > Although I am not really sure if "Gtk.Application.Init()" and
> > "Gtk.Application.Run()" are suppose to be called. (Or if a
> > GNOME equivalent is suppose to be called.)
>
> there is the Program prog = new Program ("title", "version", Modules.UI,
> args);
>
> > (BTW, does anyone know when the GNOME 2 API docs are going to be
> > put on the developer.gnome.org website???)
>
> I would also very much like to see that :o)
>
> well id better upgrade to gnome 2.2 soon and try out the doc browser,
> hope it will solve some of my troubles finding good info hehe.
--
Charles Iliya Krempeaux, BSc
charles@reptile.ca
________________________________________________________________________
Reptile Consulting & Services 604-REPTILE http://www.reptile.ca/