[Gtk-sharp-list] gtk#, glade and dotGNU

Bjoern Schiessle bes@schiessle.org
Sat, 23 Apr 2005 20:25:38 +0200


On Do, 2005-04-21 at 19:11 -0300, Rafael Teixeira wrote:
> How could cscc be a C# compiler if it can't take references? just feed
> the glade-sharp reference and embed the glade file, it may work like
> this:
> 
> cscc -gtk -r:/usr/lib/mono/gtk-sharp/glade-sharp.dll
> -resource:gui.glade yourSource.cs

Ok, now i was able to compile Gtk/glade programs. But the -gtk Option
didn't work, because you can't mix csc options with cscc options.

The correct command is this:
cscc prog.cs -r:gtk-sharp,glade-sharp -resource:prog.glade.

I don't need the complete path to the libs if i set LD_LIBRARY_PATH
to /usr/lib/mono/gtk-sharp.

But after some testing and talking on #dotgnu i found some bugs in cscc.
For example i have to insert 'using GLib;' and 'using Gdk;' in the
source so that cscc find everything from Gdk and GLib, even if i use the
complete path in the source code.

cscc also has a problem with:
AccelGroup agrp = new AccelGroup();
MainWindow.AddAccelGroup(agrp);

i get the error message:
called object is not a method or delegate

Probably another bug:

MessageDialog md = new MessageDialog
                  (MainWindow, DialogFlags.DestroyWithParent,
                   MessageType.Error, ButtonsType.Ok,
                   "Could not open \"" + file + "\"");

produced this error message:
no matching constructor

Altogether i think i could see that dotGNU is not that rife like Mono
and isn't focused on Gtk#.

I think i will stay on Mono because it's more focused on Gtk# and Gnome,
but it was interesting to see the status of dotGNU.

Bjoern

-- 
 ,= ,-_-. =.  Bjoern Schiessle                   <bes@schiessle.org>
((_/)o o(\_)) http://www.schiessle.org  Jabber IM: <bes@amessage.de>
 `-'(. .)`-'  If art interprets our dreams, the computer
     \_/      executes them in the guise of programs!