[Gtk-sharp-list] Using GTK# on MS Windows and Linux. Questions froma Mono newbie.

Crucius, Wesley WCrucius at sandc.com
Thu Mar 2 11:55:10 EST 2006


Since you asked quite a few questions, I've responded in-line below...

Once you're up to speed, you can try helping me with some problems that
I'm having :)

Wes

>-----Original Message-----
>From: gtk-sharp-list-bounces at lists.ximian.com
[mailto:gtk-sharp-list-bounces at lists.ximian.com] On Behalf Of Redefined
Horizons
>Sent: Thursday, March 02, 2006 10:02 AM
>To: gtk-sharp-list at lists.ximian.com
>Subject: [Gtk-sharp-list] Using GTK# on MS Windows and Linux. Questions
froma Mono newbie.
>
>I am currently in the planning stages of an application that I was
orignally going to write in SharpDevelop for Microsoft Windows.
>However, I have recently begun to use Linux as an operating system, and
I would like to also support my application on Linux via Mono. So I had
some newbie questions about GTK#. I appreciate your patience with my
efforts to learn about this technology. :]
>
>Here are my questions:
>
>How do you use Glade to design GTK# applications?
You don't really, you use Glade to design GTK "GUIs", then you write
code to implement the necessary actions...  Glade ONLY allows you to
define the initial appearance and configuration of the GUI, and to
connect the Widget events (user generated by mouse clicks, key-presses,
etc.) to the code (signal/event handlers) that YOU provide.

>Is the Glade XML file simply parsed and the approporiate source code
created?
No, source code is not "created", widgets are run-time instantiated from
the XML definition.

>If this is true, what utility performs this function?
The libglade library is passed the XML doc and it does the runtime
instantiation, initial property settings, and signal hook-up (to code
that YOU provide).

>Can this be done with Visual Basic .NET on Mono, or is GUI design with
Glade only supported for C#?
Mono/Glade/Gtk IS reported to work in Windows too, although I've never
tried it.  The MonoDevelop IDE, however, does NOT run on Windows at this
time AFAIK.

>How does GTK# work, and how is it related to GTK+?
How does it work? Pretty well I guess...  It's a "wrapper" or language
binding that exposes the GTK functionality to a C# application.

>Does the Mono virtual machine actually make calls to the GTK runtime at
a binary level?
Not sure, but I'd guess that GTK# uses Pinvoke? To call the native GTK
library code?

>Is the code in C#, or other languages supported by Mono converted to
binary code that would match compiled C code that perform the same API
calls to GTK+?
Again, I believe it's a wrapper around the native library...

>Where can I learn more about how this all works so I can help with the
development efforts?
http://www.mono-project.com
http://www.gotmono.com/
http://www.frenchguys.com/wordpress/?page_id=51 (start here if you know
C# and just want to understand what Glade# is)


Who would I talk to about helping with the documentation, and how would
I get started in this effort?
http://www.mono-project.com/Contributing
http://www.mono-project.com/Start

>Thanks,
>
>Scott Huey
>_______________________________________________
>Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list




More information about the Gtk-sharp-list mailing list